/* ========================================= */
/* 1. GLOBAL & RESET                         */
/* ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    margin: 0;
    overflow-x: hidden;
}

body {
    font-family: sans-serif;
    background-color: #0A0A0A;
    color: white;
}
/* ========================================= */
/* 2. TYPOGRAPHY                             */
/* ========================================= */
.title {    
    font-family: 'Space Mono', monospace;
    font-size: 64px;
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 20px;
}

.subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 32px;
    font-weight: bold;
}

.subtitle-purple {
    font-family: 'Space Mono', monospace;
    font-size: 32px;
    font-weight: bold;
    color: #7B30C5;
}

.subtitle-2 {
    font-family: 'Space Mono', monospace;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0.9%;
}

p {
    font-family: 'Arvo', serif;
    font-size: 20px;
    line-height: 1.6;
}

/* ========================================= */
/* 3. STRUCTURE & EXTRAS                */
/* ========================================= */
.container {
    width: 85%;
    max-width: 1366px;
    margin: 0 auto;
}

.grid-3{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.live-status {
    display: flex;
    flex-direction: row;
    align-items: center;}

.live-dot {
    height: 14px;
    width: 14px;
    background-color: red;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    animation: pulse 1s infinite;
}

.live-text {
    color: red;
    font-size: 24px;
    font-family: "Inter", sans-serif;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* ========================================= */
/* 5. BUTTONS                                */
/* ========================================= */
.btn-purple {
    display: inline-block;
    padding: 18px 42px;
    background: #7B30C5;
    color: white;
    font-family: "Inter", sans-serif;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-purple:hover {
    background: transparent;
    border: 2px solid #7B30C5;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(123, 48, 197, 0.35);
}

.btn-purple-outline {
    display: inline-block;
    padding: 18px 42px;
    background: transparent;
    color: white;
    font-family: "Inter", sans-serif;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid #7B30C5;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: 0.03em;
}

.btn-purple-outline:hover {
    background: #7B30C5;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(123, 48, 197, 0.35);
}

.btn-white-outline {
    display: inline-block;
    padding: 18px 42px;
    background: transparent;
    font-family: "Inter", sans-serif;
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid white;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: 0.03em;
}

.btn-white-outline:hover {
    background: white;
    color: #e65100f2;
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.btn-underline-white {
    font-family: "Inter", sans-serif;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
    padding-bottom: 6px;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.2s ease, text-shadow 0.3s ease;
}

/* 1. THE UNDERLINE: Clean white line, zero glow by default */
.btn-underline-white::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ffffff;
    transform: scaleX(1); 
    transform-origin: center;
    /* Removed the box-shadow from here so it doesn't glow on load */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

/* 2. THE HOVER: Glow only triggers when mouse enters */
.btn-underline-white:hover {
    transform: translateY(-3px); 
    text-shadow: 0 0 8px rgba(145, 70, 255, 0.9); 
}

.btn-underline-white:hover::after {
    transform: scaleX(1.08); 
    box-shadow: 0 0 15px rgba(145, 70, 255, 1); /* Glow turns on here */
}

/* 3. THE CLICK EFFECT: Interactive Pulse Wave */
.btn-underline-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-bottom: 2px solid #9146ff; 
    opacity: 0;
    transform: scaleX(1);
    transition: none;
}

.btn-underline-white:active::before {
    opacity: 1;
    transform: scaleX(1.3) scaleY(1.6);
    opacity: 0;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.btn-underline-white:active {
    transform: translateY(-1px) scale(0.97); 
}

/* ========================================= */
/* 7. SECTIONS                               */
/* ========================================= */

/* --- Hero Section --- */
#hero {
    min-height: 100vh;
    width: 100%;
    background: url('images/hero-bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-text {
    grid-column: 1 / 8;
    text-align: left;
}

#hero .subtitle-2 {
    margin-bottom: 40px;
}

/* --- Preview Section --- */
#preview {
    position: relative;
    padding: 100px 0 100px;
    background-image:
    linear-gradient(rgba(0, 0, 0, 0.418), rgba(0, 0, 0, 0.397)),
    url("images/preview.png");
    background-size: cover;
    background-position: center;
    text-align: center;
}

#preview .title {
    margin-bottom: 70px;
}

#preview .subtitle-purple{
    margin-bottom: 50px;
}

