/* ===== NASA-INSPIRED SPACE PORTFOLIO - REFINED ===== */

:root {
    --space-black: #000000;
    --deep-space: #0a0e1a;
    --midnight-blue: #0d1b2a;
    --cosmic-blue: #1b263b;
    --nebula-purple: #415a77;
    --galaxy-cyan: #4a9eff;
    --soft-blue: #5ba3ff;
    --star-white: #ffffff;
    --glow-blue: rgba(74, 158, 255, 0.6);
    --glow-purple: rgba(139, 152, 255, 0.4);
    --text-primary: #e0e1dd;
    --text-secondary: #9ba4b5;
    --card-bg: rgba(13, 27, 42, 0.6);
    --card-border: rgba(74, 158, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--space-black);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* ===== SPACE BACKGROUND - REFINED ===== */
.space-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: 
        radial-gradient(ellipse at 20% 10%, rgba(106, 27, 154, 0.4), transparent 35%),
        radial-gradient(ellipse at 80% 80%, rgba(26, 35, 126, 0.4), transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 229, 255, 0.15), transparent 50%),
        radial-gradient(ellipse at 10% 70%, rgba(179, 136, 255, 0.3), transparent 45%),
        radial-gradient(ellipse at 90% 30%, rgba(0, 212, 255, 0.2), transparent 40%),
        linear-gradient(180deg, #000000 0%, #0a0e1a 40%, #0d1b2a 100%);
}

.stars, .stars-slow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Large bright stars - Layer 1 - OPTIMIZED */
.stars {
    background: 
        /* Bright white stars - reduced from 23 to 10 */
        radial-gradient(2px 2px at 15% 25%, rgba(255,255,255,0.9), transparent),
        radial-gradient(3px 3px at 35% 15%, white, transparent),
        radial-gradient(2px 2px at 55% 28%, rgba(255,255,255,0.8), transparent),
        radial-gradient(3px 3px at 75% 18%, white, transparent),
        radial-gradient(2px 2px at 88% 35%, white, transparent),
        /* Cyan tinted stars */
        radial-gradient(2px 2px at 12% 48%, rgba(0,229,255,0.8), transparent),
        radial-gradient(2px 2px at 58% 8%, rgba(0,229,255,0.8), transparent),
        /* Purple tinted stars */
        radial-gradient(2px 2px at 18% 78%, rgba(179,136,255,0.7), transparent),
        radial-gradient(3px 3px at 45% 42%, rgba(179,136,255,0.8), transparent),
        radial-gradient(2px 2px at 85% 65%, rgba(179,136,255,0.8), transparent);
    background-size: 100% 100%;
    /* REMOVED ANIMATION - Static for performance */
}

/* Small distant stars - Layer 2 - OPTIMIZED */
.stars-slow {
    background:
        /* Dense field of tiny stars - reduced from 28 to 15 */
        radial-gradient(1px 1px at 10% 18%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 19% 45%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 27% 72%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 36% 22%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 44% 52%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 53% 12%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 61% 28%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 70% 55%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 79% 15%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 87% 35%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 95% 62%, rgba(255,255,255,0.5), transparent),
        /* Additional scattered stars */
        radial-gradient(1px 1px at 7% 92%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 33% 5%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 77% 3%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 89% 92%, rgba(255,255,255,0.5), transparent);
    background-size: 100% 100%;
    opacity: 0.6;
    /* REMOVED ANIMATION - Static for performance */
}

/* REMOVED starMove animation - too heavy on CPU */

/* Twinkling stars - Layer 3 - DISABLED for performance */
.stars-twinkle {
    display: none; /* Disabled - too heavy */
}

/* REMOVED twinkle animation - not needed */

/* Shooting stars effect */
.shooting-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shooting-stars::before,
.shooting-stars::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
    animation: shootingStar 8s linear infinite;
}

.shooting-stars::before {
    top: 10%;
    left: 20%;
    animation-delay: 2s;
}

.shooting-stars::after {
    top: 30%;
    left: 80%;
    animation-delay: 5s;
}

@keyframes shootingStar {
    0% {
        transform: translate(0, 0) rotate(-45deg);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translate(300px, 300px) rotate(-45deg);
        opacity: 0;
    }
}

/* Dynamic shooting stars created by JS */
.shooting-star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    box-shadow: 
        0 0 10px 2px rgba(255, 255, 255, 0.9),
        0 0 20px 4px rgba(0, 229, 255, 0.5);
    animation: shootingStar 3s linear forwards;
}

