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

:root {
    /* Snapchat Yellow Color Palette */
    --primary-yellow: #FFFC00;
    --secondary-yellow: #FFF700;
    --light-yellow: #FFED4E;
    --pale-yellow: #FFFACD;
    --yellow-gradient: linear-gradient(135deg, #FFFC00 0%, #FFF700 100%);
    
    /* Dark Colors */
    --dark-primary: #212121;
    --dark-secondary: #424242;
    --dark-tertiary: #616161;
    
    /* Light Colors */
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --container-padding: 0 2rem;
    --max-width: 1200px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-primary);
    background-color: var(--white);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

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

/* Video Landing Page */
.video-landing {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFACD 50%, #FFFFFF 100%);
}

.video-landing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(247, 224, 24, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.landing-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: var(--white);
    text-align: center;
}



.landing-title {
    color: var(--white);
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    max-width: 1000px;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--primary-yellow);
    opacity: 0;
    animation: fadeInBlink 1s ease-in-out 4s forwards;
    cursor: pointer;
    transition: var(--transition);
}

.scroll-indicator:hover {
    transform: translateX(-50%) scale(1.1);
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border: 2px solid var(--primary-yellow);
    border-left: none;
    border-top: none;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

.scroll-text {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    color: var(--primary-yellow);
}

@keyframes fadeInBlink {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--medium-gray);
    z-index: 1000;
    transition: var(--transition);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-primary);
}

.logo img {
    filter: brightness(0);
}

.logo span {
    color: var(--dark-primary);
}

.nav-right {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-secondary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

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

/* Hero Section */
.hero {
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFACD 50%, #FFFFFF 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(247, 224, 24, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.3;
    background: linear-gradient(135deg, var(--dark-primary) 0%, var(--dark-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.authors {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.author {
    color: var(--dark-secondary);
    font-weight: 400;
    position: relative;
}

.author:not(:last-child)::after {
    content: '•';
    margin-left: 1rem;
    color: var(--primary-yellow);
}

.institution {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--dark-secondary);
    font-weight: 500;
}

.institution-logo {
    display: flex;
    align-items: center;
}

.institution-logo img {
    filter: brightness(0);
}

.conference {
    display: inline-block;
    background: var(--yellow-gradient);
    color: var(--dark-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(247, 224, 24, 0.25);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--yellow-gradient);
    color: var(--dark-primary);
    box-shadow: 0 4px 15px rgba(247, 224, 24, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 224, 24, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--dark-primary);
    border: 2px solid var(--primary-yellow);
}

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

.btn-tertiary {
    background: var(--dark-primary);
    color: var(--white);
}

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

.hero-teaser {
    width: 100%;
    margin: 1rem auto 0;
    padding: 2rem;
    text-align: center;
}

.teaser-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    background-color: white;
}

/* Section Styles */
.section {
    padding: var(--section-padding);
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--dark-primary) 0%, var(--dark-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--dark-secondary);
    width: 100%;
    margin: 0 auto;
}

/* Highlight styling for TL;DR */
.highlight {
    background: linear-gradient(120deg, var(--light-yellow) 0%, var(--pale-yellow) 100%);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    color: var(--dark-primary);
    font-weight: 500;
    border: 1px solid rgba(247, 224, 24, 0.2);
}

/* TL;DR Section */
.tldr-section {
    background: var(--light-gray);
    padding-bottom: 3rem;
}

/* ComposeMe Section */
.composeme-section {
    background: var(--white);
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.composeme-section h2 {
    color: var(--primary-yellow);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.composeme-video-container {
    width: 100%;
    margin: 3rem auto;
    padding: 2rem;
    text-align: center;
}

.composeme-video {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: white;
    padding: 1rem;
    margin-top: 2rem;
}

/* Concepts Section */
.concepts-section {
    background: var(--light-gray);
    padding-bottom: 3rem;
}

.concepts-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.concept-description {
    text-align: center;
    font-size: 1.2rem;
    color: var(--dark-secondary);
    width: 100%;
    margin: 0 auto 4rem;
}

.concepts-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

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

.concept-visual {
    width: 200px;
    height: 200px;
    border-radius: 15px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.static-concept {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--medium-gray) 100%);
}

.dynamic-concept {
    background: linear-gradient(135deg, var(--pale-yellow) 0%, var(--light-yellow) 100%);
}

.concept-placeholder {
    font-weight: 600;
    color: var(--dark-primary);
}

.animated {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.vs-divider {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-yellow);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Framework Section */
.framework-section {
    background: var(--pale-yellow);
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.framework-section h2 + p {
    margin-top: 1rem;
}

.framework-explanation {
    width: 100%;
    margin: 2rem auto;
    text-align: center;
    padding: 0 2rem;
}

.framework-explanation p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.components {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.component {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-yellow);
}

.framework-diagram {
    max-width: 600px;
    margin: 3rem auto 0;
}

.diagram-placeholder {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
    height: 300px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--dark-secondary);
    border: 2px dashed var(--light-yellow);
}

/* How It Works */
.how-it-works {
    background: var(--light-gray);
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin: 3rem 0;
}

.step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--yellow-gradient);
    color: var(--dark-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(247, 224, 24, 0.25);
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-primary);
}

.step-content p {
    color: var(--dark-secondary);
    line-height: 1.6;
}

.pipeline-diagram {
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.pipeline-image,
.pipeline-video {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    padding: 1rem;
    background-color: white;
}

.process-diagram {
    max-width: 800px;
    margin: 0 auto;
}

/* Training Strategy Section */
.training-strategy {
    background: var(--white);
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.training-diagram {
    width: 100%;
    padding: 2rem;
    text-align: center;
}

.training-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0;
    padding: 1rem;
    background-color: white;
}

.training-stages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin: 3rem 0;
}

.training-stage {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.stage-number {
    width: 60px;
    height: 60px;
    background: var(--yellow-gradient);
    color: var(--dark-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(247, 224, 24, 0.25);
}

.stage-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-primary);
}

.stage-content p {
    color: var(--dark-secondary);
    line-height: 1.6;
}

/* Stage 1 - Blue styling */
.training-stage:nth-child(1) .stage-number {
    background: #007bff;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.25);
}

.training-stage:nth-child(1) .stage-content h3 {
    color: #007bff;
}

/* Stage 2 - Orange styling */
.training-stage:nth-child(2) .stage-number {
    background: #ff6b35;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.25);
}

.training-stage:nth-child(2) .stage-content h3 {
    color: #ff6b35;
}

/* Results Section */
.results-section {
    background: var(--light-gray);
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.results-navigation {
    text-align: center;
    margin-bottom: 3rem;
}

.nav-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--medium-gray);
    cursor: pointer;
    transition: var(--transition);
}

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

.dot:hover {
    background: var(--light-yellow);
}

.results-carousel {
    overflow: hidden;
    border-radius: 15px;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    padding: 2rem;
    background: var(--white);
}

.slide h3 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--dark-primary);
}

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

