/* Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700&family=Roboto:wght@300;400;500&display=swap');

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

:root {
    --primary: #fdd835;      /* Yellow */
    --secondary: #fff176;    /* Lighter Yellow */
    --dark: #1a1a1a;         /* Dark Gray */
    --darker: #000000;       /* Black */
    --light: #ffffff;        /* White */
    --rgb-primary: 253, 216, 53;
    --rgb-secondary: 255, 241, 118;
}

body {
    background-color: var(--darker);
    color: var(--light);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Animated Stars Background */
.stars, .twinkling {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: -1;
}

.stars {
    background: var(--darker) url('https://i.imgur.com/YKY28eT.png') repeat top center;
    z-index: -2;
}

.twinkling {
    background: transparent url('https://i.imgur.com/XYMF4ca.png') repeat top center;
    z-index: -1;
}

/* Multiple Star Layers for Parallax */
.stars-layer-2 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -3;
}

.stars-layer-3 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -4;
}

/* Nebula Effect */
.nebula {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(30, 144, 255, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at bottom left, rgba(255, 0, 128, 0.1) 0%, transparent 50%);
    z-index: -5;
    opacity: 0.5;
    animation: nebulaPulse 20s ease-in-out infinite;
}

@keyframes nebulaPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Constellation Canvas */
#constellation-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}


#hyperspace-jump {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    opacity: 0;
    z-index: 10000;
    pointer-events: none;
}

a {
    color: var(--primary);
    text-decoration: none;
}

/* Header and Navigation */
header {
    background-color: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem 5%;
    border-bottom: 1px solid rgba(26, 26, 58, 0.5);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 1001;
}

.logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.6rem;
    font-weight: bold;
    color: #fff;
    margin-top: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

nav a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

nav a:hover {
    color: var(--primary);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        -webkit-tap-highlight-color: transparent;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem 0;
        transition: right 0.3s ease;
        z-index: 1000;
        -webkit-tap-highlight-color: transparent;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 1rem 0;
        width: 100%;
        text-align: center;
    }
    
    nav a {
        font-size: 1.2rem;
        display: block;
        padding: 0.8rem 1rem;
        -webkit-tap-highlight-color: #ffeb3b;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        transition: all 0.2s ease;
    }
    
    nav a:active {
        background: rgba(255, 235, 59, 0.2);
        transform: scale(0.98);
    }
}

/* Responsive Typography */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    section {
        padding: 3rem 5%;
    }
    
    section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo {
        height: 35px;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    display: none;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
    color: var(--primary);
    animation: fadeInUp 1s ease-in-out 1s both;
}

@media (max-width: 768px) {
    .scroll-indicator {
        display: flex;
    }
}

.scroll-indicator span {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-arrow {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

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

/* Hero Section */
.hero {
    opacity: 1;
    transform: translateY(0);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 6rem 5% 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at center, rgba(var(--rgb-primary), 0.1) 0%, rgba(0, 0, 0, 0) 60%);
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(var(--rgb-primary), 0.1)" d="M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,202.7C672,203,768,181,864,181.3C960,181,1056,203,1152,208C1248,213,1344,203,1392,197.3L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom center no-repeat;
    background-size: 100% 150px;
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    z-index: 1;
    position: relative;
}


.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(var(--rgb-primary), 0.3);
    padding: 0 1rem;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
    line-height: 1.5;
}

/* Responsive adjustments for hero section */
@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
        line-height: 1.1;
        letter-spacing: 2px;
    }
    
    .hero p {
        font-size: 1.3rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
        letter-spacing: 0.5px;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* Rocket Animation */
.rocket-container {
    position: absolute;
    right: 10%;
    bottom: 20%;
    width: 120px;
    animation: float 6s ease-in-out infinite;
    z-index: 0;
    opacity: 0.9;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0) rotate(10deg);
    }
    50% { 
        transform: translateY(-20px) rotate(15deg);
    }
}

.rocket {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(var(--rgb-primary), 0.5));
}

