/* ==========================================================================
   Premium Design System - Knowledge Quill (Linear/Apple/Stripe Inspired)
   ========================================================================== */

   :root {
    /* Legacy aliases for inner pages */
    --accent-primary: #0070f3;
    --accent-secondary: #7928ca;
    --surface-border: rgba(255, 255, 255, 0.08);

    /* Core Theme Colors - Deep Dark Premium */
    --bg-base: #000000;
    --bg-surface: #0a0a0a;
    --bg-surface-hover: #121212;
    --bg-surface-border: rgba(255, 255, 255, 0.08);
    --bg-surface-glow: rgba(255, 255, 255, 0.03);
    
    --text-primary: #ffffff;
    --text-secondary: #8a8f98;
    --text-muted: #666666;
    
    /* Accents - Tech/Education Vibe */
    --accent-blue: #0070f3; /* Vercel/Linear Blue */
    --accent-purple: #7928ca;
    --accent-cyan: #00dfd8;
    --accent-gradient: linear-gradient(130deg, var(--accent-blue), var(--accent-purple));
    --accent-glow: rgba(0, 112, 243, 0.4);

    /* Navbar */
    --nav-bg: rgba(0, 0, 0, 0.7);
    --nav-border: rgba(255, 255, 255, 0.1);
    
    /* Typography Fluid Scale */
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.25rem, 1.1rem + 1vw, 2rem);
    --text-3xl: clamp(1.5rem, 1.3rem + 1.875vw, 3rem);
    --text-4xl: clamp(1.75rem, 1.5rem + 2.25vw, 4rem);
    --text-5xl: clamp(2rem, 1.75rem + 3vw, 5.5rem);
    --text-6xl: clamp(2.5rem, 2rem + 4vw, 7rem);

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 8rem;
    --section-pad: clamp(4rem, 8vw, 10rem) 5%;
}

/* Light Theme Variables */
html.light-theme, body.light-theme {
    --bg-base: #ffffff;
    --bg-surface: #f7f9fa;
    --bg-surface-hover: #ebeef0;
    --bg-surface-border: rgba(0, 0, 0, 0.08);
    --bg-surface-glow: rgba(0, 0, 0, 0.02);
    
    --text-primary: #111111;
    --text-secondary: #666666;
    --text-muted: #888888;
    
    --nav-bg: rgba(255, 255, 255, 0.8);
    --nav-border: rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Global Reset & Base
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: initial; /* Handled by Lenis */
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Custom Selection */
::selection {
    background: var(--accent-blue);
    color: #fff;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ==========================================================================
   Background FX & Noise
   ========================================================================== */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

html.light-theme .noise-overlay {
    opacity: 0.04;
}

.mesh-gradient {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 60%);
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
}

.mesh-gradient.right {
    top: 20%;
    left: auto;
    right: -20%;
    background: radial-gradient(circle at center, rgba(121, 40, 202, 0.3) 0%, transparent 60%);
}

/* ==========================================================================
   Advanced Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease, border-bottom 0.4s ease, padding 0.4s ease;
    border-bottom: 1px solid transparent;
    transform: translateZ(0);
    will-change: transform, background, padding;
}

.navbar.scrolled {
    padding: 1rem 5%;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--nav-border);
}

.navbar.nav-hidden {
    transform: translateY(-100%) translateZ(0);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--accent-blue);
}

.logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Theme-specific logo visibility */
.logo-light-theme {
    display: none !important;
}

.logo-dark-theme {
    display: block !important;
}

body.light-theme .logo-light-theme {
    display: block !important;
}

body.light-theme .logo-dark-theme {
    display: none !important;
}

.logo:hover img {
    transform: scale(1.04);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-item {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    position: relative;
}

.nav-item:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-primary);
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

/* Dropdown Menus */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--nav-border);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    padding: 0.8rem 1rem;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.dropdown-item::after {
    display: none;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 100;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.mobile-toggle span:nth-child(1) { top: 0; }
.mobile-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-toggle span:nth-child(3) { bottom: 0; }

.mobile-toggle.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

.portal-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 2.5rem;
    border-left: 1px solid var(--bg-surface-border);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 99px;
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-base);
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.1);
}

html:not(.light-theme) .btn-primary {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.25);
}

