:root {
    /* Color Palette - Premium Dark Theme with Vibrant Accents */
    --bg-main: #0B0C10;
    --bg-secondary: #12141A;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(255, 255, 255, 0.05);
    
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    
    --accent-primary: #00bfff; /* Deep Sky Blue from their Saarthi theme */
    --accent-secondary: #6366F1; /* Indigo */
    
    --gradient-primary: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    --gradient-text: linear-gradient(to right, #00bfff, #A855F7, #F472B6);
    
    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-glow: 0 0 40px rgba(0, 191, 255, 0.2);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    
    /* Panel Backgrounds */
    --bg-panel: rgba(15, 15, 20, 0.95);
    --bg-input: rgba(255, 255, 255, 0.05);
}

/* Light Mode Override */
body.light-mode {
    --bg-main: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-glass: rgba(0, 0, 0, 0.03);
    --bg-glass-hover: rgba(0, 0, 0, 0.08);
    --border-glass: rgba(0, 0, 0, 0.1);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    
    --bg-panel: rgba(255, 255, 255, 0.95);
    --bg-input: rgba(0, 0, 0, 0.05);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

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

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

.section-padding {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto;
}

.glass-panel {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.hover-up {
    transition: transform var(--transition-normal), background var(--transition-normal), box-shadow var(--transition-normal);
}

.hover-up:hover {
    transform: translateY(-10px);
    background: var(--bg-glass-hover);
    box-shadow: var(--shadow-glow);
}

/* Background Elements */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 191, 255, 0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.bg-glow.top-left { top: -200px; left: -200px; }
.bg-glow.bottom-right { bottom: -200px; right: -200px; background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0,0,0,0) 70%); }
.bg-glow.center-right { top: 40%; right: -300px; background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, rgba(0,0,0,0) 70%); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 191, 255, 0.4);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: var(--bg-glass-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: white;
}

.btn-large { padding: 1rem 2.5rem; font-size: 1.125rem; }
.btn-small { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.top-bar {
    background: #000;
    font-size: 0.85rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.top-left { color: var(--text-secondary); }
.top-right { display: flex; gap: 1rem; }
.top-link { color: var(--text-secondary); transition: color var(--transition-fast); }
.top-link:hover { color: var(--accent-primary); }

.main-nav {
    padding: 1.5rem 0;
    transition: all var(--transition-normal);
}

.navbar.scrolled .main-nav {
    padding: 1rem 0;
    background: rgba(11, 12, 16, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}

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

.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-weight: 500; font-size: 0.95rem; color: var(--text-secondary); position: relative; }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-fast);
}
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; gap: 1rem; align-items: center; }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}
.mobile-menu-btn .bar { width: 24px; height: 2px; background: white; transition: 0.3s; }

/* Hero */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding-top: 10rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 191, 255, 0.1);
    border: 1px solid rgba(0, 191, 255, 0.2);
    border-radius: 9999px;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.hero-title { font-size: 4.5rem; margin-bottom: 1.5rem; line-height: 1.1; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-secondary); margin-bottom: 2.5rem; max-width: 500px; }
.hero-cta { display: flex; gap: 1rem; margin-bottom: 4rem; }
.hero-stats { display: flex; gap: 3rem; }
.stat-item { display: flex; flex-direction: column; gap: 0.5rem; }
.stat-number { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: white; }
.stat-label { color: var(--text-secondary); font-size: 0.875rem; font-weight: 500; }

