:root {
    /* Space Theme x Pinterest Brand Palette */
    --bg-color: #1A2B3C;
    /* Pinterest Deep Navy as base */
    --bg-gradient-start: #1A2B3C;
    --bg-gradient-end: #0D161F;
    /* Darker shade of Navy */

    --card-bg: rgba(26, 43, 60, 0.4);
    /* Navy Glass */
    --card-border: rgba(230, 57, 70, 0.2);
    /* Subtle Red border */

    --text-main: #FFFFFF;
    --text-muted: #A8DADC;
    /* Light Blue from original palette/complementary */

    --accent: #E63946;
    /* Pinterest Red */
    --accent-secondary: #F1FAEE;
    /* Off white/Honeydew */

    --primary-btn: #E63946;
    --primary-btn-text: #FFFFFF;

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-full: 9999px;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(230, 57, 70, 0.2);

    --font-main: 'Outfit', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    background: radial-gradient(ellipse at bottom, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Constellation Canvas */
#constellationCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    /* Behind everything */
    background: transparent;
}

/*
   Stylish CSS Parallax Stars
   Generated using box-shadows for performance and crispness
*/
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.star-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    animation: moveStars 100s linear infinite;
}

.star-layer:nth-child(1) {
    width: 1px;
    height: 1px;
    background: transparent;
    box-shadow:
        10vw 10vh #FFF, 20vw 80vh #FFF, 35vw 40vh #FFF,
        60vw 20vh #FFF, 80vw 60vh #FFF, 90vw 10vh #FFF,
        15vw 90vh #FFF, 45vw 20vh #FFF, 75vw 80vh #FFF,
        50vw 50vh #FFF, 5vw 25vh #FFF, 95vw 95vh #FFF;
    opacity: 0.8;
    animation-duration: 150s;
    /* Slowest (Distant) */
}

.star-layer:nth-child(2) {
    width: 2px;
    height: 2px;
    background: transparent;
    box-shadow:
        25vw 25vh rgba(255, 255, 255, 0.8),
        55vw 75vh rgba(255, 255, 255, 0.8),
        85vw 15vh rgba(255, 255, 255, 0.8),
        10vw 60vh rgba(255, 255, 255, 0.8),
        70vw 40vh rgba(255, 255, 255, 0.8);
    opacity: 0.6;
    animation-duration: 100s;
    /* Medium */
}

.star-layer:nth-child(3) {
    width: 3px;
    height: 3px;
    background: transparent;
    box-shadow:
        40vw 30vh rgba(230, 57, 70, 0.6),
        /* Tinted brand red */
        10vw 80vh rgba(255, 255, 255, 0.9),
        90vw 40vh rgba(255, 255, 255, 0.9);
    opacity: 0.4;
    animation-duration: 50s;
    /* Fastest (Close) */
    filter: blur(1px);
}

@keyframes moveStars {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-100vh);
    }
}

/* Subtle Nebula Glow */
.nebula-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.05) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(50px);
}


a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    /* Ensure content is above bg */
    z-index: 1;
}

/* Typography */
h1,
h2,
h3,
h4 {
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

h1 {
    font-size: 4rem;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, #A0A0B0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--accent);
}

p {
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.8rem;
}

.btn-primary {
    background-color: var(--primary-btn);
    color: var(--primary-btn-text);
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.3);
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(230, 57, 70, 0.5);
    background-color: #fff;
    color: var(--accent);
}

.btn-white {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-white:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(9, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:not(.btn):hover {
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent);
}

/* Hero Split Layout */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* Text wider than image */
    align-items: center;
    gap: 40px;
    text-align: left;
    /* Alignment change */
    min-height: 80vh;
}

.hero-content {
    order: 1;
    max-width: 100%;
    margin: 0;
}

.hero-content h1 {
    font-size: 3.5rem;
    /* Larger for impact */
    margin-bottom: 32px;
}

.hero-actions {
    justify-content: flex-start;
    /* Align buttons left */
}

