:root{
    --bg:#0B0813;
    --text:#f0ecf9;
    --muted:#9ca3af;
    --accent:#d38aff;
    --purple:#a855f7;
    --card-bg:rgba(255,255,255,.04);
    --border:rgba(180,80,255,.20);
}

/* =========================
   GLOBAL
========================= */

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

html{
    scroll-behavior:smooth;
}

body{
    background:var(--bg);
    color:var(--text);
    font-family:'Space Grotesk',sans-serif;
    overflow-x:hidden;
    position:relative;
    zoom:90%;
}

/* =========================
   NEBULA BACKGROUND
========================= */

.nebula-1,
.nebula-2,
.nebula-3{
    position:fixed;
    border-radius:50%;
    pointer-events:none;
    z-index:0;
}

.nebula-1{
    width:700px;
    height:700px;
    top:-15%;
    left:-10%;
    background:#6a2be0;
    filter:blur(120px);
    opacity:.35;
}

.nebula-2{
    width:800px;
    height:800px;
    bottom:-20%;
    right:-10%;
    background:#b33df0;
    filter:blur(120px);
    opacity:.35;
}

.nebula-3{
    width:500px;
    height:500px;
    top:40%;
    left:60%;
    background:#3b0f6e;
    filter:blur(120px);
    opacity:.35;
}

.page{
    position:relative;
    z-index:2;
}

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

.navbar{
    position:sticky;
    top:0;
    z-index:999;
    background:rgba(11,8,19,.75);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    border-bottom:1px solid rgba(180,80,255,.15);
}

.nav-inner{
    max-width:1400px;
    margin:auto;
    padding:18px 40px;

    display:flex;
    align-items:center;
    justify-content:space-between;
}

.brand{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
    color:var(--accent);
    font-size:1.4rem;
    font-weight:700;
}

.logo-img{ 
    width:50px; 
    height:50px; 
    border-radius:50%; 
    object-fit:cover; 
    border:2px solid #d38aff; 
    box-shadow:0 0 10px #d38aff, 
               0 0 20px rgba(211,138,255,0.5); 
}

.logo-svg{
    filter:drop-shadow(0 0 12px rgba(211,138,255,.4));
}

.nav-links{
    display:flex;
    gap:30px;
}

.nav-links a{
    text-decoration:none;
    color:var(--muted);
    transition:.25s;
    font-weight:500;
}

.nav-links a:hover{
    color:var(--accent);
}

.mobile-menu-btn{
    display:none;
    color:white;
    font-size:1.8rem;
    cursor:pointer;
}

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

.btn{
    border-radius:60px;
    background:rgba(140,50,255,.15);
    border:1px solid #a855f7;
    backdrop-filter:blur(4px);

    color:white;
    text-decoration:none;

    padding:14px 30px;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    transition:.25s;
    cursor:pointer;
}

.btn:hover{
    background:#a855f7;
    color:#0B0813;
    box-shadow:0 0 30px #a855f7;
    transform:translateY(-2px);
}

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

.hero{
    min-height:100vh;

    display:flex;
    justify-content:center;
    align-items:center;

    text-align:center;

    padding:120px 20px;
}

.hero-content{
    max-width:1000px;
    transform:translateY(-70px);
}

.hero-badge{
    display:inline-block;

    padding:8px 18px;

    border-radius:999px;

    background:rgba(168,85,247,.2);
    border:1px solid rgba(168,85,247,.4);

    color:#d8b4fe;

    margin-bottom:30px;
}

.hero h1{
    font-size:4.5rem;
    line-height:1.15;
    margin-bottom:25px;
}

.hero h1 span{
    color:var(--accent);
    text-shadow:0 0 15px rgba(211,138,255,.5);
}

.hero p{
    color:var(--muted);
    max-width:760px;
    margin:auto;
    font-size:1.15rem;
    line-height:1.8;
    margin-bottom:40px;
}

.hero-buttons{
    display:flex;
    justify-content:center;
    gap:20px;
}

#typewriter{
    min-height:90px;
    display:inline-block;
}

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

.section{
    max-width:1400px;
    margin:auto;
    padding:100px 30px;
}

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

.section-title h2{
    font-size:2.8rem;
    margin-bottom:15px;
    color:var(--accent);
    text-shadow:0 0 12px rgba(211,138,255,.35);
}

.section-title p{
    color:var(--muted);
}

/* =========================
   COURSE GRID
========================= */

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

.card{
   background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0,0,0,.55);
    

    /* Changes made below */
    padding: 0;           /* Remove overall padding so the image touches the borders */
    overflow: hidden;     /* Clips the image corners to match the card's border-radius */
    transition: .35s;
}

.course-card{
    text-align:left;
}

.course-card:hover{
    transform:
            translateY(-8px)
            rotateX(4deg)
            rotateY(-4deg);

    border-color:rgba(211,138,255,.6);

    box-shadow:
            0 0 25px rgba(168,85,247,.25),
            0 25px 50px rgba(0,0,0,.55);
}

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

.card p{
    color:var(--muted);
    line-height:1.7;
    margin-bottom:25px;
}

.apply-btn{
    width:100%;
}

/* =========================
   WIDE GLASS CARDS
========================= */

.wide-card,
.contact-card,
.certificate-card{
    background:var(--card-bg);

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

    border-radius:2rem;

    backdrop-filter:blur(12px);

    padding:40px;

    box-shadow:0 20px 40px rgba(0,0,0,.55);
}