/* Hero Visuals */
.hero-visual { position: relative; height: 100%; min-height: 500px; }
.visual-card {
    position: absolute;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

.main-card {
    width: 320px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    background: rgba(18, 20, 26, 0.8);
    backdrop-filter: blur(20px);
}

.card-header { display: flex; gap: 6px; margin-bottom: 1.5rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.progress-bar-container { width: 100%; height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; margin-bottom: 0.5rem; }
.progress-bar { height: 100%; background: var(--gradient-primary); border-radius: 4px; }
.progress-text { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 1.5rem; }

.floating-card-1, .floating-card-2 {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    animation: float 6s ease-in-out infinite;
    white-space: nowrap;
}
.floating-card-1 { top: 15%; right: 0; z-index: 1; }
.floating-card-2 { bottom: 15%; left: 0; z-index: 3; animation-delay: -3s; }
.icon-circle { width: 40px; height: 40px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.2rem; }
.primary-bg { background: rgba(0, 191, 255, 0.2); color: var(--accent-primary); }
.accent-bg { background: rgba(168, 85, 247, 0.2); color: #A855F7; }

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

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Feature Cards */
.feature-card { padding: 3rem 2rem; display: block; }
.feature-icon { font-size: 3.5rem; margin-bottom: 1.5rem; display: inline-block; }
.feature-title { font-size: 1.5rem; margin-bottom: 1rem; }
.feature-desc { color: var(--text-secondary); }

/* Courses Carousel/Grid */
.courses-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.course-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.course-image {
    height: 180px;
    position: relative;
    border-radius: 20px 20px 0 0;
}

.course-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: bold;
}

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

.tag { font-size: 0.8rem; color: var(--accent-primary); margin-bottom: 0.5rem; font-weight: 600; text-transform: uppercase;}
.course-title { font-size: 1.25rem; margin-bottom: 1rem; flex-grow: 1; }
.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-glass);
    padding-top: 1rem;
    font-size: 0.9rem;
}

/* Portfolio */
.portfolio-card { display: block; overflow: hidden; }
.portfolio-img img { width: 100%; height: 220px; object-fit: cover; border-radius: 20px 20px 0 0; }
.portfolio-content { padding: 2rem; }
.portfolio-content h3 { font-size: 1.25rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.portfolio-content p { color: var(--text-secondary); font-size: 0.95rem; }

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.team-card { padding: 2rem 1.5rem; transition: transform var(--transition-normal); }
.team-card:hover { transform: translateY(-5px); border-color: rgba(0, 191, 255, 0.3); }
.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-primary);
    margin-bottom: 1.5rem;
}
.team-card h4 { font-size: 1.125rem; margin-bottom: 0.25rem; }
.team-card span { font-size: 0.875rem; font-weight: 500; }

/* Service Cards (Bottom) */
.service-card { padding: 2rem; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.service-card p { color: var(--text-secondary); margin-bottom: 1.5rem; }

/* Footer */
.footer { padding: 0 2rem 2rem; max-width: 1200px; margin: 0 auto; }
.footer-container { padding: 4rem 4rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 4rem; margin-bottom: 4rem; }
.footer-desc { color: var(--text-secondary); margin-bottom: 2rem; max-width: 300px; }
.social-links { display: flex; gap: 1rem; }
.social-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-glass); display: flex; justify-content: center; align-items: center; transition: 0.3s; }
.social-icon:hover { background: var(--accent-primary); transform: translateY(-3px); }
.footer-links h4, .footer-newsletter h4 { font-size: 1.125rem; margin-bottom: 1.5rem; }
.footer-links ul { display: flex; flex-direction: column; gap: 1rem; }
.footer-links a { color: var(--text-secondary); }
.footer-links a:hover { color: var(--accent-primary); }
.newsletter-form { display: flex; flex-direction: column; gap: 1rem; }
.newsletter-form input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    padding: 1rem;
    border-radius: 8px;
    color: white;
    outline: none;
}
.newsletter-form input:focus { border-color: var(--accent-primary); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Responsive */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    .nav-links, .nav-actions { display: none; }
    .mobile-menu-btn { display: flex; }
    
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 8rem; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; flex-wrap: wrap; }
    .hero-visual { display: none; }
    
    .section-title { font-size: 2.5rem; }
    .footer-container { padding: 3rem 2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

.nav-links.active, .nav-actions.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(11, 12, 16, 0.95);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-bottom: 1px solid var(--border-glass);
    text-align: center;
}
.nav-actions.active {
    top: calc(100% + 200px); /* rough positioning for mobile menu dropdown */
    border-top: none;
    padding-top: 0;
}

.mobile-menu-btn.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu-btn.active .bar:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Course Layout */
.course-hero {
    padding: 12rem 2rem 6rem;
    text-align: center;
    background: radial-gradient(circle at center, rgba(0, 191, 255, 0.1) 0%, transparent 70%);
}

.course-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.course-meta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 2rem;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-glass);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid var(--border-glass);
}

.course-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

