/* ===================================
   GLOBAL STYLES & VARIABLES
   =================================== */

:root {
    /* Playful Color Palette */
    --primary-purple: #7C3AED;
    --primary-purple-light: #ccb6ff;
    --primary-purple-dark: #6D28D9;
    
    --secondary-orange: #FF6B35;
    --secondary-orange-light: #FF8C42;
    --secondary-orange-dark: #F45B21;
    
    --accent-teal: #02E072;
    --accent-teal-light: #33FF99;
    --accent-teal-dark: #01B85A;
    
    --accent-pink: #EC4899;
    --accent-pink-light: #F472B6;
    
    --accent-yellow: #FBBF24;
    --accent-green: #10B981;
    
    --dark-bg: #1E1B4B;
    --dark-bg-light: #312E81;
    --dark-text: #1F2937;
    
    --light-bg: #F9FAFB;
    --light-bg-purple: #F5F3FF;
    --light-bg-orange: #FFF7ED;
    --light-bg-teal: #E6FFF4;
    
    --white: #FFFFFF;
    --gray: #6B7280;
    --gray-light: #E5E7EB;
    
    /* Typography */
    --font-sans: 'Montserrat', sans-serif;
    --font-serif: 'Merriweather', serif;
    
    /* Spacing */
    --section-padding: 80px 20px;
    --container-max: 1200px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   HEADER
   =================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /*background: rgba(30, 27, 75, 0.95);*/
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    /*box-shadow: var(--shadow-md);*/
    transition: var(--transition);
}

.header-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    font-family: var(--font-sans);
    transition: color 0.3s ease;
}

.logo i {
    font-size: 2rem;
    color: var(--accent-teal);
}

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

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-teal);
    transition: var(--transition);
}

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

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

/* Header Scrolled State - Purple Text */
.header.scrolled .logo,
.header.scrolled .nav-menu a {
    color: var(--primary-purple);
}

.header.scrolled .nav-menu a:hover {
    color: var(--primary-purple-dark);
}

.header.scrolled .nav-menu a:hover::after {
    background: var(--primary-purple-dark);
}

/* Header on Purple Background - White Text */
.header.on-purple-section .logo,
.header.on-purple-section .nav-menu a {
    color: var(--white);
}

.header.on-purple-section .nav-menu a:hover {
    color: var(--accent-teal);
}

.header.on-purple-section .nav-menu a:hover::after {
    background: var(--accent-teal);
}

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

.hero {
    position: relative;
    min-height: 61.8vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #1a1a2e; /* Fallback dark background */
}

/* Video Background */
.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100%;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: none;
}

/* Gradient Overlay with Aibootcamp Colors */
.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-purple);
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.90) 0%, rgba(109, 40, 217, 0.90) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 40px;
    max-width: 1400px;
    text-align: center;
    pointer-events: auto;
}

.hero-headline {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 40px;
    padding-top: 60px;
}

.hero-headline .line1 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(6rem, 6vw, 7.5rem);
    font-weight: 500;
    color: var(--primary-purple-light);
    line-height: 1.1;
    letter-spacing: -0.1rem;
}

.hero-headline .line2 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: clamp(6rem, 6vw, 10rem);
    font-weight: 400;
    font-style: italic;
    color: var(--accent-yellow);
    line-height: 1.1;
    letter-spacing: -0.1rem;
}

.hero-headline .line3 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(5rem, 6vw, 7.5rem);
    font-weight: 500;
    color: var(--primary-purple-light);
    line-height: 1.1;
    letter-spacing: -0.1rem;
}

.hero-headline .rotating-text {
    color: var(--white);
    display: inline-block;
    white-space: nowrap;
    transition: opacity 0.5s ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-subtext {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--white);
    margin-bottom: 30px;
    font-weight: 400;
    line-height: 1.6;
    font-style: italic;
}

