/* GLOBAL VARIABLES */
:root {
    --primary: #6C63FF;
    /* Vivid Purple */
    --primary-glow: rgba(108, 99, 255, 0.5);
    --secondary: #00D2D3;
    /* Cyan/Teal */
    --secondary-glow: rgba(0, 210, 211, 0.5);
    --accent: #FF6B6B;
    /* Coral Red */
    --bg-dark: #0A0A0C;
    --bg-card: #141419;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-main: linear-gradient(135deg, var(--primary), #8e44ad);
}

/* RESET & BASE */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
.brand {
    font-family: 'Outfit', sans-serif;
    color: var(--text-white);
}

a {
    text-decoration: none;
    transition: 0.3s;
}

img {
    max-width: 100%;
    display: block;
}

/* UTILITIES */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-gradient {
    background: linear-gradient(to right, #fff, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.2rem;
    margin-bottom: 80px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* BUTTONS */
.btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* HERO SECTION */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
    /* Space for Nav if added */
}

/* Background Glows */
.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.2;
    z-index: 0;
}

.glow-1 {
    top: -200px;
    right: -100px;
    background: var(--primary);
}

.glow-2 {
    bottom: -200px;
    left: -100px;
    background: var(--secondary);
}

.glow-3 {
    top: 40%;
    left: 30%;
    width: 300px;
    height: 300px;
    background: var(--accent);
    opacity: 0.1;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 25px;
}

.hero h1 span {
    color: var(--primary);
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
    perspective: 1000px;
}

.phone-mockup {
    width: 380px;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
    animation: float 6s ease-in-out infinite;
    transform: rotateY(-15deg) rotateX(5deg);
    border-radius: 45px;
    /* Adjust based on image */
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotateY(-15deg);
    }

    50% {
        transform: translateY(-20px) rotateY(-15deg);
    }
}

/* STATS BAR */
.stats-bar {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 30px 0;
    margin-top: -50px;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(5px);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    display: block;
}

.stat-label {
    color: var(--secondary);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* FEATURES SECTION */
.features {
    padding: 100px 0;
    background: var(--bg-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 25px;
    border: 1px solid var(--glass-border);
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03));
    opacity: 0;
    transition: 0.4s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.feature-card:hover::before {
    opacity: 1;
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--bg-card), #25252b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-gray);
    font-size: 1rem;
}

/* SHOWCASE SECTION */
.showcase {
    padding: 100px 0;
    position: relative;
}

.showcase .container {
    position: relative;
    z-index: 1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: 0.5s;
    border: 4px solid #222;
}

.gallery-item img {
    width: 100%;
    transition: 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transform: translateY(100%);
    transition: 0.4s;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-info h4 {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 5px;
}

/* DOWNLOAD SECTION */
.download-section {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-dark), #120e2e);
}

.download-card {
    background: linear-gradient(135deg, #1c1c24, #121216);
    padding: 60px;
    border-radius: 40px;
    border: 1px solid var(--glass-border);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.download-card .cta-buttons {
    justify-content: center;
    margin-top: 30px;
}

/* FOOTER */
footer {
    padding: 60px 0 30px;
    background: #050506;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-gray);
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

.copyright {
    text-align: center;
    color: #555;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* RESPONSIVE */
@media (max-width: 968px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 60px;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero-visual {
        justify-content: center;
    }

    .cta-buttons {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* MATCH SHEET DEMO */
.match-demo-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--bg-dark), #151520);
}

.match-sheet-container {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* Header */
.match-header {
    display: flex;
    justify-content: center;
    /* Center the title */
    align-items: flex-start;
    position: relative;
    margin-bottom: 50px;
}

.match-info-center {
    text-align: center;
    position: relative;
    z-index: 2;
}

.match-info-center h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.match-format {
    display: block;
    font-size: 1.2rem;
    color: var(--secondary);
    font-weight: 600;
    margin-top: 5px;
}

.info-icon {
    display: inline-block;
    color: var(--text-gray);
    font-size: 1.2rem;
    cursor: pointer;
    margin-top: 10px;
    position: relative;
    border: 2px solid var(--text-gray);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 20px;
    text-align: center;
    transition: 0.3s;
}

.info-icon:hover {
    color: white;
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Tooltip */
.info-icon .tooltiptext {
    visibility: hidden;
    width: 250px;
    background-color: #222;
    color: #fff;
    text-align: left;
    border-radius: 10px;
    padding: 15px;
    position: absolute;
    z-index: 10;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid var(--glass-border);
    pointer-events: none;
}

.info-icon:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.match-status {
    position: absolute;
    right: 0;
    top: 0;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge-ranked {
    background: rgba(255, 107, 107, 0.15);
    color: var(--accent);
    border: 1px solid rgba(255, 107, 107, 0.3);
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.2);
}

.badge-unranked {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
}

/* Teams Area */
.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
    position: relative;
}

.team-column {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 20px;
    min-height: 300px;
    transition: 0.3s;
}

.team-column h4 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: var(--text-white);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
}

.players-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.player-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #2a2a35;
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-gray);
    transition: 0.3s;
    overflow: hidden;
    position: relative;
}

.player-avatar:hover {
    transform: scale(1.1);
    border-color: var(--primary);
    color: white;
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-avatar.empty {
    border-style: dashed;
    cursor: pointer;
}

.player-avatar.empty:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* VS Divider */
.vs-divider {
    width: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 150px;
    /* Push down to center with player lists */
}

.vs-text {
    font-size: 2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    background: linear-gradient(to bottom, #fff, #555);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
}

/* Chat Area */
.match-chat {
    margin-top: 30px;
    background: #101014;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.chat-messages {
    height: 150px;
    padding: 20px;
    overflow-y: auto;
    font-size: 0.9rem;
    color: var(--text-gray);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
}

.chat-msg strong {
    color: var(--primary);
    margin-right: 5px;
}

.chat-input-area {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid var(--glass-border);
    color: #555;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.chat-input-area i {
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .match-teams {
        flex-direction: column;
        gap: 30px;
    }

    .vs-divider {
        width: 100%;
        padding: 10px 0;
    }

    .vs-text {
        font-size: 1.5rem;
    }

    .match-status {
        position: relative;
        display: inline-block;
        margin-top: 15px;
        right: auto;
        top: auto;
    }

    .match-header {
        flex-direction: column;
        align-items: center;
    }
}