@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&family=Russo+One&display=swap');

html, body{
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    background-color: #0B0071;
}

.navbar{
    background-color: #2C4EF7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 3rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    z-index: 9999;
}

.navbar img{
    height: 80px;
    width: auto;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.navbar img:hover{
    transform: scale(1.1);
}

.navlinks{
    display: flex;
    gap: 2rem;
}

.navlinks a{
    font-family: "Russo One", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.navlinks a.active{
    color: #FFD04E;
}

.navlinks a:hover{
    color: orange;
    cursor: pointer;
}

.history{
    position: relative;
    padding: 80px 0px 0px 0px;
}

.history::before{
    content: "";
    position: absolute;
    top: 700px;
    bottom: 100px;
    left: 100px;
    width: 10px;
    background-color: #FFD04E;
    z-index: 0;
}

.history::after, .history .timeline-end{
    content: "";
    position: absolute;
    left: 90px;
    width: 30px;
    height: 30px;
    background-color: #FFD04E;
    border-radius: 50%;
    z-index: 1;
}

.history::after{
    top: 690px;
}

.history .timeline-end{
    bottom: 95px;
}

.rocket-container{
    position: sticky;
    top: 50vh;
    z-index: 2000;
    pointer-events: none;
    height: 0;
}

.rocket-container i{
    position: absolute;
    left: 70px;
    top: 20px;
    font-size: 70px;
    color: white;
    transform: rotate(135deg);
}

.rocket-container i::after{
    content: "";
    position: absolute;
    left: 0%;
    top: 60%;
    width: 40px;
    height: 60px;
    background: radial-gradient(circle at 50% 0%, 
                #FFD04E 0%, 
                #FF7A00 60%, 
                transparent 100%);
    filter: blur(3px);
    border-radius: 50% 50% 60% 60%;
    z-index: -1;
    transform: translateX(-50%) rotate(-135deg);
    animation: flame-flicker 0.15s infinite alternate;
}

@keyframes flame-flicker{
    0% {
        transform: translateX(-50%) rotate(-135deg) scaleY(1);
        opacity: 0.9;
    }
    100% {
        transform: translateX(-50%) rotate(-135deg) scaleY(1.3);
        opacity: 0.6;
    }
}

.landing{
    background-color: #657FFF;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6rem 7rem;
    gap: 3rem;
}

.img-frame{
    overflow: hidden;
    border-radius: 20px;
    border: 10px solid #FFD04E;
    display: flex;
    justify-content: center;
    align-items: center;
}

.landing-frame{
    width: 150rem;
    height: 500px;
    filter: drop-shadow(30px 30px #2C4EF7);
}

.landing-frame img{
    width: auto;
    height: 100%;
    object-fit: cover;
    object-position: 180px 0px;
}

.description{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    max-width: 50%;
    margin: 0rem 8rem 0rem 8rem;
}

.description h1{
    font-family: "Russo One", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 3rem;
    margin: 0;
}

.description p{
    font-family: "Exo 2", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 1.5rem;
    line-height: 1.6;
    margin: 0;
}

strong{
    font-weight: 700;
}

.description a{
    margin-top: 1rem;
    align-self: center;
}

.description button{
    font-family: "Russo One", sans-serif;
    font-weight: 400;
    font-style: normal;
    background-color: #2C4EF7;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 1.5rem 2rem;
    font-size: 2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.description button:hover{
    background-color: orange;
}

.earlyspace, .classicspace, .futuron, .mtron, .blacktron, .iceplanet{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 4rem 2rem;
}

.earlyspace{
    background-color: #4766FF;
}

.earlyspace .event{
    background-color: #657FFF;
}

.classicspace{
    background-color: #3053FF;
}

.classicspace .event{
    background-color: #4766FF;
}

.futuron{
    background-color: #2244EA;
}

.futuron .event{
    background-color: #3053FF;
}

.mtron{
    background-color: #0F22CF;
}

.mtron .event{
    background-color: #2244EA;
}

.blacktron{
    background-color: #1F10A3;
}

.blacktron .event{
    background-color: #0F22CF;
}

.iceplanet{
    background-color: #0B0071;
}

.iceplanet .event{
    background-color: #1F10A3;
}

.date{
    background-color: #FFD04E;
    color: #2C4EF7;
    border-radius: 20px;
    padding: 0.8rem 1.4rem;
    font-family: "Russo One", sans-serif;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;

    margin-left: 200px;
    z-index: 2;
}

.event{
    position: relative;
    z-index: 1;
    margin-left: 0;
    border-radius: 20px;
    padding: 2rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1000px;
    width: 60%;
    color: white;
}

.event::before{
    content: "";
    position: absolute;
    left: -203px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background-color: #FFD04E;
    border-radius: 50%;
    z-index: 1;
}

.eventdesc{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    max-width: 50%;
}

.eventdesc h1{
    font-family: "Russo One", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 3rem;
    margin: 0;
}

.eventdesc p{
    font-family: "Exo 2", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
}

.image{
    display: flex;
    justify-content: center;
    align-items: center;
}

.image img{
    width: 350px;
    height: 350px;
    object-fit: cover;
    object-position: center;
    border: 10px solid #FFD04E;
    border-radius: 20px;
    filter: drop-shadow(15px 15px #2C4EF7);
    background-color: black;
    transition: transform 0.3s ease;
}

.image img:hover{
    transform: scale(1.03);
}

footer{
    font-family: "Exo 2", sans-serif;
    font-weight: 300;
    font-style: normal;
    background-color: #0B0071;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    margin: 1rem 0 1rem 0;
    font-size: 1rem;
}

footer p{
    margin: 0;
}

@media (max-width: 480px) {
    .navbar {
        flex-wrap: nowrap;
        justify-content: space-between;
        height: 70px;
        padding: 0.5rem 0.5rem;
    }

    .navbar img {
        height: 45px;
    }

    .navlinks {
        display: flex;
        gap: 1rem;
    }

    .navlinks a {
        font-size: 1rem;
    }

    .history {
        padding-top: 85px;
    }

    .landing{
        position: relative;
        flex-direction: column;
        padding: 3rem 1.5rem;
        gap: 1.5rem;
        text-align: center;
        align-items: center;
    }

    .description{
        max-width: 100%;
        margin: 0;
        align-items: center;
        text-align: center;
    }

    .description h1{
        font-size: 3rem;
        line-height: 1.2;
    }

    .description p{
        font-size: 1.4rem;
    }

    .description button{
        font-size: 1.8rem;
        padding: 0.8rem 1.2rem;
    }

    .landing-frame{
        margin: 1.5rem 0;
        width: 90%;
        height: auto;
        border-width: 8px;
        filter: drop-shadow(15px 15px #2C4EF7);
    }

    .landing-frame img{
        width: 100%;
        height: auto;
        object-fit: cover;
        object-position: 0px 0px;
    }
    
    .history::before {
        left: 30px;
        top: 500px;
        width: 5px;
    }

    .history::after,
    .history .timeline-end {
        left: 22px;
        width: 20px;
        height: 20px;
    }

    .history::after {
        top: 1180px;
    }

    .rocket-container i {
        left: 10px;
        font-size: 45px;
    }

    .rocket-container i::after {
        width: 25px;
        height: 40px;
    }

    /* --- ALL EVENT BLOCKS --- */
    .earlyspace, .classicspace, .futuron, .mtron, .blacktron, .iceplanet {
        flex-direction: column;
        padding: 3rem 1rem;
        gap: 1.5rem;
    }

    .date {
        margin-left: 0;
        margin-right: -40px;
        font-size: 1rem;
        padding: 0.6rem 1rem;
    }

    .event {
        width: 70%;
        margin-left: 40px;
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .event::before {
        display: none; /* Remove side dot for mobile */
    }

    .eventdesc {
        max-width: 100%;
        align-items: center;
        text-align: center;
    }

    .eventdesc h1 {
        font-size: 2rem;
    }

    .eventdesc p {
        font-size: 1rem;
    }

    .image img {
        width: 250px;
        height: 250px;
        filter: drop-shadow(8px 8px #2C4EF7);
    }

    footer {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 30px 30px;
    }

    footer p{
        padding: 0 5rem;
    }
}