/* ==================== SPACE BACKGROUND WITH PARTICLES ====================
@keyframes particle-glow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.stars-background {
    position: relative;
    overflow: hidden;
}

.stars-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 2px),
        radial-gradient(circle, rgba(255,255,255,0.6) 0%, transparent 1px),
        radial-gradient(circle, rgba(255,255,255,0.9) 0%, transparent 1.5px),
        radial-gradient(circle, rgba(255,255,255,0.7) 0%, transparent 1px);
    background-size: 300px 300px, 250px 250px, 200px 200px, 350px 350px;
    background-position: 0 0, 130px 80px, 50px 150px, 200px 30px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.stars-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, rgba(255,255,255,0.9) 0%, transparent 2px),
        radial-gradient(circle, rgba(255,255,255,0.7) 0%, transparent 1.5px),
        radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 1px);
    background-size: 400px 400px, 280px 280px, 320px 320px;
    background-position: 70px 100px, 220px 200px, 150px 50px;
    animation: particle-glow 4s ease-in-out infinite;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

/* Carousel Styles */
.render-carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 3rem;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(78, 205, 196, 0.3);
    background: rgba(10, 14, 26, 0.9);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: radial-gradient(circle at center, rgba(30, 60, 90, 0.3), transparent 70%);
}

.carousel-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background-image: url('../images/EarthTexture.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(2px);
    z-index: 0;
    box-shadow: 0 0 80px rgba(78, 205, 196, 0.2);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%) scale(0.8) rotate(20deg);
    transition: none;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0) scale(1) rotate(0deg);
    animation: swooshIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.carousel-slide.exit-left {
    animation: swooshOutLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(78, 205, 196, 0.4));
    position: relative;
    z-index: 2;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.carousel-btn {
    pointer-events: all;
    background: rgba(78, 205, 196, 0.3);
    border: 2px solid #4ecdc4;
    color: #4ecdc4;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(78, 205, 196, 0.6);
    transform: scale(1.1);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #4ecdc4;
    transform: scale(1.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes swooshIn {
    0% {
        opacity: 0;
        transform: translateX(100%) scale(0.8) rotate(20deg);
    }
    60% {
        transform: translateX(-5%) scale(1.02) rotate(-2deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1) rotate(0deg);
    }
}

@keyframes swooshOutLeft {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateX(-100%) scale(0.8) rotate(-20deg);
    }
}

/* ==================== RESET & BASE ====================
 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}================= RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --dark-bg: #1a202c;
    --light-bg: #f7fafc;
    --text-dark: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    background: #000000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(255, 100, 0, 0.3), 0 2px 10px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid rgba(255, 100, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999999;
}

.nav-container {
    max-width: 2400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff9944;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 100, 0, 0.6);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(255, 100, 0, 0.3);
}

.nav-menu a:hover {
    color: #ff9944;
    text-shadow: 0 0 15px rgba(255, 100, 0, 0.6);
    transform: translateY(-2px);
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000000;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-background canvas {
    display: block;
}

/* ==================== SECTIONS ==================== */
.section {
    padding: 5rem 0;
    position: relative;
    z-index: 10;
    background-color: var(--white);
}

.section-alt {
    background-color: var(--light-bg);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

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

.challenge-card {
    background: linear-gradient(135deg, #1a2332, #0f1621);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(78, 205, 196, 0.2);
    border: 1px solid rgba(78, 205, 196, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.challenge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(78, 205, 196, 0.3);
    border-color: rgba(78, 205, 196, 0.4);
}

.card-icon {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.challenge-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #4ecdc4;
}

.challenge-card p {
    color: #b0c4d8;
}

/* ==================== 3D MODEL SECTION ==================== */
.model-container {
    max-width: 1000px;
    margin: 0 auto;
}

#canvas-container {
    width: 100%;
    height: 600px;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 100%);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

.model-controls {
    text-align: center;
    margin-top: 2rem;
}

.control-hint {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.control-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.control-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==================== SOLUTION SECTION ==================== */
.solution-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.solution-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.solution-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.solution-features {
    list-style: none;
}

.solution-features li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: #d0dce8;
    font-size: 1.05rem;
}

.solution-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4ecdc4;
    font-weight: bold;
    font-size: 1.3rem;
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

.solution-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.placeholder-box {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
}

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

.team-card {
    background: linear-gradient(135deg, #1a2332, #0f1621);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(78, 205, 196, 0.2);
    border: 1px solid rgba(78, 205, 196, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(78, 205, 196, 0.3);
    border-color: rgba(78, 205, 196, 0.4);
}

.team-avatar {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #e0e8f0;
}

.team-role {
    color: #8fa8c0;
    font-style: italic;
}

/* ==================== SATELLITE SECTION ==================== */
.satellite-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.satellite-model {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    height: 500px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

.satellite-info h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.satellite-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.spec-item {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.spec-item h4 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.spec-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.satellite-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-top: 1.5rem;
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: #0a0e1a;
    color: #b0c0d0;
    text-align: center;
    padding: 3rem 2rem;
}

.footer p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .solution-content {
        grid-template-columns: 1fr;
    }

    .challenge-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .satellite-content {
        grid-template-columns: 1fr;
    }

    .satellite-specs {
        grid-template-columns: 1fr;
    }

    .satellite-model {
        height: 400px;
    }

    .section {
        padding: 3rem 0;
    }

    #canvas-container {
        height: 400px;
    }
}