.video-item {
    background: var(--light-gray);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.video-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--medium-gray) 0%, var(--light-gray) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--dark-secondary);
}

.video-actions {
    padding: 1.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-btn {
    background: var(--pale-yellow);
    color: var(--dark-primary);
    border: 1px solid var(--light-yellow);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--light-yellow);
    transform: translateY(-1px);
}

/* Gallery Section */
.gallery-section {
    background: var(--white);
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.gallery-diagram {
    width: 100%;
    padding: 2rem;
    text-align: center;
}

.gallery-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    background-color: white;
    margin-top: 2rem;
}

/* Experiments Section */
.experiments-section {
    background: var(--light-gray);
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Ablation Section */
.ablation-section {
    background: var(--white);
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.experiment-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.experiment-tab {
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--medium-gray);
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark-secondary);
    font-size: 0.95rem;
}

.experiment-tab.active {
    background: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: var(--dark-primary);
    box-shadow: 0 4px 15px rgba(247, 224, 24, 0.25);
}

.experiment-tab:hover:not(.active) {
    border-color: var(--light-yellow);
    background: var(--pale-yellow);
}



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

.experiment-item {
    background: var(--light-gray);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.experiment-carousel {
    position: relative;
    overflow: hidden;
    margin: 3rem 0;
}

.experiment-slide {
    display: none;
    text-align: center;
}

.experiment-slide.active {
    display: block;
}

.experiment-slide h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--dark-primary);
}

.experiment-diagram {
    width: 100%;
    text-align: center;
}

.experiment-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    background-color: white;
    margin-top: 2rem;
}