#preview .btn-purple {
    margin-top: 80px;
}

#preview .subtitle-purple {
    margin-bottom: 70px; 
}


/* --- Season Section --- */
#season {
    min-height: 350px;
    background-image: url('images/live.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    align-items: center;
}

.season-overlay {
    background: linear-gradient(
        to right, 
        #e65100f2 0%,   /* Solid orange at the start */
        rgba(230, 81, 0, 0.8) 40%,    /* Still orange behind text */
        rgba(230, 81, 0, 0) 80%       /* Fades to completely transparent */
    );
    width: 100%;
    height: 100%;
    padding: 90px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#season .btn-white-outline{
    margin-top: 30px;
}

#season .title{
    margin-bottom: 40px;
}

/* --- Steps Section --- */

#steps {
    position: relative;
    overflow: hidden;
}

#steps .title{
    margin-top: 60px;
}

#rift-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none; 
}

#steps .container {
    position: relative; 
    z-index: 1; 
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

#steps .step {
    position: relative;
}

.step-number {
    font-family: 'Space Mono', monospace;
    font-size: 64px;
    font-weight: bold;
    color: #7B30C5;
}

#steps .title {
    padding-bottom: 80px;
    text-align: center;
}

#steps .grid-3 > a {
    grid-column: 1 / -1;
    justify-self: center;
    display: inline-block;
    margin-bottom: 40px;
    margin-top: 20px;
}

#steps .step:not(:last-of-type)::after {
    content: '〉'; 
    position: absolute;
    right: -30px; 
    top: 35px;
    font-size: 40px;
    font-weight: bold;
    color: #ffffff49;
    pointer-events: none;
}

/* --- Events Section --- */
#events {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  background: linear-gradient(
    to right, 
    rgba(230, 92, 0, 1) 0%, 
    rgba(230, 92, 0, 0.8) 40%, 
    rgba(230, 92, 0, 0.2) 80%,
    transparent 100%
  ), 
  url(images/live.png) center/cover no-repeat;
}

#events .live-status {
    margin-bottom:20px ;
}

#events-btn{
    margin-top: 40px;
}

#events-btn .btn-underline-white{
    margin-left: 15px;
}

/* --- Up-games Section --- */
#up-games {
    padding: 50px 0 90px;
    background: #000;
    position: relative;
}

#up-games .title {
    margin-bottom: 70px;
}
.up-games-grid,
.up-games-more {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}
.event-card {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    border-radius: 12px;
    background: #111;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

.event-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    transform: scale(1);
    transition: transform 0.6s ease;
}

.event-card:hover img {
    transform: scale(1.05);
}
.event-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(47,16,90,0.96) 0%,
            rgba(20,10,35,0.75) 35%,
            rgba(0,0,0,0.18) 100%
        );

    z-index: 1;
}

.event-content {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 2;
}

.event-content .subtitle {
    font-size: 30px;
    margin-bottom: 14px;
    line-height: 1.05;
}

.event-content p {
    margin: 0 0 24px;
    max-width: 90%;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
    font-size: 17px;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.event-pill {
    background: #15b8ff;

    color: white;

    padding: 5px 10px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: bold;
    font-family: "Inter", sans-serif;
}

.event-btn {
    padding: 12px 24px !important;
    font-size: 15px !important;
}

.event-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;

    background: #d96a27;

    color: white;

    padding: 8px 14px;

    border-radius: 4px;

    font-size: 13px;
    font-weight: bold;
    font-family: "Inter", sans-serif;
}

.arena-badge {
    background: #00c896;
}