.cta-button {
    display: inline-block;
    padding: 18px 40px;
    background: transparent;
    color: var(--white);
    border: 4px solid var(--white);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
    cursor: pointer;
    white-space: nowrap;
}

.cta-button:hover {
    background: var(--white);
    color: var(--primary-purple);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hero-cta {
    margin-top: 10px;
}

/* ===================================
   COURSE SECTION (VISION-STYLE CAROUSEL)
   =================================== */

.course-section {
    position: relative;
    padding: 20px 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url('images/bg_south_berkeley_map.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Course Background Overlay */
.course-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1;
    pointer-events: none;
}

/* Course Carousel Wrapper */
.course-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1400px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

/* Course Slides Container */
.course-slides-container {
    position: relative;
    flex: 1;
    min-height: 300px;
    display: flex;
    align-items: center;
}

/* Course Slide */
.course-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: none;
    display: none;
}

.course-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    position: relative;
    display: block;
}

.course-slide.slide-out-left,
.course-slide.slide-out-right,
.course-slide.slide-in-left,
.course-slide.slide-in-right {
    /*display: block !important;*/
    display: flex !important;
    position: absolute;
    flex: auto
}

.course-slide.slide-out-left {
    animation: slideOutLeft 0.6s ease forwards;
}

.course-slide.slide-out-right {
    animation: slideOutRight 0.6s ease forwards;
}

.course-slide.slide-in-left {
    animation: slideInLeft 0.6s ease forwards;
}

.course-slide.slide-in-right {
    animation: slideInRight 0.6s ease forwards;
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Course Container (2-column grid like Vision) */
.course-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
    padding: 40px;
}

/* Course Left Column (Title & Icon) */
.course-left {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    text-align: right;
    gap: 30px;
}

.course-title {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-purple);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
    margin: 0;
    text-align: right;
}

.course-slide.active .course-title {
    animation: fadeInRight 0.8s ease 0.2s backwards;
}

.course-icon {
    font-size: 4rem;
    color: var(--primary-purple);
    transition: all 0.5s ease;
    filter: drop-shadow(2px 2px 8px rgba(124, 58, 237, 0.3));
    flex-shrink: 0;
}

.course-slide.active .course-icon {
    animation: fadeInRight 0.8s ease 0.3s backwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Course Right Column (Content) */
.course-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    text-align: left;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.course-quote {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.6;
    color: var(--dark-text);
    margin: 0;
}

.course-slide.active .course-quote {
    animation: fadeInLeft 0.8s ease 0.4s backwards;
}

/* Course Navigation Buttons */
.course-nav-btn {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    border: 2px solid rgba(124, 58, 237, 0.9);
    color: rgba(124, 58, 237, 0.9);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 20;
}

.course-nav-btn:hover {
    background: var(--primary-purple);
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.course-nav-left {
    position: relative;
}

.course-nav-right {
    position: relative;
}

/* Course CTA at Bottom */
.course-cta-wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
    margin-top: 50px;
    max-width: 800px;
}

.course-bottom-text {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--dark-text);
    margin-bottom: 20px;
    line-height: 1.6;
}

.course-cta-link {
    display: inline-block;
    padding: 15px 35px;
    background: var(--secondary-orange);
    color: var(--white);
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: var(--transition);
}

