@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #000000;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Navigation - pill style */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: transparent;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.navbar .logo img {
    height: 36px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 100px;
    background-color: #1c1c1e;
    transition: background-color 0.3s ease;
    display: inline-block;
}

nav ul li a:hover {
    background-color: #2c2c2e;
}

/* Page title */
main {
    padding-top: 120px;
    padding-bottom: 80px;
}

.page-title {
    text-align: center;
    margin-bottom: 60px;
}

.page-title h1 {
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.page-title p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 8px;
    font-weight: 400;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    top: 0;
    bottom: 0;
    left: 50%;
}

/* Timeline items */
.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

/* Timeline dot */
.timeline-item::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #ffffff;
    border-radius: 50%;
    left: 50%;
    top: 32px;
    transform: translateX(-50%);
    z-index: 2;
}

/* Date label */
.timeline-date {
    position: absolute;
    top: 28px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
}

.timeline-item:nth-child(odd) .timeline-date {
    left: calc(50% + 28px);
}

.timeline-item:nth-child(even) .timeline-date {
    right: calc(50% + 28px);
    text-align: right;
}

/* Content card */
.timeline-card {
    width: calc(50% - 28px);
    background-color: #1c1c1e;
    border-radius: 20px;
    padding: 32px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.timeline-item:nth-child(odd) .timeline-card {
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-card {
    margin-left: auto;
}

.timeline-card h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #ffffff;
}

.timeline-card h3 {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 14px;
}

.timeline-card p {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
    margin-bottom: 18px;
}

.timeline-card p:last-child {
    margin-bottom: 0;
}

/* Read more button */
.read-more {
    padding: 8px 20px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Popup / Modal */
.overlay {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.popup {
    display: none;
    position: fixed;
    z-index: 300;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    background-color: #1c1c1e;
    padding: 40px;
    border-radius: 24px;
    color: #ffffff;
    overflow-y: auto;
}

.popup-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.popup h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #ffffff;
}

.popup h4 {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
}

.popup p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    margin-bottom: 14px;
}

.popup ul {
    padding-left: 20px;
    margin-bottom: 14px;
}

.popup li {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 10px;
}

.popup a {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.3s ease;
}

.popup a:hover {
    text-decoration-color: #ffffff;
}

.popup .close {
    align-self: flex-end;
    font-size: 24px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: color 0.3s ease;
    margin-bottom: 16px;
}

.popup .close:hover {
    color: #ffffff;
}

.popup iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 12px;
    margin-top: 12px;
}

.popup .pdf-reader a {
    display: inline-block;
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 16px 20px;
    }

    nav {
        min-width: 0;
        flex: 1 1 0;
    }

    nav ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px;
        padding: 0 8px 4px 0;
    }

    nav ul::-webkit-scrollbar {
        display: none;
    }

    nav ul li {
        flex-shrink: 0;
    }

    nav ul li a {
        font-size: 14px;
        padding: 10px 18px;
    }

    main {
        padding-top: 100px;
    }

    .page-title h1 {
        font-size: 28px;
    }

    .timeline {
        padding: 0 20px;
    }

    .timeline::before {
        left: 40px;
    }

    .timeline-item::before {
        left: 20px;
    }

    .timeline-date {
        position: relative;
        top: auto;
        width: auto;
        margin-bottom: 8px;
        margin-left: 44px;
    }

    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        left: auto;
        right: auto;
        text-align: left;
    }

    .timeline-card {
        width: calc(100% - 44px);
        margin-left: 44px !important;
        margin-right: 0 !important;
    }

    .popup {
        padding: 24px;
        width: 95%;
    }

    .popup iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 14px 16px;
    }

    nav ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 6px;
        padding-right: 8px;
    }

    nav ul::-webkit-scrollbar {
        display: none;
    }

    nav ul li {
        flex-shrink: 0;
    }

    nav ul li a {
        font-size: 13px;
        padding: 9px 15px;
    }

    .page-title h1 {
        font-size: 24px;
    }

    .page-title {
        margin-bottom: 40px;
    }

    .timeline {
        padding: 0 16px;
    }

    .timeline::before {
        left: 36px;
    }

    .timeline-card {
        padding: 20px;
        border-radius: 16px;
    }

    .timeline-card h2 {
        font-size: 17px;
    }

    .timeline-card p {
        font-size: 14px;
    }

    .popup {
        padding: 20px;
        width: 96%;
        border-radius: 16px;
    }

    .popup iframe {
        height: 250px;
    }
}

.nav-scroll-hint {
    display: none;
}

@media (max-width: 768px) {
    .nav-scroll-hint {
        display: block;
        position: absolute;
        bottom: 4px;
        right: 16px;
        color: rgba(255, 255, 255, 0.9);
        font-size: 10px;
        font-weight: 500;
        font-family: 'Inter', sans-serif;
        z-index: 10;
        pointer-events: none;
        white-space: nowrap;
    }
}