.shooting-star::before {
    content: '';
    position: absolute;
    top: 0;
    right: 3px;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.8), 
        rgba(0, 229, 255, 0.4), 
        transparent);
    transform: rotate(-45deg);
    transform-origin: left center;
}

/* ===== NAVIGATION - REFINED ===== */
.mission-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(74, 158, 255, 0.08);
    z-index: 1000;
    padding: 1.2rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--star-white);
    text-decoration: none;
    letter-spacing: 3px;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    color: var(--galaxy-cyan);
}

.mission-dot {
    color: var(--galaxy-cyan);
    text-shadow: 0 0 12px var(--glow-blue);
    animation: dotPulse 3s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--galaxy-cyan), transparent);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px var(--glow-blue);
}

.nav-link:hover,
.nav-link.active {
    color: var(--galaxy-cyan);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--star-white);
    transition: all 0.3s;
}

/* ===== HERO SECTION - MISSION START (REFINED) ===== */
.hero-mission {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    background: 
        radial-gradient(ellipse at 50% 20%, rgba(74, 158, 255, 0.08), transparent 60%),
        radial-gradient(ellipse at 50% 80%, rgba(65, 90, 119, 0.06), transparent 50%);
}

.meteor-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.hero-container {
    text-align: center;
    z-index: 10;
    animation: heroFadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.mission-frame {
    position: relative;
    width: 260px;
    height: 260px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: frameFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
    opacity: 0;
}

@keyframes frameFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 50%;
    animation: orbit 40s linear infinite;
}

.orbit-ring::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--galaxy-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--glow-blue);
    transform: translateX(-50%);
}

.orbit-2 {
    width: 340px;
    height: 340px;
    border-color: rgba(139, 152, 255, 0.15);
    animation-duration: 60s;
    animation-direction: reverse;
}

.orbit-2::before {
    background: rgba(139, 152, 255, 0.8);
    box-shadow: 0 0 6px var(--glow-purple);
}

@keyframes orbit {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.mission-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top; /* Adjust position to show face properly */
    position: relative;
    z-index: 3;
    
    /* Animated gradient border */
    border: 4px solid transparent;
    background: 
        linear-gradient(var(--space-black), var(--space-black)) padding-box,
        linear-gradient(135deg, 
            var(--galaxy-cyan) 0%, 
            var(--glow-purple) 25%,
            var(--galaxy-cyan) 50%,
            var(--glow-purple) 75%,
            var(--galaxy-cyan) 100%
        ) border-box;
    background-size: 100% 100%, 200% 200%;
    animation: borderGlow 4s linear infinite;
    
    /* Multiple layered shadows for depth */
    box-shadow: 
        /* Inner glow */
        inset 0 0 30px rgba(0, 0, 0, 0.5),
        /* Close glow */
        0 0 20px rgba(74, 158, 255, 0.6),
        0 0 40px rgba(74, 158, 255, 0.4),
        /* Medium glow */
        0 0 60px rgba(74, 158, 255, 0.3),
        0 0 80px rgba(179, 136, 255, 0.2),
        /* Far glow */
        0 0 100px rgba(74, 158, 255, 0.15),
        0 0 120px rgba(179, 136, 255, 0.1);
    
    /* Smooth transitions */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Subtle filter effects */
    filter: brightness(1.05) contrast(1.1);
}

.mission-avatar:hover {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.15);
    box-shadow: 
        inset 0 0 30px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(74, 158, 255, 0.8),
        0 0 60px rgba(74, 158, 255, 0.6),
        0 0 90px rgba(74, 158, 255, 0.4),
        0 0 120px rgba(179, 136, 255, 0.3),
        0 0 150px rgba(74, 158, 255, 0.2);
}

@keyframes borderGlow {
    0% {
        background-position: 0% 0%, 0% 0%;
    }
    100% {
        background-position: 0% 0%, 200% 200%;
    }
}

.avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    background: radial-gradient(
        circle,
        rgba(74, 158, 255, 0.25) 0%,
        rgba(179, 136, 255, 0.15) 40%,
        transparent 70%
    );
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
    z-index: 1;
    filter: blur(20px);
}

@keyframes pulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1); 
        opacity: 0.5; 
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.15); 
        opacity: 0.8; 
    }
}