.rocket-flame {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 60px;
    background: linear-gradient(to top, #ff8a00, #ff3300, transparent);
    border-radius: 50% 50% 0 0;
    filter: blur(5px);
    opacity: 0.8;
    animation: flame 0.5s ease-in-out infinite alternate;
}

@keyframes flame {
    from { 
        height: 60px;
        opacity: 0.8;
    }
    to { 
        height: 80px;
        opacity: 1;
    }
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: var(--dark);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(var(--rgb-primary), 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--rgb-primary), 0.4);
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button:active {
    transform: translateY(1px);
}

/* Floating Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    top: 0;
    left: 0;
    z-index: -1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Sections */
section {
    padding: 4rem 5%;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Ensure first section after hero is visible */
#about {
    opacity: 1;
    transform: translateY(0);
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

/* 3D Orbiting Planets */
.planet-orbit {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.planet {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    transition: box-shadow 0.3s ease;
    pointer-events: auto;
    cursor: pointer;
}

.planet:hover {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.9),
                0 0 50px rgba(var(--rgb-primary), 0.6);
}

.planet-1 {
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    animation: orbit3D 10s linear infinite;
}

.planet-2 {
    background: linear-gradient(45deg, #6bcf7f, #4a90e2);
    animation: orbit3D 15s linear infinite reverse;
    animation-delay: -5s;
}

.planet-3 {
    background: linear-gradient(45deg, #a855f7, #ec4899);
    width: 15px;
    height: 15px;
    animation: orbit3D 20s linear infinite;
    animation-delay: -10s;
}

@keyframes orbit3D {
    0% {
        transform: rotateY(0deg) translateX(100px) rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg) translateX(100px) rotateY(-360deg);
    }
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* Service Cards */
.service-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.card {
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(var(--rgb-primary), 0.5);
}

.card:hover .card-content h3,
.card:hover .card-content p {
    color: var(--darker);
}

.card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.card-content p {
    font-size: 1rem;
    line-height: 1.4;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.about-content h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: left;
}

.project-item {
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: left;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
}

.project-item:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: 0 0 25px rgba(var(--rgb-secondary), 0.5);
}

.project-item h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.learn-more-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--secondary);
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.learn-more-link:hover {
    transform: translateX(5px);
    color: var(--primary);
}

/* Project Detail Page */
.project-detail-page main {
    padding-top: 80px; /* Offset for fixed header */
}

.project-hero {
    background: linear-gradient(rgba(5, 5, 16, 0.8), rgba(5, 5, 16, 0.8)), url('https://via.placeholder.com/1920x500/0a0a1a/1a1a3a?text=Space+Background') no-repeat center center/cover;
    padding: 6rem 5%;
    text-align: center;
    color: #fff;
}

.project-hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.project-content {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 5%;
    text-align: left;
}

.project-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    border: 2px solid var(--primary);
    box-shadow: 0 0 20px rgba(var(--rgb-primary), 0.5);
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.project-gallery img {
    width: 100%;
    border-radius: 10px;
    border: 2px solid #1a1a3a;
}

.project-description::after {
    content: "";
    display: table;
    clear: both;
}

.project-description h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.project-description h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.project-description h2,
.project-description h3 {
    color: var(--primary); /* Yellow for project headings */
}

.project-description ul {
    list-style-position: inside;
    padding-left: 0;
}

.project-description ul li {
    margin-bottom: 0.5rem;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 80vh;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    height: 250px; /* Set a fixed height for uniform look */
    opacity: 0;
    transform: translateY(50px) scale(0.9) rotate(-3deg);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Staggered animation delay */
.gallery-item:nth-child(2) { transition-delay: 0.1s; }
.gallery-item:nth-child(3) { transition-delay: 0.2s; }
.gallery-item:nth-child(4) { transition-delay: 0.3s; }


.gallery-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    border: 2px solid var(--primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(var(--rgb-primary), 0.7);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background-color: transparent;
    height: 300px;
    perspective: 1000px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.team-member.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.flip-card-back {
    transform: rotateY(180deg);
    justify-content: center;
}

.flip-card-front img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    margin-bottom: 1rem;
}

.team-member h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.team-member p {
    color: var(--secondary);
    font-weight: 500;
}

.team-member .click-info {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    opacity: 0.7;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.flip-card-back .quote {
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 0 0 0 0.8rem;
    color: var(--secondary);
    border-left: 2px solid var(--primary);
}

/* Timeline Section */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    box-shadow: 0 0 10px var(--primary);
}

.timeline-item {
    padding: 1rem 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--dark);
    border: 4px solid var(--secondary);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 15px var(--secondary);
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--dark);
    position: relative;
    border-radius: 8px;
    border: 1px solid var(--primary);
    transition: transform 0.5s, opacity 0.5s;
    opacity: 0;
    transform: translateY(50px);
}

.timeline-item .timeline-content {
    transition: transform 0.5s, opacity 0.5s;
    opacity: 0;
    transform: translateY(50px);
}

.timeline-item.visible .timeline-content,
.project-item.visible,
.team-member.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .timeline::after {
        left: 30px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
    }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-item::after {
        left: 20px;
    }
}

