/* turingtest.quest - Mid-century zen contemplative timeline */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #f5f0e8 (warm off-white), #e8b84b (accent gold), #6c757d (muted gray) */
/* Fonts: Space Grotesk, Inter */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f0e8;
    color: #1a1a2e;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== Floating Question Marks ===== */
.floating-questions {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.float-q {
    position: absolute;
    font-family: 'Space Grotesk', sans-serif;
    color: #e8b84b;
    opacity: 0.08;
    font-weight: 300;
    animation: floatUp linear infinite;
}

#fq1 { font-size: 48px; left: 5%; animation-duration: 18s; animation-delay: 0s; }
#fq2 { font-size: 32px; left: 15%; animation-duration: 22s; animation-delay: -3s; }
#fq3 { font-size: 64px; left: 30%; animation-duration: 25s; animation-delay: -8s; }
#fq4 { font-size: 28px; left: 50%; animation-duration: 20s; animation-delay: -5s; }
#fq5 { font-size: 40px; left: 65%; animation-duration: 23s; animation-delay: -12s; }
#fq6 { font-size: 56px; left: 78%; animation-duration: 19s; animation-delay: -2s; }
#fq7 { font-size: 36px; left: 88%; animation-duration: 26s; animation-delay: -15s; }
#fq8 { font-size: 44px; left: 42%; animation-duration: 21s; animation-delay: -9s; }

@keyframes floatUp {
    0% {
        transform: translateY(110vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.08;
    }
    90% {
        opacity: 0.08;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

/* ===== Bokeh Overlay ===== */
.bokeh-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bokeh-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.06;
    animation: bokehDrift ease-in-out infinite;
}

#bokeh1 { width: 300px; height: 300px; background: #4a90d9; top: 10%; left: -5%; animation-duration: 30s; }
#bokeh2 { width: 200px; height: 200px; background: #e8b84b; top: 30%; right: -3%; animation-duration: 25s; animation-delay: -5s; }
#bokeh3 { width: 250px; height: 250px; background: #4a90d9; bottom: 20%; left: 20%; animation-duration: 35s; animation-delay: -10s; }
#bokeh4 { width: 180px; height: 180px; background: #e8b84b; top: 60%; right: 15%; animation-duration: 28s; animation-delay: -8s; }
#bokeh5 { width: 220px; height: 220px; background: #4a90d9; bottom: 5%; right: 30%; animation-duration: 32s; animation-delay: -15s; }
#bokeh6 { width: 160px; height: 160px; background: #e8b84b; top: 5%; left: 40%; animation-duration: 27s; animation-delay: -3s; }
#bokeh7 { width: 280px; height: 280px; background: #4a90d9; top: 45%; left: 50%; animation-duration: 33s; animation-delay: -20s; }

@keyframes bokehDrift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -20px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 30px) scale(0.95);
    }
    75% {
        transform: translate(15px, 15px) scale(1.05);
    }
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, #f5f0e8 0%, #ede5d5 100%);
    z-index: 2;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(26, 26, 46, 0.04) 100%);
    pointer-events: none;
}

.sepia-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(139, 119, 80, 0.08) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 24px;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.3s;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.6s;
}

.hero-tagline {
    font-family: 'Inter', sans-serif;
    font-size: clamp(16px, 2.5vw, 22px);
    font-weight: 300;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto 16px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.9s;
}

.hero-year {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #e8b84b;
    letter-spacing: 6px;
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.2s;
}

.scroll-indicator {
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.5s;
}

.scroll-text {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #6c757d;
    display: block;
    margin-bottom: 12px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid #e8b84b;
    border-bottom: 2px solid #e8b84b;
    transform: rotate(45deg);
    margin: 0 auto;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(8px); }
}

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

/* ===== Timeline Section ===== */
.timeline-section {
    position: relative;
    z-index: 2;
    padding: 120px 24px;
    min-height: 100vh;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #e8b84b 5%, #e8b84b 95%, transparent);
    transform: translateX(-50%);
}

/* ===== Timeline Items ===== */
.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px 80px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.left {
    left: 0;
    text-align: right;
    padding-right: 60px;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
    padding-left: 60px;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #e8b84b;
    border-radius: 50%;
    border: 3px solid #f5f0e8;
    z-index: 3;
    top: 8px;
    box-shadow: 0 0 0 3px #e8b84b;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item.left .timeline-dot {
    right: -8px;
}

.timeline-item.right .timeline-dot {
    left: -8px;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    box-shadow: 0 0 0 5px rgba(232, 184, 75, 0.3);
}

.dot-present {
    background: #4a90d9;
    box-shadow: 0 0 0 3px #4a90d9;
    animation: pulsePresent 2s ease-in-out infinite;
}

@keyframes pulsePresent {
    0%, 100% { box-shadow: 0 0 0 3px #4a90d9; }
    50% { box-shadow: 0 0 0 8px rgba(74, 144, 217, 0.2); }
}

/* ===== Timeline Cards ===== */
.timeline-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(26, 26, 46, 0.06);
    border: 1px solid rgba(232, 184, 75, 0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: default;
}

.timeline-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 40px rgba(26, 26, 46, 0.1);
}

.card-present {
    border-color: rgba(74, 144, 217, 0.25);
    background: rgba(255, 255, 255, 0.85);
}

.card-year {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 4px;
    color: #e8b84b;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.card-present .card-year {
    color: #4a90d9;
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 12px;
    line-height: 1.2;
}

.card-text {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 20px;
}

.card-sepia-img {
    border-radius: 8px;
    overflow: hidden;
    filter: sepia(0.3) saturate(0.8);
    transition: filter 0.5s ease;
}

.timeline-card:hover .card-sepia-img {
    filter: sepia(0) saturate(1);
}

.card-illustration {
    width: 100%;
    height: auto;
    display: block;
    background: rgba(245, 240, 232, 0.5);
}

/* ===== Zoom Focus Effect ===== */
.timeline-item.zoom-active .timeline-card {
    transform: scale(1.05);
    box-shadow: 0 12px 48px rgba(26, 26, 46, 0.15);
}

.timeline-item.zoom-active .card-sepia-img {
    filter: sepia(0) saturate(1.1);
}

/* ===== Reflection Section ===== */
.reflection-section {
    position: relative;
    z-index: 2;
    padding: 160px 24px;
    text-align: center;
    background: linear-gradient(180deg, #f5f0e8 0%, #ede5d5 50%, #f5f0e8 100%);
}

.reflection-content {
    max-width: 700px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.reflection-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.reflection-quote {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 300;
    color: #1a1a2e;
    line-height: 1.5;
    border: none;
    padding: 0;
    margin: 0 0 32px;
    position: relative;
}

.reflection-quote::before {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: #e8b84b;
    margin: 0 auto 40px;
}

.reflection-cite {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #6c757d;
    letter-spacing: 2px;
    font-style: normal;
}

/* ===== Footer ===== */
.site-footer {
    position: relative;
    z-index: 2;
    padding: 60px 24px;
    text-align: center;
    background: #1a1a2e;
}

.footer-domain {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #e8b84b;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.footer-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: #6c757d;
    letter-spacing: 1px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding: 0 0 60px 50px;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
        text-align: left;
        padding-left: 50px;
        padding-right: 16px;
    }

    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 12px;
        right: auto;
    }

    .timeline-card {
        padding: 24px;
    }

    .card-title {
        font-size: 20px;
    }

    .card-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-subtitle {
        font-size: 11px;
        letter-spacing: 3px;
    }

    .timeline-card {
        padding: 20px;
    }

    .reflection-section {
        padding: 100px 24px;
    }
}