:root {
    --bg-color: #050507;
    --text-color: #ffffff;
    --primary-accent: #b026ff;
    /* Neon Purple */
    --secondary-accent: #4deeea;
    /* Neon Cyan */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

/* Dynamic Star Background Container */
#star-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    /* Deep space gradient base */
    background: radial-gradient(circle at 10% 20%, rgba(176, 38, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(77, 238, 238, 0.05) 0%, transparent 40%);
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    animation: float-chaotic infinite ease-in-out;
}

@keyframes float-chaotic {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.8;
    }

    25% {
        transform: translate(10px, -15px);
        opacity: 0.4;
    }

    50% {
        transform: translate(-5px, 10px);
        opacity: 0.9;
    }

    75% {
        transform: translate(-15px, -5px);
        opacity: 0.5;
    }
}

.shooting-star {
    position: absolute;
    height: 2px;
    /* Gradient from Head (Left) to Tail (Right) when width grows */
    background: linear-gradient(90deg, rgba(255, 255, 255, 1), transparent);
    border-radius: 999px;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
    animation: shoot linear infinite;
    opacity: 0;
    width: 0;
}

.shooting-star::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    /* Leading edge */
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff, 0 0 20px var(--secondary-accent);
    /* Neon Cyan glow */
}

@keyframes shoot {
    0% {
        transform: translateX(0) translateY(0) rotate(-45deg);
        opacity: 0;
        width: 0;
    }

    1% {
        opacity: 1;
        width: 5vh;
    }

    3% {
        opacity: 1;
        width: 25vh;
        /* Clear tail */
    }

    10% {
        transform: translateX(-100vmax) translateY(100vmax) rotate(-45deg);
        width: 0;
        opacity: 0;
    }

    100% {
        transform: translateX(-100vmax) translateY(100vmax) rotate(-45deg);
        width: 0;
        opacity: 0;
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2.4vh 4.8vh;
    /* 1.5rem 3rem */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 7, 0.7);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 0.1vh solid var(--glass-border);
    /* 1px */
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.4vh;
    /* 1.5rem */
    font-weight: 900;
    letter-spacing: 0.2vh;
    /* 2px */
    background: linear-gradient(90deg, #fff, var(--secondary-accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.6vh;
    /* 1rem */
}

.x-nav-button {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.4vh;
    /* 1.5rem */
    color: var(--secondary-accent);
    text-decoration: none;
    padding: 1.2vh 1.2vh;
    border: 0.1vh solid var(--secondary-accent);
    border-radius: 50%;
    transition: all 0.3s ease;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.8vh;
    height: 4.8vh;
}

.x-nav-button:hover {
    background: var(--secondary-accent);
    color: var(--bg-color);
    box-shadow: 0 0 1.5vh rgba(77, 238, 238, 0.4);
    transform: translateY(-0.2vh);
}

.cta-button {
    background: transparent;
    border: 0.1vh solid var(--secondary-accent);
    /* 1px */
    color: var(--secondary-accent);
    padding: 1.28vh 2.4vh;
    /* 0.8rem 1.5rem */
    border-radius: 5vh;
    /* 50px */
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.6vh;
    /* Added explicit vh size */
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--secondary-accent);
    color: var(--bg-color);
    box-shadow: 0 0 2vh rgba(77, 238, 238, 0.4);
    /* 20px */
}

/* CA Container */
.ca-container {
    position: absolute;
    top: calc(8vh + 5.66vh);
    /* 80px + 1.5cm (approx 56.6px) */
    /* Lowered by 1.5cm as requested */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 60vh;
    /* This looks wrong for width, let's keep max-width in px or % or larger vh? 600px = 60vh */
    max-width: 60vh;
    background: rgba(5, 5, 7, 0.8);
    backdrop-filter: blur(10px);
    border: 0.1vh solid var(--primary-accent);
    /* 1px */
    padding: 1.28vh 2.4vh;
    /* 0.8rem 1.5rem */
    border-radius: 1.2vh;
    /* 12px */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    box-shadow: 0 0.5vh 2vh rgba(0, 0, 0, 0.5);
    /* 5px 20px */
}

.ca-text {
    font-family: var(--font-body);
    font-size: 1.6vh;
    /* 1rem */
    color: #fff;
    letter-spacing: 0.05vh;
    /* 0.5px */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 1.6vh;
    /* 1rem */
}

.copy-btn {
    background: var(--glass-bg);
    border: 0.1vh solid var(--secondary-accent);
    /* 1px */
    color: var(--secondary-accent);
    padding: 0.5vh 1.5vh;
    /* 5px 15px */
    border-radius: 0.8vh;
    /* 8px */
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.28vh;
    /* 0.8rem */
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--secondary-accent);
    color: var(--bg-color);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* Vertically center */
    justify-content: space-between;
    padding: 0 5%;
    position: relative;
    padding-top: 8vh;
    /* 80px */
    /* Offset for fixed header */
}

.hero-content {
    max-width: 50%;
    z-index: 2;
}

