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

html {
    scroll-behavior: smooth;
}

:root {
    /* Light theme (default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f0f1f3;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --accent-dark: #1a1a1a;
    --accent-tech: #2d2d2d;
    --accent-gradient: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --card-bg: #ffffff;
    --video-bg: linear-gradient(135deg, rgba(45, 45, 45, 0.06) 0%, rgba(26, 26, 26, 0.04) 100%);
    --video-border: rgba(45, 45, 45, 0.15);
    --quote-bg: linear-gradient(135deg, rgba(45, 45, 45, 0.06) 0%, rgba(26, 26, 26, 0.04) 100%);
    --quote-border: #2d2d2d;
}

[data-theme="dark"] {
    /* Dark theme */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --accent-dark: #e5e5e5;
    --accent-tech: #b0b0b0;
    --accent-gradient: linear-gradient(135deg, #b0b0b0 0%, #e5e5e5 100%);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --card-bg: rgba(255, 255, 255, 0.03);
    --video-bg: linear-gradient(135deg, rgba(176, 176, 176, 0.08) 0%, rgba(229, 229, 229, 0.04) 100%);
    --video-border: rgba(255, 255, 255, 0.15);
    --quote-bg: linear-gradient(135deg, rgba(176, 176, 176, 0.08) 0%, rgba(229, 229, 229, 0.04) 100%);
    --quote-border: #b0b0b0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', -apple-system, sans-serif;
    line-height: 1.7;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 17px;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
}

[data-theme="dark"] .nav {
    background: rgba(10, 10, 10, 0.9);
}

.nav.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-content {
    max-width: 100%;
    margin: 0;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-weight: 700;
    font-size: 20px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(45, 45, 45, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .hero::before {
    background: radial-gradient(circle, rgba(176, 176, 176, 0.06) 0%, transparent 70%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(26, 26, 26, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .hero::after {
    background: radial-gradient(circle, rgba(229, 229, 229, 0.04) 0%, transparent 70%);
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
    margin-top: 40px;
}

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


.hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

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

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-description strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    background: var(--accent-gradient);
    color: white;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .cta-button {
    background: linear-gradient(135deg, #4a4a4a 0%, #5a5a5a 100%);
}

[data-theme="dark"] .cta-button:hover {
    background: linear-gradient(135deg, #5a5a5a 0%, #6a6a6a 100%);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

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

/* Hero Video */
.hero-video-container {
    margin-top: 60px;
    max-width: 1000px;
    width: 100%;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.3s forwards;
}

.hero-video-container .enhanced-video {
    width: 100%;
}

.hero-video-container .video-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-video {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .hero-video-container {
        margin-top: 40px;
    }

    .hero-video-container .video-wrapper {
        border-radius: 12px;
    }
}

/* Section */

/* Quick Navigation */
.quick-nav {
    position: fixed;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
    z-index: 100;
}

.quick-nav-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-size: 14px;
}

.quick-nav-link:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.quick-nav-link.active {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
}

[data-theme="dark"] .quick-nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid rgba(255, 255, 255, 0.6);
    padding-left: 13px;
}

[data-theme="dark"] .quick-nav-link.active .quick-nav-number {
    opacity: 1;
    color: rgba(255, 255, 255, 0.8);
}

.quick-nav-number {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.5;
    min-width: 20px;
}

.quick-nav-text {
    font-size: 14px;
    font-weight: 500;
}

.section {
    padding: 100px 24px;
    max-width: 900px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-tech);
    margin-bottom: 16px;
}

.section h2 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.section h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    margin-top: 32px;
}

.section p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Content Card */
.content-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.content-card:hover {
    box-shadow: var(--shadow-sm);
}

/* Video Placeholder */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

/* Media Container */
.media-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.media-container:hover {
    box-shadow: var(--shadow-md);
}

.media-container img,
.media-container video {
    width: 100%;
    height: auto;
    display: block;
}

.media-caption {
    padding: 16px 20px;
    background: var(--bg-secondary);
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Video Placeholder */
.video-placeholder {
    aspect-ratio: 16/9;
    background: var(--video-bg);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--video-border);
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    border-color: var(--accent-tech);
}

.video-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.video-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.video-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Numbered Sections */
.numbered-section {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    margin: 60px 0;
}

.section-number {
    font-size: 72px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.section-content {
    padding-top: 8px;
}

/* Quote */
.quote-box {
    background: var(--quote-bg);
    border-left: 4px solid var(--quote-border);
    padding: 32px;
    border-radius: 0 16px 16px 0;
    margin: 32px 0;
}

.quote-text {
    font-size: 20px;
    font-weight: 500;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Possibilities Grid */
.possibilities-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin: 40px 0;
}

.possibility-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: start;
}

.possibility-number {
    width: 56px;
    height: 56px;
    background: var(--accent-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.possibility-content {
    flex: 1;
}

.possibility-content h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.possibility-emoji {
    font-size: 28px;
}

.possibility-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.possibility-note {
    background: var(--bg-secondary);
    border-radius: 0 16px 16px 0;
    padding: 16px 20px;
    font-size: 15px;
    color: var(--text-secondary);
    border-left: 3px solid var(--accent-tech);
    margin-bottom: 20px;
}

/* Enhanced Video Container */
.enhanced-video {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.enhanced-video:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-tech);
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}

.video-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 30%);
    pointer-events: none;
}

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

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}

.video-play-button.hidden {
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.video-play-button:hover {
    background: white;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.3);
}

.video-play-button svg {
    width: 18px;
    height: 18px;
    fill: var(--accent-tech);
    margin-left: 2px;
    transition: transform 0.2s ease;
}

.video-play-button.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-caption {
    padding: 14px 20px;
    background: var(--bg-secondary);
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Video Grid */
.video-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.video-showcase.three-videos {
    grid-template-columns: repeat(3, 1fr);
}

.video-showcase.four-videos {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.video-showcase.single-video {
    display: flex;
    justify-content: center;
}

.video-showcase.single-video .enhanced-video {
    max-width: 600px;
    width: 100%;
}



/* Scroll animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Responsive */
@media (max-width: 768px) {
    .quick-nav {
        display: none;
    }

    .section {
        padding: 60px 24px;
    }

    .hero {
        padding: 100px 24px 60px;
    }

    .numbered-section {
        grid-template-columns: 1fr;
    }

    .section-number {
        font-size: 48px;
    }

    .content-card {
        padding: 24px;
    }

    .possibility-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .possibility-number {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .possibility-content h4 {
        font-size: 18px;
    }

    .video-showcase {
        grid-template-columns: 1fr !important;
    }

    .video-showcase.half-width {
        max-width: 100%;
    }

    .video-showcase.four-videos {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .video-showcase.four-videos {
        grid-template-columns: 1fr !important;
    }
}

/* Floating Theme Toggle Button */
.theme-toggle-floating {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-toggle-floating:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.theme-toggle-floating:active {
    transform: scale(0.95);
}
