/* ===========================
   GOOGLE FONT
=========================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root{
    --primary:#6c63ff;
    --secondary:#8b5cf6;
    --accent:#00d4ff;

    --dark:#0f172a;
    --dark-card:rgba(255,255,255,0.08);

    --light:#f8fafc;
    --text:#ffffff;

    --shadow:0 10px 35px rgba(0,0,0,.25);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:linear-gradient(
        -45deg,
        #0f172a,
        #1e293b,
        #312e81,
        #0ea5e9
    );
    background-size:400% 400%;
    animation:gradientMove 15s ease infinite;
    color:white;
    overflow-x:hidden;
    min-height:100vh;
}

/* ===========================
   ANIMATED BACKGROUND
=========================== */

@keyframes gradientMove{
    0%{
        background-position:0% 50%;
    }
    50%{
        background-position:100% 50%;
    }
    100%{
        background-position:0% 50%;
    }
}

/* ===========================
   PROGRESS BAR
=========================== */

#progressBar{
    position:fixed;
    top:0;
    left:0;
    width:0%;
    height:4px;
    background:linear-gradient(
        90deg,
        #00d4ff,
        #6c63ff
    );
    z-index:9999;
}

/* ===========================
   FLOATING BLOBS
=========================== */

.blob{
    position:fixed;
    border-radius:50%;
    filter:blur(80px);
    opacity:.25;
    z-index:-1;
}

.blob1{
    width:300px;
    height:300px;
    background:#6c63ff;
    top:10%;
    left:-80px;
    animation:float1 10s infinite alternate;
}

.blob2{
    width:250px;
    height:250px;
    background:#00d4ff;
    top:50%;
    right:-80px;
    animation:float2 12s infinite alternate;
}

.blob3{
    width:200px;
    height:200px;
    background:#ff4ecd;
    bottom:10%;
    left:40%;
    animation:float3 14s infinite alternate;
}

@keyframes float1{
    from{transform:translateY(0);}
    to{transform:translateY(100px);}
}

@keyframes float2{
    from{transform:translateY(0);}
    to{transform:translateY(-100px);}
}

@keyframes float3{
    from{transform:translateX(0);}
    to{transform:translateX(120px);}
}

/* ===========================
   HEADER
=========================== */

header{
    position:sticky;
    top:0;
    z-index:1000;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:18px 8%;

    background:rgba(255,255,255,.05);
    backdrop-filter:blur(15px);
    border-bottom:1px solid rgba(255,255,255,.1);
}

.logo{
    font-size:28px;
    font-weight:700;
    color:white;
}

.logo i{
    color:var(--accent);
}

nav ul{
    display:flex;
    list-style:none;
    gap:30px;
}

nav ul li a{
    text-decoration:none;
    color:white;
    font-weight:500;
    transition:.3s;
}

nav ul li a:hover,
nav ul li a.active{
    color:var(--accent);
}

.header-actions{
    display:flex;
    gap:15px;
    align-items:center;
}

#themeToggle,
.menu-btn{
    background:rgba(255,255,255,.08);
    border:none;
    color:white;
    width:45px;
    height:45px;
    border-radius:50%;
    cursor:pointer;
    font-size:18px;
}

.menu-btn{
    display:none;
}

/* ===========================
   HERO SECTION
=========================== */

.hero{
    min-height:90vh;

    display:grid;
    grid-template-columns:1fr 1fr;
    align-items:center;

    gap:50px;

    padding:80px 8%;
}

.hero-badge{
    display:inline-block;
    padding:10px 18px;
    background:rgba(255,255,255,.08);
    border-radius:50px;
    margin-bottom:20px;
}

.hero-content h1{
    font-size:4rem;
    line-height:1.2;
    margin-bottom:20px;
}

.hero-content h1 span{
    color:var(--accent);
}

.hero-content h3{
    color:#cbd5e1;
    margin-bottom:20px;
}

.hero-content p{
    color:#dbeafe;
    line-height:1.8;
    margin-bottom:30px;
}