/* Careers Section */
.job-opening {
    background-color: var(--dark);
    padding: 2.5rem;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.job-opening h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.job-opening h4 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.job-opening ul {
    list-style-position: inside;
    padding-left: 0;
}

.job-opening ul li {
    margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form {
    max-width: 800px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form .form-group {
    display: flex;
    gap: 1.5rem;
}

.contact-form .form-group input {
    width: 100%;
}

.contact-form input,
.contact-form textarea {
    background-color: var(--dark);
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 1rem;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(var(--rgb-primary), 0.3);
}

.contact-form button {
    align-self: center;
}

/* Launch Animation */
.launch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.launch-overlay.active {
    display: flex;
}

.countdown {
    font-size: 10rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 30px rgba(var(--rgb-primary), 0.8);
    animation: countdownPulse 1s ease-in-out;
    position: absolute;
    opacity: 0;
}

.countdown.show {
    opacity: 1;
}

@keyframes countdownPulse {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.launch-rocket {
    position: absolute;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    opacity: 0;
}

.launch-rocket.launching {
    animation: rocketLaunch 2s ease-in forwards;
    opacity: 1;
}

@keyframes rocketLaunch {
    0% {
        bottom: -200px;
        transform: translateX(-50%) rotate(0deg);
    }
    20% {
        transform: translateX(-50%) rotate(-5deg);
    }
    40% {
        transform: translateX(-50%) rotate(5deg);
    }
    60% {
        transform: translateX(-50%) rotate(-3deg);
    }
    80% {
        transform: translateX(-50%) rotate(2deg);
    }
    100% {
        bottom: 120%;
        transform: translateX(-50%) rotate(0deg);
    }
}

.rocket-launch-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(var(--rgb-primary), 0.8));
}

.rocket-launch-flame {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 100px;
    background: linear-gradient(to top, #ff8a00, #ff3300, transparent);
    border-radius: 50% 50% 0 0;
    filter: blur(8px);
    opacity: 0.9;
    animation: launchFlame 0.3s ease-in-out infinite alternate;
}

@keyframes launchFlame {
    from {
        height: 100px;
        opacity: 0.9;
    }
    to {
        height: 140px;
        opacity: 1;
    }
}

.success-message {
    text-align: center;
    opacity: 0;
    transform: scale(0.5);
    position: absolute;
}

.success-message.show {
    animation: successAppear 0.5s ease-out forwards;
}

@keyframes successAppear {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.success-message h3 {
    font-size: 3rem;
    font-family: 'Orbitron', sans-serif;
    color: var(--primary);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(var(--rgb-primary), 0.6);
}

.success-message p {
    font-size: 1.5rem;
    color: var(--secondary);
}

/* News Section */
.news-grid, .all-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.news-item {
    background-color: var(--dark);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(var(--rgb-primary), 0.2);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.news-content p {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.news-date {
    font-size: 0.9rem;
    color: var(--secondary);
    align-self: flex-start;
}

/* News & Article Page Specifics */
.page-hero {
    background: linear-gradient(rgba(5, 5, 16, 0.8), rgba(5, 5, 16, 0.8)), url('https://via.placeholder.com/1920x400/0a0a1a/1a1a3a?text=News+Banner') no-repeat center center/cover;
    padding: 6rem 5%;
    text-align: center;
    color: #fff;
}

.page-hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.timeline-page #timeline,
.careers-page #careers {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 5%;
}

.all-news-grid {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 5%;
}

/* Article Page */
.article-page article {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 5%;
    text-align: left;
}

.article-header {
    text-align: center;
    margin-bottom: 2rem;
}

.article-header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.article-meta {
    color: var(--secondary);
    font-weight: 500;
}

.article-hero-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.news-item img,
.article-hero-image {
    display: none;
}

@media (max-width: 600px) {
    .contact-form .form-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .card, .project-item {
        padding: 1.5rem;
    }

    .job-opening {
        padding: 1.5rem;
    }

    .job-opening h3 {
        font-size: 1.5rem;
    }
}

/* Footer */
footer {
    background-color: #0a0a1a;
    text-align: center;
    padding: 2rem 5%;
    border-top: 1px solid #1a1a3a;
}

/* Hide Netlify Badge */
[data-netlify-badge] {
    display: none !important;
}
