/* ===========================
   TECHBOX ACADEMY
   style.css
=========================== */

:root{
    --bg:#08111f;
    --bg2:#12243a;

    --card:rgba(255,255,255,.06);
    --border:rgba(255,255,255,.10);

    --primary:#22d3ee;
    --primary-dark:#06b6d4;

    --white:#ffffff;
    --text:#e5e7eb;
    --gray:#94a3b8;

    --shadow:0 15px 40px rgba(0,0,0,.35);

    --radius:18px;
}

/* ===========================
RESET
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:Inter,sans-serif;

    background:
    radial-gradient(circle at top right,#12365d 0%,transparent 35%),
    radial-gradient(circle at bottom left,#0b2848 0%,transparent 30%),
    var(--bg);

    color:var(--text);

    line-height:1.7;

}

/* ===========================
HEADER
=========================== */

header{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    z-index:999;

    backdrop-filter:blur(18px);

    background:rgba(8,17,31,.75);

    border-bottom:1px solid rgba(255,255,255,.05);

}

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

.navbar{

    width:95%;

    max-width:1200px;

    margin:auto;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:16px 0;

}

/* ===========================
LOGO
=========================== */

.logo{

    display:flex;

    align-items:center;

    gap:12px;

    font-family:"Space Grotesk",sans-serif;

    font-weight:700;

    color:white;

}

.logo img{

    width:48px;

    height:auto;

}

/* ===========================
NAVIGATION LINKS
=========================== */

.nav-links{

    display:flex;

    list-style:none;

    gap:35px;

}

.nav-links a{

    text-decoration:none;

    color:white;

    transition:.3s;

}

.nav-links a:hover{

    color:var(--primary);

}

.active{

    color:var(--primary);

}

/* ===========================
JOIN NOW BUTTON
=========================== */

.nav-button{

    text-decoration:none;

    background:var(--primary);

    color:white;

    padding:12px 22px;

    border-radius:999px;

    transition:.3s;

}

.nav-button:hover{

    background:var(--primary-dark);

    transform:translateY(-2px);

}

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

.hero{

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    padding:170px 20px 80px;

}

.hero-content{

    max-width:900px;

    margin:auto;

}

.hero-logo{

    width:160px;

    height:auto;

    margin-bottom:30px;

    animation:float 5s ease-in-out infinite;

}

.hero h1{

    font-family:"Space Grotesk",sans-serif;

    font-size:4rem;

    color:white;

    margin-bottom:20px;

    line-height:1.1;

}

.hero p{

    color:var(--gray);

    font-size:1.25rem;

    margin-bottom:45px;

}

/* ===========================
HERO BUTTONS
=========================== */

.hero-buttons{

    display:flex;

    justify-content:center;

    gap:20px;

    flex-wrap:wrap;

}

.primary-btn,
.secondary-btn{

    padding:16px 34px;

    border-radius:999px;

    text-decoration:none;

    font-weight:600;

    transition:.35s;

}

.primary-btn{

    background:var(--primary);

    color:white;

}

.secondary-btn{

    border:2px solid var(--primary);

    color:var(--primary);

}

.primary-btn:hover,
.secondary-btn:hover{

    transform:translateY(-4px);

    box-shadow:0 0 30px rgba(34,211,238,.35);

}

/* ===========================
GENERAL SECTIONS
=========================== */

section{

    width:90%;

    max-width:1200px;

    margin:auto;

    padding:90px 0;

}

section h2{

    text-align:center;

    font-size:2.4rem;

    font-family:"Space Grotesk",sans-serif;

    color:white;

    margin-bottom:60px;

}

/* ===========================
FEATURES
=========================== */

.feature-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:25px;

}

.feature-card{

    background:var(--card);

    border:1px solid var(--border);

    border-radius:var(--radius);

    padding:35px;

    backdrop-filter:blur(10px);

    transition:.35s;

}

.feature-card:hover{

    transform:translateY(-8px);

    border-color:var(--primary);

    box-shadow:var(--shadow);

}

.feature-card h3{

    color:white;

    margin-bottom:12px;

}

.feature-card p{

    color:var(--gray);

}