.html.light-theme .btn-primary:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--bg-surface-border);
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.btn-outline:hover {
    color: var(--bg-base);
    border-color: var(--text-primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

.btn-outline:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-glow {
    background: var(--accent-gradient);
    color: #fff;
    position: relative;
    z-index: 1;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    background: var(--accent-gradient);
    filter: blur(12px);
    opacity: 0.5;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-glow {
    transition: all 0.3s ease;
}

.btn-glow:hover {
    transform: translateY(-3px) scale(1.05);
}

.btn-glow:hover::before {
    opacity: 0.9;
    filter: blur(16px);
}

/* Magnetic Button Wrapper */
.magnetic-wrap {
    display: inline-block;
}

/* ==========================================================================
   Premium Hero Section
   ========================================================================== */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 110px 0 60px 0;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80vw;
    height: 80vw;
    transform: translate(-50%, -50%) translateZ(0);
    will-change: transform;
    background: radial-gradient(circle, rgba(0, 112, 243, 0.15) 0%, rgba(121, 40, 202, 0.05) 40%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    filter: blur(80px);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    background: var(--bg-surface);
    border: 1px solid var(--bg-surface-border);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.hero-badge .pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: var(--text-6xl);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    overflow: hidden; 
}

.hero-title .line {
    overflow: hidden;
    padding-bottom: 0.2em;
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 540px;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--bg-surface-border);
}

/* Glass Cards & Visuals */
.hero-visual {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.glass-card {
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Image Collage */
.hero-image-collage {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collage-item {
    position: absolute;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.collage-item:hover img {
    transform: scale(1.05);
}

.collage-main {
    width: 80%;
    height: 80%;
    z-index: 2;
    top: 10%;
    left: 10%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}

.collage-sub-1 {
    width: 45%;
    height: 50%;
    z-index: 1;
    bottom: 5%;
    left: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0.8;
}

.hero-image-collage:hover .collage-main {
    transform: translate(-10px, -10px) rotate(-1deg);
}

.hero-image-collage:hover .collage-sub-1 {
    transform: translate(15px, 15px) rotate(2deg);
}

.floating-badge {
    position: absolute;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 100px;
    animation: float-anim 6s ease-in-out infinite;
}

.icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.badge-title {
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--text-primary);
}

.badge-desc {
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

.badge-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 15%;
    left: -5%;
    animation-delay: -3s;
}

@keyframes float-anim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-cta-group {
        justify-content: center !important;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .badge-1 { right: 0; top: 0; }
    .badge-2 { left: 0; bottom: 0; }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 1px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* ==========================================================================
   Premium Section Containers
   ========================================================================== */
.section {
    padding: var(--section-pad);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.section-title {
    font-size: var(--text-4xl);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
}

/* ==========================================================================
   Layout Utilities (Grids & Horizontal Scrolls)
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.horizontal-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding-bottom: 2rem;
    scrollbar-width: none;
}
.horizontal-scroll-container::-webkit-scrollbar {
    display: none;
}
.horizontal-scroll-container > * {
    flex: 0 0 auto;
    width: 85%;
    max-width: 350px;
    scroll-snap-align: start;
}

/* ==========================================================================
   Bento Grid / Feature Cards
   ========================================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.bento-card {
    background: var(--bg-surface);
    border: 1px solid var(--bg-surface-border);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease, transform 0.4s ease;
}

.bento-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px var(--bg-surface-glow);
}

/* Light Sweep Hover Effect via JS or CSS */
.bento-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), var(--bg-surface-glow), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bento-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-base);
    border: 1px solid var(--bg-surface-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.bento-title {
    font-size: var(--text-2xl);
    margin-bottom: 1rem;
}

.bento-text {
    color: var(--text-secondary);
    font-size: var(--text-base);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.bento-span-2 { grid-column: span 2; }
.bento-span-3 { grid-column: span 3; }
.bento-row-2 { grid-row: span 2; }

/* Responsive Bento */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-span-3 { grid-column: span 2; }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-span-2, .bento-span-3 { grid-column: span 1; }
    .bento-row-2 { grid-row: span 1; }
}

/* ==========================================================================
   Courses Carousel / Horizontal Scroll
   ========================================================================== */
.courses-container {
    max-width: 1400px;
    margin: 0 auto;
}

.premium-course-card {
    background: var(--bg-base);
    border: 1px solid var(--bg-surface-border);
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 2rem;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.premium-course-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.premium-course-card:hover img {
    transform: scale(1.05);
}

.course-visual img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.html.light-theme .premium-course-card:hover {
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.course-visual {
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

/* Abstract shapes inside course visual */
.course-shape {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: var(--accent-gradient);
    opacity: 0.3;
    filter: blur(20px);
    transition: all 0.5s ease;
}

.premium-course-card:hover .course-shape {
    transform: scale(1.1) rotate(10deg);
    opacity: 0.5;
}

.course-info {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.course-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.course-tag {
    padding: 0.3rem 0.8rem;
    border-radius: 99px;
    border: 1px solid var(--bg-surface-border);
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

.course-title {
    font-size: var(--text-3xl);
    margin-bottom: 1rem;
}

.course-desc {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: var(--text-lg);
}

/* Responsive Course Card */
@media (max-width: 900px) {
    .premium-course-card {
        grid-template-columns: 1fr;
    }
    .course-visual {
        min-height: 250px;
    }
    .course-info {
        padding: 2.5rem;
    }
}

/* ==========================================================================
   Interactive Timeline / Journey
   ========================================================================== */
.timeline-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--bg-surface-border);
    transform: translateX(-50%);
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--accent-blue);
    transform-origin: top;
    transform: scaleY(0);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 4rem;
    width: 100%;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-base);
    border: 4px solid var(--bg-surface-border);
    z-index: 2;
    transition: border-color 0.3s ease;
}

.timeline-item.active .timeline-dot {
    border-color: var(--accent-blue);
}

.timeline-content {
    width: 80%;
    background: var(--bg-surface);
    border: 1px solid var(--bg-surface-border);
    border-radius: 24px;
    padding: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 3rem;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 3rem;
}

@media (max-width: 768px) {
    .timeline-line { left: 20px; }
    .timeline-item, .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 60px;
        padding-right: 0;
    }
    .timeline-dot { left: 20px; }
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin: 0;
        width: 100%;
    }
}

/* ==========================================================================
   Mega Footer (SaaS Style)
   ========================================================================== */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--bg-surface-border);
    padding: 6rem 5% 2rem;
    position: relative;
    overflow: hidden;
}

.footer-top {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.footer-brand h2 {
    font-size: var(--text-3xl);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    max-width: 300px;
    margin-bottom: 2rem;
}

.footer-col h4 {
    font-size: var(--text-base);
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col a {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col a:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--bg-surface-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.footer-giant-text {
    position: absolute;
    bottom: -2vw;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10.5vw;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--bg-surface-border);
    pointer-events: none;
    white-space: nowrap;
    z-index: 0;
}

@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 968px) {
    .mobile-toggle {
        display: block;
    }
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-base);
        flex-direction: column;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        padding: 2rem;
    }
    .nav-links .nav-item {
        font-size: var(--text-2xl);
        padding: 0.5rem 0;
        display: inline-block;
    }
    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }
    .portal-group {
        border-left: none;
        padding-left: 0;
        margin-top: 1rem;
        flex-direction: column;
    }
    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        display: none;
        opacity: 1;
        visibility: visible;
        padding-left: 1rem;
    }
    .nav-dropdown.active .dropdown-menu {
        display: flex;
    }
}