/* Avatar particles effect */
.avatar-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: 240px;
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
}

.avatar-particles::before,
.avatar-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--galaxy-cyan);
    border-radius: 50%;
    box-shadow: 
        0 0 10px var(--galaxy-cyan),
        0 0 20px var(--galaxy-cyan);
    animation: particleFloat 4s ease-in-out infinite;
}

.avatar-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.avatar-particles::after {
    top: 70%;
    right: 15%;
    animation-delay: 2s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(20px, -30px);
        opacity: 0;
    }
}

/* Avatar shine effect */
.avatar-shine {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 45%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 55%,
        transparent 100%
    );
    z-index: 4;
    pointer-events: none;
    animation: shine 6s ease-in-out infinite;
    opacity: 0;
}

@keyframes shine {
    0%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(0deg);
    }
    10%, 30% {
        opacity: 1;
    }
    50% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(180deg);
    }
}

/* Dynamic avatar particles created by JS */
.avatar-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    pointer-events: none;
    animation: particleRise 4s ease-out forwards;
    z-index: 2;
}

@keyframes particleRise {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    80% {
        opacity: 0.8;
    }
    100% {
        transform: translate(0, -50px) scale(0.5);
        opacity: 0;
    }
}

/* Hexagon decorative frame */
.hexagon-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    width: 260px;
    height: 260px;
    z-index: 1;
    pointer-events: none;
}

.hexagon-frame::before,
.hexagon-frame::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: 50%;
    border-top-color: var(--galaxy-cyan);
    border-right-color: var(--galaxy-cyan);
    opacity: 0.3;
}

.hexagon-frame::before {
    animation: hexagonRotate 8s linear infinite;
}

.hexagon-frame::after {
    animation: hexagonRotate 12s linear infinite reverse;
    border-top-color: var(--glow-purple);
    border-right-color: var(--glow-purple);
}

@keyframes hexagonRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.mission-brief {
    max-width: 750px;
    margin: 0 auto;
}

.mission-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 0.75rem; /* Reduced spacing */
    animation: labelFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
    opacity: 0;
}

@keyframes labelFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.mission-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, var(--galaxy-cyan) 50%, var(--soft-blue) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    animation: nameFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
    opacity: 0;
}

@keyframes nameFadeIn {
    from {
        opacity: 0;
        transform: translateY(25px);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.mission-title {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
    animation: titleFadeIn 0.9s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards;
    opacity: 0;
}

@keyframes titleFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.mission-roles {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--galaxy-cyan);
    min-height: 2.2rem;
    margin-bottom: 2rem;
    animation: rolesFadeIn 0.9s cubic-bezier(0.4, 0, 0.2, 1) 1.2s forwards;
    opacity: 0;
}

@keyframes rolesFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.cursor-blink {
    animation: blink 1.2s ease-in-out infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.mission-tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    font-weight: 300;
    animation: taglineFadeIn 0.9s cubic-bezier(0.4, 0, 0.2, 1) 1.4s forwards;
    opacity: 0;
}

@keyframes taglineFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.mission-cta {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: ctaFadeIn 0.9s cubic-bezier(0.4, 0, 0.2, 1) 1.6s forwards;
    opacity: 0;
}

@keyframes ctaFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.cta-btn {
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.cta-btn.primary {
    background: linear-gradient(135deg, var(--galaxy-cyan), var(--soft-blue));
    color: #000000;
    box-shadow: 0 4px 20px rgba(74, 158, 255, 0.3);
    border: none;
    cursor: pointer;
}

.cta-btn.primary::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;
}

.cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(74, 158, 255, 0.5);
}

.cta-btn.primary:hover::before {
    left: 100%;
}

.cta-btn.secondary {
    background: transparent;
    border: 1.5px solid rgba(74, 158, 255, 0.5);
    color: var(--galaxy-cyan);
}

.cta-btn.secondary:hover {
    background: rgba(74, 158, 255, 0.08);
    border-color: var(--galaxy-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(74, 158, 255, 0.2);
}

.scroll-guide {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 0.7;
    animation: scrollFadeIn 1s ease 2s forwards;
    opacity: 0;
}

@keyframes scrollFadeIn {
    to { opacity: 0.7; }
}

.scroll-line {
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, var(--galaxy-cyan), transparent);
    margin: 0 auto 0.8rem;
    animation: scrollMove 2.5s ease-in-out infinite;
}

