/* updated style.css */
:root {
    /* Fallback color if image doesn't load */
    --bg-color: #0b0d17;
    /* Off-white text for readability */
    --text-color: #e0e6ed;
    /* Neon Cyan accent color */
    --accent-color: #00d4ff;
    /* Semi-transparent nav background so stars show through slightly */
    --nav-bg: rgba(21, 25, 43, 0.9);
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    /* --- LAYOUT & TYPOGRAPHY (KEEP THESE) --- */
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-color); /* Keep this as a backup color */
    
    /* --- NEW ADDITION --- */
    overflow-x: hidden; /* Crucial: stops scrollbars from appearing during zoom */
    position: relative; /* Helps manage the stacking order */
}

body::before {
    content: "";
    position: fixed; /* This replaces "background-attachment: fixed" */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Puts it behind your text */

    /* --- THE MOVED BACKGROUND PROPERTIES --- */
    background-image:
        linear-gradient(rgba(11, 13, 23, 0.7), rgba(11, 13, 23, 0.85)),
        url('graphics/stars-bg.jpg');
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* --- THE ANIMATION --- */
    animation: spaceDrift 40s ease-in-out infinite alternate;
    animation-delay: -10s; /* Gives some intitial velocity */
    pointer-events: none; /* Ensures clicks pass through to the page */
}

/* 3. The Motion Definition */
@keyframes spaceDrift {
    0% {
        transform: scale(1) rotate(0deg);
    }
    100% {
        transform: scale(1.2) rotate(5deg); /* Subtle zoom & twist */
    }
}

/* --- Navigation --- */
nav {
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px); /* Adds a modern blur effect behind nav */
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky; /* Keeps nav at top when scrolling */
    top: 0;
    z-index: 100;
}

.logo img {
    height: 120px; /* Adjust height as needed for your specific logo graphic */
    width: auto;
    display: block;
    /* Optional: adds a slight glow to the logo */
    filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.3));
}
/* Fallback if logo.png isn't found */
.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 20px;
    font-size: 1rem;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}
.nav-links a:hover {
    color: var(--accent-color);
}


/* --- Main Content --- */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
}

/* --- Animation Section --- */
.hero-content { max-width: 800px; }

.animate-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 1.5s; }
.delay-3 { animation-delay: 2.0s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

h1 {
    font-size: 2.2rem; /* Desktop size */
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.sub-hero {
    font-size: 1.5rem;
    color: #b8c5d6;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Mobile Responsiveness: shrink title on small screens */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem; /* Mobile size */
    }
}

/* --- Three Pillars --- */
.pillars {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}
.pillar-item {
    /* Semi-transparent background for the boxes */
    background: rgba(21, 25, 43, 0.6);
    border: 1px solid var(--accent-color);
    padding: 1.5rem;
    border-radius: 8px;
    width: 220px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.pillar-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -10px rgba(0, 212, 255, 0.5);
    background: rgba(0, 212, 255, 0.1);
}
.pillar-item h3 {
    margin: 0;
    color: var(--accent-color);
    font-weight: 400;
    letter-spacing: 1px;
}

/* --- Footer --- */
footer {
    background-color: var(--nav-bg);
    padding: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent-color); }

/* Mobile Optimizations */
@media (max-width: 600px) {
    nav { flex-direction: column; gap: 1rem; padding: 1rem; }
    .nav-links { display: flex; flex-direction: column; gap: 0.5rem; }
    .nav-links a { margin-left: 0; }
    .pillars { flex-direction: column; }
    .pillar-item { width: 100%; }
    h1 { font-size: 2.2rem; }
}

/* --- Add to bottom of style.css --- */