.syllabus-sidebar {
    padding: 2rem;
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.syllabus-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.syllabus-item {
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

.syllabus-item.active {
    background: rgba(0, 191, 255, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(0, 191, 255, 0.2);
}

.module-num {
    font-size: 0.8rem;
    opacity: 0.7;
    font-family: var(--font-display);
    font-weight: 800;
}

.notes-content {
    padding: 3rem;
    min-height: 600px;
}

.module-notes {
    display: none;
    animation: fadeIn 0.4s ease;
}

.module-notes.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.module-notes h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-glass);
}

.notes-body h3 {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.notes-body p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.notes-body ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.notes-body li {
    margin-bottom: 0.5rem;
}

.styled-list {
    list-style: none !important;
    margin-left: 0 !important;
}

.styled-list li {
    padding: 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.styled-list code {
    color: var(--accent-secondary);
    font-weight: bold;
}

.code-block {
    background: #1e1e24;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin-bottom: 2rem;
    border: 1px solid var(--border-glass);
}

.code-block code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    color: #e2e8f0;
}

.note-alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-left: 4px solid var(--accent-secondary);
}

@media (max-width: 900px) {
    .course-layout {
        grid-template-columns: 1fr;
    }
    
    .syllabus-sidebar {
        position: static;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
    animation: fadeInModal 0.3s ease;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow-glow);
    animation: slideUpModal 0.3s ease;
}

@keyframes slideUpModal {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.close-btn:hover {
    color: var(--accent-primary);
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    padding: 1rem;
    border-radius: 8px;
    color: white;
    outline: none;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

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

.w-100 {
    width: 100%;
}

/* =========================================
   Chatbot Styling
========================================= */
#chatbot-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 161, 241, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#chat-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 161, 241, 0.6);
}

#chat-window {
    width: 350px;
    height: 450px;
    background: var(--bg-panel);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    margin-bottom: 1rem;
    display: none; /* Hidden by default */
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform-origin: bottom right;
    animation: scaleUp 0.3s ease forwards;
}

@keyframes scaleUp {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.chat-header {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
}

#close-chat {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

#close-chat:hover {
    color: white;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    max-width: 85%;
    font-size: 0.95rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.bot-message {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.user-message {
    background: var(--accent-primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
}

#chat-input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: white;
    outline: none;
}

#chat-input:focus {
    border-color: var(--accent-primary);
}

/* Hide chat window via class */
.hidden {
    display: none !important;
}

/* =========================================
   Theme Switcher Styling
========================================= */
#theme-switcher-container {
    position: fixed;
    top: 30%;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#theme-switcher-container.open {
    transform: translateX(0);
}

.theme-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-left: none;
    border-radius: 0 20px 20px 0;
    padding: 1.5rem;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.theme-panel h4 {
    color: white;
    font-size: 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.theme-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.theme-btn:hover {
    transform: scale(1.1);
    border-color: white;
}

.theme-btn.active {
    border-color: white;
    transform: scale(1.1);
    box-shadow: 0 0 10px currentColor;
}

.theme-toggle-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
    margin-top: 1rem;
}

.theme-toggle-btn i {
    animation: spinSlow 4s linear infinite;
}

@keyframes spinSlow {
    100% { transform: rotate(360deg); }
}

/* =========================================
   Learning Mode & Video Player Styles
========================================= */
.learning-mode .course-hero {
    display: none;
}

.learning-mode .course-layout {
    margin-top: 2rem;
    grid-template-columns: 1fr 3fr; /* Wider main area for video */
}

.video-player-section {
    margin-bottom: 2rem;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
    border: 1px solid var(--border-glass);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden; /* Important for clipping */
}

.video-wrapper iframe, #player {
    position: absolute;
    top: -60px; /* Hide the top title bar */
    left: 0;
    width: 100%;
    height: calc(100% + 120px); /* Extend height to compensate for clipping */
    border: none;
}

.center-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.play-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    padding-left: 5px; /* Alignment for play triangle */
    box-shadow: 0 0 30px var(--accent-primary);
    border: 4px solid rgba(255,255,255,0.2);
    position: relative;
}

.play-icon-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent-primary);
    opacity: 0.5;
    animation: pulseIcon 2s infinite;
    z-index: -1;
}

@keyframes pulseIcon {
    0% { transform: scale(1); opacity: 0.5; }
    70% { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.6); opacity: 0; }
}

