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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #e74c3c;
}

/* Hero Section */
.journey-hero {
    margin-top: 80px;
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.journey-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.journey-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Journey Grid Section */
.journey-grid-section {
    padding: 80px 0;
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.journey-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 450px;
    display: flex;
    flex-direction: column;
}

.journey-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.journey-card-image {
    height: 200px;
    overflow: hidden;
}

.journey-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.journey-card:hover .journey-card-image img {
    transform: scale(1.05);
}

.journey-card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.journey-card-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.journey-card-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.journey-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.stat {
    background: #f8f9fa;
    color: #495057;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Timeline Section */
.detailed-timeline {
    padding: 80px 0;
    background: #f8f9fa;
}

.timeline-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 50px;
}

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

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e74c3c;
    transform: translateX(-50%);
}

.timeline-event {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.timeline-event:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-date {
    flex: 0 0 150px;
    text-align: center;
    font-weight: 600;
    color: #e74c3c;
    font-size: 1.1rem;
    padding: 10px;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 0 20px;
    position: relative;
}

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

.timeline-event:nth-child(odd) .timeline-content::before {
    left: -20px;
    border-right-color: white;
}

.timeline-event:nth-child(even) .timeline-content::before {
    right: -20px;
    border-left-color: white;
}

.timeline-content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.back-home {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-home:hover {
    color: #c0392b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .journey-title {
        font-size: 2.5rem;
    }
    
    .journey-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .journey-card {
        height: auto;
        min-height: 400px;
    }
    
    .timeline-container::before {
        left: 20px;
    }
    
    .timeline-event {
        flex-direction: column !important;
        padding-left: 50px;
    }
    
    .timeline-date {
        flex: none;
        text-align: left;
        margin-bottom: 10px;
    }
    
    .timeline-content {
        margin: 0;
    }
    
    .timeline-content::before {
        left: -20px !important;
        right: auto !important;
        border-right-color: white !important;
        border-left-color: transparent !important;
    }
    
    .footer .container {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .journey-card {
        height: auto;
        min-height: 350px;
    }
    
    .journey-card-content {
        padding: 20px;
    }
    
    .timeline-content {
        padding: 20px;
    }
}

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

/* Loading animation */
.journey-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.journey-card:nth-child(1) { animation-delay: 0.1s; }
.journey-card:nth-child(2) { animation-delay: 0.2s; }
.journey-card:nth-child(3) { animation-delay: 0.3s; }
.journey-card:nth-child(4) { animation-delay: 0.4s; }
.journey-card:nth-child(5) { animation-delay: 0.5s; }
.journey-card:nth-child(6) { animation-delay: 0.6s; }

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