.event-glow {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;

    height: 24px;

    background:
        radial-gradient(
            circle,
            rgba(123,48,197,0.95) 0%,
            rgba(123,48,197,0.25) 45%,
            transparent 100%
        );

    filter: blur(12px);
}

.up-games-more {
    display: none;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 30px;

    margin-top: 30px;
}

.up-games-more.is-open {
    display: grid;
}


.events-toggle {
    display: block;

    margin: 16px auto 0;

    background: transparent;
    border: 0;

    color: rgba(255,255,255,0.75);

    font-size: 46px;
    line-height: 1;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease,
        color 0.3s ease;
}

.events-toggle:hover {
    transform: translateY(4px);
    color: white;
}

.events-toggle.is-open {
    transform: rotate(180deg);
}

/* --- Rank Section --- */
#rankings {
    position: relative;
    padding: 120px 0;
    background:
        linear-gradient(rgba(0, 0, 0, 0.63), rgba(0, 0, 0, 0.432)),
        url("images/rank-bg.png") center center/cover no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

#rank-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#rankings .container {
    position: relative;
    z-index: 1;
}

#rankings .title {
    text-align: center;
    margin-bottom: 80px;
}

.rankings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.rank-box {
    position: relative;
}

.rank-header {
    width: 220px;
    height: 50px;

    background: linear-gradient(
        90deg,
        #8d8d8d7e 0%,
        #d5d5d560 100%
    );

    clip-path: polygon(
        12% 0,
        100% 0,
        88% 100%,
        0 100%
    );

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 35px;
}

.rank-header span {
    font-family: 'Space Mono', monospace;
    font-size: 30px;
    font-weight: bold;
}

.diamond .rank-header span {
    color: #4dc3ff;
}

.gold .rank-header span {
    color: #ffc400;
}

.silver .rank-header span {
    color: #d5d5d5;
}

.bronze .rank-header span {
    color: #d96b28;
}

.rank-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.team-row {
    display: flex;
    align-items: center;
    gap: 18px;
}

.placement {
    font-family: 'Space Mono', monospace;
    font-size: 42px;
    font-weight: bold;
    color: #e76a1d;
    min-width: 70px;
}

.team-row img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.team-stats {
    flex: 1;
    border: 2px solid #e76a1d;
    padding: 10px 20px;
    background: rgba(255, 115, 0, 0.08);
}

.stats-head,
.stats-body {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stats-head {
    margin-bottom: 8px;
}

.stats-head span {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    font-family: 'Inter', sans-serif;
}

.stats-body span {
    font-size: 18px;
    font-family: 'Space Mono', monospace;
    font-weight: bold;
}

.rank-link {
    margin-top: 20px;
    float: right;
    font-size: 15px;
}

/* --- Play Section --- */
#play {
    padding: 120px 0;
    background: #000;
    text-align: center;
}

#play .title {
    text-align: left;
    color: #e76a1d;
    margin-bottom: 60px;
}

.play-grid {
    align-items: stretch;
}

.play-card {
    border: 1px solid #e76a1d;
    border-radius: 8px;
    padding: 20px 30px;
    background: rgba(255, 115, 0, 0.03);
    transition: all 0.3s ease;
}

.play-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 25px rgba(230, 92, 0, 0.25);
}

.play-icon {
    width: 150px;
    height: auto;
    margin-bottom: 25px;
}

.play-card .subtitle-2 {
    font-size: 30px;
    line-height: 1.3;
    font-weight: bold;
    margin-bottom: 20px;
    color: white;
}

.play-card p {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255,255,255,0.75);
    max-width: 260px;
    margin: 0 auto;
}

/* --- Teams Recruiting Section --- */
#teams {
    padding: 120px 0;
    background:
        linear-gradient(rgba(0, 0, 0, 0.301), rgba(0, 0, 0, 0.226)),
        url("images/team-bg.png");
    background-size: cover;
    background-position: center;
}

#teams .title {
    margin-bottom: 70px;
}

