:root {
    --bg-space: #050505;
    --accent-red: #ff4500;
    --accent-blue: #00bfff;
    --accent-green: #00ff88;
    --text-primary: #ffffff;
    --glass-bg: rgba(20, 20, 25, 0.7);
    /* Darker, less transparent for readability */
    --glass-border: rgba(255, 255, 255, 0.15);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-space);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Typography */
h1,
h2,
h3,
.logo {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
    /* Clean look */
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    /* Reverted to original */
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.logo img {
    height: 48px;
    /* Balanced size */
    width: auto;
    max-width: none;
    /* Removed width constraint */
    margin-bottom: 5px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.sub-logo {
    font-weight: 400;
    font-size: 1rem;
    opacity: 0.7;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

/* Star Field Background - STATIC */
.star-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image:
        radial-gradient(white, rgba(255, 255, 255, .2) 2px, transparent 3px),
        radial-gradient(white, rgba(255, 255, 255, .15) 1px, transparent 2px),
        radial-gradient(white, rgba(255, 255, 255, .1) 2px, transparent 3px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    z-index: -2;
}

/* Rocket */
/* Rocket */
/* Rocket */
/* Rocket */
.rocket-container {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    /* Increased size as requested */
    height: 240px;
    /* Proportional height */
    z-index: 5;
    pointer-events: none;
    transition: top 0.1s linear;
}

#rocket {
    width: 100%;
    height: auto;
    transform: rotate(0deg);
    mix-blend-mode: normal;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

/* Propulsion Trail - BEHIND ROCKET */
.rocket-trail-gradient {
    position: absolute;
    bottom: -75px;
    /* Moved further down as requested */
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 250px;
    z-index: -1;
    background: linear-gradient(to bottom,
            rgba(255, 200, 100, 0.9) 0%,
            rgba(255, 69, 0, 0.6) 30%,
            rgba(255, 255, 255, 0.1) 60%,
            transparent 100%);
    filter: blur(6px);
    border-radius: 50%;
}

/* Core flame */
.rocket-trail-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 80px;
    background: linear-gradient(to bottom, white, gold, transparent);
    filter: blur(2px);
    border-radius: 10px;
}

/* Sections */
.section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

/* Space Section (Top) */
.space-section {
    justify-content: flex-start;
    padding-top: 15vh;
}

/* MARS: Background, Small, Visible */
.planet-container.mars-container {
    position: absolute;
    top: 25%;
    /* Moved up significantly */
    right: 15%;
    width: 120px;
    height: 120px;
    z-index: 100;
}

.planet.mars {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    mix-blend-mode: screen;
    filter: contrast(1.1) brightness(1.0);
    opacity: 1;
}

/* MOON: HUGE, Dome at Top */
.planet-container.moon-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 54vw;
    max-width: none;
    height: auto;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: transparent;
    overflow: visible;
}

.planet.moon {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

.moon-label {
    position: absolute;
    top: 40vh;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    text-align: center;
    pointer-events: none;
    width: 100%;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 1);
}

.moon-label h2,
.moon-label p {
    color: #fff;
    font-weight: 700;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.8));
}

.hero-content {
    margin-top: 400px;
    text-align: center;
    z-index: 20;
}

.hero-content h1 {
    font-size: 5rem;
    /* Large and impactful */
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 1);
    color: #fff;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.5rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
}

/* Info Sections (Problem/Solution/Team) */
/* Info Sections (Problem/Solution/Team) */
.info-section {
    padding: 100px 5%;
    justify-content: center;
    flex-direction: column;
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin-top: 40px;
    width: 100%;
}

.problem-card {
    background: rgba(20, 20, 25, 0.6);
    border: 1px solid rgba(255, 69, 0, 0.3);
    /* Reddish tint for "Problem" */
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 20;
}

.problem-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-red);
    box-shadow: 0 10px 40px rgba(255, 69, 0, 0.1);
}

.problem-card h3 {
    font-size: 1.8rem;
    color: var(--accent-red);
    margin-bottom: 20px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centered flex content */
    gap: 15px;
    text-align: center;
}



.problem-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ddd;
    text-align: justify;
}

/* Solution Section (Dual Layout) */
.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin-top: 40px;
    width: 100%;
}

.solution-card {
    background: rgba(20, 20, 25, 0.6);
    border: 1px solid rgba(0, 191, 255, 0.3);
    /* Blue tint for "Solution" */
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 20;
}

.solution-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 40px rgba(0, 191, 255, 0.1);
}

.solution-card h3 {
    font-size: 1.8rem;
    color: var(--accent-blue);
    margin-bottom: 20px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    text-align: center;
    /* Centered text */
}

.solution-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ddd;
    text-align: justify;
}

/* Response for mobile */
@media (max-width: 768px) {

    .problem-grid,
    .solution-grid {
        grid-template-columns: 1fr;
    }
}

