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

:root {
    --primary-color: #0f172a;
    --accent-color: #3b82f6;
    --text-dark: #0f172a;
    --text-medium: #475569;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    font-size: 18px;
    overflow-x: hidden;
}

/* Story Sections */
.story-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 30px;
    overflow: hidden;
}

/* Theme Variations */
.story-section[data-theme="dark"] {
    background-color: var(--primary-color);
    color: white;
}

.story-section[data-theme="light"] {
    background-color: var(--bg-white);
    color: var(--text-dark);
}

.story-section[data-theme="accent"] {
    background-color: #1e293b;
    color: white;
}

.story-section[data-theme="personal"] {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

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

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.story-section[data-theme="dark"] .bg-video {
    opacity: 0.3;
}

/* Video Placeholders */
.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.video-placeholder.inline {
    position: relative;
    min-height: 400px;
}

.video-placeholder.small {
    position: relative;
    min-height: 300px;
}

.placeholder-text {
    color: white;
    font-size: 1.2rem;
    text-align: center;
    font-weight: 300;
    max-width: 600px;
    line-height: 1.6;
}

/* Hide video element when placeholder is shown */
video:not([src]) + .video-placeholder {
    display: flex;
}

/* Content Overlays */
.content-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.content-center {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Typography */
.large-text {
    font-size: 3rem;
    line-height: 1.3;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 30px;
}

.emphasis-text {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.03em;
    margin-bottom: 40px;
}

.emphasis-text.large {
    font-size: 4rem;
}

.closing-text {
    font-size: 2.5rem;
    line-height: 1.4;
    font-weight: 300;
    margin-bottom: 20px;
    color: var(--text-medium);
}

.story-section[data-theme="accent"] .closing-text {
    color: rgba(255, 255, 255, 0.8);
}

h2 {
    font-size: 2.5rem;
    line-height: 1.3;
    font-weight: 400;
    margin-bottom: 30px;
}

h3 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 20px;
}

.body-text {
    font-size: 1.3rem;
    line-height: 1.7;
    margin-bottom: 20px;
    opacity: 0.95;
}

.body-text.large {
    font-size: 1.6rem;
    line-height: 1.6;
}

/* Text Content */
.text-content {
    max-width: 800px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
}

.story-section[data-theme="light"] .text-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Work Examples */
.work-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
    justify-content: center;
}

.tag {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Comparisons */
.comparisons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.comparison-item {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    background-color: var(--bg-light);
    transition: transform 0.3s ease;
}

.comparison-item:hover {
    transform: translateY(-5px);
}

.comparison-item.highlight {
    background-color: var(--accent-color);
    color: white;
    transform: scale(1.05);
}

.year {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.comparison-item.highlight .year {
    color: white;
}

.tech {
    font-size: 1.2rem;
    font-weight: 300;
}

/* Split Content */
.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.video-half {
    position: relative;
}

.inline-video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px -10px rgb(0 0 0 / 0.3);
}

.text-half {
    padding: 40px;
}

/* Personal Section */
.personal-intro {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.video-container-small {
    flex: 0 0 400px;
    position: relative;
}

.video-container-small video {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px -10px rgb(0 0 0 / 0.3);
}

.personal-text {
    flex: 1;
}

/* Contact Section */
.contact-section {
    min-height: 80vh;
}

.contact-intro-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 20px;
    margin-bottom: 40px;
    font-weight: 300;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 35px 25px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.contact-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.contact-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.contact-value {
    font-size: 1.2rem;
    color: white;
    font-weight: 300;
}

/* Footer */
footer {
    background-color: #000;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .large-text {
        font-size: 2.5rem;
    }

    .emphasis-text {
        font-size: 3rem;
    }

    .emphasis-text.large {
        font-size: 3.5rem;
    }

    .split-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .personal-intro {
        flex-direction: column;
        gap: 40px;
    }

    .video-container-small {
        flex: 0 0 auto;
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .story-section {
        padding: 40px 20px;
    }

    .large-text {
        font-size: 2rem;
    }

    .emphasis-text {
        font-size: 2.5rem;
    }

    .emphasis-text.large {
        font-size: 3rem;
    }

    .closing-text {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .body-text {
        font-size: 1.1rem;
    }

    .body-text.large {
        font-size: 1.3rem;
    }

    .text-content {
        padding: 30px 20px;
    }

    .comparisons {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .comparison-item.highlight {
        transform: scale(1);
    }

    .year {
        font-size: 2.5rem;
    }

    .tech {
        font-size: 1.1rem;
    }

    .contact-methods {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .work-examples {
        gap: 10px;
    }

    .tag {
        padding: 10px 18px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .large-text {
        font-size: 1.6rem;
    }

    .emphasis-text {
        font-size: 2rem;
    }

    .emphasis-text.large {
        font-size: 2.5rem;
    }

    .closing-text {
        font-size: 1.5rem;
    }

    .video-placeholder.inline {
        min-height: 250px;
    }

    .video-placeholder.small {
        min-height: 200px;
    }

    .placeholder-text {
        font-size: 1rem;
    }
}