.teams-slider {
    position: relative;
}

/* track */
#teamsTrack {
    display: flex;
    gap: 25px;
    overflow-x: auto;
}

/* hide scrollbar */
#teamsTrack::-webkit-scrollbar {
    display: none;
}

/* ARROWS */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #e76a1d;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 24px;

    cursor: pointer;
    transition: 0.2s;
}

.slider-arrow:hover {
    background: #e76a1d;
}

.slider-arrow.left {
    left: -20px;
}

.slider-arrow.right {
    right: -20px;
}

/* DOTS */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
}

.slider-dot.active {
    background: #e76a1d;
}

.team-card {
    flex: 0 0 350px;
    scroll-snap-align: start;
    background:
        linear-gradient(rgba(0, 0, 0, 0.466), rgba(0, 0, 0, 0.514)),
        url("images/rec-img.png");
    background-size: cover;
    background-position: center;
    border: 2px solid #e76a1d;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.team-icon {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 25px;
}

.team-season {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin: 10px 0 25px;
}

.team-status {
    color: #e76a1d;
    font-family: 'Space Mono', monospace;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 25px;
}

.team-info {
    margin-bottom: 30px;
}

.team-info p {
    font-size: 16px;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.85);
}

.team-btn {
    padding: 14px 28px !important;
    font-size: 16px !important;
}

/* CTA SECTION */
#cta-section {
    position: relative;
    min-height: 500px;
    background: url("images/cta-events.png") center center/cover no-repeat;
    overflow: hidden;
}

#cta-content {
    max-width: 700px;
    z-index: 2;
}

#cta-content h2 {
    margin-bottom: 40px;
    margin-top: 100px;
}

#cta-highlight {
    font-size: 1.2rem;
    font-weight: 700;
    font-style: italic;
    color: white;
    margin-bottom: 8px;
}

#cta-content .btn-purple {
    margin-top: 30px;
}

/* --- About Section --- */

#about-us{
    min-height: 100vh;
    width: 100%;
    background: url('images/about-bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

#about-us .title{
    margin-bottom: 80px;
}

/* --- Goals Section --- */
#goals{
    min-height: 80vh;
    width: 100%;
    background: url('images/goal.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

#goals .container{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

#goals .title{
    grid-column-start: 2;
}

#goals p {
    grid-column-start: 2;
}

/* --- Who Section --- */
#who-is-for{
    text-align: center;
    margin-top: 100px;
}

.who-card {
    border: 1px solid #e76a1d;
    border-radius: 8px;
    padding: 20px 30px;
    max-width: 400px;
    height: 400px;
    background: radial-gradient(circle, #1a0f07 0%, #0d0804 70%, #050302 100%);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    text-align: center;
    flex-direction: column;
    justify-content: center;
}

.who-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    align-items: center;
    justify-items: center;
    margin-bottom: 100px;
}

#who-is-for .subtitle{
    margin-bottom: 20px;
    color:#e76a1d; 
    font-size: 29px;
}

#who-is-for .title{
    margin-bottom: 70px;
}


.who-card img{
    max-width: 200px;
    max-height: 200px;
    margin-bottom: 25px;
}

/* 1. Target cards in the FIRST column (1st and 3rd card) */
.who-card:nth-child(odd) {
    justify-self: end; /* Aligns them to the right side of their grid cell */
}

/* 2. Target cards in the SECOND column (2nd and 4th card) */
.who-card:nth-child(even) {
    justify-self: start; /* Aligns them to the left side of their grid cell */
}

/* --- About CTA Section --- */
#cta-about-us {
    position: relative;
    min-height: 450px;
    background: url("images/cta-page2.png") center center/cover no-repeat;;
}

#cta-about-us h2 {
    margin-bottom: 20px;
    padding-top: 100px;
}

#cta-about-us .btn-purple {
    margin-top: 30px;
}

