/* --- VARIABLES & RESET --- */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --text-dark: #1e293b;
    --text-light: #475569;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body { 
    font-family: 'Segoe UI', system-ui, sans-serif; 
    color: var(--text-dark); 
    line-height: 1.6; 
    background: linear-gradient(135deg, #e0e7ff 0%, #f1f5f9 50%, #dbeafe 100%);
    background-attachment: fixed;
}
a { text-decoration: none; color: inherit; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-title { text-align: center; font-size: 32px; margin-bottom: 40px; color: var(--primary-dark); font-weight: 700; }

/* --- GLASSMORPHISM UTILITIES --- */
.dark-glass-panel {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    color: var(--white);
}

.glass-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 30px;
}

/* --- THE FLOATING PILL NAVBAR --- */
.navbar { 
    position: fixed; 
    top: 20px; 
    left: 0;
    right: 0; 
    z-index: 1000; 
    transition: all 0.3s ease; 
    margin: 0 auto;
    max-width: 1250px; 
    width: 96%; 
    border-radius: 50px; 
}
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 10px 25px; position: relative; }
.nav-brand { font-size: 24px; font-weight: 700; color: var(--white); display: flex; align-items: center; gap: 8px; letter-spacing: 0.5px; }
.nav-menu { display: flex; align-items: center; gap: 20px; list-style: none; }
.nav-link { font-weight: 600; color: var(--white); transition: color 0.2s; font-size: 15px; }
.nav-link:hover { color: #e2e8f0; }
.hamburger { display: none; cursor: pointer; color: var(--white); }

/* --- SMART SCROLL STATE --- */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.navbar.scrolled .nav-brand, 
.navbar.scrolled .hamburger, 
.navbar.scrolled .nav-link {
    color: var(--text-dark); 
}
.navbar.scrolled .nav-link:hover {
    color: var(--primary);
}

/* --- BUTTONS --- */
.btn-login { background: var(--primary); color: var(--white); padding: 10px 20px; border-radius: 8px; font-weight: 600; transition: 0.2s; display: inline-block; }
.btn-login:hover { background: var(--primary-dark); color: var(--white) !important; }
.btn-primary { background: var(--primary-dark); color: var(--white); padding: 12px 28px; border-radius: 8px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; font-size: 16px; transition: 0.2s; border: none; }
.btn-primary:hover { background: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); }
.btn-glass { background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); color: var(--white); border: 1px solid rgba(255, 255, 255, 0.4); padding: 12px 28px; border-radius: 8px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; font-size: 16px; transition: 0.2s; }
.btn-glass:hover { background: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }

/* --- HERO COVER IMAGE --- */
.hero { 
    position: relative; 
    height: 100vh; /* Takes up exactly 100% of the screen height */
    min-height: 500px; 
    background-image: url('cover-photo.jpg?v=3');
    background-size: cover; 
    background-position: center; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    /* Removed border-radius and margin-bottom for a true full-screen flush look */
}
.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15, 23, 42, 0.8); z-index: 1; }
.hero-content { position: relative; z-index: 2; color: var(--white); max-width: 800px; width: 90%; }
.hero-content h1 { font-size: 46px; margin-bottom: 20px; line-height: 1.2; text-shadow: 0 4px 12px rgba(0,0,0,0.5); font-weight: 800; }
.hero-content p { font-size: 18px; margin-bottom: 30px; text-shadow: 0 2px 6px rgba(0,0,0,0.5); font-weight: 500; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- COURSES GRID --- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-2 h3 { margin-bottom: 12px; color: var(--primary-dark); font-size: 22px; }

/* --- ABOUT RIBBON --- */
.about-flex { display: flex; align-items: center; gap: 40px; }
.about-img { 
    width: 100%; 
    max-width: 320px; 
    aspect-ratio: 1 / 1; 
    border-radius: 50%; 
    border: 6px solid rgba(255,255,255,0.8);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); 
    object-fit: cover; 
}
.about-text { flex: 1; }
.qualifications-list { list-style: none; margin-top: 25px; }
.qualifications-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; font-size: 16px; font-weight: 500;}
.qualifications-list .material-icons-round { color: var(--primary-dark); background: rgba(255,255,255,0.8); padding: 8px; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }

/* --- CONTACT & LOCATION --- */
.contact-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 30px; }
.contact-actions { display: flex; gap: 15px; flex-wrap: wrap; }
.contact-actions .btn-glass { color: var(--primary-dark); border-color: var(--primary-dark); }
.contact-actions .btn-glass:hover { background: rgba(37, 99, 235, 0.1); }
.map-container { height: 350px; border-radius: 12px; overflow: hidden; }
footer { text-align: center; padding: 30px 20px; border-top: none; }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    /* Centered hamburger fix */
    .hamburger { 
        display: flex; 
        align-items: center; 
    }
    
    .navbar { top: 15px; width: 92%; border-radius: 24px; }
    
    /* The Floating Dropdown Menu - Solid White Fix */
    .nav-menu { 
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%; 
        flex-direction: column; 
        text-align: center; 
        
        /* Hidden state */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease; 
        gap: 15px; 
        
        /* Solid white background */
        background: #ffffff;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-radius: 20px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(0, 0, 0, 0.05);
        padding: 0;
        margin-top: 12px; 
    }
    
    /* Active state */
    .nav-menu.active { 
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        padding: 20px 0; 
    }

    /* Fixes bluish text on mobile */
    .nav-menu .nav-link {
        color: var(--text-dark) !important;
        font-size: 16px;
    }
    .nav-menu .nav-link:hover {
        color: var(--primary) !important;
    }
    
    .hero {
        background-image: url('cover-mobile.jpg?v=3');
    }
    
    .hero-content h1 { font-size: 36px; }
    #courses .glass-card { text-align: center; }
    .about-flex { flex-direction: column; text-align: center; }
    .about-img { max-width: 250px; }
    .qualifications-list li { justify-content: center; text-align: left; }
    .contact-flex { flex-direction: column; text-align: center; }
    .contact-actions { justify-content: center; width: 100%; }
}
