/* =========================================
   1. DESIGN SYSTEM & VARIABLES
   ========================================= */
:root {
    /* Brand Colors - Modern SaaS (Indigo/Teal/White) */
    --primary: #4F46E5;
    /* Indigo 600 */
    --primary-hover: #4338CA;
    /* Indigo 700 */
    --primary-subtle: #E0E7FF;
    /* Indigo 100 */
    --accent: #0EA5E9;
    /* Sky 500 */
    --accent-glow: rgba(14, 165, 233, 0.3);

    /* Backgrounds - Nuanced Light Mode */
    --bg-body: #F8FAFC;
    /* Slate 50 */
    --bg-surface: #FFFFFF;
    --bg-surface-alt: #F1F5F9;
    /* Slate 100 */

    /* Text - High Contrast & Readable */
    --text-main: #0F172A;
    /* Slate 900 */
    --text-body: #334155;
    /* Slate 700 */
    --text-muted: #64748B;
    /* Slate 500 */
    --text-inverse: #FFFFFF;

    /* Spacing & Layout */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --border-radius: 12px;
    --nav-height: 70px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --font-main: 'Poppins', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-body: #0F172A;
    --bg-surface: #1E293B;
    --bg-surface-alt: #334155;
    --text-main: #F8FAFC;
    --text-body: #CBD5E1;
    --text-muted: #94A3B8;
    --primary-subtle: #312E81;
}

/* =========================================
   2. RESET & GLOBAL
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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


body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

/* Scroll Container - Now just a wrapper */
.scroll-container {
    width: 100%;
    position: relative;
}

/* Scrollbar Styling (Global) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: var(--text-muted);
    border-radius: 20px;
    border: 3px solid var(--bg-body);
    background-clip: content-box;
}

/* Typography Defaults */
h1,
h2,
h3,
h4 {
    color: var(--text-main);
    line-height: 1.2;
    font-weight: 600;
}

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

ul {
    list-style: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-inverse);
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(79, 70, 229, 0.23);
}

.btn-secondary {
    background-color: var(--bg-surface);
    color: var(--text-main);
    border-color: #E2E8F0;
}

.btn-secondary:hover {
    background-color: var(--bg-surface-alt);
    border-color: var(--text-muted);
}

.btn-action {
    background-color: var(--accent);
    color: white;
}

/* =========================================
   3. NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-sm);
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

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

.nav-link {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
}

.btn-nav {
    background-color: var(--primary);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
}

.btn-nav:hover {
    color: white !important;
}

#theme-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.25rem;
}

/* Progress bar */
.scroll-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    width: 0%;
    transition: width 0.1s;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
}

/* =========================================
   4. LAYOUT & SECTIONS
   ========================================= */
.snap-section {
    min-height: 100vh;
    /* Changed from fixed height to min-height for fluid feel */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: calc(var(--nav-height) + 2rem);
    /* Added breathable spacing */
    padding-bottom: 4rem;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
}