.content-wrapper {
    max-width: 900px;
    padding: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 20;
}

.content-wrapper h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    color: var(--accent-blue);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    text-align: center;
}

.content-wrapper p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #eee;
    text-align: justify;
}

.content-wrapper.center p {
    text-align: center;
}

/* Technology Section */
.journey-section {
    min-height: auto;
    padding: 100px 5%;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 10;
}

.tech-card {
    background: rgba(0, 0, 0, 0.7);
    /* Dark semi-transparent */
    border: 1px solid rgba(0, 255, 136, 0.3);
    /* Subtle green border matching other sections */
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    /* Reduced blur to see Earth better? Or keep 10px */
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.1);
    z-index: 20;
    /* Ensure on top of Earth */
}

.tech-card:hover {
    transform: translateY(-10px);
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
    /* Tighter glow, no background change */
}

.tech-step-title {
    color: var(--accent-green);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
    font-weight: 700;
    text-align: center;
}

.tech-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
    font-family: var(--font-heading);
    text-align: center;
}

.tech-card p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

.tech-card strong {
    color: var(--accent-blue);
}

.tech-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Force square */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
    .tech-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

/* Image Positioning - Default to center for square */
.tech-img-leaching,
.tech-img-electrolysis,
.tech-img-printing {
    object-position: center;
}

/* Earth Section (Bottom) */
/* Earth Section (Bottom) */
.earth-section {
    position: relative;
    overflow: hidden;
    justify-content: center;
    /* Center the tech grid vertically */
    padding-bottom: 50px;
    min-height: 100vh;
}

.earth-container {
    position: absolute;
    bottom: -2%;
    left: 0;
    width: 100%;
    /* Full screen width to allow image to exist anywhere */
    height: 50vh;
    /* Constrain height so it doesn't take over vertically */
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: visible;
    /* Let clicks pass */
}

/* Remove .earth-content styles as it is deleted */

.planet.earth {
    width: auto;
    /* Let image dictate width based on height constraint */
    height: 100%;
    /* Fill the container height */
    max-width: 100%;
    /* Don't overflow screen */
    object-fit: contain;
    /* Show WHOLE image, no cutting */
    mix-blend-mode: normal;
    filter: drop-shadow(0 -50px 100px rgba(0, 255, 136, 0.4));
}



.earth-content {
    position: relative;
    z-index: 20;
    text-align: center;
    margin-bottom: 200px;
    /* Push content up */
    padding: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 30px;
    border: 1px solid var(--accent-green);
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.2);
    max-width: 800px;
}

.earth-content h2 {
    font-size: 3.5rem;
    color: var(--accent-green);
    margin-bottom: 20px;
}

.contact-area {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.cta-button {
    padding: 18px 50px;
    font-size: 1.2rem;
    background: var(--accent-green);
    color: #000;
    border: none;
    border-radius: 40px;
    font-family: var(--font-heading);
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    text-decoration: none;
    /* Added to remove underline */
    display: inline-block;
    /* Good practice for anchor buttons */
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--accent-green);
    color: var(--accent-green);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.4);
}

/* Footer */
.footer {
    position: relative;
    z-index: 100;
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid var(--accent-green);
    padding: 30px;
    text-align: center;
    width: 100%;
}

.footer-logo {
    font-family: var(--font-heading);
    color: var(--accent-green);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-info p {
    color: #888;
    font-size: 0.9rem;
    margin: 5px 0;
}

/* Founder Profile Styles */
/* Founder Profile Styles */
.founder-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    /* Vertically centered image */
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}

.content-wrapper.center h2 {
    text-align: center;
}

.founder-photo-container {
    flex-shrink: 0;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-green);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.4);
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.founder-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #222;
}

.founder-info {
    width: 100%;
    max-width: 800px;
}

.founder-info h3 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 5px;
    font-family: var(--font-heading);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    text-align: center;
    /* Centered Name */
}

.founder-title {
    font-size: 1.2rem;
    color: var(--accent-blue);
    margin-bottom: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    /* Centered Title */
}

.founder-bio {
    text-align: justify;
    /* Removed background box as requested */
}

.founder-bio p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #ddd;
    margin-bottom: 15px;
}

.founder-bio strong {
    color: var(--accent-green);
}

.founder-card+.founder-card {
    margin-top: 80px;
    padding-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 900px) {
    .founder-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .founder-bio {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .founder-bio {
        text-align: left;
        /* Justify can be bad on small mobile screens */
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .content-wrapper {
        padding: 30px;
        margin: 0 15px;
    }

    .planet.moon {
        width: 150vw;
        top: -50px;
        height: 300px;
    }

    .hero-content {
        margin-top: 300px;
    }

    .earth-content {
        margin-bottom: 5vh;
    }
}