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

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#ffffff;
    color:#222;
    line-height:1.6;
}

/* ===================================
   VARIABLES
=================================== */

:root{

    --primary:#0da9d4;
    --primary-dark:#24dcfc;

    --secondary:#0f172a;

    --success:#06734f;

    --white:#ffffff;

    --light:#f8fafc;

    --border:#dbe3ef;

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

    --radius:16px;

}

/* ===================================
   CONTAINER
=================================== */

.container{

    width:min(1150px,92%);
    margin:auto;

}

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

.header{

    background:#031e45;
    
    position:sticky;

    top:0;

    z-index:999;

    box-shadow:0 3px 15px rgba(18, 2, 2, 0.05);

}

.header-container{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px 0;

}
.logo{

    display:flex;

    align-items:center;

    gap:12px;

}

.logo img{

    height:55px;

}

.logo span{

    font-weight:700;

    color:#f0f0f0;

}

.navbar ul{

    list-style:none;

    display:flex;

    gap:35px;

}

.navbar a{

    text-decoration:none;

    color:#f4f2f2;

    font-weight:500;

    transition:.3s;

}

.navbar a:hover{

    color:var(--primary);

}

.menu-btn{

    display:none;

    border:none;

    background:none;

    cursor:pointer;

    font-size:28px;

}

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

.hero{

    padding:90px 0;

}

.hero-grid{

    display:grid;

    grid-template-columns:1.2fr .8fr;

    gap:60px;

    align-items:center;

}

.badge{

    display:inline-block;

    padding:8px 18px;

    background:#e8f0ff;

    color:var(--primary);

    border-radius:50px;

    font-size:14px;

    margin-bottom:20px;

    font-weight:600;

}

.hero h1{

    font-size:54px;

    line-height:1.1;

    margin-bottom:20px;

}

.hero p{

    color:#f7f7f7;

    margin-bottom:30px;

    font-size:18px;

}

.hero-buttons{

    display:flex;

    gap:15px;

    flex-wrap:wrap;

}

.btn{

    text-decoration:none;

    padding:15px 28px;

    border-radius:10px;

    transition:.3s;

    font-weight:600;

}

.primary{

    background:var(--primary);

    color:#fff;

}

.primary:hover{

    background:var(--primary-dark);

}

.secondary{

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

    color:var(--primary);

}

.secondary:hover{

    background:var(--primary);

    color:#fff;

}

.hero-stats{

    margin-top:45px;

    display:flex;

    gap:50px;

}

.hero-stats h3{

    color:var(--primary);

    font-size:30px;

}

.hero-card{

    background:#8e6de7;

    border-radius:var(--radius);

    overflow:hidden;

    box-shadow:var(--shadow);

}

.hero-card img{

    width:100%;

    display:block;

}

.course-info{

    padding:25px;

}

.course-info h3{

    margin-bottom:10px;

}

.price-row{

    display:flex;

    gap:15px;

    align-items:center;

    margin-top:20px;

}

.price{

    color:var(--primary);

    font-size:28px;

    font-weight:700;

}

.old-price{

    text-decoration:line-through;

    color:#f70606;

}
/* ===================================
   SECTION TITLE
=================================== */

section{
    padding:80px 0;
}

.section-title{
    text-align:center;
    margin-bottom:60px;
}

.section-title h2{
    font-size:40px;
    color:var(--secondary);
    margin-bottom:15px;
}

.section-title p{
    max-width:700px;
    margin:auto;
    color:#666;
    font-size:17px;
}

/* ===================================
   COURSE SECTION
=================================== */

.course{
    background:var(--white);
}

.course-grid{

    display:grid;

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

    gap:30px;

}

/* ===================================
   FEATURE CARD
=================================== */

.feature-card{

    background:#fff;

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

    border-radius:18px;

    padding:35px;

    text-align:center;

    transition:.35s;

    box-shadow:0 5px 15px rgba(0,0,0,.03);

}

.feature-card:hover{

    transform:translateY(-8px);

    box-shadow:0 18px 40px rgba(37,99,235,.12);

}

.feature-card .icon{

    width:80px;

    height:80px;

    margin:auto;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    background:#eef4ff;

    font-size:34px;

    margin-bottom:25px;

}

.feature-card h3{

    margin-bottom:15px;

    color:var(--secondary);

}

.feature-card p{

    color:#666;

    font-size:15px;

}

/* ===================================
   ENROLLMENT
=================================== */

.enrollment{

    background:#f8fbff;

}

/* ===================================
   FORM
=================================== */