.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
    font-weight: 700;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--text-main), var(--primary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Reveal Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* =========================================
   5. HERO SECTION
   ========================================= */
#hero {
    background: radial-gradient(circle at 50% 50%, var(--primary-subtle) 0%, transparent 70%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
    display: block;
}

.headline {
    font-size: 4rem;
    margin-bottom: var(--spacing-xs);
    letter-spacing: -2px;
}

.subheadline {
    font-size: 2rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: var(--spacing-md);
}

.value-prop {
    font-size: 1.125rem;
    color: var(--text-body);
    margin-bottom: var(--spacing-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-row {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.trust-row {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    background-color: var(--bg-surface);
    border: 1px solid #E2E8F0;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    box-shadow: var(--shadow-sm);
}

/* =========================================
   6. ABOUT SECTION
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-body);
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.highlight-card {
    background: var(--bg-surface);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    border-left: 4px solid var(--primary);
}

.highlight-card h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.highlight-card p {
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text-main);
}

/* =========================================
   7. SKILLS SECTION
   ========================================= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.skill-column {
    background: var(--bg-surface-alt);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s;
}

.skill-column:hover {
    transform: translateY(-5px);
}

.skill-column h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--primary);
}

.skill-column ul li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

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

.tool-belt h3 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tool-chips {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.chip {
    background: var(--bg-surface);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* =========================================
   8. METRICS SECTION
   ========================================= */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.metric-card {
    background: var(--bg-surface);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    text-align: center;
    border-top: 4px solid var(--accent);
}

.metric-title {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
}

.metric-value {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: var(--spacing-sm);
    /* Gradient Text */
    background: linear-gradient(135deg, var(--text-main), var(--primary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-context {
    font-size: 0.9rem;
    color: var(--text-body);
}

/* =========================================
   CASE STUDIES REFACTOR (OPTION A - HERO)
   ========================================= */
.case-study-carousel {
    display: flex;
    flex-direction: column;
    /* Stack viewport and controls */
    gap: var(--spacing-sm);
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.cs-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
    min-height: 500px;
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
}

.case-hero-card {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    height: 100%;
    width: 100%;
    animation: fadeIn 0.4s ease-out;
}

/* Left Column: Text Content */
.cs-content-col {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.cs-header-block {
    margin-bottom: 0.5rem;
}

.cs-badge {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary);
    background: rgba(79, 70, 229, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.cs-title {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.cs-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Fields Grid inside Content Column */
.cs-fields-grid {
    display: grid;
    gap: 1.25rem;
}

.cs-field h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.cs-field p {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.5;
}

/* Results Highlight */
.cs-results-box {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(14, 165, 233, 0.05));
    border-left: 3px solid var(--accent);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    margin-top: auto;
}

.cs-results-box h4 {
    color: var(--accent);
}

/* Right Column: Media (Video/Image) */
.cs-media-col {
    background: #f1f5f9;
    padding: 0;
    /* Remove padding to flush video */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* containment */
}

.cs-media-placeholder,
.cs-media-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover the area */
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-media-placeholder {
    color: var(--text-muted);
    font-weight: 500;
    background: #e2e8f0;
}

/* Controls - Bottom Row */
.cs-controls-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

/* Navigation Controls Buttons */
.cs-nav-btn {
    background: var(--bg-surface);
    border: 1px solid #e2e8f0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.cs-nav-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
}

.cs-dots-container {
    display: flex;
    gap: 0.5rem;
}

.cs-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.cs-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-theme="dark"] .cs-media-col {
    background: #1e293b;
}

[data-theme="dark"] .cs-nav-btn {
    background: var(--bg-surface-alt);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 900px) {
    .case-hero-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        /* Fix: Allow both rows to be auto sized */
        height: auto;
    }

    .cs-viewport {
        height: auto;
        min-height: 0;
        overflow: visible;
        /* Fix: Allow content to overflow viewport so page scrolls */
    }

    .cs-content-col {
        padding: 1.5rem;
        order: 2;
        height: auto;
    }

    .cs-media-col {
        order: 1;
        width: 100%;
        height: 250px;
        /* Keep video/media height fixed on mobile */
    }

    .cs-controls-row {
        width: 100%;
        justify-content: space-between;
        padding: 0 1rem;
    }
}

/* =========================================
   10. TIMELINE SECTION
   ========================================= */
.timeline-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: var(--spacing-md);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.edu {
    background-color: var(--accent);
}

.dot.role {
    background-color: var(--primary);
}

.timeline-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
    border-left: 2px solid #E2E8F0;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 1.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2.6rem;
    /* Adjust based on padding/border */
    top: 0.25rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid var(--bg-body);
}

.timeline-marker.edu {
    background-color: var(--accent);
}

.timeline-marker.role {
    background-color: var(--primary);
}

.timeline-content .date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
}

.timeline-content h4 {
    font-size: 1.25rem;
}

.timeline-content .company {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-body);
}

/* =========================================
   11. TESTIMONIALS
   ========================================= */
.testimonials-grid {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.testimonial-card {
    flex: 0 1 400px;
    /* Base width */
    background: var(--bg-surface);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    position: relative;
}



.quote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-body);
}

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

.avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-subtle);
}

.author h4 {
    font-size: 1rem;
    margin-bottom: 0;
}

.author span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =========================================
   12. CONTACT / FOOTER
   ========================================= */
#contact {
    text-align: center;
}

.contact-sub {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-body);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: 4rem;
}