/* ===========================
COURSES
=========================== */

.course-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:25px;

}

.course-card{

    background:linear-gradient(145deg,#11263d,#0d1d31);

    border:1px solid rgba(255,255,255,.08);

    border-radius:var(--radius);

    padding:35px;

    text-align:center;

    transition:.35s;

    backdrop-filter:blur(10px);

}

.course-card:hover{

    transform:translateY(-10px);

    border-color:var(--primary);

    box-shadow:var(--shadow);

}

.course-card h3{

    color:white;

    margin-bottom:12px;

}

.course-card p{

    color:var(--gray);

}

/* ===========================
GALLERY
=========================== */

.gallery-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

    gap:20px;

}

.gallery-grid img{

    width:100%;

    display:block;

    border-radius:18px;

    cursor:pointer;

    transition:.35s;

}

.gallery-grid img:hover{

    transform:scale(1.04);

    box-shadow:var(--shadow);

}

/* ===========================
ABOUT
=========================== */

.about-content{

    max-width:850px;

    margin:auto;

    text-align:center;

    color:var(--gray);

    font-size:1.15rem;

    line-height:1.9;

}

/* ===========================
CONTACT
=========================== */

.contact-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:25px;

}

.contact-grid div{

    background:var(--card);

    border:1px solid var(--border);

    border-radius:var(--radius);

    padding:35px;

    text-align:center;

    transition:.35s;

}

.contact-grid div:hover{

    transform:translateY(-8px);

    border-color:var(--primary);

    box-shadow:var(--shadow);

}

.contact-grid h3{

    color:white;

    margin-bottom:12px;

}

.contact-grid p{

    color:var(--gray);

}

/* ===========================
FOOTER
=========================== */

footer{

    text-align:center;

    padding:70px 20px;

    margin-top:80px;

    border-top:1px solid rgba(255,255,255,.08);

}

footer img{

    width:90px;

    height:auto;

    margin-bottom:20px;

}

footer h3{

    color:white;

    font-family:"Space Grotesk",sans-serif;

    margin-bottom:10px;

}

footer p{

    color:var(--gray);

    margin-top:10px;

}

.copyright{

    margin-top:30px;

    font-size:.9rem;

}

/* ===========================
ANIMATIONS
=========================== */

@keyframes float{

    0%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-15px);
    }

    100%{
        transform:translateY(0);
    }

}

/* ===========================
TABLET
=========================== */

@media (max-width:900px){

    header{

        padding:10px 0;

    }

    .navbar{

        width:95%;

        display:grid;

        grid-template-columns:1fr auto;

        grid-template-areas:
        "logo button"
        "menu menu";

        align-items:center;

        row-gap:15px;

    }

    .logo{

        grid-area:logo;

    }

    .nav-button{

        grid-area:button;

        justify-self:end;

        padding:10px 20px;

    }

    .nav-links{

        grid-area:menu;

        display:flex;

        justify-content:center;

        flex-wrap:wrap;

        gap:18px;

    }

    .hero{

        padding-top:240px;

    }

    .hero h1{

        font-size:2.7rem;

    }

    .hero p{

        font-size:1.05rem;

    }

}

/* ===========================
PHONE
=========================== */

@media (max-width:600px){

    .navbar{

        grid-template-columns:1fr;

        grid-template-areas:
        "logo"
        "button"
        "menu";

        justify-items:center;

        row-gap:15px;

    }

    .logo{

        justify-content:center;

    }

    .nav-button{

        justify-self:center;

    }

    .nav-links{

        justify-content:center;

        gap:12px;

        font-size:.95rem;

    }

    .hero{

        padding-top:300px;

    }

    .hero-logo{

        width:160px;

    }

    .hero h1{

        font-size:2.2rem;

    }

    .hero p{

        font-size:1rem;

    }

    section{

        width:94%;

    }

    section h2{

        font-size:2rem;

    }

}

/* ===========================
LARGE DESKTOP
=========================== */

@media (min-width:1400px){

    .hero h1{

        font-size:4.5rem;

    }

    .hero-logo{

        width:190px;

    }

}