/* --- Who Section --- */
    footer {
        background: #000;
        color: #fff;
        padding: 40px 60px 20px;
        text-align: center;
    }

    /* Social Icons */
    .social-icons {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-bottom: 35px;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        text-decoration: none;
        font-size: 18px;
        transition: 0.3s;
    }

    .social-icons a:hover {
        background: #fff;
        color: #000;
    }

    /* Partners */
    .partners-title {
        font-size: 28px;
        font-weight: bold;
        margin-bottom: 30px;
    }

    .partner-logos {
        display: flex;
        justify-content: center;
        gap: 50px;
        margin-bottom: 40px;
    }

    .partner-logo {
        width: 80px;
        height: 80px;
        border: 2px solid #555;
        color: #777;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        font-weight: bold;
    }

    /* Disclaimer */
    .disclaimer {
        max-width: 750px;
        margin: 0 auto 40px;
        color: #777;
        font-size: 14px;
        line-height: 1.6;
    }

    /* Bottom Footer */
    .footer-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid #222;
        padding-top: 20px;
        font-size: 14px;
        color: #777;
        flex-wrap: wrap;
        gap: 15px;
    }

    .footer-links a {
        color: #777;
        text-decoration: none;
        margin-left: 15px;
    }

    .footer-links a:hover {
        color: #fff;
    }

/* ========================================= */
/* 8. MODALS & FORMS                         */
/* ========================================= */
.modal {
    display: none; 
    position: fixed;
    z-index: 2000;
    left: 0; 
    top: 0;
    width: 100%; 
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow-y: auto; 
    padding-bottom: 50px;
}

.modal-content {
    background-color: #000;
    margin: 50px auto; 
    padding: 40px;
    border: 1px solid #333;
    width: 90%; 
    max-width: 600px;
    color: #AAA;
    font-family: 'Space Mono', monospace;
    display: flex;
    flex-direction: column;
    position: relative; 
}

.close-button {
    position: absolute; 
    top: 15px; 
    right: 20px; 
    z-index: 10;
    font-size: 25px; 
    color: white; 
    font-weight: bold;
    line-height: 1; 
    width: 48px; 
    height: 48px; 
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer; 
    transition: all 0.3s ease;
}

.close-button:hover {
    color: rgb(112, 112, 112);
}

.slanted-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0 25px 0;
}

input[type="text"], input[type="email"] {
    background: #222;
    border: 1px solid #444;
    color: white;
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
}

.slant-btn.selected {
    background-color: #5d2a8e !important; 
    color: white;
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(93, 42, 142, 0.5); 
}

.slanted-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0 25px 0;
}

.slant-btn {
    background: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    transform: skewX(-20deg);
    cursor: pointer;
    font-size: 12px;
}

.slant-btn:hover {
    background: #5d2a8e;
}

.done-btn {
    background: #D35400;
    color: white;
    width: 100%;
    padding: 15px;
    border: none;
    font-weight: bold;
    margin-top: 20px;
    cursor: pointer;
}

/* ========================================= */
/* 4. HEADER & NAVIGATION                    */
/* ========================================= */
header {
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0;
    z-index: 1000;
    width: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.75) 40%, rgba(0, 0, 0, 0.45) 75%, rgba(0, 0, 0, 0.25) 100%);
}

#menu_nav {
    width: 85%;
    max-width: 1366px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    max-height: 52px;
    width: auto;
    display: block;
}

nav#desktop ul,
nav#mobile ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    align-items: center;
}

nav#desktop ul {
    justify-content: space-between;
}

nav#desktop ul li {
    margin: 0 10px;
}

nav#desktop ul li a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav#desktop ul li a:hover {
    opacity: 0.7;
}

nav a {
    color: white;
    text-decoration: none;
}

nav a:visited {
    color: white;
}

nav a:hover {
    text-decoration: underline;
    color: white;
}

/* --- Navigation Elements --- */
.nav-avatar {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
}

.profile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px; 
    border: 2px solid white;
    border-radius: 50%;
}

