body{

    opacity:0;
    background: var(--pages-color);
    transition:.5s;
}

body.loaded{

    opacity:1;
}

/*================================================== 
                    NAVBAR
==================================================*/

.navbar{

    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:1000;
    background: var(--surface-color);
    backdrop-filter:blur(15px);
    border-bottom:1px solid var(--border-color);
}

.navbar-container{

    height:82px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}
.navbar{

    transition:.35s;

}

.navbar.scrolled{

    background: var(--pages-color);
    box-shadow:0 12px 30px rgba(0,0,0,.35);
}

/*=========================== NAVIGATION MENU =====================*/
.nav-menu{

    display:flex;
    align-items:center;
    gap:45px;
}
.nav-menu a{

    text-decoration:none;
    color:var(--text-secondary);
    font-weight:500;
    transition:.3s;
    position:relative;
}
.nav-menu a:hover,
.nav-menu a.active{

    color:white;
}
.nav-menu a::after{

    content:"";
    position:absolute;
    left:0;
    bottom:-10px;
    width:0;
    height:2px;
    background:var(--primary-color);
    transition:.3s;
}
.nav-menu a:hover::after,
.nav-menu a.active::after{

    width:100%;
}

/*========================== NAV ACTIONS =========================*/
.nav-actions{

    display:flex;
    align-items:center;
    gap:16px;
}

.login-btn{

    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 24px;
    border-radius:12px;
    text-decoration:none;
    background:var(--primary-color);
    color:#111;
    font-weight:600;
    transition:.3s;
}

.login-btn:hover{

    transform:translateY(-2px);
    box-shadow:0 10px 25px rgba(245,197,66,.30);
}

/*==================================================
                MOBILE MENU BUTTON
==================================================*/
.menu-toggle {

    display: none;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: .3s;
}
.menu-toggle:hover {

    border-color: var(--primary-color);
    color: var(--primary-color);
}

/*===================== REVEAL ANIMATION ======================*/
.reveal{

    opacity:0;
    transform:translateY(60px);
    transition:all .8s ease;
}

.reveal.active{

    opacity:1;
    transform:translateY(0);
}

/*========================= HERO =====================*/
.hero-container{

    width: 100%;
    display: flex;
    flex-direction: row;
    margin-top: 80px;
}

/*======================= HERO CONTENT ====================*/

.hero-content{

    padding: 0 10px;
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.hero-content h1{

    font-size:45px;
    color:var(--text-primary);
}

.hero-content h1 span{

    color:var(--primary-color);
}

.hero-content p{

    color:var(--text-secondary);
    font-size: 15px;
    line-height:1.5;
}


.hero-image{

    animation: slideRight .8s ease, floating 5s ease-in-out infinite;
    flex: 3;
}
.hero-image img{

    width: 800px;
    height: 500px;
    border-radius: var(--radius-lg);
}


@keyframes floating{

    0%{

        transform:translateY(0);
    }
    50%{

        transform:translateY(-18px);
    }
    100%{

        transform:translateY(0);
    }
}


/*================= HERO BUTTONS ====================*/
.hero-buttons{

    display:flex;
    gap:18px;
}
.btn-primary{

    display:flex;
    align-items:center;
    gap:12px;
    padding:10px 30px;
    border-radius:14px;
    text-decoration:none;
    background:var(--primary-color);
    color:#111;
    font-weight:700;
    transition:.3s;
}
.btn-primary:hover{

    transform:translateY(-4px);
    box-shadow:0 15px 35px rgba(245,197,66,.35);
}
.btn-secondary{

    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 30px;
    border-radius:14px;
    border:1px solid var(--border-color);
    text-decoration:none;
    color:white;
    transition:.3s;
}
.btn-secondary:hover{

    border-color:var(--primary-color);
    color:var(--primary-color);
}

/*=========================  HEROE FEATURES ==========================*/
.hero-features{

    display: flex;
    flex-direction: row;
    gap: 30px;
}
.hero-features i{

    font-size: 36px;
    color: var(--primary-color);
}
.hero-features h4{

    font-size: var(--font-md);
    font-weight: var(--bold);
    color: var(--text-primary);
    margin-bottom: 3px;
}
.hero-features p{

    font-size: var(--font-sm);
    color: var(--text-secondary);
}
.hero-feature{

    display: flex;
    flex-direction: column;
    gap: 10px;
}

/*====================== STATISTICS =========================*/
.statistics{

    margin: 15px 15px;
    border-radius: 14px;
    padding: 12px 0;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
}
.stats-grid{

    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}
.stat-card{

    border-left: solid 1px var(--primary-color);
    text-align:center;
    transition:.35s;
}
#registered-player{
    border: none;
}
.stat-card:hover{

    transform:translateY(-8px);
    border-color:var(--primary-color);
}