.wide-card:hover,
.contact-card:hover,
.certificate-card:hover{
    border-color:rgba(211,138,255,.4);
}

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

.why-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
    margin-bottom:30px;
}

.why-item{
    padding:18px;
    border-radius:15px;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.06);
}

.wide-text{
    color:var(--muted);
    line-height:1.9;
    text-align:center;
}

/* =========================
   CERTIFICATION
========================= */

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

.certificate-content h3{
    color:var(--accent);
    margin-bottom:20px;
}

.certificate-content p{
    color:var(--muted);
    line-height:1.8;
    margin-bottom:20px;
}

.certificate-content ul{
    padding-left:20px;
    color:var(--muted);
}

.certificate-content li{
    margin-bottom:12px;
}

.certificate-placeholder{
    height:350px;

    border:2px dashed rgba(211,138,255,.4);

    border-radius:20px;

    display:flex;
    justify-content:center;
    align-items:center;

    color:var(--muted);
}

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

.faq-container{
    max-width:900px;
    margin:auto;
}

.faq-item{
    background:var(--card-bg);

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

    border-radius:20px;

    overflow:hidden;

    margin-bottom:18px;
}

.faq-question{
    width:100%;

    background:transparent;

    border:none;

    color:white;

    font-size:1rem;

    padding:22px;

    text-align:left;

    cursor:pointer;
}

.faq-answer{
    max-height:0;
    overflow:hidden;

    transition:.35s ease;

    color:var(--muted);

    padding:0 22px;
}

.faq-item.active .faq-answer{
    max-height:300px;
    padding:0 22px 22px;
}

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

.form-group{
    margin-bottom:20px;
}

.form-group input,
.form-group textarea{
    width:100%;

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

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

    color:white;

    border-radius:15px;

    padding:16px;

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

    outline:none;
}

.form-group input:focus,
.form-group textarea:focus{
    border-color:var(--accent);
}

textarea{
    resize:vertical;
}

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

.footer{
    margin-top:80px;

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

    padding:80px 30px 30px;
}

.footer-grid{
    max-width:1400px;
    margin:auto;

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

    gap:40px;
}

.footer h3,
.footer h4{
    color:var(--accent);
    margin-bottom:15px;
}

.footer p{
    color:var(--muted);
    line-height:1.8;
}

.footer-bottom{
    text-align:center;
    color:var(--muted);
    margin-top:50px;
    padding-top:25px;
    border-top:1px solid rgba(255,255,255,.08);
}

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

@media(max-width:992px){

    .hero h1{
        font-size:3.3rem;
    }

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

}

@media(max-width:768px){

    .nav-links{
        display:none;
    }

    .mobile-menu-btn{
        display:block;
    }

    .hero h1{
        font-size:2.6rem;
    }

    .section{
        padding:80px 20px;
    }

    .section-title h2{
        font-size:2rem;
    }

    .hero-buttons{
        flex-direction:column;
        align-items:center;
    }

    .btn{
        width:100%;
        max-width:280px;
    }

}

@media(max-width:480px){

    .hero h1{
        font-size:2rem;
    }

    .hero p{
        font-size:1rem;
    }

    .nav-inner{
        padding:15px 20px;
    }

}

@media(max-width:480px){

    .hero h1{
        font-size:2rem;
    }

    .hero p{
        font-size:1rem;
    }

    .nav-inner{
        padding:15px 20px;
    }

}

/* =====================================
   ADD THE EXTRA CSS BELOW THIS LINE
===================================== */

.active-link{
    color:#d38aff !important;
}

.nav-links.mobile-active{
    display:flex;
    flex-direction:column;
    position:absolute;
    top:80px;
    left:20px;
    right:20px;

    padding:25px;

    border-radius:20px;

    background:rgba(11,8,19,.95);

    backdrop-filter:blur(20px);

    border:1px solid rgba(211,138,255,.2);
}

.hidden-reveal{
    opacity:0;
    transform:translateY(40px);
    transition:all .8s ease;
}

.show{
    opacity:1;
    transform:translateY(0);
}

#typewriter::after{
    content:"|";
    color:#d38aff;
    animation:blink .8s infinite;
}

@keyframes blink{
    50%{
        opacity:0;
    }
}

.pulse{
    box-shadow:
    0 0 15px #a855f7,
    0 0 30px #a855f7,
    0 0 60px #a855f7;
}

/* --- Course Card Image Tweak --- */
.course-image {
    width: 100%;
    height: 200px;        /* Height of the image banner */
    object-fit: cover;    /* Ensures image covers the space beautifully without stretching */
    display: block;
}

/* --- Pad the remaining card content dynamically --- */
.course-card h3,
.course-card p,
.course-card .apply-btn {
    margin-left: 30px;
    margin-right: 30px;
}

.course-card h3 {
    margin-top: 30px;     /* Push title down from the image */
}

/* --- Tweak Apply button to match the image border style --- */
.course-card .apply-btn {
    width: calc(100% - 60px); /* Fill width minus the 30px left/right margins */
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f0ecf9;
    border-radius: 50px;
    margin-bottom: 35px;  /* Push away from bottom card edge */
}

.course-card .apply-btn:hover {
    background: var(--accent);
    color: #0B0813;
    box-shadow: 0 0 20px var(--accent);
}