/* =========================================
   1. VARIABLES & CONFIG
   ========================================= */
:root {
    /* Colors */
    --primary-color: #0d1b2a;
    /* Deep Blue Base */
    --secondary-color: #1b263b;
    /* Mid Blue */
    --accent-color: #c9a227;
    /* Gold */
    --text-color: #e0e1dd;
    /* Off-white */
    --bg-color: #000000;
    /* Pure Black */

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;

    /* Animation */
    --transition: 0.3s ease;
}

/* =========================================
   2. RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   3. LAYOUT & UTILITIES
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

/* Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.section-header .line {
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--accent-color);
    cursor: pointer;
    transition: all var(--transition) ease;
}

.btn:hover {
    background: transparent;
    color: var(--accent-color);
}

/* =========================================
   4. COMPONENT: NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all var(--transition);
}

.navbar.scrolled {
    background: var(--primary-color);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 5px 0;
}

/* =========================================
   5. COMPONENT: HERO w/ EARTH ANIMATION
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    background: radial-gradient(circle at center, #1b263b 0%, #000 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

/* Three.js Container */
#earth-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Behind content but above background */
    pointer-events: none;
    /* Allow clicking through if needed */
}

.hero__content {
    position: relative;
    z-index: 2;
    /* Above Earth */
    background: rgba(13, 27, 42, 0.7);
    /* Frosted glass effect */
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(201, 162, 39, 0.3);
    backdrop-filter: blur(5px);
}

.hero__content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

/* =========================================
   6. SECTIONS: STATS, ABOUT, PORTFOLIO
   ========================================= */
/* Stats */
.stats {
    background-color: var(--secondary-color);
    color: #fff;
    text-align: center;
}

.stats__container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item {
    flex: 1;
    min-width: 200px;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: block;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.stat-number::after {
    content: '+';
    font-size: 2rem;
    vertical-align: top;
    margin-left: 5px;
    color: var(--accent-color);
}

.stat-item p {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ccc;
}

/* Timeline (About) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    background: var(--secondary-color);
    padding: 20px 30px;
    border-radius: 4px;
    border: 1px solid #333;
}

.timeline-item h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
}

/* Contact */
.contact-wrapper {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.info-item i {
    width: 20px;
    text-align: center;
}

/* =========================================
   7. FOOTER
   ========================================= */
.footer {
    background: var(--secondary-color);
    padding-top: 60px;
    color: #fff;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer__col h3 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    margin-bottom: 20px;
}

.footer__bottom {
    background: var(--primary-color);
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

/* =========================================
   8. COMPONENT: ROADMAP & CARDS
   ========================================= */
/* Vision & Mission Cards */
.vm-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border: 1px solid var(--accent-color);
    text-align: center;
    transition: var(--transition);
}

.vm-card:hover {
    background: rgba(201, 162, 39, 0.1);
    transform: translateY(-5px);
}

.vm-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* Roadmap */
.roadmap__container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
    position: relative;
}

.roadmap-step {
    flex: 1;
    min-width: 280px;
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 8px;
    border-bottom: 3px solid var(--accent-color);
    position: relative;
    z-index: 1;
}

.roadmap-step::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: var(--bg-color);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    z-index: 2;
}

.roadmap-step-number {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-color);
    font-weight: 700;
    z-index: 3;
}

.roadmap-step h4 {
    color: #fff;
    margin-top: 15px;
    font-size: 1.2rem;
}

/* =========================================
   9. ANIMATIONS & MEDIA QUERIES
   ========================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-on-scroll {
    opacity: 0;
    transition: all 1s ease-out;
    transform: translateY(30px);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes rotateEarth {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 200% 0;
    }

    /* Matches bg size */
}

@keyframes spinOrbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .hero__content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        text-align: left;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }

    .earth-container {
        width: 300px;
        height: 300px;
    }

    .satellite-orbit {
        width: 400px;
        height: 400px;
    }
}