@keyframes scrollMove {
    0%, 100% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(15px); opacity: 1; }
}

/* ===== SECTION STYLES - REFINED ===== */
section {
    padding: 7rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-tag {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: rgba(74, 158, 255, 0.06);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 30px;
    color: var(--galaxy-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    transition: all 0.3s ease;
}

.section-tag:hover {
    background: rgba(74, 158, 255, 0.1);
    border-color: var(--galaxy-cyan);
    box-shadow: 0 0 20px rgba(74, 158, 255, 0.2);
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, var(--galaxy-cyan) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 300;
}

/* ===== ABOUT SECTION - MISSION PROFILE (REFINED) ===== */
.mission-profile {
    background: linear-gradient(180deg, transparent, rgba(13, 27, 42, 0.3));
}

.profile-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.profile-story {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-primary);
}

.story-lead {
    font-size: 1.4rem;
    color: var(--galaxy-cyan);
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.6;
}

.profile-story strong {
    color: var(--galaxy-cyan);
    font-weight: 600;
}

.profile-story p {
    margin-bottom: 1.5rem;
}

.mission-statement {
    margin-top: 2.5rem;
    padding: 2rem;
    background: rgba(74, 158, 255, 0.04);
    border-left: 3px solid var(--galaxy-cyan);
    border-radius: 8px;
    font-style: italic;
    color: var(--text-secondary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.profile-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.highlight-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

.highlight-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.highlight-card:hover {
    transform: translateY(-8px);
    border-color: var(--galaxy-cyan);
    box-shadow: 0 12px 40px rgba(74, 158, 255, 0.25);
    background: rgba(74, 158, 255, 0.08);
}

.card-icon {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 8px rgba(74, 158, 255, 0.4));
}

.highlight-card h4 {
    color: var(--galaxy-cyan);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.highlight-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.highlight-value {
    color: var(--star-white);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ===== IMPACT SECTION - MISSION IMPACT (REFINED) ===== */
.mission-impact {
    background: radial-gradient(ellipse at center, rgba(74, 158, 255, 0.08), transparent 70%);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
}

.impact-stat {
    background: var(--card-bg);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.impact-stat.visible {
    opacity: 1;
    transform: scale(1);
}

.impact-stat:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--galaxy-cyan);
    box-shadow: 0 20px 50px rgba(74, 158, 255, 0.3);
    background: rgba(74, 158, 255, 0.08);
}

.stat-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border: 1px solid rgba(74, 158, 255, 0.08);
    border-radius: 50%;
    /* DISABLED for performance */
    /* animation: orbit 20s linear infinite; */
}

.stat-icon {
    font-size: 3.2rem;
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 0 10px rgba(74, 158, 255, 0.5));
    position: relative;
    z-index: 2;
}

.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--galaxy-cyan), var(--soft-blue));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.8rem;
    line-height: 1;
    position: relative;
    z-index: 2;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.energy-trail {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--galaxy-cyan), transparent);
    /* DISABLED for performance */
    /* animation: energyFlow 3s ease-in-out infinite; */
}

@keyframes energyFlow {
    0%, 100% { transform: translateX(-100%); opacity: 0.5; }
    50% { transform: translateX(100%); opacity: 1; }
}

/* ===== TECH CONSTELLATION - REFINED ===== */
.tech-constellation {
    text-align: center;
    margin-top: 5rem;
    position: relative;
}

.tech-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    color: var(--galaxy-cyan);
    margin-bottom: 2.5rem;
    font-weight: 600;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    max-width: 900px;
    margin: 0 auto;
}

.tech-item {
    padding: 0.85rem 1.8rem;
    background: rgba(74, 158, 255, 0.06);
    border: 1px solid rgba(74, 158, 255, 0.25);
    border-radius: 30px;
    color: var(--galaxy-cyan);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.tech-item:hover {
    background: rgba(74, 158, 255, 0.15);
    border-color: var(--galaxy-cyan);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(74, 158, 255, 0.3);
    color: var(--star-white);
}

/* ===== SKILLS SECTION - TECHNICAL ARSENAL (REFINED) ===== */
.technical-arsenal {
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.3), transparent);
}

.arsenal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.skill-module {
    background: var(--card-bg);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-module.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-module:hover {
    border-color: var(--galaxy-cyan);
    box-shadow: 0 12px 40px rgba(74, 158, 255, 0.2);
    transform: translateY(-5px);
}

.skill-module h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--galaxy-cyan);
    margin-bottom: 2rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.skill-bar {
    margin-bottom: 1.8rem;
}

