@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #0a0a12;
    --text-color: #e0e0e0;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    --hero-gradient: linear-gradient(90deg, #f8ffae, #43c6ac, #f8ffae, #43c6ac);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glow-color: rgba(118, 75, 162, 0.5);
    --font-main: 'Outfit', sans-serif;
    --font-hero: 'Bebas Neue', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(-45deg, #05050a, #1a1a2e, #2a1b3d, #0f3460);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    background-attachment: fixed;
    padding-top: 82px; /* Space for fixed header */
}

/* Animations */
@keyframes gradientBG { 0% {background-position: 0% 50%;} 50% {background-position: 100% 50%;} 100% {background-position: 0% 50%;} }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-20px); } }
@keyframes gorgeous-animation { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes glow-breathing {
    0%, 100% { text-shadow: 0 0 10px rgba(248, 255, 174, 0.2), 0 0 20px rgba(67, 198, 172, 0.4), 0 0 40px rgba(67, 198, 172, 0.2); }
    50% { text-shadow: 0 0 20px rgba(248, 255, 174, 0.4), 0 0 40px rgba(67, 198, 172, 0.6), 0 0 80px rgba(67, 198, 172, 0.4); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }


/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: var(--primary-gradient); border-radius: 4px; }

/* Global Loader */
#global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#global-loader.hidden { opacity: 0; visibility: hidden; }
.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #667eea;
    border-left-color: #764ba2;
    animation: spin 1s ease-in-out infinite;
    box-shadow: 0 0 20px var(--glow-color);
}

/* --- Header --- */
header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 990;
    background-color: rgba(10, 10, 18, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    animation: fadeInDown 1s ease-out;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease;
    flex-grow: 0;
    flex-shrink: 1; /* Allows logo to shrink if space is tight */
    min-width: 0; /* Prevents overflow when shrinking */
}
.logo-link:hover { transform: scale(1.05); }
.logo-image { height: 50px; }
.logo-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -1px; }

.nav-menu ul { display: flex; list-style: none; gap: 2rem; }
.hamburger-button { display: none; } /* Hidden on desktop */

