* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    padding-top: 50px;
    background-color: #f4f4f9;
    color: #333;
}

.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: lightyellow;
    padding: 10px 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 7px 7px;
    border-radius: 5px;
    transition: all 0.3s ease;

}

.nav-links a:hover {
    opacity: background 0.5;
    background-color: lightblue;
}


.hero-section {
    height: 50vh;
    display: flex;
    padding: 0 10%;
    align-items: center;
    background-size: cover;
    background-position: center;
}


.bg-image-1 {
    background-image: url('./images/about-me-hero.png');
}

.bg-image-2 {
    background-image: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?q=80&w=1200');
}

.bg-image-3 {
    background-image: url('https://images.unsplash.com/photo-1526374965328-7f61d4dc18c5?q=80&w=1200');
}


.hero-align-left {
    justify-content: flex-start;
}

.hero-align-right {
    justify-content: flex-end;
}


.hero-content {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 40px 30px;
    max-width: 50%;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}



button {
    padding: 7px 20px;
    color: white;
    background-color: #007bff;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}


button:hover {
    background-color: #0056b3;
    transform: translateX(5px);
}


.row-reverse {
    display: flex;
    align-items: center;
    justify-content: right;
    gap: 50px;
    padding: 80px 30px;
}


/* =========================================
   INTERACTIVE SPACE CTA SECTION
========================================= */

.cta-section {
    position: relative;
    /* Keeps the rocket trapped inside this section */
    height: 40vh;
    background-color: #0b0f19;
    /* Deep space dark blue/black */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Prevents the flying rocket from creating a horizontal scrollbar */

    /* Pure CSS Magic: Generating layers of stars using gradients */
    background-image:
        radial-gradient(white, rgba(255, 255, 255, .2) 2px, transparent 4px),
        radial-gradient(white, rgba(255, 255, 255, .15) 1px, transparent 3px),
        radial-gradient(white, rgba(255, 255, 255, .1) 2px, transparent 4px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;

    /* Makes the stars fall downwards infinitely! */
    animation: scrollStars 100s linear infinite;
}

/* This animation moves the background downwards */
@keyframes scrollStars {
    from {
        background-position: 0 0, 40px 60px, 130px 270px;
    }

    to {
        background-position: 0 550px, 40px 610px, 130px 820px;
    }
}

/* --- THE CONTENT BOX (Like your screenshot) --- */
.cta-content {
    position: relative;
    z-index: 10;
    /* Keeps the text above the flying rocket */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Perfectly centers items vertically */
    justify-content: center;
    gap: 20px;
    text-align: center;
    /* Space between the H1, H2, and Button */

    /* We add a glassy box so the text is easy to read over the stars */
    background: rgba(255, 255, 255, 0.1);
    padding: 40px 60px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.cta-content h1 {
    font-size: 2.5rem;
    color: white;
}

.cta-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #e0e0e0;
}

.cta-content button {
    margin: 0;
    /* Overrides previous button margins */
    padding: 15px 35px;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);

    /* Adds a cool glow to the button */
}

/* --- THE FLYING ROCKET --- */
.rocket {
    position: absolute;
    font-size: 5rem;
    /* Big emoji */
    top: 50%;
    left: -100px;
    /* Starts hidden way off the left edge */

    /* The animation duration (12s) controls how fast it flies */
    animation: flyRocket 12s linear infinite;
    z-index: 1;
    /* Puts it behind the text box */
    opacity: 0.6;
    /* Makes it slightly faded into the background */
}

@keyframes flyRocket {
    0% {
        left: -100px;
        transform: translateY(-50%) rotate(45deg);
        /* Tilts the rocket so it looks like it's flying forward */
    }

    100% {
        left: 110%;
        /* Flies entirely off the right edge before repeating */
        transform: translateY(-50%) rotate(45deg);
    }
}

.footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: lightyellow;
}

#btn-back-to-top {
    position: absolute;
    right: 30px;
    padding: 8px 16px;
    border-radius: 15px;
    font-size: 0.9rem;
}