.enroll-form{

    max-width:900px;

    margin:auto;

    background:#fff;

    padding:45px;

    border-radius:20px;

    box-shadow:var(--shadow);

    display:grid;

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

    gap:25px;

}

/* ===================================
   FORM GROUP
=================================== */

.form-group{

    display:flex;

    flex-direction:column;

}

.full-width{

    grid-column:1 / -1;

}

.form-group label{

    font-weight:600;

    margin-bottom:10px;

    color:var(--secondary);

}

/* ===================================
   INPUTS
=================================== */

.form-group input,

.form-group select,

.form-group textarea{

    width:100%;

    padding:16px 18px;

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

    border-radius:12px;

    outline:none;

    font-size:15px;

    font-family:inherit;

    transition:.3s;

    background:#fff;

}

.form-group textarea{

    resize:vertical;

    min-height:140px;

}

.form-group input:focus,

.form-group select:focus,

.form-group textarea:focus{

    border-color:var(--primary);

    box-shadow:0 0 0 4px rgba(37,99,235,.12);

}

/* ===================================
   CHECKBOX
=================================== */

.checkbox-group{

    grid-column:1 / -1;

    display:flex;

    align-items:flex-start;

    gap:12px;

    margin-top:5px;

}

.checkbox-group input{

    width:18px;

    height:18px;

    margin-top:3px;

}

.checkbox-group label{

    color:#555;

    line-height:1.6;

}

/* ===================================
   SUBMIT BUTTON
=================================== */

.submit-btn{

    grid-column:1 / -1;

    border:none;

    background:var(--primary);

    color:#fff;

    padding:18px;

    font-size:17px;

    font-weight:600;

    border-radius:12px;

    cursor:pointer;

    transition:.3s;

}

.submit-btn:hover{

    background:var(--primary-dark);

    transform:translateY(-2px);

}

.submit-btn:active{

    transform:scale(.98);

}

/* ===================================
   WHY CHOOSE US
=================================== */

.why-us{
    background:#ffffff;
}

.why-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:28px;
}

.why-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:18px;
    padding:35px 28px;
    transition:.35s;
    text-align:center;
}

.why-card:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 40px rgba(0,0,0,.08);
}

.why-card h3{
    margin-bottom:15px;
    color:var(--secondary);
}

.why-card p{
    color:#666;
    font-size:15px;
}


/* ===================================
   FAQ
=================================== */

.faq{
    background:#f7f9fc;
}

.faq-item{
    max-width:850px;
    margin:0 auto 18px;
    background:#fff;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 6px 18px rgba(0,0,0,.05);
}

.faq-question{
    width:100%;
    padding:22px 24px;
    border:none;
    background:#fff;
    text-align:left;
    cursor:pointer;
    font-size:17px;
    font-weight:600;
    transition:.3s;
}

.faq-question:hover{
    background:#f0f6ff;
}

.faq-answer{
    display:none;
    padding:0 24px 22px;
}

.faq-item.active .faq-answer{
    display:block;
}

.faq-answer p{
    color:#666;
    line-height:1.8;
}


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

.contact{
    background:linear-gradient(135deg,#7a05ef,#1b233d);
    color:#fff;
}

.contact-grid{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:40px;
    align-items:center;
}

.contact h2{
    font-size:38px;
    margin-bottom:15px;
}

.contact p{
    opacity:.95;
}

.contact-box{
    background:rgba(255,255,255,.12);
    padding:30px;
    border-radius:18px;
    backdrop-filter:blur(8px);
}

.contact-box p{
    margin:14px 0;
}


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

.footer{
    background:#1c2b4d;
    color:#d8dce5;
    padding-top:70px;
}

.footer-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:40px;
}
.footer-logo{

        width:170px;

        margin-bottom:20px;

}
.footer h3,
.footer h4{
    color:#fff;
    margin-bottom:18px;
}

.footer ul{
    list-style:none;
}

.footer li{
    margin-bottom:12px;
}

.footer a{
    color:#cbd5e1;
    text-decoration:none;
    transition:.3s;
}

.footer a:hover{
    color:#fff;
    padding-left:6px;
}

.footer p{
    color:#cbd5e1;
}

.copyright{
    margin-top:50px;
    padding:20px;
    text-align:center;
    border-top:1px solid rgba(255,255,255,.08);
    font-size:14px;
}


/* ===================================
   SIMPLE ANIMATION
=================================== */

.feature-card,
.why-card,
.hero-card,
.enroll-form{
    animation:fadeUp .7s ease;
}

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(30px);
    }

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

}


/* ===================================
   UTILITIES
=================================== */

