/* General Styles */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: #f5f5f5;
    background-color: #1c1c1c;
    overflow-x: hidden;
}

.header {
    position: fixed;
    width: 100%;
    top: 0;
    background: linear-gradient(90deg, #3b3b3b, #1e1e1e);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.header ul {
    list-style: none;
    margin: 0;
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.header ul li a {
    text-decoration: none;
    color: #f5f5f5;
    font-size: 1.2rem;
    font-weight: bold;
    transition: color 0.3s;
}

.header ul li a:hover {
    color: #ffb74d;
}

/* Hero Section */
.journey-hero {
    height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1c1c1c, #2c2c2c);
    color: #FFF5E0;
    text-align: center;
    padding: 20px;
}

.journey-hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.journey-hero .tagline {
    font-size: 1.8rem;
    font-style: italic;
    color: #E4C59E;
    margin-bottom: 20px;
}

/* Horizontal Timeline */
.journey-horizontal-timeline {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px 0;
    background: #2c2c2c;
    border-bottom: 2px solid #E4C59E;
}

.year {
    position: relative;
    padding: 10px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #FFF5E0;
    cursor: pointer;
    border: 2px solid #FFF5E0;
    border-radius: 5px;
    background: transparent;
    transition: all 0.3s ease;
}

.year.active {
    color: #1c1c1c;
    background: #E4C59E;
    transform: translateY(-5px);
}

.year:hover {
    color: #E4C59E;
    border-color: #E4C59E;
}

/* Vertical Timeline */
.journey-vertical-timeline {
    position: relative;
    width: 20%;
    margin-left: 5%;
    margin-top: 1px; /* Lowered for better visibility */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.journey-vertical-timeline .line {
    position: absolute;
    width: 2px;
    background: #E4C59E;
    height: calc(100% - 30px); /* Ensures the line fits well */
    z-index: 0;
    left: 50%; /* Centers the line with the circles */
}

.journey-vertical-timeline .month {
    position: relative;
    margin: 25px 0; /* Better spacing between months */
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #1c1c1c;
    border: 2px solid #E4C59E;
    color: #FFF5E0;
    text-align: center;
    line-height: 80px;
    font-weight: bold;
    z-index: 2;
}

.journey-vertical-timeline .month.active {
    background: #E4C59E;
    color: #1c1c1c;
}

/* Content Styling */
.journey-vertical-timeline .content {
    position: absolute;
    left: 70%; /* Moves content further from the line */
    width: 100%; /* Ensures proper width for text display */
    font-size: 1rem;
    line-height: 1rem;
    color: #FFF5E0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.journey-vertical-timeline .content .event {
    position: absolute;
    display: flex;
    align-items: center;
    margin: 10px -400px 15px 20px; 
    white-space: normal;
}

.journey-vertical-timeline .content .event .emoji {
    font-size: 1.5rem;
}

.journey-vertical-timeline .content .event .text {
    width: auto;
    word-break: break-word;
}

/* Footer Spacing */
footer {
    margin-top: 30px;
    padding: 20px;
    background: #1c1c1c;
    color: #FFF5E0;
    text-align: center;
    font-size: 0.9rem;
}


footer ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0;
    margin: 10px 0 0;
}

footer ul li {
    display: inline-block;
}

footer ul li a {
    color: #FFF5E0;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

footer ul li a:hover {
    color: #E4C59E; /* Add hover effect */
}

footer ul li a img {
    width: 30px;
    height: auto;
    vertical-align: middle;
}

footer ul li a i {
    font-size: 1.8rem; /* Adjust icon size */
}

/* Mobile-only fixes: keep laptop layout untouched */
@media (max-width: 600px) {

    /* Slightly smaller base text on phones */
    body {
        font-size: 0.95rem;
    }

    .journey-hero {
        padding: 90px 16px 32px; /* space under fixed header */
        text-align: center;
    }

    .journey-hero h1 {
        font-size: 1.9rem;
    }

    .journey-hero .tagline {
        font-size: 1.05rem;
    }

    /* Let the horizontal year strip wrap instead of squishing */
    .journey-horizontal-timeline {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 10px;
    }

    .year {
        font-size: 0.95rem;
        padding: 6px 10px;
    }

    /* Vertical timeline: stop using absolute positioning on phones */
    .journey-vertical-timeline {
        position: static;
        width: 100%;
        margin: 24px auto 32px;
        padding: 0 16px;
        display: block;
        align-items: flex-start;
    }

    /* Hide the vertical line on very small screens (prevents weird overlaps) */
    .journey-vertical-timeline .line {
        display: none;
    }

    /* Month circles: just stack nicely */
    .journey-vertical-timeline .month {
        position: static;
        margin: 8px auto;
        width: 56px;
        height: 56px;
        font-size: 0.8rem;
    }

    .journey-vertical-timeline .month span {
        font-size: 0.75rem;
    }

    /* Content: remove absolute positioning and let it flow */
    .journey-vertical-timeline .content {
        position: static;
        left: auto;
        width: 100%;
        margin-top: 12px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .journey-vertical-timeline .content .event {
        position: static;
        display: flex;
        align-items: flex-start;
        padding: 8px 10px;
        border-radius: 8px;
        background: #2c2c2c;
        border-left: 3px solid #E4C59E;
    }

    .journey-vertical-timeline .content .event .emoji {
        font-size: 1.2rem;
        margin-right: 8px;
        flex-shrink: 0;
    }

    .journey-vertical-timeline .content .event .text {
        width: 100%;
        word-break: break-word;
    }
}