/* Team Section Styling */
.team-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.team-card {
    background: rgba(21, 25, 43, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    width: 300px;
    text-align: center;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Makes the image a perfect circle */
    object-fit: cover;
    border: 3px solid var(--accent-color);
    margin-bottom: 1rem;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.team-role {
    color: var(--accent-color);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.team-bio {
    font-size: 0.95rem;
    color: #b8c5d6;
    line-height: 1.6;
    font-style: italic;
}

/* Goals Section on this page */
.goals-section {
    max-width: 700px;
    margin: 0 auto 4rem auto;
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.goals-list {
    list-style: none;
    padding: 0;
    font-size: 1.2rem;
    color: #e0e6ed;
}
.goals-list li {
    margin: 0.5rem 0;
    color: var(--accent-color);
}

/* --- Add to bottom of style.css --- */

/* Address Card Styling */
.address-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.address-card {
    background: rgba(21, 25, 43, 0.8); /* Darker bg */
    border: 1px solid #334155;
    padding: 2rem;
    border-radius: 8px;
    width: 250px;
    text-align: left;
    transition: border-color 0.3s;
}

.address-card:hover {
    border-color: var(--accent-color);
}

.address-card h3 {
    color: var(--accent-color);
    margin-top: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.address-card p {
    color: #cbd5e1;
    margin: 0;
    line-height: 1.8;
}

/* Email Button Styling */
.email-section {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(0, 212, 255, 0.05); /* Very faint blue bg */
    border-radius: 12px;
    display: inline-block;
}

.email-btn {
    background-color: var(--accent-color);
    color: #0b0d17; /* Dark text on bright button */
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.email-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--accent-color);
}

/* --- Add to bottom of style.css --- */

/* Legal Page Styling */
.legal-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left; /* Legal text is harder to read if centered */
    background: rgba(11, 13, 23, 0.85); /* Darker background for contrast */
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid #334155;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.legal-container h2 {
    color: var(--accent-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

.legal-container h3 {
    color: #fff;
    margin-top: 1.5rem;
    font-size: 1.1rem;
}

.legal-block {
    margin-bottom: 2rem;
    color: #cbd5e1;
}

.legal-block strong {
    color: #fff;
}

/* --- Language Switcher --- */
.lang-switch {
    border: 1px solid var(--accent-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 15px;
    transition: all 0.2s;
}

.lang-switch:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

@media (max-width: 600px) {
    .lang-switch { margin-left: 0; margin-top: 10px; display: inline-block; }
}

/* Language Switch Styling */
.lang-switch {
    margin-left: 2rem;
    font-family: inherit;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-switch a {
    text-decoration: none;
    color: var(--text-color); /* Or white, depending on your theme */
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.lang-switch a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.lang-switch .lang-active {
    font-weight: bold;
    color: var(--accent-color);
    cursor: default;
}

.lang-switch .separator {
    opacity: 0.5;
}

/* Mobile Responsiveness update */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap; /* Allows items to wrap if screen is small */
    }
    .lang-switch {
        margin-left: auto; /* Pushes it to the right on mobile if needed */
    }
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply Animation */
.animate-text {
    opacity: 0; /* Hidden by default */
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Stagger the delays */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Pillars Grid Layout */
.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.pillar-item {
    background: rgba(255, 255, 255, 0.05); /* Subtle transparent background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.pillar-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color); /* Uses the color variable you likely have */
}

.pillar-item h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
}

/* Team Grid Layout */
.team-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap; /* Wraps to next line on mobile */
    margin-top: 3rem;
}

.team-card {
    text-align: center;
    max-width: 300px;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%; /* Makes image circular */
    object-fit: cover;
    border: 3px solid var(--accent-color);
    margin-bottom: 1rem;
}

.team-role {
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.team-bio {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.5;
}

/* --- FINAL MOBILE FIXES --- */
/* This block ensures text fits on phones, placed last to override everything else */
@media (max-width: 768px) {
    
    /* 1. Constrain the main container */
    .hero-content {
        width: 100%;
        padding-left: 1.5rem;  /* Adds safe zone on left */
        padding-right: 1.5rem; /* Adds safe zone on right */
        box-sizing: border-box; /* Ensures padding doesn't make width > 100% */
    }

    /* 2. Shrink title and force line breaks */
    h1 {
        font-size: 1.8rem; /* Smaller size for mobile */
        word-wrap: break-word; /* Forces long words like "Weltraumerkundung" to break if needed */
        hyphens: auto; 
        line-height: 1.3; /* Tighter spacing for multiple lines */
    }

    /* 3. Adjust sub-text */
    .sub-hero {
        font-size: 1.1rem; 
        padding: 0 0.5rem;
    }

    /* 4. Ensure pillars stack in a single column */
    .pillars {
        grid-template-columns: 1fr !important; /* !important forces the grid to be 1 column */
        padding: 0 1rem;
        gap: 1.5rem;
    }
}

/* =========================================
   HOVER CARD EFFECTS (PILLARS)
   ========================================= */

/* 1. Parent Card Setup */
.pillar-item {
    position: relative; /* Keeps the overlay inside the box */
    overflow: hidden;   /* Clips the image to the rounded corners */
    min-height: 250px;  /* Ensures the square image fits better */
    /* Keeps your existing border/padding styles */
}

/* 2. The Hidden Overlay (Text + Image) */
.pillar-detail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Layout for the text */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
    
    /* Animation settings */
    opacity: 0; /* Hidden by default */
    transition: opacity 0.4s ease;
    
    /* Text Styling */
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0,0,0,1); /* Strong shadow for readability */
    text-align: center;
    
    /* Background Image Setup */
    background-color: rgba(0, 0, 0, 0.3); /* Dark tint */
    background-blend-mode: multiply; /* Blends tint into image */
    background-size: cover;
    background-position: center;
}

/* 3. Show on Hover */
.pillar-item:hover .pillar-detail {
    opacity: 1;
}

/* 4. Assign Images to Cards */
.type-space .pillar-detail  { background-image: url('graphics/pillar-space.png'); }
.type-bio .pillar-detail    { background-image: url('graphics/pillar-bio.png'); }
.type-ai .pillar-detail     { background-image: url('graphics/pillar-ai.png'); }
.type-energy .pillar-detail { background-image: url('graphics/pillar-energy.png'); }