.course-cta-link:hover {
    background: var(--secondary-orange-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===================================
   PROOF OF WORK (CONTENT LAYOUT - STACKED)
   =================================== */

.proof-section {
    padding: 80px 0;
    background: var(--light-bg);
    position: relative;
    z-index: 100;
}

.stacked-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    opacity: 0;
    transform: translateX(0);
    transition: all 0.8s ease-out;
}

/* Zoom animation states */
.stacked-row[data-direction="left"] {
    transform: translateX(-100px);
}

.stacked-row[data-direction="right"] {
    transform: translateX(100px);
}

.stacked-row.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Stacked Copy Column */
.stacked-copy {
    padding: 40px;
}

.category-pill {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-purple);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.stacked-icon {
    margin: 20px 0;
}

.stacked-icon i {
    font-size: 3rem;
    color: var(--accent-teal);
}

.stacked-title {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 20px;
    line-height: 1.3;
}

.phone-display {
    display: inline-block;
    padding: 15px 30px;
    background: var(--accent-teal);
    color: var(--white);
    border-radius: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 20px 0;
    cursor: pointer;
    transition: var(--transition);
}

.phone-display:hover {
    background: var(--accent-teal-dark);
    transform: scale(1.05);
}

.phone-display a {
    color: var(--white);
    text-decoration: none;
}

.phone-display a:hover {
    color: var(--white);
}

/* Stacked Image Column */
.stacked-image {
    padding: 20px;
    border-radius: 50px;
    background: #eee;
}

.stacked-image img {
    max-width: 100%;
    height: auto;
}

.stacked-image.img-left img {
    border-radius: 50px;
    background: #eee;
    text-align: right;
}

.stacked-image .image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--accent-pink) 100%);   
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.stacked-image .image-placeholder:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.3);
}

.stacked-image .image-placeholder i {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.stacked-image .image-placeholder span {
    font-size: 1.2rem;
    font-weight: 600;
}

.stacked-image .image-placeholder.video-thumb {
    background-color: var(--accent-teal);
    border: 10px solid var(--dark-bg);
    cursor: pointer;
}

.stacked-image .image-placeholder.video-thumb:hover i {
    transform: scale(1.2);
}

/* Video Thumbnail Wrapper */
.video-thumb-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.video-thumb-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.3);
}

.video-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.video-thumb-wrapper:hover .play-button-overlay {
    background: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button-overlay i {
    font-size: 4rem;
    color: var(--white);
}

/* ===================================
   SPECIAL SECTION (LEVEL UP / SALES COPY)
   =================================== */

.special-section {
    padding: 80px 0;
    background: #eee;
    position: relative;
    z-index: 100;
}

.content-wrapper {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

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

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

.icon-container {
    margin: 2rem auto;
    text-align: center;
}

.special-icon {
    width: auto;
    max-width: 90%;
    height: auto;
    object-fit: contain;
}

/* ===================================
   5 ELEMENT CENTERED LAYOUT
   =================================== */

.five-element {
    padding: var(--section-padding);
    text-align: center;
    position: relative;
}

.five-element:nth-of-type(odd) {
    background: var(--light-bg-purple);
}

.five-element:nth-of-type(even) {
    background: var(--light-bg);
}

.parallax-bg {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%237C3AED" width="1200" height="600"/><circle fill="%23EC4899" cx="200" cy="100" r="150" opacity="0.3"/><circle fill="%2306B6D4" cx="800" cy="400" r="200" opacity="0.3"/><circle fill="%23FF6B35" cx="1000" cy="150" r="180" opacity="0.3"/></svg>');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    pointer-events: none;
}

.section-headline {
    text-align: center;
    font-size: 4rem;
    font-weight: 500;
    margin-bottom: 50px;
    color: var(--dark-bg);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.2;
    letter-spacing: -0.05rem;
}

.section-headline .highlight {
    color: var(--primary-purple);
    position: relative;
    display: inline-block;
}

.section-headline .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--accent-yellow);
    z-index: -1;
}

.rotating-headline .headline-text {
    animation: fadeSlide 3s ease-in-out infinite;
}

@keyframes fadeSlide {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.7; transform: translateY(-10px); }
}

.image-placeholder {
    width: 300px;
    height: 300px;
    margin: 40px auto;
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-teal-dark) 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.image-placeholder:hover {
    transform: scale(1.05) rotate(2deg);
}

.image-placeholder i {
    font-size: 5rem;
    margin-bottom: 20px;
}