/* ==========================================================================
   Page Opening Reveal Animation (Clip Path)
   ========================================================================== */
.page-reveal {
    animation: revealPage 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes revealPage {
    0% {
        clip-path: inset(50% 0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        clip-path: inset(0);
        opacity: 1;
    }
}




/* ==========================================================================
   Inner Page Components (Legacy Support)
   ========================================================================== */

.glass-card {
    background: var(--bg-surface);
    border: 1px solid var(--bg-surface-border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 40px var(--bg-surface-glow);
    border-color: rgba(255, 255, 255, 0.15);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 0 5% 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

.course-card {
    position: relative;
    border-radius: 20px;
    background: var(--bg-surface);
    border: 1px solid var(--bg-surface-border);
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
}

.course-bg {
    height: 220px;
    background: #111;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--bg-surface-border);
}

.course-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.course-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
}

.course-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex: 1;
}

/* ==========================================================================
   Chatbot / AI Course Advisor
   ========================================================================== */
#chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: var(--font-body);
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: transform 0.3s ease;
}
.chat-toggle:hover { transform: scale(1.1); }

.chat-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    max-height: 70vh;
    background: var(--bg-surface);
    border: 1px solid var(--bg-surface-border);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.chat-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-header {
    background: var(--nav-bg);
    padding: 15px 20px;
    border-bottom: 1px solid var(--bg-surface-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chat-header h4 { margin: 0; font-size: var(--text-base); }
.chat-close { background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 1.2rem; }

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chat-msg {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: var(--text-sm);
}
.chat-msg.bot {
    background: rgba(255,255,255,0.05);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}
.chat-msg.user {
    background: var(--accent-blue);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid var(--bg-surface-border);
    display: flex;
    gap: 10px;
}
.chat-input-area input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--bg-surface-border);
    border-radius: 20px;
    padding: 10px 15px;
    color: var(--text-primary);
    font-size: var(--text-sm);
    outline: none;
}
.chat-input-area button {
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Modals (Lead Gen)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: var(--bg-base);
    border: 1px solid var(--bg-surface-border);
    border-radius: 16px;
    padding: 2.5rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}
.modal-close {
    position: absolute;
    top: 15px; right: 15px;
    background: none; border: none;
    color: var(--text-secondary);
    font-size: 1.5rem; cursor: pointer;
}
.form-group {
    margin-bottom: 1.2rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.2rem;
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: var(--text-base);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:hover, .form-group select:hover, .form-group textarea:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

@media (max-width: 768px) {
    #chat-widget {
        bottom: 20px;
        right: 20px;
    }
    .chat-panel {
        width: calc(100vw - 40px);
        bottom: 70px;
        height: 60vh;
    }
    
    /* Mobile Padding Adjustments */
    .hero {
        padding-top: 100px !important;
    }
    .section {
        padding: 3rem 5% !important;
    }
    .bento-card, .glass-card {
        padding: 1.5rem !important;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Centering subpage hero content */
.hero:not(#home) {
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    display: flex !important;
}

.hero:not(#home) .hero-content {
    text-align: center !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 800px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.hero:not(#home) .hero-subtitle {
    margin-left: auto !important;
    margin-right: auto !important;
}