.skill-bar span {
    display: block;
    margin-bottom: 0.7rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.bar-track {
    width: 100%;
    height: 10px;
    background: rgba(74, 158, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--galaxy-cyan), var(--soft-blue));
    border-radius: 10px;
    width: 0;
    transition: width 1.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 12px rgba(74, 158, 255, 0.6);
}

.bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.human-skills {
    list-style: none;
}

.human-skills li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(74, 158, 255, 0.1);
    color: var(--text-secondary);
    position: relative;
    padding-left: 2rem;
    transition: all 0.3s ease;
}

.human-skills li:hover {
    color: var(--text-primary);
    padding-left: 2.5rem;
}

.human-skills li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--galaxy-cyan);
    font-size: 0.8rem;
}

.human-skills li:last-child {
    border-bottom: none;
}

/* ===== EXPERIENCE SECTION - MISSION TIMELINE (REFINED) ===== */
.mission-timeline {
    background: radial-gradient(ellipse at center, rgba(74, 158, 255, 0.06), transparent 70%);
}

.timeline-track {
    position: relative;
    max-width: 950px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-track::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, 
        transparent,
        var(--galaxy-cyan) 10%,
        var(--galaxy-cyan) 90%,
        transparent
    );
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(74, 158, 255, 0.5);
}

.timeline-entry {
    position: relative;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-entry.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-entry:nth-child(odd) .timeline-card {
    margin-left: auto;
    margin-right: 3.5rem;
}

.timeline-entry:nth-child(even) .timeline-card {
    margin-right: auto;
    margin-left: 3.5rem;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background: var(--galaxy-cyan);
    border: 4px solid var(--space-black);
    border-radius: 50%;
    box-shadow: 
        0 0 0 4px rgba(74, 158, 255, 0.2),
        0 0 20px rgba(74, 158, 255, 0.6);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-entry:hover .timeline-marker {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 
        0 0 0 6px rgba(74, 158, 255, 0.3),
        0 0 30px rgba(74, 158, 255, 0.8);
}

.timeline-card {
    width: 45%;
    background: var(--card-bg);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-card:hover {
    border-color: var(--galaxy-cyan);
    box-shadow: 0 12px 40px rgba(74, 158, 255, 0.25);
    transform: translateY(-8px);
    background: rgba(74, 158, 255, 0.08);
}

.timeline-date {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(74, 158, 255, 0.12);
    border-radius: 20px;
    color: var(--galaxy-cyan);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
}

.timeline-card h3 {
    color: var(--star-white);
    margin-bottom: 0.8rem;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.4;
}

.timeline-org {
    color: var(--galaxy-cyan);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.timeline-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.98rem;
}

/* ===== PROJECTS SECTION - PROJECT ARCHIVE (REFINED) ===== */
.project-archive {
    background: linear-gradient(180deg, transparent, rgba(13, 27, 42, 0.3));
}

.archive-filters {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.85rem 2rem;
    background: rgba(74, 158, 255, 0.05);
    border: 1px solid rgba(74, 158, 255, 0.25);
    border-radius: 30px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
}

.filter-btn:hover {
    background: rgba(74, 158, 255, 0.1);
    border-color: var(--galaxy-cyan);
    color: var(--galaxy-cyan);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--galaxy-cyan), var(--soft-blue));
    color: #000000;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(74, 158, 255, 0.4);
    font-weight: 600;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-module {
    background: var(--card-bg);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: scale(0.95);
}

.project-module.visible {
    opacity: 1;
    transform: scale(1);
}

.project-module:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--galaxy-cyan);
    box-shadow: 0 24px 60px rgba(74, 158, 255, 0.3);
}

.project-preview {
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.project-preview img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-module:hover .project-preview img {
    transform: scale(1.08);
}

.project-preview::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-module:hover .project-preview::after {
    opacity: 1;
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    color: var(--star-white);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.project-info p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.project-tags span {
    padding: 0.4rem 1rem;
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.25);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--galaxy-cyan);
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-module:hover .project-tags span {
    background: rgba(74, 158, 255, 0.15);
    border-color: var(--galaxy-cyan);
}

/* ===== CONTACT SECTION - COMMUNICATION CHANNEL (REFINED) ===== */
.communication-channel {
    background: radial-gradient(ellipse at center, rgba(74, 158, 255, 0.06), transparent 70%);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.channel-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.channel-card:hover {
    border-color: var(--galaxy-cyan);
    transform: translateX(12px);
    box-shadow: 0 12px 40px rgba(74, 158, 255, 0.25);
    background: rgba(74, 158, 255, 0.08);
}

.channel-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 8px rgba(74, 158, 255, 0.5));
    transition: transform 0.3s ease;
}

