/* Variables */
:root {
    --primary-color: #ff6b9d;
    --secondary-color: #c44569;
    --accent-color: #ffeaa7;
    --bg-gradient-start: #ffeef8;
    --bg-gradient-end: #fff5f9;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --white: #ffffff;
    --shadow: rgba(255, 107, 157, 0.2);
    --timeline-line: #ffd1dc;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: relative;
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    color: var(--white);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    animation: fadeInUp 1s ease-out 0.3s both;
    opacity: 0.95;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    opacity: 0.8;
}

/* Timeline Container */
.timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
}

/* Timeline - Mobile First (Vertical) */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--timeline-line);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.6s ease-out forwards;
}

.timeline-item:nth-child(even) {
    transform: translateX(30px);
    animation: slideInRight 0.6s ease-out forwards;
}

.timeline-dot {
    position: absolute;
    left: -32px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--bg-gradient-start);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px var(--bg-gradient-start), 0 0 20px var(--shadow);
}

.timeline-dot.pulse {
    animation: pulse 2s infinite;
}

.timeline-content {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.timeline-date {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(255, 107, 157, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.timeline-content h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Highlights */
.timeline-item.highlight .timeline-content {
    background: linear-gradient(135deg, #fff5f9 0%, #ffffff 100%);
    border: 2px solid var(--primary-color);
}

.timeline-item.challenge .timeline-content {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border: 2px solid #74b9ff;
}

.timeline-item.challenge .timeline-dot {
    border-color: #74b9ff;
}

.timeline-item.current .timeline-content {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border: none;
}

.timeline-item.current .timeline-content h2,
.timeline-item.current .timeline-content p,
.timeline-item.current .timeline-date {
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.stat {
    text-align: center;
    padding: 15px;
    background: rgba(255, 107, 157, 0.05);
    border-radius: 10px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* Media Placeholders */
.media-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.media-placeholder:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #fff5f9 0%, #ffe9f0 100%);
}

.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

/* Timeline Divider */
.timeline-divider {
    text-align: center;
    margin: 60px 0;
    position: relative;
}

.timeline-divider span {
    display: inline-block;
    background: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: 0 5px 20px var(--shadow);
    font-size: 1.1rem;
}

/* Future Items */
.timeline-item.future .timeline-content {
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
    border: 2px dashed var(--accent-color);
    position: relative;
    overflow: hidden;
}

.timeline-item.future.locked .timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(2px);
    z-index: 0;
}

.timeline-item.future .timeline-content > * {
    position: relative;
    z-index: 1;
}

.timeline-item.future .timeline-dot {
    border-color: var(--accent-color);
    background: #ffd700;
}

.teaser {
    font-style: italic;
    color: var(--text-light);
}

.locked-badge {
    display: inline-block;
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 10px;
    font-size: 0.9rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    background: var(--white);
    margin-top: 60px;
}

footer p {
    margin: 5px 0;
    color: var(--text-light);
}

.footer-date {
    font-weight: 600;
    color: var(--primary-color);
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 157, 0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(255, 107, 157, 0);
    }
}

/* Tablet & Desktop */
@media (min-width: 768px) {
    .timeline {
        padding-left: 0;
    }

    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-item {
        width: 50%;
        padding-right: 40px;
        margin-bottom: 80px;
    }

    .timeline-item:nth-child(even) {
        margin-left: 50%;
        padding-right: 0;
        padding-left: 40px;
    }

    .timeline-dot {
        left: auto;
        right: -10px;
    }

    .timeline-item:nth-child(even) .timeline-dot {
        right: auto;
        left: -10px;
    }

    .timeline-content::before {
        content: '';
        position: absolute;
        top: 20px;
        right: -15px;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 10px 0 10px 15px;
        border-color: transparent transparent transparent var(--white);
    }

    .timeline-item:nth-child(even) .timeline-content::before {
        right: auto;
        left: -15px;
        border-width: 10px 15px 10px 0;
        border-color: transparent var(--white) transparent transparent;
    }

    .timeline-item.highlight .timeline-content::before {
        border-left-color: var(--primary-color);
    }

    .timeline-item:nth-child(even).highlight .timeline-content::before {
        border-right-color: var(--primary-color);
        border-left-color: transparent;
    }

    .timeline-divider {
        width: 100%;
        clear: both;
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .timeline-content h2 {
        font-size: 1.8rem;
    }

    .timeline-content p {
        font-size: 1.05rem;
    }

    .media-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading state */
.timeline-item {
    will-change: transform, opacity;
}

/* Print styles */
@media print {
    .hero {
        height: auto;
        padding: 40px 20px;
    }

    .scroll-indicator {
        display: none;
    }

    .timeline-item {
        page-break-inside: avoid;
    }
}