.image-placeholder span {
    font-size: 1.1rem;
    font-weight: 600;
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

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

.body-copy {
    font-size: 1.6rem;
    line-height: 1.6;
    margin: 30px auto;
    max-width: 800px;
    font-family: var(--font-serif);
}

.body-copy .highlight {
    color: var(--secondary-orange);
    font-weight: 700;
}

.emphasis {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-purple);
}

/* ===================================
   INFINITE CAROUSEL
   =================================== */

.infinite-carousel {
    overflow: hidden;
    margin: 50px 0;
    padding: 30px 0;
    border-radius: 15px;
}

.carousel-track {
    display: flex;
    gap: 30px;
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.stat-item {
    flex-shrink: 0;
    padding: 20px 40px;
    background: var(--white);
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-bg);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

/* Duplicate items for seamless loop */
.carousel-track::after {
    content: attr(data-clone);
}

/* ===================================
   TRUST SECTION
   =================================== */

.trust-section {
    background: linear-gradient(135deg, var(--light-bg-teal) 0%, var(--light-bg) 100%);
}

.awards-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.award-badge {
    padding: 30px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.award-badge:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.award-badge i {
    font-size: 3rem;
    color: var(--accent-yellow);
    margin-bottom: 15px;
}

.award-badge p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ===================================
   STATISTICS SECTION
   =================================== */

.statistics-section {
    position: relative;
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--primary-purple-dark) 0%, var(--dark-bg) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%231E1B4B" width="1200" height="600"/><path fill="%237C3AED" d="M0,300 Q300,100 600,300 T1200,300 L1200,600 L0,600 Z" opacity="0.2"/></svg>');
    background-size: cover;
    color: var(--white);
}

.stats-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3) 0%, rgba(30, 27, 75, 0.5) 100%);
    pointer-events: none;
}

.stats-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.stat-card {
    text-align: center;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-teal);
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-teal-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    font-family: var(--font-sans);
}

.stat-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.6;
}

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

.faq-section {
    position: relative;
    padding: var(--section-padding);
    background-image: url('images/bg_south_berkeley_map.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
}

/* FAQ Background Overlay */
.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.70);
    z-index: 0;
    pointer-events: none;
}

.faq-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

.faq-header h2 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 4rem;
    font-weight: 500;
    position: sticky;
    top: 120px;
    line-height: 5rem;
}

.faq-questions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: 25px 30px;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-bg);
    text-align: left;
    transition: var(--transition);
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.faq-question:hover {
    color: var(--primary-purple);
}

.faq-question i {
    font-size: 1.2rem;
    color: var(--accent-teal);
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 30px 25px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray);
    font-family: var(--font-serif);
}

/* ===================================
   ICP SECTION
   =================================== */

.icp-section {
    background: linear-gradient(135deg, var(--light-bg-purple) 0%, var(--light-bg-orange) 100%);
}

/* ICP Crossfade Carousel */
.icp-carousel-container {
    width: 100%;
    max-width: 800px;
    height: 400px;
    margin: 40px auto;
    position: relative;
    overflow: hidden;
}

.icp-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.icp-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.icp-image.active {
    opacity: 1;
}

.icp-image.fade-out {
    opacity: 0;
}

.benefit-list {
    list-style: none;
    max-width: 700px;
    margin: 40px auto;
    text-align: left;
}

.benefit-list li {
    padding: 20px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    border-bottom: 1px solid var(--gray);
}

.benefit-list li:last-child {
    border-bottom: 0px solid var(--gray);
}

.benefit-list li:hover {
    transform: translateX(10px);
}

.benefit-list i {
    font-size: 1.8rem;
    color: var(--accent-green);
    flex-shrink: 0;
}

/* ===================================
   ENROLL SECTION
   =================================== */

.enroll-section {
    background: var(--primary-purple) !important;
    color: var(--white);
}

.enroll-section .section-headline,
.enroll-section .body-copy {
    color: var(--white);
}

.enroll-section .highlight {
    color: var(--accent-yellow);
}