.glitch {
    font-family: var(--font-heading);
    font-size: 8vh;
    /* 5rem */
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.6vh;
    /* 1rem */
    position: relative;
    color: white;
    text-shadow: 0.2vh 0.2vh var(--primary-accent);
    /* 2px 2px */
}

.subtitle {
    font-size: 2.88vh;
    /* 1.8rem */
    color: var(--secondary-accent);
    margin-bottom: 2.4vh;
    /* 1.5rem */
    font-weight: 300;
}

.description {
    font-size: 1.92vh;
    /* 1.2rem */
    color: rgba(255, 255, 255, 0.8);
    max-width: 80%;
    margin-bottom: 4vh;
    /* 2.5rem */
}

.cta-group {
    display: flex;
    gap: 2.4vh;
    /* 1.5rem */
}

.primary-btn,
.secondary-btn {
    padding: 1.6vh 4vh;
    /* 1rem 2.5rem */
    border-radius: 5vh;
    /* 50px */
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    font-size: 1.6vh;
    /* 1rem */
    transition: transform 0.2s;
}

.primary-btn {
    background: linear-gradient(45deg, var(--primary-accent), #7928ca);
    border: none;
    color: white;
    box-shadow: 0 0 1.5vh rgba(176, 38, 255, 0.5);
    /* 15px */
}

.primary-btn:hover {
    transform: translateY(-0.2vh);
    /* -2px */
    box-shadow: 0 0 2.5vh rgba(176, 38, 255, 0.7);
    /* 25px */
}

.secondary-btn {
    background: transparent;
    border: 0.1vh solid rgba(255, 255, 255, 0.3);
    /* 1px */
    color: white;
}

.secondary-btn:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.05);
}

