/* ==========================
   RESET
========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    line-height:1.7;
    overflow-x:hidden;
}

/* ==========================
   THEME VARIABLES
========================== */

:root{

    --primary:#2563eb;
    --primary-hover:#1d4ed8;

    --bg:#ffffff;
    --bg-secondary:#f8fafc;

    --text:#0f172a;
    --text-light:#64748b;

    --card:#ffffff;

    --border:#e2e8f0;

    --shadow:
    0 10px 30px rgba(0,0,0,.08);

    --footer:#0f172a;

}

body.dark{

    --bg:#0f172a;
    --bg-secondary:#1e293b;

    --text:#f8fafc;
    --text-light:#cbd5e1;

    --card:#1e293b;

    --border:#334155;

    --footer:#020617;

    --shadow:
    0 10px 30px rgba(0,0,0,.4);

}

/* ==========================
   GLOBAL
========================== */

body{
    background:var(--bg);
    color:var(--text);
    transition:.3s ease;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
}

ul{
    list-style:none;
}

.container{
    width:min(1200px,90%);
    margin:auto;
}

.section{
    padding:100px 0;
}

.alt-bg{
    background:var(--bg-secondary);
}

/* ==========================
   HEADER
========================== */

.header{

    position:sticky;
    top:0;

    z-index:999;

    background:rgba(255,255,255,.95);

    backdrop-filter:blur(12px);

    border-bottom:
    1px solid var(--border);

}

body.dark .header{

    background:
    rgba(15,23,42,.95);

}

.navbar{

    display:flex;

    align-items:center;

    justify-content:space-between;

    min-height:80px;

}

.logo-wrapper{

    display:flex;

    align-items:center;

    gap:12px;

    color:var(--text);

    font-size:1.2rem;

    font-weight:700;

}

.logo-wrapper img{

    width:50px;
    height:50px;
    object-fit:contain;

}

.nav-links{

    display:flex;
    gap:30px;

}

.nav-links a{

    color:var(--text);

    font-weight:500;

    transition:.3s;

}

.nav-links a:hover{

    color:var(--primary);

}

.header-actions{

    display:flex;
    align-items:center;
    gap:12px;

}

/* ==========================
   THEME BUTTON
========================== */

.theme-toggle{

    width:42px;
    height:42px;

    border:none;

    border-radius:50%;

    cursor:pointer;

    background:var(--bg-secondary);

    font-size:1rem;

    transition:.3s;

}

.theme-toggle:hover{

    transform:rotate(15deg);

}

/* ==========================
   HAMBURGER
========================== */

.hamburger{

    display:none;

    border:none;

    background:none;

    cursor:pointer;

    color:var(--text);

    font-size:2rem;

}

/* ==========================
   HERO
========================== */

.hero{

    position:relative;

    height:100vh;

    display:flex;

    align-items:center;

    justify-content:center;

    overflow:hidden;

}

.hero-image{

    position:absolute;

    inset:0;

    width:100%;
    height:100%;

    object-fit:cover;

}

.hero-overlay{

    position:absolute;

    inset:0;

    background:
    rgba(0,0,0,.55);

}

.hero-content{

    position:relative;

    z-index:10;

    text-align:center;

    color:#ffffff;

    width:min(900px,90%);

    animation:fadeUp 1s ease;

}

.hero-content h1{

    font-size:clamp(2.5rem,5vw,4.5rem);

    line-height:1.2;

    margin-bottom:20px;

}

.hero-content p{

    font-size:1.1rem;

    margin-bottom:35px;

}

/* ==========================
   BUTTONS
========================== */

.hero-buttons{

    display:flex;

    justify-content:center;

    gap:15px;

    flex-wrap:wrap;

}

.btn{

    display:inline-block;

    padding:14px 30px;

    border-radius:999px;

    font-weight:600;

    transition:.3s;

}

.btn-primary{

    background:var(--primary);

    color:#fff;

}

.btn-primary:hover{

    background:var(--primary-hover);

    transform:translateY(-3px);

}

.btn-secondary{

    background:#fff;

    color:#111827;

}

.btn-secondary:hover{

    transform:translateY(-3px);

}

/* ==========================
   SECTION HEADINGS
========================== */

.section-heading{

    text-align:center;

    margin-bottom:60px;

}

.section-heading span{

    color:var(--primary);

    font-weight:600;

}

.section-heading h2{

    margin-top:10px;

    margin-bottom:15px;

    font-size:2.5rem;

}

.section-heading p{

    color:var(--text-light);

}

/* ==========================
   CARDS
========================== */

.cards{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(320px,1fr));

    gap:30px;

}

.card{

    background:var(--card);

    border:1px solid var(--border);

    border-radius:20px;

    overflow:hidden;

    box-shadow:var(--shadow);

    transition:.4s;

    opacity:0;

    transform:translateY(40px);

}

.card.show{

    opacity:1;

    transform:translateY(0);

}

.card:hover{

    transform:
    translateY(-10px);

}

.card img{

    width:100%;
    height:240px;

    object-fit:cover;

}

.card-content{

    padding:25px;

}

.card-content h3{

    margin-bottom:12px;

}

.card-content p{

    color:var(--text-light);

    margin-bottom:20px;

}

.read-more{

    display:inline-block;

    background:var(--primary);

    color:#fff;

    padding:10px 20px;

    border-radius:30px;

    transition:.3s;

}

.read-more:hover{

    background:var(--primary-hover);

}

/* ==========================
   FOOTER
========================== */

.footer{

    background:var(--footer);

    color:#fff;

    padding-top:80px;

}

.footer-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(250px,1fr));

    gap:50px;

}

.footer-logo{

    width:70px;

    margin-bottom:15px;

}

.footer h3{

    margin-bottom:20px;

}

.footer p{

    color:#cbd5e1;

}

.footer ul li{

    margin-bottom:12px;

}

.footer a{

    color:#cbd5e1;

    transition:.3s;

}

.footer a:hover{

    color:#fff;

}

.copyright{

    text-align:center;

    margin-top:60px;

    padding:25px;

    border-top:
    1px solid rgba(255,255,255,.1);

}

/* ==========================
   BACK TO TOP
========================== */

.back-to-top{

    position:fixed;

    right:25px;
    bottom:25px;

    width:50px;
    height:50px;

    border:none;

    border-radius:50%;

    background:var(--primary);

    color:#fff;

    cursor:pointer;

    display:none;

    z-index:999;

    font-size:1.2rem;

    box-shadow:var(--shadow);

}

.back-to-top.show{

    display:block;

}

/* ==========================
   ANIMATION
========================== */

@keyframes fadeUp{

    from{

        opacity:0;
        transform:translateY(40px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}

/* ==========================
   TABLET
========================== */

@media(max-width:900px){

    .hero-content h1{

        font-size:3rem;

    }

}

/* ==========================
   MOBILE
========================== */

@media(max-width:768px){

    .hamburger{

        display:block;

    }

    #navMenu{

        position:absolute;

        top:80px;
        left:-100%;

        width:100%;

        background:var(--bg);

        border-top:
        1px solid var(--border);

        transition:.4s;

        padding:25px;

    }

    #navMenu.active{

        left:0;

    }

    .nav-links{

        flex-direction:column;

        align-items:center;

        gap:20px;

    }

    .hero{

        height:90vh;

    }

    .hero-content h1{

        font-size:2.3rem;

    }

    .hero-content p{

        font-size:1rem;

    }

    .section{

        padding:80px 0;

    }

    .section-heading h2{

        font-size:2rem;

    }

}