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

}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    background: black;
    overflow-x: hidden;

}

.jarallax {
    position: relative;
    z-index: 0;
    min-height: 10vh;
}

.jarallax-img {
    position: absolute;
    object-fit: cover;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.stars {
    width: 100%;
    height: 100%;
    background: url('media/star.png') repeat;
    position: absolute;
    animation: moveStars 50s linear infinite;
}

@keyframes moveStars {
    from {
        background-position: 0 0;
    }

    to {
        background-position: -10000px 5000px;
    }
}

.heading {
    color: whitesmoke;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.heading h1 {
    font-size: 9rem;
    margin: 0;
    background-color: #FFD700;
    /* Starting color for gradient */
    background-image: linear-gradient(90deg, #FFD700 0%, #FFBF00 100%);
    /* Gradient color */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeIn 3s ease-out 3s forwards, glow 1.5s ease-in-out infinite alternate;
    -webkit-animation: fadeIn 3s ease-out 3s forwards, glow 1.5s ease-in-out infinite alternate;
}

/* Fade-in Animation */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Glow Animation with Updated Colors */
@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 191, 0, 0.7);
    }

    to {
        text-shadow: 0 0 30px rgba(255, 215, 0, 1), 0 0 60px rgba(255, 191, 0, 0.8);
    }
}



.heading p {
    font-size: 3rem;
    margin: 20px 0 0;
    color: #f0f0f0;
    animation: fadeIn 2s ease-out 2s forwards;
    opacity: 0;
}

.astronaut {
    position: absolute;
    width: 150px;
    height: 150px;
    background: url("media/astronut.png") no-repeat center center;
    background-size: contain;
    z-index: 30;
    top: 37%;
    /* Adjusted to ensure it moves above the text */
    animation: zigzag 10s linear infinite;
}

@keyframes zigzag {
    0% {
        left: -150px;
        top: 20%;
    }

    25% {
        left: 25%;
        top: 30%;
    }

    50% {
        left: 50%;
        top: 20%;
    }

    75% {
        left: 75%;
        top: 30%;
    }

    100% {
        left: 100%;
        top: 20%;
    }
}

.welcome-bg {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 1));
    overflow: hidden;
    position: relative;
}

.welcome-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://cdn.pixabay.com/photo/2016/11/29/11/45/space-1867887_960_720.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.3;
    z-index: 0;
}


section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

section h2 {
    color: #ffffff;
    font-size: 4.5em;
    margin-left: 200px;
    margin-bottom: 20px;
    text-decoration: underline;
    font-family:'Truculenta', sans-serif;
}

section .contain {
    position: relative;
    width: 1000px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

section:nth-child(even) .contain {
    flex-direction: row-reverse;
}

section .contain #sec-2,
#sec-4,
#sec-6 {
    position: relative;
    width: 800px;
    height: 400px;
    overflow: hidden;
    box-shadow: -20px 35px 40px rgba(15, 53, 190, 0.608);

    border: 2px solid rgb(12, 42, 176);
    border-radius: 5px;
}

section .contain #sec-3,
#sec-5 {
    position: relative;
    width: 800px;
    height: 400px;
    overflow: hidden;
    box-shadow: 20px 35px 40px rgba(15, 53, 190, 0.608);
    border: 2px solid rgb(12, 42, 176);
    border-radius: 5px;
}

/*
section .contain .imgb img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

}*/

section .contain .about {
    position: absolute;
    right: 0;
    margin-top: 200px;
    margin-bottom: 40px;
    padding: 40px;
    background: rgb(58, 56, 56);
    z-index: 1;
    max-width: 400px;
    color: #fff;
    box-shadow: 0 25px 35px rgba(0, 0, 0, 0.1);
    border-bottom: 9px solid rgb(18, 22, 244);

}

section:nth-child(even) .contain .about {
    left: 0;
}

.content {
    flex: 1;
}


@media (max-width: 768px) {
    .heading h1 {
        font-size: 8vw;
    }

    .heading p {
        font-size: 4vw;
    }

    .content-box {
        flex-direction: column;
    }

    .imgb,
    .about {
        max-width: 100%;
    }

    h2 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .heading h1 {
        font-size: 10vw;
    }

    .heading p {
        font-size: 5vw;
    }

    h2 {
        font-size: 1.5em; 
    }
    .box h2{
        font-size:2rem;
        margin-left: 45%;
    }
    .about{
        max-width:30%;
        margin-right: 60px;
    }

    .imgb{
        
        max-width: 38%;
        margin-left: 30%;
    }
}