.enroll-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    margin: 40px auto;
    display: block;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.enrollment-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 50px auto;
    max-width: 900px;
}

.step-card {
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-yellow);
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--accent-yellow);
    color: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
}

.step-card p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ===================================
   VIDEOS SECTION
   =================================== */

.videos-section {
    padding: var(--section-padding);
    background: var(--light-bg);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.video-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.video-card .video-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--secondary-orange) 0%, var(--accent-pink) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.video-card .video-placeholder:hover {
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--primary-purple) 100%);
}

.video-card .video-placeholder i {
    font-size: 4rem;
    color: var(--white);
    opacity: 0.8;
}

.video-card p {
    padding: 20px;
    font-size: 1rem;
    text-align: center;
    color: var(--dark-text);
}

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

.footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-light) 100%);
    color: var(--white);
    padding: 60px 20px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.2s forwards;
}

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

.footer-logo-section {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
    align-items: start;
}

.footer-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-teal-dark) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-image i {
    font-size: 2.5rem;
    color: var(--white);
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--accent-teal);
}

.footer-info p {
    margin-bottom: 5px;
    opacity: 0.8;
}

.footer-social h4,
.footer-legal h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--accent-yellow);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-teal);
    transform: translateY(-5px);
}

.footer-legal ul {
    list-style: none;
}

.footer-legal li {
    margin-bottom: 10px;
}

.footer-legal a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-legal a:hover {
    opacity: 1;
    color: var(--accent-teal);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom a {
    color: var(--accent-teal);
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ===================================
   FLOATING CTA & CHAT INTERFACE
   =================================== */

.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.float-button {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-orange) 0%, var(--accent-pink) 100%);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
}

.float-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.4);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 25px;
    height: 25px;
    background: #EF4444;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    border: 3px solid var(--white);
}

/* ===================================
   CHAT BUBBLES (Initial Floating Interface)
   =================================== */

.chat-bubbles {
    position: fixed;
    bottom: 120px;
    right: 30px;
    z-index: 998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    max-width: 480px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.chat-bubbles.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.chat-bubbles-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    color: var(--primary-purple);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    animation: bubbleSlideIn 0.3s ease-out;
}

.chat-bubbles-close:hover {
    background: var(--accent-pink);
    color: var(--white);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.3);
}

.chat-bubble {
    background: var(--white);
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 100%;
    width: fit-content;
    animation: bubbleSlideIn 0.3s ease-out;
}

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

.bubble-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.bubble-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.bubble-info {
    flex: 1;
}

.bubble-text {
    font-size: 0.95rem;
    color: var(--dark-text);
    line-height: 1.4;
    margin-bottom: 4px;
}

.bubble-meta {
    font-size: 0.75rem;
    color: var(--gray);
}

.canned-bubble-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    max-width: 480px;
    animation: bubbleSlideIn 0.3s ease-out 0.1s both;
}

.canned-bubble-btn {
    background: var(--white);
    border: 2px solid var(--primary-purple);
    border-radius: 20px;
    padding: 12px 20px;
    color: var(--primary-purple);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: fit-content;
    white-space: nowrap;
}

.canned-bubble-btn:hover {
    background: var(--primary-purple);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

/* ===================================
   CHAT WINDOW
   =================================== */

.chat-window {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 400px;
    height: 600px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.chat-window.active {
    opacity: 1;
    pointer-events: all;
    transform: scale(1) translateY(0);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-dark) 100%);
    border-radius: 20px 20px 0 0;
    color: var(--white);
}

.chat-back-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chat-back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chat-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--white);
}

.chat-header-info {
    flex: 1;
}

.chat-header-name {
    font-weight: 600;
    font-size: 1rem;
}

.chat-header-status {
    font-size: 0.75rem;
    opacity: 0.9;
}

.chat-close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #F9FAFB;
}

.chat-message {
    display: flex;
    gap: 10px;
    animation: messageSlideIn 0.3s ease-out;
}

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

