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

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

header h1 {
    font-size: 3rem;
    color: #34495e;
    margin-bottom: 1rem;
    font-weight: 300;
}

header p {
    font-size: 1.2rem;
    color: #7f8c8d;
    font-style: italic;
}

.timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #3498db, #e74c3c);
    border-radius: 2px;
    z-index: 1;
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding: 2rem 0;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease forwards;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
}

.timeline-item:nth-child(2) { animation-delay: 0.1s; }
.timeline-item:nth-child(3) { animation-delay: 0.2s; }
.timeline-item:nth-child(4) { animation-delay: 0.3s; }
.timeline-item:nth-child(5) { animation-delay: 0.4s; }
.timeline-item:nth-child(6) { animation-delay: 0.5s; }
.timeline-item:nth-child(7) { animation-delay: 0.6s; }
.timeline-item:nth-child(8) { animation-delay: 0.7s; }

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

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #fff;
    border: 4px solid #3498db;
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    width: 30px;
    height: 30px;
    border-color: #e74c3c;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.5);
}

.timeline-content {
    width: 45%;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 0;
    height: 0;
    border: 15px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -30px;
    border-left-color: rgba(255, 255, 255, 0.95);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -30px;
    border-right-color: rgba(255, 255, 255, 0.95);
}

.timeline-content:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.timeline-content h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.timeline-content p {
    color: #5d6d7e;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.timeline-date {
    display: inline-block;
    background: linear-gradient(135deg, #3498db, #e74c3c);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    position: absolute;
    bottom: -10px;
    right: 20px;
}

.explore-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(52, 152, 219, 0.3);
}

.explore-link:hover {
    background: rgba(52, 152, 219, 0.2);
    border-color: #3498db;
    transform: translateX(5px);
}

/* Search input responsive styles */
.search-input {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 15px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    width: 200px;
    transition: all 0.3s ease;
    z-index: 1000;
}

@media (max-width: 768px) {
    .search-input {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        margin: 1rem auto !important;
        display: block;
        width: calc(100% - 2rem) !important;
        max-width: 300px;
        z-index: 10;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    header {
        padding: 2rem 1rem;
        margin-bottom: 1rem;
    }
    
    header h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    header p {
        font-size: 1rem;
        line-height: 1.4;
        max-width: 90%;
        margin: 0 auto;
    }
    
    .timeline-container {
        padding: 1rem;
    }
    
    .timeline-line {
        left: 30px;
    }
    
    .timeline-item {
        justify-content: flex-start !important;
        padding-left: 60px;
    }
    
    .timeline-marker {
        left: 30px;
    }
    
    .timeline-content {
        width: 100%;
    }
    
    .timeline-content::before {
        left: -30px !important;
        right: auto !important;
        border-right-color: rgba(255, 255, 255, 0.95) !important;
        border-left-color: transparent !important;
    }
    
    .timeline-date {
        position: static;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1.5rem 0.75rem;
        margin-bottom: 1rem;
    }
    
    header h1 {
        font-size: 1.8rem;
        line-height: 1.1;
        margin-bottom: 0.75rem;
    }
    
    header p {
        font-size: 0.9rem;
        line-height: 1.3;
        max-width: 95%;
        margin: 0 auto;
    }
    
    .timeline-container {
        padding: 0.5rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .timeline-content h3 {
        font-size: 1.3rem;
    }
}