.experiment-indicators {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--medium-gray);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--accent-yellow);
    transform: scale(1.2);
}

.experiment-placeholder {
    height: 400px;
    background: linear-gradient(135deg, var(--medium-gray) 0%, var(--light-gray) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--dark-secondary);
    border-radius: 15px;
    margin: 2rem auto;
    width: 100%;
}

/* Ablation Section */
.ablation-section {
    background: var(--white);
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.ablation-diagram {
    width: 100%;
    padding: 2rem;
    text-align: center;
}

.ablation-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    background-color: white;
    margin-top: 2rem;
}

/* Acknowledgements Section */
.acknowledgements-section {
    background: var(--pale-yellow);
    text-align: center;
    padding-bottom: 3rem;
}

.acknowledgements-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--dark-primary) 0%, var(--dark-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.acknowledgements-section p {
    font-size: 1.2rem;
    color: var(--dark-secondary);
    width: 100%;
    margin: 0 auto 3rem;
}

.citation-section {
    max-width: 800px;
    margin: 0 auto;
}

.citation-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-primary);
}

.citation-box {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: left;
    border-left: 4px solid var(--primary-yellow);
}

.citation-box pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.citation-box code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--dark-primary);
}

/* Footer */
.footer {
    background: #000000;
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    justify-content: center;
}

.footer-logo img {
    filter: brightness(0) invert(1);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
        --container-padding: 0 1rem;
    }
    
    /* Ensure body has no constraints for video */
    body {
        max-width: none;
        overflow-x: hidden;
    }
    
    .nav {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-right {
        gap: 1rem;
    }
    
    .hero {
        padding: 8rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-top: 2rem;
    }
    
    .authors {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .author:not(:last-child)::after {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* Mobile Image Layouts - Full width */
    .hero-teaser,
    .composeme-video-container,
    .pipeline-diagram,
    .training-diagram,
    .gallery-diagram,
    .experiment-diagram,
    .ablation-diagram {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding: 1rem;
    }
    
    .teaser-image,
    .composeme-video,
    .pipeline-image,
    .pipeline-video,
    .training-image,
    .gallery-image,
    .experiment-image,
    .ablation-image {
        width: 100%;
        padding: 0.5rem;
    }
    
    .concepts-comparison {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .vs-divider {
        order: 2;
    }
    
    .concept-visual {
        width: 150px;
        height: 150px;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .experiment-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .experiment-tab {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Video Landing Mobile */
    .landing-title {
        font-size: clamp(3rem, 15vw, 5rem);
        margin-bottom: 2rem;
    }
    
    .scroll-indicator {
        bottom: 2rem;
    }
    
    .video-overlay {
        padding: 1rem;
    }
    
    /* Fix video cropping on mobile */
    .video-landing {
        height: 100vh;
        min-height: 600px;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        position: relative;
        background: linear-gradient(135deg, #FFFFFF 0%, #FFFACD 50%, #FFFFFF 100%);
    }
    
    .video-landing::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 50%, rgba(247, 224, 24, 0.08) 0%, transparent 50%);
        pointer-events: none;
        z-index: 0;
    }
    
    .video-container {
        width: 100%;
        height: 100%;
        position: relative;
        overflow: hidden;
        background: transparent;
        z-index: 1;
    }
    
    .landing-video {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 2;
    }
    
    .video-overlay {
        position: relative;
        z-index: 10;
    }
}

@media (max-width: 480px) {
    /* Ensure body has no constraints for video */
    body {
        max-width: none;
        overflow-x: hidden;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 0.5rem 1.0rem;
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .concept-visual {
        width: 120px;
        height: 120px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Fix landing video on very small mobile */
    .video-landing {
        height: 100vh;
        min-height: 500px;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        position: relative;
        background: linear-gradient(135deg, #FFFFFF 0%, #FFFACD 50%, #FFFFFF 100%);
    }
    
    .video-landing::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 50%, rgba(247, 224, 24, 0.08) 0%, transparent 50%);
        pointer-events: none;
        z-index: 0;
    }
    
    .video-container {
        width: 100%;
        height: 100%;
        position: relative;
        overflow: hidden;
        background: transparent;
        z-index: 1;
    }
    
    .landing-video {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 2;
    }
    
    .video-overlay {
        position: relative;
        z-index: 10;
    }
    
    .landing-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }
}