.site-footer {
    position: relative;
    margin-top: 4rem;
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =========================================
   13. UTILS
   ========================================= */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 500;
    box-shadow: var(--shadow-hover);
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

/* =========================================
   14. RESPONSIVE QUERIES
   ========================================= */
@media (max-width: 900px) {
    .headline {
        font-size: 3rem;
    }

    .subheadline {
        font-size: 1.5rem;
    }

    .about-grid,
    .skills-grid,
    .metrics-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* Case Studies to Horizontal Scroll on Tablet/Mobile */
    .case-studies-container {
        display: flex;
        overflow-x: auto;
        padding-bottom: 1rem;
        scroll-snap-type: x mandatory;
    }

    .case-card {
        min-width: 85vw;
        /* Show mostly one card */
        scroll-snap-align: center;
    }

    .snap-section {
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 50px;
    }

    /* Disable vertical snap on mobile if content is too tall */
    .scroll-container {
        scroll-snap-type: none;
        height: auto;
        overflow-y: visible;
    }

    body {
        overflow: auto;
    }

    .navbar {
        height: 60px;
    }

    .nav-links {
        display: none;
        /* simple toggle would go here */
    }

    .nav-toggle {
        display: flex;
    }
}

/* =========================================
   15. EXPERIENCE TIMELINE REFINEMENTS
   ========================================= */
/* Current Role Pulse Animation */
@keyframes pulse-orange {
    0% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(249, 115, 22, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
    }
}

.timeline-marker.current-pulse {
    background-color: #f97316 !important;
    /* Orange */
    border-color: #fff;
    animation: pulse-orange 2s infinite;
    z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
    .timeline-marker.current-pulse {
        animation: none;
    }
}

.timeline-legend .dot.current-legend {
    background-color: #f97316;
}

/* Timeline Item - Current Role Highlight */
.timeline-item.current-role .timeline-content {
    border-left: 4px solid #f97316;
    padding-left: 1rem;
    background: linear-gradient(to right, rgba(249, 115, 22, 0.05), transparent);
    border-radius: 0 8px 8px 0;
}

/* Role Bullets */
.role-bullets {
    margin-top: 0.75rem;
    padding-left: 1.2rem;
    list-style-type: disc;
    color: var(--text-body);
}

.role-bullets li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Timeline Section Divider (Education) */
.timeline-section-divider {
    position: relative;
    margin: 3rem 0;
    padding-left: 0;
}

.timeline-section-divider span {
    background-color: var(--bg-surface-alt);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    position: relative;
    z-index: 2;
    /* Adjust positioning to center on line */
    margin-left: -3rem;
    /* Push left to align with marker line which is at left: -2.6rem */
}

/* =========================================
   16. HERO BACKGROUND ANIMATION (LAVA LAMP)
   ========================================= */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    /* Behind content which has z-index by default or we'll ensure content is higher */
    pointer-events: none;
    /* No interaction */
    background: var(--bg-body);
    /* Base fallback */
}

/* Ensure content sits above */
.hero-content {
    position: relative;
    z-index: 1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    /* Heavy blur for soft effect */
    opacity: 0.25;
    /* Subtle visibility */
    animation-timing-function: linear;
    /* Or ease-in-out */
    animation-iteration-count: infinite;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--primary);
    /* Indigo */
    animation: moveBlob1 15s infinite alternate;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 45vw;
    height: 45vw;
    background: var(--accent);
    /* Sky Blue */
    animation: moveBlob2 19s infinite alternate-reverse;
}

.blob-3 {
    top: 30%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: #818cf8;
    /* A softer indigo/purple */
    animation: moveBlob3 22.5s infinite alternate;
    opacity: 0.2;
}

@keyframes moveBlob1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(10%, 15%) scale(1.1);
    }

    100% {
        transform: translate(-5%, 5%) scale(0.9);
    }
}

@keyframes moveBlob2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-10%, -10%) scale(1.1);
    }

    100% {
        transform: translate(5%, -5%) scale(0.95);
    }
}

@keyframes moveBlob3 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(10%, -10%) scale(1.2);
    }

    66% {
        transform: translate(-10%, 5%) scale(0.8);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .blob {
        animation: none;
        opacity: 0.15;
        /* Static state slightly more subtle */
    }
}

/* Dark Mode Tweaks - Adjust opacity if needed */
/* =========================================
   17. YOUTUBE VIDEO EMBED
   ========================================= */
.cs-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: #000;
}

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