.chat-message.ai-message {
    align-items: flex-start;
}

.chat-message.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.message-content {
    max-width: 70%;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.ai-message .message-bubble {
    background: var(--white);
    color: var(--dark-text);
    border-bottom-left-radius: 4px;
}

.user-message .message-bubble {
    background: var(--primary-purple);
    color: var(--white);
    border-bottom-right-radius: 4px;
    margin-left: auto;
}

.message-time {
    font-size: 0.7rem;
    color: var(--gray);
    margin-top: 4px;
    padding: 0 4px;
}

.user-message .message-time {
    text-align: right;
}

.chat-form-container {
    padding: 16px 20px;
    background: var(--white);
    border-radius: 0 0 20px 20px;
    border-top: 1px solid var(--gray-light);
    display: none; /* Initially hidden until messages animate */
}

.chat-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-form input,
.chat-form textarea {
    padding: 12px 16px;
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    transition: var(--transition);
    resize: none;
}

.chat-form input:focus,
.chat-form textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
}

.chat-submit-btn {
    align-self: flex-end;
    width: 44px;
    height: 44px;
    background: var(--primary-purple);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chat-submit-btn:hover {
    background: var(--primary-purple-dark);
    transform: scale(1.1);
}

/* ===================================
   VIDEO MODAL
   =================================== */

.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.video-modal.active {
    opacity: 1;
    pointer-events: all;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background: var(--dark-bg);
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.9);
    transition: var(--transition);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-modal.active .video-modal-content {
    transform: scale(1);
}

.close-video {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--white);
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-video:hover {
    background: var(--accent-pink);
    transform: rotate(90deg);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero {
        min-height: 80vh;
    }
    
    .hero-video {
        /* Ensure video covers properly on mobile */
        width: auto;
        height: 100%;
        min-width: 100%;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .hero-headline .line1,
    .hero-headline .line2,
    .hero-headline .line3 {
        /* Using clamp() for automatic responsive sizing */
        letter-spacing: -0.05rem;
    }
    
    /* Special Section Responsive */
    .special-icon {
        max-width: 80%;
    }
    
    .special-section .body-copy {
        font-size: 1.5rem;
    }
    
    /* Course Section Responsive */
    .course-carousel-wrapper {
        gap: 10px;
    }
    
    .course-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .course-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }
    
    .course-left {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .course-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .course-icon {
        font-size: 3rem;
    }
    
    .course-right {
        text-align: center;
    }
    
    .course-quote {
        font-size: 1.2rem;
    }
    
    /* Proof Section Responsive */
    .stacked-row {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 60px;
    }
    
    .stacked-copy {
        padding: 20px;
        text-align: center;
    }
    
    .stacked-title {
        font-size: 1.5rem;
    }
    
    .stacked-image .image-placeholder {
        height: 300px;
    }
    
    .faq-layout {
        grid-template-columns: 1fr;
    }
    
    /* ICP Carousel Responsive */
    .icp-carousel-container {
        max-width: 100%;
        height: 300px;
        margin: 30px 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .section-headline {
        font-size: 2rem;
    }
    
    .enrollment-steps {
        grid-template-columns: 1fr;
    }
    
    /* Video Thumbnail Responsive */
    .video-thumb-wrapper {
        height: 300px;
    }
    
    /* Video Modal Responsive */
    .video-modal-content {
        width: 95%;
        border-radius: 10px;
    }
    
    .close-video {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .floating-cta {
        bottom: 20px;
        right: 20px;
    }
    
    .float-button {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Chat Bubbles Responsive */
    .chat-bubbles {
        bottom: 100px;
        right: 20px;
        max-width: calc(100vw - 40px);
    }
    
    .canned-bubble-btns {
        max-width: calc(100vw - 40px);
    }
    
    /* Chat Window Responsive */
    .chat-window {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
    
    .chat-header {
        border-radius: 0;
    }
}