.stat-card i{

    font-size:45px;
    color:var(--primary-color);
}
.stat-card h2{

    font-size:40px;
    color:white;
}
.stat-card p{

    color:var(--text-secondary);
    font-size: 18px;
}


/*============================ SECTION TITLE ======================*/
.container{

    padding: 1px 15px;
}
.section-title{

    width: 100%;
    background-color: aqua;
    text-align:center;
    align-items: center;
}
.section-title span{

    color:var(--primary-color);
    font-weight:600;
}
.section-title h2{

    font-size:2.7rem;
    color:white;
    margin:18px 0;
}
.section-title p{

    color:var(--text-secondary);
    line-height:1.8;
}

/*============================ FEATURES =========================*/
.features-grid{

    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
}

.feature-card{

    background:var(--surface-color);
    border:1px solid var(--border-color);
    border-radius:18px;
    transition:.35s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 18px 10px;
}
.feature-card i{

    font-size: 45px;
    background-color: var(--surface-color);
    color: var(--primary-color);
}
.feature-card:hover{

    transform:translateY(-10px);
    border-color:var(--primary-color);
    box-shadow:0 20px 45px rgba(0,0,0,.25);
}
.feature-card h3{

    color:white;
    margin-top: 10px ;
}
.feature-card p{

    color:var(--text-secondary);
    line-height:1.8;
}
.feature-card a{

    color: var(--primary-color);
    font-weight: 600;
    font-size: var(--font-md);
    gap: 10px;
    margin-top: 8px;
}
.feature-card a i{
    
    font-size: 18px;
}

/* ======================== CTA SECTION ================= */
.cta {

    width: 100%;
    padding: 20px;
}

/* ======================== CTA BOX ==================== */
.cta-box {

    position: relative;
    width: 100%;
    min-height: 200px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
}

/* ====================== BACKGROUND IMAGE ====================== */
.cta-box img{

    height: 300px;
}
.cta-image {

    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

/* ====================== GRADIENT OVERLAY ================= */
.cta-overlay {

    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg,
            rgba(20, 27, 43, 0.15) 0%, rgba(20, 27, 43, 0.35) 40%,
            rgba(20, 27, 43, 0.85) 75%, var(--background-color) 100%);

    z-index: 1;
}

/* ==================== CONTENT ==================== */
.cta-content {

    position: relative;
    z-index: 2;
}
.cta-content h2 {

    color: var(--white-color);
    font-size: 50px;
    font-weight: var(--bold);
    margin: 0;
}