.text-center{
    text-align:center;
}

.mt-20{
    margin-top:20px;
}

.mt-40{
    margin-top:40px;
}

.mb-20{
    margin-bottom:20px;
}

.mb-40{
    margin-bottom:40px;
}


/* ===================================
   SCROLLBAR
=================================== */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#eef2f7;
}

::-webkit-scrollbar-thumb{
    background:#3671f3;
    border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{
    background:#1d8ad8;
}


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

@media (max-width:992px){

    .hero-grid{
        grid-template-columns:1fr;
        text-align:center;
    }

    .hero-buttons{
        justify-content:center;
    }

    .hero-stats{
        justify-content:center;
    }

    .contact-grid{
        grid-template-columns:1fr;
    }

}

@media (max-width:768px){

    .navbar{
        display:none;
    }

    .menu-btn{
        display:block;
    }

    .hero{
        padding:60px 0;
    }

    .hero h1{
        font-size:38px;
    }

    .section-title h2{
        font-size:30px;
    }

    .enroll-form{
        grid-template-columns:1fr;
        padding:28px;
    }

    .full-width{
        grid-column:auto;
    }

    .hero-stats{
        flex-direction:column;
        gap:20px;
    }

}

@media (max-width:576px){

    .btn{
        width:100%;
        text-align:center;
    }

    .hero-buttons{
        flex-direction:column;
    }

    .contact h2{
        font-size:30px;
    }

    .section-title{
        margin-bottom:40px;
    }

    .feature-card,
    .why-card{
        padding:25px;
    }

}


/* Mobile Menu */

.navbar.show{
    display:block;
}

@media(max-width:768px){

    .navbar.show{

        display:block;

        position:absolute;

        top:75px;

        left:0;

        width:100%;

        background:#fff;

        box-shadow:0 10px 30px rgba(0,0,0,.08);

    }

    .navbar.show ul{

        flex-direction:column;

        padding:20px;

        gap:18px;

    }

}

/* Scroll Button */

.scroll-top{

    position:fixed;

    right:25px;

    bottom:25px;

    width:48px;

    height:48px;

    border:none;

    border-radius:50%;

    background:#2563eb;

    color:#fff;

    cursor:pointer;

    opacity:0;

    visibility:hidden;

    transition:.3s;

    font-size:20px;

}

.scroll-top.show{

    opacity:1;

    visibility:visible;

}

/* Ripple */

.btn,
.submit-btn{

    position:relative;

    overflow:hidden;

}

.ripple{

    position:absolute;

    border-radius:50%;

    transform:scale(0);

    background:rgba(255,255,255,.4);

    animation:ripple .6s linear;

}

@keyframes ripple{

    to{

        transform:scale(4);

        opacity:0;

    }

}

/* Scroll Animation */

.feature-card,
.why-card,
.hero-card,
.faq-item{

    opacity:0;

    transform:translateY(40px);

    transition:.7s;

}

.visible{

    opacity:1;

    transform:translateY(0);

}

/*==================================
        APPLE THEME SWITCH
==================================*/

.theme-switch{

    display:flex;

    align-items:center;

    gap:12px;

}

.sun,
.moon{

    font-size:18px;

    color:#fbbf24;

}

.moon{

    color:#94a3b8;

}

.switch{

    position:relative;

    display:inline-block;

    width:58px;

    height:30px;

}

.switch input{

    display:none;

}

.slider{

    position:absolute;

    inset:0;

    background:#cbd5e1;

    border-radius:30px;

    cursor:pointer;

    transition:.35s;

}

.slider::before{

    content:"";

    position:absolute;

    width:24px;

    height:24px;

    left:3px;

    top:3px;

    background:#fff;

    border-radius:50%;

    transition:.35s;

    box-shadow:0 4px 12px rgba(0,0,0,.2);

}

.switch input:checked + .slider{

    background:#0ea5e9;

}

.switch input:checked + .slider::before{

    transform:translateX(28px);

}

/*==================================
        DARK MODE
==================================*/

body{

    transition:.35s;

}

body.dark{

    background:#0a1328;

    color:#f8fafc;

}

body.dark .header{

    background:#051a4b;

}

body.dark section{

    background:#051a4b;

}

body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4{

    color:#fff;

}

body.dark p{

    color:#cbd5e1;

}

body.dark .course-card,
body.dark .video-card,
body.dark .testimonial-card,
body.dark .faq-item{

    background:#040e20;

    color:#fff;

}

body.dark .footer{

    background:#01030d;

}

body.dark .navbar a{

    color:#fff;

}