.center-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.center-play-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.5);
}

.custom-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 2rem 1.5rem 1rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-wrapper:hover .custom-video-controls {
    opacity: 1;
}

.video-timeline {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.progress-bar {
    width: 100%;
    height: 100%;
}

.progress-filled {
    width: 0%;
    height: 100%;
    background: var(--accent-primary);
    border-radius: 3px;
    position: relative;
}

.progress-filled::after {
    content: '';
    position: absolute;
    right: -6px;
    top: -4px;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.control-btn:hover {
    color: var(--accent-primary);
    transform: scale(1.1);
}

.control-btn.play-pause {
    width: 45px;
    height: 45px;
    background: var(--accent-primary);
    border-radius: 50%;
    justify-content: center;
    font-size: 1.2rem;
}

.control-btn.play-pause:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px var(--accent-primary);
    color: white;
}

.video-time {
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    margin-left: auto;
}

.video-watermark {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.6rem 2.5rem; /* Increased horizontal padding */
    min-width: 160px; /* Added minimum width */
    border-radius: 8px;
    justify-content: center; /* Center content within the wider watermark */
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none; /* Allows clicking through to the video */
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-watermark::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
}

/* Locked State for modules */
.syllabus-item.locked {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

.syllabus-item.locked::after {
    content: '\f023'; /* FontAwesome Lock icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 1.5rem;
    color: var(--text-secondary);
}

.learning-mode .syllabus-item.locked {
    opacity: 1;
    cursor: pointer;
}

.learning-mode .syllabus-item.locked::after {
    content: '\f04b'; /* FontAwesome Play icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-primary);
}

.learning-mode .syllabus-item.active::after {
    color: white;
}

.locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    text-align: center;
    padding: 2rem;
}

.locked-overlay i {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.locked-overlay h3 {
    margin-bottom: 0.5rem;
}

/* Syllabus Timeline Style */
.syllabus-list {
    position: relative;
    padding-left: 1rem;
    margin-top: 1.5rem;
}

.syllabus-list::before {
    content: '';
    position: absolute;
    left: 1.85rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-glass);
    z-index: 0;
}

.syllabus-item {
    position: relative;
    padding: 1.2rem 1.5rem 1.2rem 3.5rem;
    margin-bottom: 1rem;
    z-index: 1;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.syllabus-item .module-num {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.2rem;
    height: 2.2rem;
    background: var(--bg-card);
    border: 2px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    z-index: 2;
    transition: all 0.3s ease;
}

.syllabus-item:hover .module-num {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.syllabus-item.active .module-num {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    box-shadow: 0 0 15px var(--accent-primary);
}

.syllabus-item.active {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-glass);
    border-radius: 12px;
}

/* Completed lesson indicator */
.syllabus-item.completed .module-num {
    background: #00c853;
    border-color: #00c853;
    color: white;
}

.syllabus-item.completed .module-num::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.6rem;
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: white;
    color: #00c853;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #00c853;
}

/* Learning mode layout adjustment */
@media (min-width: 1024px) {
    .learning-mode .course-layout {
        display: grid;
        grid-template-columns: 350px 1fr;
        gap: 2rem;
        align-items: start;
    }
    
    .learning-mode .syllabus-sidebar {
        position: sticky;
        top: 100px;
        max-height: calc(100vh - 150px);
        overflow-y: auto;
    }
}

/* =========================================
   Mobile Responsiveness & Hamburger Menu
   ========================================= */

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: flex;
        z-index: 1100;
        margin-left: 1.5rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--bg-panel);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: all 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        border-left: 1px solid var(--border-glass);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
    }

    .nav-actions {
        display: none; /* Hide actions on very small screens or move them */
    }

    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hero Responsive */
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 8rem;
        gap: 2rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }

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

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

    .hero-visual {
        min-height: 400px;
    }

    .main-card {
        width: 280px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .floating-card-1, .floating-card-2 {
        display: none; /* Hide complex floating cards on mobile */
    }

    /* Section Spacing */
    .section-padding {
        padding: 5rem 1.5rem;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1.5rem;
    }

    .top-bar {
        display: none; /* Hide top bar on mobile for cleaner look */
    }

    .courses-carousel {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}