/* --- Mobile Nav & Hamburger --- */
#bigmac {
    display: none;
    width: 40px;
    height: 28px;
    position: relative;
    z-index: 30;
    cursor: pointer;
}

#bigmac .linha {
    position: absolute;
    height: 4px;
    width: 100%;
    background-color: white;
    border-radius: 9px;
    left: 0;
    opacity: 1;
    transform: rotate(0deg);
    transition: 0.5s ease-in-out;
}

#bigmac .linha:nth-child(1) { top: 0px; }
#bigmac .linha:nth-child(2) { top: 12px; }
#bigmac .linha:nth-child(3) { top: 12px; }
#bigmac .linha:nth-child(4) { top: 24px; }

#bigmac.open .linha:nth-child(1) { top: 18px; width: 0%; left: 50%; }
#bigmac.open .linha:nth-child(2) { transform: rotate(45deg); }
#bigmac.open .linha:nth-child(3) { transform: rotate(-45deg); }
#bigmac.open .linha:nth-child(4) { top: 18px; width: 0%; left: 50%; }

nav#mobile {
    display: none;
}

/* ========================================= */
/* 9. RESPONSIVE DESIGN                      */
/* ========================================= */
@media (max-width: 800px) {
    .container {
        grid-template-columns: 1fr;
        width: 95%;
    }

    header {
        left: 20px;
        right: 20px;
        width: auto;
        position: fixed;
    }

    body {
        margin: 0 20px;
    }

    #menu_nav {
        width: 95%;
    }

    #bigmac {
        display: block;
    }

    nav#desktop {
        display: none;
    }

    nav#mobile {
        display: block;
        position: fixed;
        z-index: 20;
        width: 100%;
        left: -100vw;
        top: 70px;
        transition: 0.3s linear;
        background-color: rgba(10, 10, 10, 0.98);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav#mobile.menu_abre {
        left: 0;
    }

    nav#mobile ul {
        margin: 0;
        padding: 0;
        list-style-type: none;
    }

    nav#mobile li {
        width: 100%;
        padding: 20px 0;
        text-align: center;
        height: 60px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    #hero {
        padding-top: 0;
    }

    .title {
        font-size: 40px;
        line-height: 50px;
    }

    .subtitle-2 {
        font-size: 18px;
        line-height: 26px;
    }

    p {
        font-size: 16px;
    }

    .btn-hero {
        font-size: 16px;
        padding: 12px 30px;
    }

    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .card {
        padding: 30px 20px 20px;
    }

    .preview-cards {
        grid-template-columns: 1fr;
    }

        .up-games-grid,
    .up-games-more {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .event-card {
        min-height: 360px;
    }

    .event-content .subtitle {
        font-size: 24px;
    }

    .event-content p {
        font-size: 16px;
    }

        .rankings-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .rank-header {
        width: 180px;
        height: 44px;
    }

    .rank-header span {
        font-size: 24px;
    }

    .placement {
        font-size: 30px;
        min-width: 50px;
    }

    .stats-body span {
        font-size: 15px;
    }

    .team-stats {
        padding: 10px;
    }   

    #play .title {
    text-align: center;
    font-size: 36px;
    }

    .play-card {
        padding: 30px 20px;
    }

    .play-icon {
        width: 70px;
    }

    .play-card .subtitle-2 {
        font-size: 24px;
    }

    .play-card p {
        font-size: 15px;
    }

        .team-card {
        min-width: 100%;
    }

    #teams .title {
        font-size: 36px;
        text-align: center;
    }

    .partner-logos {
        gap: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links a {
        margin: 0 10px;
    }

    #preview .grid-3 {
        grid-template-columns: repeat(1, 1fr);

    }

    #goals .container{
        display:block;
    }

    .who-grid {
        display:block;
    }

     .who-card {
        max-width: 100%;
        margin: 0 auto 30px;
    }

    #play .grid-3 {
        grid-template-columns: 1fr;
    }
}