/* Image on Right */
.hero-image {
    order: 2;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 450px;
    /* Much larger */
    height: auto;
    aspect-ratio: 1/1.1;
    /* Slightly vertical portrait feel */
    border-radius: 40px;
    object-fit: cover;
    /* Fixes "applati" / squashed look */

    /* Elegant Glass Border */
    border: 1px solid rgba(255, 255, 255, 0.2);

    /* Soft, Premium Shadow */
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.5),
        20px 20px 60px rgba(26, 43, 60, 0.5);
    /* Deep Navy Shadow */

    transition: all 0.5s ease;
    /* Removed 3D perspective to ensure clean look */
}

.hero-image:hover img {
    transform: scale(1.02);
    /* Simple refined zoom */
    box-shadow:
        0 30px 60px -15px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(230, 57, 70, 0.2);
}

/* Optional: Decorative element behind */
.hero-image::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.2), transparent 60%);
    z-index: -1;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 120px;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
        margin-bottom: 40px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image img {
        max-width: 300px;
        transform: none;
        /* No 3D on mobile for simplicity */
    }
}

.pill-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.2);
    color: var(--accent);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 32px;
    box-shadow: 0 0 10px rgba(230, 57, 70, 0.1);
}

.hero-sub {
    font-size: 1.4rem;
    margin-bottom: 48px;
    color: var(--text-muted);
    font-weight: 300;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Cards (Glassmorphism) */
.stat-card,
.about-content,
.contact-box,
.timeline-content,
.trust-badge {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* Stats */
.stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 120px;
    flex-wrap: wrap;
}

.stat-card {
    padding: 40px 60px;
    text-align: center;
    min-width: 220px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(to bottom, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--accent-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Timeline Component Custom Styles */
.timeline-section {
    position: relative;
    padding: 60px 0;
    margin-bottom: 120px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto 120px auto;
    /* Added bottom margin */
}

/* Vertical Line */
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    box-shadow: 0 0 10px var(--accent);
}

.timeline-item {
    padding: 10px 50px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

/* Left side items */
.timeline-item:nth-child(even) {
    left: 0;
    text-align: right;
}

/* Right side items */
.timeline-item:nth-child(odd) {
    left: 50%;
    text-align: left;
}

/* The dots */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--bg-color);
    border: 2px solid var(--accent);
    box-shadow: 0 0 10px var(--accent), inset 0 0 5px var(--accent);
    top: 24px;
    border-radius: 50%;
    z-index: 1;
}

/* Fix dot position for right items */
.timeline-item:nth-child(odd)::after {
    left: -8px;
}

.timeline-content {
    padding: 32px;
    transition: all 0.3s ease;
    border: 1px solid rgba(230, 57, 70, 0.1);
}

.timeline-content:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.15);
    border-color: rgba(230, 57, 70, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

/* Timeline Typography Updates */
.timeline-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    /* Restored Accent Color */
    margin-bottom: 5px;
    white-space: nowrap;
}

.timeline-content h4 {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 5px;
    /* Tighter spacing */
}

.timeline-date {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 0 5px rgba(230, 57, 70, 0.5);
}

.timeline-content h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #fff;
    opacity: 0.9;
}

.timeline-content p {
    font-size: 1rem;
    line-height: 1.6;
}

/* About / Social Proof */
.about {
    margin-bottom: 120px;
}

.about-content {
    padding: 60px;
    text-align: center;
}

.trust-badge-container {
    margin-top: 40px;
}

.trust-badge {
    padding: 20px 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.trust-badge span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.trust-badge strong {
    color: #fff;
    font-size: 1.1rem;
}

/* Contact */
.contact {
    margin-bottom: 80px;
}

.contact-box {
    padding: 80px 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(0, 242, 255, 0.1);
}

.social-links {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 32px;
}

.social-link {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--accent);
    transition: all 0.3s;
}

.social-link:hover {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent);
    border-color: transparent;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding-top: 140px;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }

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

    /* Move dots to left */
    .timeline-item::after {
        left: 21px;
    }

    .timeline-item:nth-child(odd)::after {
        left: 21px;
    }
}