/* History Page Styles */

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1a3636 0%, #2d5a5a 50%, #1a3636 100%);
    color: white;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23ccee83" opacity="0.1"/></svg>') repeat;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

.header h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.header p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Legacy Hero Section */
.legacy-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 20px;
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 60px;
    border-radius: 25px;
    margin-top: -50px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.legacy-content {
    flex: 1;
    padding: 40px;
}

.legacy-badge {
    background: #ccee83;
    color: #1a3636;
    padding: 8px 20px;
    border-radius: 25px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 25px;
}

.legacy-title {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #1a3636;
    line-height: 1.1;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.legacy-description {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 500px;
}

.legacy-btn {
    background: #1a3636;
    color: white;
    padding: 18px 35px;
    border: none;
    border-radius: 50px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.legacy-btn:hover {
    background: #2d5a5a;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(26, 54, 54, 0.3);
}

.legacy-image {
    flex: 1;
    position: relative;
}

.legacy-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

/* Main Content Layout */
.main-content {
    display: flex;
    max-width: 1400px;
    margin: 80px auto;
    padding: 0 20px;
    gap: 40px;
}

/* Timeline Navigation */
.timeline-nav {
    width: 280px;
    position: sticky;
    top: 100px;
    height: fit-content;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.mobile-nav-toggle {
    display: none;
    background: #1a3636;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 10px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    margin-bottom: 20px;
    width: 100%;
    text-align: left;
    position: relative;
}

.mobile-nav-toggle i {
    float: right;
    transition: transform 0.3s ease;
}

.mobile-nav-toggle.active i {
    transform: rotate(180deg);
}

.nav-content {
    transition: max-height 0.3s ease;
    overflow: hidden;
}

.timeline-nav h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: #1a3636;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list li {
    margin-bottom: 15px;
}

.nav-link {
    display: block;
    padding: 12px 15px;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.4;
}

.nav-link:hover {
    background-color: #f0f8f0;
    color: #1a3636;
    transform: translateX(5px);
}

.nav-link.active {
    background-color: #ccee83;
    color: #1a3636;
    font-weight: 600;
}

/* Timeline Container */
.timeline-container {
    padding: 10px 80px 10px 80px;
    flex: 1;
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(to bottom, #ccee83 0%, #1a3636 50%, #ccee83 100%);
    transform: translateX(-50%);
    z-index: 1;
    border-radius: 3px;
}

.timeline-item {
    display: flex;
    margin-bottom: 120px;
    position: relative;
    align-items: stretch;
    min-height: 400px;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    flex: 1;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin: 0 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    border: 2px solid #f0f8f0;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 15px solid transparent;
    transform: translateY(-50%);
}

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

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

.timeline-image {
    flex: 1;
    padding: 0 40px;
    display: flex;
    align-items: center;
}

.timeline-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    border: 3px solid white;
}

.timeline-image img:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 35px 70px rgba(0,0,0,0.2);
}

.timeline-circle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ccee83, #badd72);
    border: 5px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    box-shadow: 0 0 0 3px #1a3636, 0 8px 16px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.timeline-circle:hover {
    transform: translate(-50%, -50%) scale(1.2);
}

/* Timeline Content Typography */
.year {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1a3636, #2d5a5a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    position: relative;
}

.year::after {
    content: '';
    position: absolute;
    bottom: -5px;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ccee83, #badd72);
    border-radius: 2px;
}

.timeline-item:nth-child(odd) .year::after {
    right: 0;
}

.timeline-item:nth-child(even) .year::after {
    left: 0;
}

.timeline-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #1a3636;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.2;
}

.timeline-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #666;
    max-width: 450px;
}

.timeline-item:nth-child(odd) .timeline-text {
    margin-left: auto;
}

/* Mobile Floating Navigation */
.mobile-floating-nav {
    display: none;
}

.mobile-nav-btn {
    background: #1a3636;
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.mobile-nav-btn:hover {
    transform: scale(1.1);
}

.mobile-nav-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: white;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    min-width: 250px;
    max-height: 0;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.mobile-nav-menu.expanded {
    max-height: 450px;
    opacity: 1;
    visibility: visible;
    padding: 20px;
}

.mobile-nav-menu .nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu .nav-link {
    display: block;
    padding: 12px 15px;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.mobile-nav-menu .nav-link:hover,
.mobile-nav-menu .nav-link.active {
    background-color: #ccee83;
    color: #1a3636;
}

.mobile-nav-menu .nav-link:last-child {
    border-bottom: none;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .timeline-nav {
        width: 250px;
        padding: 20px;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 60px 20px;
    }

    .header h1 {
        font-size: 2.8rem;
        letter-spacing: 2px;
    }

    .header p {
        font-size: 1.1rem;
    }

    .legacy-hero {
        flex-direction: column;
        padding: 60px 20px;
        gap: 40px;
        margin-top: -30px;
    }

    .legacy-title {
        font-size: 2.5rem;
    }

    .legacy-description {
        font-size: 1.1rem;
        max-width: none;
    }

    .legacy-image img {
        height: 300px;
    }

    .main-content {
        flex-direction: column;
        gap: 20px;
        margin: 40px auto;
    }

    .timeline-nav {
        display: none;
    }

    .mobile-floating-nav {
        display: block;
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1000;
    }

    .timeline-container {
        order: 1;
        padding: 10px 0;
    }

    .timeline-line {
        left: 20px;
        width: 4px;
    }

    .timeline-item {
        flex-direction: column !important;
        margin-bottom: 80px;
        min-height: auto;
        align-items: flex-start;
    }

    .timeline-content {
        order: 2;
        margin: 20px 10px 0 45px;
        padding: 25px;
        text-align: left !important;
    }

    .timeline-content::before {
        display: none;
    }

    .timeline-image {
        order: 1;
        padding: 0 10px 0 45px;
        width: 100%;
    }

    .timeline-image img {
        height: 250px;
    }

    .timeline-circle {
        left: 20px;
        top: 30px;
        width: 20px;
        height: 20px;
    }

    .timeline-text {
        margin-left: 0 !important;
        max-width: none;
    }

    .year {
        font-size: 2.5rem;
    }

    .timeline-title {
        font-size: 1.6rem;
    }
}