/* ====================== BUTTON ===================== */
.cta-box .btn-primary {

    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

/*=========================== RESPONSIVE =========================*/

/* ================== LARGE TABLETS ================== */
@media (max-width: 950px) {

    /* HERO */
    .hero-container {

        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    .hero-content {

        width: 100%;
        text-align: center;
        align-items: center;
    }
    .hero-image {

        width: 100%;
        display: flex;
        justify-content: center;
    }
    .hero-image img {

        width: 100%;
        max-width: 750px;
        height: auto;
    }

    /* HERO FEATURES */
    .hero-features {

        justify-content: center;
        width: 100%;
    }

    /* STATISTICS */
    .stat-card i{

        font-size:45px;
        color:var(--primary-color);
    }
    .stat-card h2{

        font-size:32px;
        color:var(--white-color);
    }
    .stat-card p{

        color:var(--text-secondary);
        font-size: 16px;
    }

    /* NAVIGATION */
    .nav-menu {

        gap: 25px;
    }

    /* FEATURES */
    .features-grid {

        grid-template-columns: repeat(2, 1fr);
    }

    /* CTA */
    .cta-box {

        padding: 0 40px;
    }

    .cta-content h2 {

        font-size: 40px;
    }

}

/* =================== TABLETS =================== */
@media (max-width: 830px) {

    .navbar-container {

        position: relative;
    }

    /* Show hamburger button */
    .menu-toggle {

        display: flex;
        width: 45px;
        height: 45px;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 1px solid var(--border-color);
        border-radius: 10px;
        color: var(--white-color);
        font-size: 1.3rem;
        cursor: pointer;
        flex-shrink: 0;
    }

    /* Login positioning */
    .nav-actions {

        margin-left: auto;
        margin-right: 12px;
    }

    /* Mobile menu */
    .nav-menu {

        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        background: var(--surface-color);
        border-bottom: 1px solid var(--border-color);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: max-height .35s ease, opacity .3s ease;
        z-index: 999;
    }

    /* Open menu */
    .nav-menu.active {

        display: flex;
        max-height: 400px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-menu a {

        width: 100%;
        text-align: center;
        padding: 18px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu a:last-child {

        border-bottom: none;
    }

    /* Remove desktop underline */
    .nav-menu a::after {

        display: none;
    }

    .logo i {

        font-size: 1.7rem;
    }

    .logo span {

        font-size: 1.6rem;
    }

    .login-btn {

        padding: 9px 18px;
        gap: 7px;
    }

    /* HERO */
    .hero-container {

        margin-top: 90px;
        gap: 30px;
    }
    .hero-content {

        padding: 0;
        gap: 22px;
    }
    .hero-content h1 {

        font-size: 2.8rem;
        line-height: 1.2;
    }
    .hero-content p {

        max-width: 650px;
        font-size: 15px;
    }
    .hero-image img {

        width: 100%;
        max-width: 650px;
        height: auto;
    }

    /* BUTTONS */
    .hero-buttons {

        justify-content: center;
    }

    /* HERO FEATURES */
    .hero-features {

        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .hero-feature {

        align-items: center;
        text-align: center;
    }
    .hero-features i {

        font-size: 30px;
    }

    /* STATISTICS */
    .statistics {

        margin: 15px 10px;
    }
    .stats-grid {

        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .stat-card:nth-child(3) {

        border-left: none;
    }

    .stat-card i{

        font-size:40px;
        color:var(--primary-color);
    }
    .stat-card h2{

        font-size:34px;
        color:var(--white-color);
    }
    .stat-card p{

        color:var(--text-secondary);
        font-size: 15px;
    }

    /* FEATURES */
    .features-grid {

        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* CTA */
    .cta {

        padding: 15px;
    }
    .cta-box {

        min-height: 220px;
        padding: 35px 25px;
        flex-direction: column;
        justify-content: center;
        gap: 25px;
        text-align: center;
    }
    .cta-content h2 {

        font-size: 2.3rem;
    }
}

/* =================== MOBILE =================== */
@media (max-width: 585px) {

    .container {

        padding-left: 15px;
        padding-right: 15px;
    }

    /* NAVBAR */
    .navbar-container {

        height: 65px;
    }

    .logo {

        gap: 8px;
    }

    .logo i {

        font-size: 1.5rem;
    }

    .logo span {

        font-size: 1.4rem;
    }

    .login-btn {

        padding: 8px 14px;
        font-size: 14px;
    }


    /* HERO */
    .hero-container {

        margin-top: 75px;
    }
    .hero-content h1 {

        font-size: 2.2rem;
    }
    .hero-content h1 br {

        display: none;
    }
    .hero-content p {

        font-size: 14px;
    }
    .hero-image img {

        width: 100%;
        height: auto;
        border-radius: 14px;
    }

    /* BUTTONS */
    .hero-buttons {

        width: 100%;
        flex-direction: column;
        gap: 12px;
    }
    .hero-buttons a {

        width: 100%;
        justify-content: center;
    }

    /* HERO FEATURES */
    .hero-features i {

        font-size: 30px;
    }

    /* FEATURES */
    .features-grid {

        grid-template-columns: 1fr;
    }
    .feature-card {

        padding: 25px 20px;
    }

    /* CTA */
    .cta {

        padding: 15px;
    }
    .cta-box {

        padding: 35px 20px;
        min-height: 250px;
    }
    .cta-content h2 {

        font-size: 2rem;
    }
    .cta-box .btn-primary {

        width: 100%;
        justify-content: center;
    }
}

/* ===================== SMALL PHONES ================== */
@media (max-width: 500px) {

    .logo span {

        font-size: 1.2rem;
    }

    .login-btn {

        padding: 10px 18px;
        font-size: 13px;
    }

    .login-btn i {

        display: none;
    }

    .hero-content h1 {

        font-size: 1.9rem;
    }

    .hero-content p {

        font-size: 13px;
    }

    .cta-content h2 {

        font-size: 1.7rem;
    }

    /*STATISTICS*/    
    .stat-card i{

        font-size:36px;
        color:var(--primary-color);
    }
    .stat-card h2{

        font-size:32px;
        color:var(--white-color);
    }
    .stat-card p{

        color:var(--text-secondary);
        font-size: 13px;
    }

    /* HERO FEATURES */
    .hero-features{

        gap: 3px;
    }
    .hero-feature{

        padding: 0;
    }
    .hero-feature h4{

        font-size: 15px;
    }
    .hero-feature p{

        font-size: 11px;
    }

}