.hero-image-container {
    width: 45%;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-img {
    width: 100%;
    max-width: 60vh;
    /* 600px */
    height: auto;
    filter: drop-shadow(0 0 3vh rgba(77, 238, 238, 0.2));
    /* 30px */
    animation: float 6s ease-in-out infinite;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    /* Fade out bottom slightly */
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

@keyframes float {
    0% {
        transform: translateY(0vh);
    }

    50% {
        transform: translateY(-2vh);
        /* -20px */
    }

    100% {
        transform: translateY(0vh);
    }
}

/* Marquee */
.marquee-container {
    background: var(--primary-accent);
    color: white;
    padding: 1.6vh 0;
    /* 1rem */
    overflow: hidden;
    position: relative;
    transform: rotate(-2deg);
    width: 105%;
    left: -2.5%;
    margin: calc(3.2vh - 3.78vh) 0 3.2vh 0;
    /* 2rem (3.2vh) - 1cm (~3.78vh). Old: calc(2rem - 1cm) */
    /* Moved up by 1cm as requested */
    box-shadow: 0 0 2vh var(--primary-accent);
    /* 20px */
    display: flex;
    justify-content: flex-start;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    /* We animate the track, which contains 2 identical sets of items */
    /* moving it by -50% means moving exactly the width of one set */
    animation: scroll 14s linear infinite;
    width: fit-content;
}

.marquee-item {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.92vh;
    /* 1.2rem */
    padding: 0 1.6vh;
    /* 1rem */
    /* Gap between items */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}



/* About Section */
.about-section {
    padding: 9.6vh 5%;
    /* 6rem */
    position: relative;
    /* Context for absolute positioning */
    overflow: hidden;
    /* Prevent moonman from spilling out */
}




.section-title {
    font-family: var(--font-heading);
    text-align: center;
    font-size: 4.8vh;
    /* 3rem */
    margin-bottom: 6.4vh;
    /* 4rem */
    background: linear-gradient(to right, #fff, #aaa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mission-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    /* Ensure it stays above the moon peek if they overlap slightly */
}

.mission-card.card {
    width: 40vh !important;
    height: 40vh !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center;
    background-image: url('moon_ball.png') !important;
    background-size: 125% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    box-shadow: inset 0 0 2vh rgba(255, 255, 255, 0.1), 0 0 3vh rgba(176, 38, 255, 0.3) !important;
    border: 0.1vh solid rgba(255, 255, 255, 0.1) !important;
    transition: transform 0.1s ease-out !important;
    cursor: pointer;
}

@keyframes chaotic-float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    10% {
        transform: translate(-35vh, 8vh) rotate(-15deg);
    }

    20% {
        transform: translate(40vh, -10vh) rotate(20deg);
    }

    30% {
        transform: translate(-42vh, 5vh) rotate(-25deg);
    }

    40% {
        transform: translate(38vh, 12vh) rotate(18deg);
    }

    50% {
        transform: translate(-45vh, -8vh) rotate(-30deg);
    }

    60% {
        transform: translate(45vh, 6vh) rotate(28deg);
    }

    70% {
        transform: translate(-30vh, 15vh) rotate(-20deg);
    }

    80% {
        transform: translate(35vh, -5vh) rotate(22deg);
    }

    90% {
        transform: translate(-25vh, 10vh) rotate(-12deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.mission-card h3 {
    font-size: 4.8vh;
    /* 3rem */
    margin-bottom: 0.8vh;
    /* 0.5rem */
    color: var(--secondary-accent);
    text-transform: uppercase;
    letter-spacing: 0.2vh;
    /* 2px */
    font-weight: 900;
    text-shadow: 0.2vh 0.2vh 0.4vh rgba(0, 0, 0, 0.8);
}

.mission-card p {
    font-size: 2.4vh;
    /* 1.5rem */
    color: var(--secondary-accent) !important;
    margin: 0;
    font-weight: 700;
    text-shadow: 0.2vh 0.2vh 0.4vh rgba(0, 0, 0, 0.8);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30vh, 1fr));
    /* 300px */
    gap: 3.2vh;
    /* 2rem */
}

.card {
    background: var(--glass-bg);
    border: 0.1vh solid var(--glass-border);
    /* 1px */
    padding: 4vh;
    /* 2.5rem */
    border-radius: 2vh;
    /* 20px */
    backdrop-filter: blur(10px);
    transition: transform 0.3s, background 0.3s;
}

.card:hover {
    transform: translateY(-1vh);
    /* -10px */
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--secondary-accent);
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 2.4vh;
    /* 1.5rem */
    margin-bottom: 1.6vh;
    /* 1rem */
    color: var(--secondary-accent);
}

.card p {
    color: #ccc;
    font-size: 1.76vh;
    /* 1.1rem */
}

.peeking-moonman {
    position: absolute;
    bottom: 7vh;
    left: 0;
    width: 37.5vw;
    max-width: 52.5vh;
    /* Cap size on large screens */
    min-width: 30vh;
    /* maintain visibility on mobile */
    height: auto;
    z-index: 10;
    transition: transform 0.3s ease;
    pointer-events: auto;
    transform: rotate(15deg);
    /* Tilted */
    filter: drop-shadow(0 0 1vh rgba(0, 0, 0, 0.5));
}

.peeking-moonman:hover {
    transform: translateY(-2vh) rotate(15deg) scale(1.05);
    /* Pop up subtler */
    filter: drop-shadow(0 0 3.2vh rgba(100, 200, 255, 0.6));
}

.peeking-moonman-right {
    position: absolute;
    bottom: 7vh;
    right: 0;
    width: 37.5vw;
    max-width: 52.5vh;
    min-width: 30vh;
    height: auto;
    z-index: 10;
    transition: transform 0.3s ease;
    pointer-events: auto;
    transform: scaleX(-1) rotate(15deg);
    /* Mirrored tilt */
    filter: drop-shadow(0 0 1vh rgba(0, 0, 0, 0.5));
}

.peeking-moonman-right:hover {
    transform: scaleX(-1) translateY(-2vh) rotate(15deg) scale(1.05);
    /* Pop up mirror subtler */
    filter: drop-shadow(0 0 3.2vh rgba(100, 200, 255, 0.6));
}

/* Footer */
.footer {
    position: relative;
    z-index: 10;
    /* Anchor for the moonman */
    width: 100%;
    padding: 4.8vh 3.2vh;
    /* 3rem 2rem */
    text-align: center;
    border-top: 0.1vh solid var(--glass-border);
    /* 1px */
    margin-top: 8vh;
    /* 5rem */
    color: #666;
    background: var(--bg-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.4vh;
    /* 1.5rem */
}

.footer-content p {
    font-size: 1.44vh;
    /* 0.9rem approx */
}

.footer-logo-group {
    display: flex;
    align-items: center;
    gap: 3.2vh;
    /* 2rem */
}

.footer-logo-wrapper {
    width: 12vh;
    /* 120px */
    height: 12vh;
    /* 120px */
    border-radius: 50%;
    overflow: hidden;
    filter: drop-shadow(0 0 1vh rgba(100, 255, 218, 0.3));
    /* 10px */
    transition: transform 0.3s ease, filter 0.3s ease;
    /* Wrapper handles the shape and external shadow */
}

.footer-logo-wrapper:hover {
    transform: translateY(-1vh) scale(1.05);
    /* -10px */
    /* Pop up effect */
    filter: drop-shadow(0 0 2vh rgba(100, 255, 218, 0.6));
    /* 20px */
}

.footer-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15);
    /* Scale up to crop black outline */
}

.social-link {
    display: inline-block;
    padding: 1.28vh 3.2vh;
    /* 0.8rem 2rem */
    background: rgba(255, 255, 255, 0.1);
    border: 0.1vh solid var(--glass-border);
    /* 1px */
    border-radius: 5vh;
    /* 50px */
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    font-family: var(--font-heading);
    letter-spacing: 0.1vh;
    /* 1px */
    font-size: 1.6vh;
    /* Added explicit vh size */
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 2vh rgba(100, 255, 218, 0.5);
    /* 20px */
    transform: translateY(-0.3vh);
    /* -3px */
}


/* Responsive */
@media (max-width: 960px) {

    .hero-section {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 12vh;
        justify-content: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-image-container {
        width: 80%;
        margin-bottom: 3.2vh;
        /* 2rem */
    }

    .cta-group {
        justify-content: center;
    }

    .glitch {
        font-size: 5.6vh;
        /* 3.5rem */
    }
}