.channel-card:hover .channel-icon {
    transform: scale(1.1);
}

.channel-card h3 {
    color: var(--galaxy-cyan);
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.channel-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.transmission-form {
    background: var(--card-bg);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2.5rem;
}

.form-field {
    margin-bottom: 1.8rem;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 1.1rem 1.3rem;
    background: rgba(74, 158, 255, 0.04);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--galaxy-cyan);
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.15);
    background: rgba(74, 158, 255, 0.06);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--text-secondary);
}

.form-field textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

/* ===== FOOTER - REFINED ===== */
.mission-footer {
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid rgba(74, 158, 255, 0.1);
    padding: 2.5rem 0;
    text-align: center;
}

.mission-footer p {
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.footer-note {
    color: var(--galaxy-cyan);
    font-style: italic;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== METEOR ANIMATION - REFINED ===== */
.meteor {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(74, 158, 255, 0.8);
    animation: meteorFall 4s linear;
}

.meteor::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, rgba(74, 158, 255, 0.8), transparent);
    transform: rotate(45deg);
    transform-origin: 0% 50%;
}

@keyframes meteorFall {
    0% {
        transform: translateY(-100vh) translateX(-100px);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(100px);
        opacity: 0;
    }
}

/* ===== RESPONSIVE DESIGN - REFINED ===== */
@media (max-width: 968px) {
    .profile-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .timeline-track::before {
        left: 30px;
    }
    
    .timeline-entry:nth-child(odd) .timeline-card,
    .timeline-entry:nth-child(even) .timeline-card {
        width: calc(100% - 80px);
        margin-left: 80px;
        margin-right: 0;
    }
    
    .timeline-marker {
        left: 30px;
        transform: translateX(0);
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Medium screens - keep 4 cards in a row but adjust spacing */
@media (max-width: 1200px) {
    .impact-grid {
        gap: 1.5rem;
    }
    
    .impact-stat {
        padding: 1.5rem;
    }
}

/* Tablet - 2 columns */
@media (max-width: 900px) {
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    section {
        padding: 5rem 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 3rem;
        gap: 2rem;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    .mission-cta {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .cta-btn {
        width: 100%;
    }
    
    .arsenal-grid {
        grid-template-columns: 1fr;
    }
    
    .archive-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        margin-bottom: 3.5rem;
    }
}

@media (max-width: 480px) {
    .mission-frame {
        width: 240px;
        height: 240px;
    }
    
    .mission-avatar {
        width: 180px;
        height: 180px;
    }
    
    .orbit-ring {
        width: 280px;
        height: 280px;
    }
    
    .orbit-2 {
        width: 330px;
        height: 330px;
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .mission-name {
        font-size: 2.5rem;
    }
    
    .timeline-track::before {
        left: 20px;
    }
    
    .timeline-entry:nth-child(odd) .timeline-card,
    .timeline-entry:nth-child(even) .timeline-card {
        width: calc(100% - 60px);
        margin-left: 60px;
    }
    
    .timeline-marker {
        left: 20px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ===== UTILITY CLASSES ===== */
.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ===== SCROLL BAR - REFINED ===== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--space-black);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--galaxy-cyan), var(--soft-blue));
    border-radius: 10px;
    border: 2px solid var(--space-black);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--galaxy-cyan);
    box-shadow: 0 0 10px rgba(74, 158, 255, 0.5);
}

/* ===== SELECTION - REFINED ===== */
::selection {
    background: rgba(74, 158, 255, 0.3);
    color: var(--star-white);
}

::-moz-selection {
    background: rgba(74, 158, 255, 0.3);
    color: var(--star-white);
}

/* ===== PERFORMANCE OPTIMIZATION ===== */
/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .stars,
    .stars-slow,
    .stars-twinkle,
    .shooting-stars {
        animation: none !important;
    }
}


/* ===== ANIMATIONS - REFINED ===== */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* ===== UTILITY CLASSES - REFINED ===== */
.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