.hero-buttons{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.btn{
    text-decoration:none;
    padding:14px 30px;
    border-radius:50px;
    transition:.3s;
    font-weight:600;
}

.primary-btn{
    background:var(--accent);
    color:#000;
}

.secondary-btn{
    border:2px solid white;
    color:white;
}

.btn:hover{
    transform:translateY(-5px);
}

/* ===========================
   GLASS CARDS
=========================== */

.hero-image{
    display:grid;
    gap:20px;
}

.glass-card{
    padding:25px;

    background:rgba(255,255,255,.08);

    backdrop-filter:blur(15px);

    border:1px solid rgba(255,255,255,.15);

    border-radius:20px;

    box-shadow:var(--shadow);

    transition:.4s;
}

.glass-card:hover{
    transform:translateY(-8px);
}

.glass-card i{
    font-size:30px;
    color:var(--accent);
    margin-bottom:15px;
}

/* ===========================
   SECTION
=========================== */

section{
    padding:90px 8%;
}

.section-header{
    text-align:center;
    margin-bottom:50px;
}

.section-header h2{
    font-size:2.7rem;
    margin-bottom:15px;
}

/* ===========================
   FEATURES
=========================== */

.feature-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

.feature-card{
    background:rgba(255,255,255,.08);
    border-radius:20px;
    padding:30px;
    text-align:center;
    transition:.4s;
    backdrop-filter:blur(15px);
}

.feature-card:hover{
    transform:translateY(-10px);
}

.feature-card i{
    font-size:40px;
    color:var(--accent);
    margin-bottom:15px;
}

/* ===========================
   STATS
=========================== */

.stats{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:25px;
}

.stat-box{
    background:rgba(255,255,255,.08);
    padding:35px;
    text-align:center;
    border-radius:20px;
}

.stat-box h2{
    font-size:3rem;
    color:var(--accent);
}

/* ===========================
   SERVICES
=========================== */

.services-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
}

.service-card{
    padding:30px;
    text-align:center;
    border-radius:20px;
    backdrop-filter:blur(15px);
    background:rgba(255,255,255,.08);
    transition:.4s;
}

.service-card:hover{
    transform:translateY(-10px);
}

.service-card i{
    font-size:45px;
    color:var(--accent);
    margin-bottom:15px;
}

/* ===========================
   TESTIMONIALS
=========================== */

.testimonial{
    display:none;
    text-align:center;
    max-width:700px;
    margin:auto;
    background:rgba(255,255,255,.08);
    padding:40px;
    border-radius:20px;
}

.testimonial.active{
    display:block;
}

.testimonial p{
    font-size:1.1rem;
    line-height:1.8;
    margin-bottom:15px;
}

/* ===========================
   CTA
=========================== */

.cta{
    text-align:center;
}

.cta h2{
    font-size:3rem;
    margin-bottom:15px;
}

.cta p{
    margin-bottom:25px;
}

/* ===========================
   FOOTER
=========================== */

footer{
    padding:50px 8%;
    background:rgba(0,0,0,.3);
    backdrop-filter:blur(10px);
}

.footer-content{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:20px;
}

.social-links a{
    color:white;
    margin-left:15px;
    font-size:22px;
    transition:.3s;
}

.social-links a:hover{
    color:var(--accent);
}

.copyright{
    text-align:center;
    margin-top:30px;
    opacity:.7;
}

/* ===========================
   TOP BUTTON
=========================== */

#topBtn{
    position:fixed;
    bottom:25px;
    right:25px;

    width:50px;
    height:50px;

    border:none;
    border-radius:50%;

    background:var(--accent);
    color:black;

    cursor:pointer;

    display:none;

    font-size:18px;
}

/* ===========================
   DARK/LIGHT MODE
=========================== */

body.light{
    background:#f8fafc;
    color:#111827;
}

body.light .feature-card,
body.light .service-card,
body.light .glass-card,
body.light .stat-box,
body.light .testimonial{
    background:rgba(255,255,255,.9);
    color:#111827;
}

/* ===========================
   RESPONSIVE
=========================== */

@media(max-width:900px){

    .hero{
        grid-template-columns:1fr;
        text-align:center;
    }

    .hero-content h1{
        font-size:3rem;
    }

    .menu-btn{
        display:flex;
        justify-content:center;
        align-items:center;
    }

    nav{
        position:absolute;
        top:80px;
        left:-100%;
        width:100%;
        background:#0f172a;
        transition:.4s;
    }

    nav.active{
        left:0;
    }

    nav ul{
        flex-direction:column;
        padding:25px;
        text-align:center;
    }

    .footer-content{
        flex-direction:column;
        text-align:center;
    }
}

@media(max-width:600px){

    .hero-content h1{
        font-size:2.3rem;
    }

    .section-header h2{
        font-size:2rem;
    }

    .cta h2{
        font-size:2rem;
    }
}