nav a { color: var(--text-color); text-decoration: none; font-size: 1.1rem; font-weight: 400; position: relative; transition: color 0.3s ease, text-shadow 0.3s ease; }
nav a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 50%; transform: translateX(-50%); background: var(--primary-gradient); transition: width 0.3s ease; }
nav a:hover, nav a.active { color: #fff; text-shadow: 0 0 10px var(--glow-color); }
nav a:hover::after, nav a.active::after { width: 100%; }

.hamburger-menu .bar { display: block; width: 25px; height: 3px; margin: 0 auto; background-color: var(--text-color); transition: all 0.3s ease-in-out; }

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Hero */
.hero { text-align: center; animation: fadeInUp 1s ease-out 0.3s backwards; padding: 4rem 0; }
.hero-title { font-family: var(--font-hero); font-size: 6rem; font-weight: 400; letter-spacing: 2px; margin-bottom: 0.2rem; background: var(--hero-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-size: 400% 400%; animation: gorgeous-animation 10s ease-in-out infinite, glow-breathing 4s ease-in-out infinite; }
.hero-subtitle { font-size: 1.5rem; color: #a0a0a0; font-weight: 300; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* General Content */
.course-section { animation: fadeInUp 1s ease-out 0.6s backwards; }
.section-title { font-size: 2.5rem; margin-bottom: 3rem; text-align: center; color: #fff; position: relative; display: inline-block; left: 50%; transform: translateX(-50%); }
.section-title::after { content: ''; position: absolute; bottom: -10px; left: 0; width: 60%; left: 20%; height: 3px; background: var(--primary-gradient); box-shadow: 0 0 15px var(--glow-color); border-radius: 2px; }
.course-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.course-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 20px; padding: 2rem; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); cursor: pointer; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.course-card::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(118, 75, 162, 0.3) 0%, rgba(118, 75, 162, 0) 70%); transform: scale(0); transition: transform 0.6s ease; z-index: 0; }
.course-card:hover { transform: translateY(-10px) scale(1.02); border-color: rgba(255, 255, 255, 0.2); box-shadow: 0 15px 40px -15px var(--glow-color); }
.course-card:hover::before { transform: scale(1); }
.course-card>* { position: relative; z-index: 1; }
.course-title { font-size: 1.8rem; margin-bottom: 1rem; color: #fff; }
.course-description { color: #ccc; margin-bottom: 1.5rem; line-height: 1.6; flex-grow: 1; }
.topic-list { list-style: none; margin-top: 1rem; }
.topic-item { padding: 0.5rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 0.9rem; color: #aaa; display: flex; align-items: center; }
.topic-item:last-child { border-bottom: none; }
.topic-item::before { content: '✨'; margin-right: 10px; font-size: 0.8rem; }

.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 10, 18, 0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); display: flex; justify-content: center; align-items: center; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.5s ease; }
.overlay.active { opacity: 1; pointer-events: all; }
.overlay-content { text-align: center; transform: scale(0.8); transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.overlay.active .overlay-content { transform: scale(1); }
.coming-soon-text { font-size: 4rem; font-weight: 800; background: var(--secondary-gradient); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 1rem; filter: drop-shadow(0 0 15px rgba(255, 154, 158, 0.5)); }
.close-btn { margin-top: 2rem; padding: 1rem 3rem; background: transparent; border: 2px solid #fff; color: #fff; border-radius: 50px; font-size: 1.2rem; cursor: pointer; transition: all 0.3s ease; font-family: var(--font-main); }
.close-btn:hover { background: #fff; color: var(--bg-color); box-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }

.page-content { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 20px; padding: 3rem; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5); animation: fadeInUp 1s ease-out; }
.about-content { display: flex; flex-direction: row; align-items: center; gap: 3rem; }
.about-image { max-width: 250px; min-width: 250px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 40px var(--glow-color); animation: float 6s ease-in-out infinite; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.about-image:hover { transform: scale(1.03); box-shadow: 0 0 60px var(--glow-color); }
.about-image img { width: 100%; display: block; }
.about-text { text-align: left; }
.about-text h1 { font-size: 3rem; margin-bottom: 0.5rem; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.about-text h2 { font-size: 1.3rem; font-style: italic; color: #b0b0b0; margin-bottom: 1.5rem; }
.about-text p { line-height: 1.7; margin-bottom: 1rem; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: flex-start; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
a.contact-card { display: block; text-decoration: none; color: var(--text-color); background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 15px; padding: 2rem; text-align: center; transition: all 0.3s ease; }
a.contact-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.1); box-shadow: 0 10px 20px -5px var(--glow-color); }
.contact-icon { font-size: 2.5rem; margin-bottom: 1rem; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.contact-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: #fff; }
.contact-card p { color: #ccc; font-size: 1rem; }
.contact-form h2 { font-size: 1.8rem; margin-bottom: 1.5rem; text-align: center; }
.contact-form { text-align: left; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: #ccc; }
.form-group input, .form-group textarea { width: 100%; padding: 1rem; background: rgba(0, 0, 0, 0.2); border: 1px solid var(--glass-border); border-radius: 10px; color: var(--text-color); font-family: var(--font-main); font-size: 1rem; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.form-group textarea { min-height: 150px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #764ba2; box-shadow: 0 0 15px var(--glow-color); }
.contact-form button { width: 100%; padding: 1rem; background: var(--primary-gradient); border: none; border-radius: 10px; color: #fff; font-size: 1.2rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.contact-form button:hover { box-shadow: 0 0 20px var(--glow-color); transform: scale(1.02); }
.map { margin-top: 2rem; border-radius: 15px; overflow: hidden; border: 1px solid var(--glass-border); }

/* Footer */
footer { width: 100%; max-width: 1200px; padding: 2rem; text-align: center; color: #888; font-size: 0.9rem; margin: 0 auto; }

/* --- Responsive Design --- */

/* Desktop First Defaults (for screens >= 769px) */

/* Ensure header-content properly aligns items */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Desktop Navigation */
.desktop-nav-menu {
    display: block; /* Show desktop nav */
}

.desktop-nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    padding: 0;
    margin: 0;
}

/* Hide mobile specific elements on desktop */
.header-content .hamburger-button, /* Mobile opener */
.mobile-overlay-nav-menu,
.mobile-overlay-nav-menu .close-button {
    display: none;
}

/* Mobile specific styles (for screens <= 768px) */
@media (max-width: 768px) {
    body { padding-top: 66px; } /* Adjust padding for fixed header */

    .header-content {
        padding: 0.5rem 1rem;
        flex-wrap: nowrap;
    }

    .logo-link {
        flex-shrink: 1;
        min-width: 0;
        margin-right: 1rem;
    }
    
    .logo-title {
        font-size: 1.1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .logo-image { height: 40px; }

    /* Hide desktop navigation on mobile */
    .desktop-nav-menu {
        display: none;
    }

    /* Show mobile hamburger button */
    .header-content .hamburger-button {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 2.5rem;
        height: 2.5rem;
        padding: 0.5rem;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 999; /* Ensure it's above other header content */
        flex-shrink: 0;
        position: relative; /* For the bar animation transform */
    }

    /* Hide the header's hamburger button when mobile menu is open */
    body.menu-open .header-content .hamburger-button {
        display: none;
    }

    /* Mobile Overlay Navigation Styles */
    .mobile-overlay-nav-menu {
        position: fixed;
        top: 0;
        left: -100%; /* Start off-screen */
        width: 100%;
        height: 100%;
        background: rgba(10, 10, 18, 0.95); /* Semi-opaque background */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        transition: left 0.3s ease; /* Animate the slide-in */
        display: flex; /* Always flex, hide with left: -100% */
    }

    .mobile-overlay-nav-menu.active {
        left: 0; /* Slide in to view */
    }
    
    /* Style the close button when it's inside the mobile-overlay-nav-menu */
    .mobile-overlay-nav-menu .close-button {
        position: absolute; /* Position relative to mobile-overlay-nav-menu */
        top: 1rem; /* Slightly adjust top position */
        right: 1rem; /* Slightly adjust right position */
        z-index: 1002; /* Ensure it's above the menu content */
        display: flex; /* Always visible when mobile menu is active */
        width: 3rem; /* Increase button size */
        height: 3rem; /* Increase button size */
        border-radius: 50%; /* Make it circular */
        background: rgba(255, 255, 255, 0.1); /* Subtle background for contrast */
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Add a subtle shadow */
    }

    /* Overlay menu items styling */
    .mobile-overlay-nav-menu ul {
        display: flex;
        flex-direction: column;
        justify-content: center; /* Center items vertically */
        align-items: center; /* Center items horizontally */
        width: 100%; /* Ensure ul takes full width */
        height: 100%; /* Ensure ul takes full height for centering */
        gap: 2rem;
        text-align: center;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mobile-overlay-nav-menu ul a {
        font-size: 2rem;
        font-weight: 600;
    }

    /* Common hamburger bar styling */
    .hamburger-button .bar {
        display: block;
        width: 100%;
        height: 5px; /* Make bars slightly taller */
        background-color: #ffffff; /* Ensure white color for contrast */
        transition: all 0.3s ease-in-out;
    }

    /* Hamburger animation (for both buttons if active) */
    .hamburger-button.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg); /* Adjusted translateY */
        /* Removed transform-origin to use default 50% 50% */
    }

    .hamburger-button.active .bar:nth-child(2) {
        opacity: 0;
        width: 0; /* Ensure it completely disappears */
    }

    .hamburger-button.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg); /* Adjusted translateY */
        /* Removed transform-origin to use default 50% 50% */
    }

    .container { padding: 1rem; }
    .hero-title { font-size: 4rem; letter-spacing: 1px; }
    .hero-subtitle { font-size: 1.2rem; }
    .about-content { flex-direction: column; gap: 2rem; }
    .about-image { max-width: 180px; min-width: 180px; }
    .about-text h1 { font-size: 2.2rem; }
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .course-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .header-content { padding: 0.5rem; }
    .logo-image { height: 30px; } /* Even smaller logo */
    .logo-title { font-size: 1rem; } /* Even smaller title */
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-title { font-size: 2rem; }
}