:root {
    /* Theme: "Cosmic Indigo" */
    --color-bg: #030414;
    --color-bg-card: #18122b;
    --color-purple: #4F00BC;
    --color-purple-bright: #7c3aed;
    --color-purple-dark: #2d1a4a;
    --color-orange: #ff7f0e;
    --color-white: #fff;
    --color-offwhite: #e0e0e0;
    --color-gray: #bcbcbc;
    --color-border: #23243a;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
}

/* --- GLOBAL STYLES --- */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-offwhite);
    font-family: var(--font-main);
    overflow-x: hidden;
}

/* The connect & exobound pages use a slightly different background. This can be unified later. */
.antialiased {
    background-color: #0d0f26;
    color: #f0f0f0;
}


h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-white);
}

a {
    color: var(--color-orange);
    transition: color 0.2s, text-shadow 0.2s;
}
a:hover {
    color: var(--color-orange);
    text-decoration: underline;
}

/* --- UTILITY & COLOR CLASSES --- */
.cosmic-indigo { color: #8b5cf6; }
.princeton-orange { color: #F58426; }
.electric-blue { color: #0066CC; }

.bg-cosmic-indigo { background-color: var(--color-orange); }
.border-cosmic-indigo { border-color: var(--color-orange); }
.text-slate-600 { color: var(--color-gray); }

/* Override Tailwind defaults for dark theme */
.bg-white, .bg-gray-50 { background-color: var(--color-bg-card); }
.border-gray-200 { border-color: var(--color-border); }
.shadow-sm { box-shadow: 0 2px 8px rgba(0,0,0,0.25); }
.rounded-lg { border-radius: 1rem; }

/* --- HERO SECTION --- */
#hero {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: -80px; /* Offset navigation height */
    padding-top: 80px; /* Add padding to prevent content overlap */
}
.hero-title { color: var(--color-white); }
.hero-sub { color: var(--color-offwhite); }

/* --- BUTTONS --- */
.btn-ecosystem, .btn-blog {
    background: linear-gradient(90deg, var(--color-purple-dark) 0%, var(--color-purple) 100%);
    color: var(--color-white);
    border: 2px solid var(--color-purple);
    box-shadow: 0 4px 24px rgba(79,0,188,0.15);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 0.85rem 2.5rem;
    border-radius: 9999px;
    margin: 2.5rem auto 0 auto;
    cursor: pointer;
    outline: none;
    display: inline-block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-ecosystem::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.btn-ecosystem:hover, .btn-blog:hover {
    background: linear-gradient(90deg, var(--color-purple) 0%, var(--color-purple-dark) 100%);
    box-shadow: 0 0 30px 8px var(--color-purple-bright), 0 6px 32px rgba(79,0,188,0.25);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-ecosystem:hover::before {
    left: 100%;
}

.btn-ecosystem:active {
    transform: scale(0.95) translateY(2px);
    box-shadow: 0 0 32px 12px var(--color-purple-bright);
}

/* --- CARDS & PILLARS --- */
.pillar-title, .card-title { color: var(--color-white); }
.pillar-body, .card-body { color: var(--color-offwhite); }
.card-link { color: var(--color-orange); }
.card-link:hover { color: var(--color-orange); text-decoration: underline; }

.project-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, margin-top 0.5s ease-in-out;
}

/* --- JOURNEY TIMELINE --- */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.25rem;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: #4a4a5a; /* Darker timeline */
}
.timeline-dot {
    position: absolute;
    top: 0.25rem;
    left: 1.25rem;
    transform: translateX(-50%);
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: var(--color-purple);
    border: 3px solid var(--color-white);
}

/* --- ANIMATIONS & UTILITIES --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

.pulse-element {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-purple);
    animation: pulse-dot 2s infinite;
}

.jump {
    animation: jump 0.6s ease-out;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(79, 0, 188, 0.7); }
    50% { transform: scale(1.1); box-shadow: 0 0 10px 10px rgba(79, 0, 188, 0); }
}
@keyframes jump {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Contact Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: #1a1b2e;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #66ccff;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    color: #66ccff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #ff9900;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #66ccff;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    background: rgba(102, 204, 255, 0.1);
    border: 1px solid rgba(102, 204, 255, 0.3);
    border-radius: 5px;
    color: #f0f0f0;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #66ccff;
    box-shadow: 0 0 10px rgba(102, 204, 255, 0.3);
}

.btn-send {
    background: linear-gradient(90deg, #66ccff, #ff9900);
    color: #0c0c1a;
    font-weight: 700;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 204, 255, 0.3);
}

.contact-modal-heading {
    color: #66ccff;
    font-family: 'Orbitron', Arial, sans-serif;
    margin-bottom: 20px;
}

/* --- EXOBOUND & CONNECT PAGE STYLES --- */

.exobound-title, .contact-modal-heading {
    font-family: 'Orbitron', 'Arial', sans-serif;
}

.exo-blue { color: #66ccff; }
.exo-orange { color: #ff9900; }

.text-glow {
    text-shadow: 0 0 10px rgba(102, 204, 255, 0.5);
}

.section-glow { 
    box-shadow: 0 0 40px -10px rgba(0, 102, 204, 0.3); 
}

/* --- EXOBOUND PAGE: TABS --- */
.tab-active { 
    background: linear-gradient(90deg, #66ccff, #ff9900);
    color: #0c0c1a;
    font-weight: 700;
    text-shadow: none;
    border: 1px solid #66ccff;
}

.tab-inactive { 
    background: rgba(102, 204, 255, 0.1);
    color: #66ccff;
    border: 1px solid rgba(102, 204, 255, 0.3);
    opacity: 0.7;
    transition: opacity 0.2s, background-color 0.2s;
}

.tab-inactive:hover {
    opacity: 1;
    background: rgba(102, 204, 255, 0.2);
}

/* --- CONNECT PAGE: GATEWAY SECTION --- */
.gateway-bg {
    background: linear-gradient(135deg, #0c0c1a 0%, #1a0c2e 50%, #0c0c1a 100%);
    background-image: url('https://images.unsplash.com/photo-1534796636912-3b95b3ab5986?q=80&w=2071&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.btn-exobound {
    color: #ff9900;
    font-size: 24px;
    font-family: 'Orbitron', 'Arial', sans-serif;
    animation: pulse-orange 1.5s infinite;
    border: 1px solid #ff9900;
    padding: 15px 30px;
    border-radius: 25px;
    background: rgba(255, 153, 0, 0.1);
    text-decoration: none;
    display: inline-block;
    margin-top: 32px;
    font-weight: 700;
}

.btn-exobound:hover {
    background: rgba(255, 153, 0, 0.2);
    text-decoration: none;
    color: #ff9900;
}

/* Different pulse animation for orange buttons */
@keyframes pulse-orange {
    0%, 100% { 
        opacity: 0.8; 
        box-shadow: 0 0 0 0 rgba(255, 153, 0, 0.7);
    }
    50% { 
        opacity: 1; 
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 153, 0, 0);
    }
}

/* Override for connect/exobound pages button style */
.btn-ecosystem {
    font-size: 16px;
    animation: pulse-orange 1.5s infinite;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}