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

html {
    scroll-behavior: smooth;
}

/* Cosmic Palette */
:root {
    --cosmic-black: #0a0d14;
    --cosmic-bg-1: #0b0f17;
    --cosmic-bg-2: #000000;
    --cosmic-white: #e8edf3;

    --gold-rgb: 212, 175, 55;
    --indigo-rgb: 29, 32, 64;
    --violet-rgb: 138, 43, 226;
    --cerulean-rgb: 0, 165, 255;
    --magenta-rgb: 178, 43, 110;
    --teal-rgb: 44, 177, 166;
    --ember-rgb: 255, 85, 52;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--cosmic-black);
    color: var(--cosmic-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Cosmic Background System */
.cosmic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1000;
    background: radial-gradient(ellipse at center, var(--cosmic-bg-1) 0%, var(--cosmic-bg-2) 70%);
}

#starfield-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#cursor-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hide-cursor {
    cursor: none;
}

#cursor-dot {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.45), 0 0 16px rgba(255, 255, 255, 0.25);
    pointer-events: none;
    transform: translate(-50%, -50%);
    will-change: transform;
    backface-visibility: hidden;
    z-index: 9999;
    mix-blend-mode: screen;
    opacity: 0.85;
}

.stars-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255,255,255,0.5), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: twinkle 4s ease-in-out infinite alternate;
}

#stars-far {
    background-size: 300px 200px;
    opacity: 0.3;
    animation-duration: 6s;
}

#stars-mid {
    background-size: 250px 150px;
    opacity: 0.5;
    animation-duration: 4s;
}

#stars-near {
    background-size: 200px 100px;
    opacity: 0.7;
    animation-duration: 3s;
}

.nebula-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.12;
    background: radial-gradient(ellipse at 30% 20%, rgba(var(--violet-rgb), 0.18) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(var(--indigo-rgb), 0.12) 0%, transparent 50%),
                radial-gradient(ellipse at 20% 70%, rgba(var(--cerulean-rgb), 0.10) 0%, transparent 50%);
    animation: nebulaDrift 40s ease-in-out infinite alternate;
}

#nebula-1 {
    animation-duration: 25s;
}

#nebula-2 {
    animation-duration: 30s;
    animation-direction: alternate-reverse;
}

.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: linear-gradient(45deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    animation: none; /* triggered programmatically at rare intervals */
}

/* Preloader Overlay */
.preloader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, rgba(var(--indigo-rgb), 0.65) 0%, rgba(0,0,0,0.9) 60%);
    z-index: 2000;
    pointer-events: none;
    opacity: 1;
    transition: opacity 600ms ease, visibility 600ms ease;
    backdrop-filter: blur(2px) saturate(110%);
}
.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}
.preloader-emblem {
    width: min(280px, 40vw);
    height: auto;
    filter: drop-shadow(0 0 16px rgba(255, 215, 0, 0.25));
}
.preloader-emblem path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.92);
    stroke-width: 1.2;
    stroke-linejoin: round;
    stroke-miterlimit: 2;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 520;
    stroke-dashoffset: 520;
    animation: emblemDraw 1500ms ease-out forwards, neonPulse 1800ms ease-in-out 1200ms 2 alternate;
}
@keyframes emblemDraw {
    to { stroke-dashoffset: 0; }
}
@keyframes neonPulse {
    from { filter: drop-shadow(0 0 8px rgba(var(--gold-rgb), 0.25)); stroke: rgba(255, 255, 255, 0.92); }
    to { filter: drop-shadow(0 0 26px rgba(var(--gold-rgb), 0.55)); stroke: rgba(255, 215, 0, 0.95); }
}

/* Chi-Rho Sacred Background */
.chi-rho-background {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300vh;
    height: 300vh;
    z-index: -500;
    opacity: 0.03;
    pointer-events: none;
}

.chi-rho-emblem {
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.1);
    animation: sacredRotation 180s linear infinite;
}

/* Typography System */
.cosmic-name {
    font-family: 'Crimson Text', serif;
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0;
    transform: scale(0.8);
    animation: cosmicEmergence 3s ease-out forwards;
    animation-delay: 2s;
}

.name-part {
    display: inline-block;
    margin: 0 0.5rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    animation: nameGlow 4s ease-in-out infinite alternate;
}

.name-part:nth-child(1) { animation-delay: 0s; }
.name-part:nth-child(2) { animation-delay: 0.5s; }
.name-part:nth-child(3) { animation-delay: 1s; }

.cosmic-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: titleReveal 2s ease-out forwards;
    animation-delay: 4s;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.82);
}

.realm-title {
    font-family: 'Crimson Text', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    letter-spacing: 0.015em;
    margin-bottom: 3rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.18);
}

.prose-content {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    max-width: 800px;
    margin: 0 auto;
}

.prose-content p {
    margin-bottom: 2rem;
    text-align: justify;
    hyphens: auto;
}

/* Layout System */
.cosmic-journey {
    position: relative;
    z-index: 1;
}

.hero-realm {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content {
    text-align: center;
    padding: 2rem;
}

.scroll-invitation {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: invitationAppear 2s ease-out forwards;
    animation-delay: 6s;
    text-align: center;
}

.invitation-text {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.scroll-chevron {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.4);
    animation: chevronPulse 2s ease-in-out infinite;
}

/* Realm System */
.realm {
    min-height: 100vh;
    padding: 10vh 5vw;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.realm-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    width: 100%;
}

.floating-station {
    animation: floatingDrift 8s ease-in-out infinite alternate;
    transform-origin: center;
}

.content-block {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 4rem;
    margin: 2rem 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Realm-Specific Atmospheres */
.ethereal-realm {
    background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.04) 0%, transparent 50%);
}

.ethereal-realm .sacred-geometry {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(var(--gold-rgb), 0.25) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(var(--gold-rgb), 0.18) 0%, transparent 50%);
    animation: geometryPulse 15s ease-in-out infinite alternate;
}

.digital-realm {
    background: linear-gradient(135deg, rgba(var(--cerulean-rgb), 0.04) 0%, transparent 50%);
}

.digital-realm .circuit-patterns {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image: 
        linear-gradient(90deg, rgba(var(--cerulean-rgb), 0.25) 1px, transparent 1px),
        linear-gradient(rgba(var(--cerulean-rgb), 0.25) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: circuitFlow 10s linear infinite;
}

.builder-realm {
    background: linear-gradient(135deg, rgba(var(--ember-rgb), 0.03) 0%, transparent 50%);
}

.builder-realm .creation-patterns {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.04;
    background: radial-gradient(ellipse at center, rgba(var(--ember-rgb), 0.20) 0%, transparent 70%);
    animation: creationPulse 12s ease-in-out infinite alternate;
}

.design-realm {
    background: linear-gradient(135deg, rgba(var(--violet-rgb), 0.03) 0%, transparent 50%);
}

.design-realm .aurora-patterns {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.06;
    background: linear-gradient(45deg, 
        rgba(var(--violet-rgb), 0.25) 0%, 
        rgba(var(--indigo-rgb), 0.18) 25%, 
        rgba(var(--indigo-rgb), 0.16) 50%, 
        rgba(var(--cerulean-rgb), 0.16) 75%, 
        rgba(var(--violet-rgb), 0.25) 100%);
    animation: auroraFlow 20s ease-in-out infinite alternate;
}

/* Interactive Terminal */
.interactive-terminal {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    margin: 3rem 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(var(--cerulean-rgb), 0.3);
}

.terminal-header {
    background: rgba(40, 40, 40, 0.9);
    padding: 1rem;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.close { background: #ff5f56; }
.control.minimize { background: #ffbd2e; }
.control.maximize { background: #27ca3f; }

.terminal-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.terminal-body {
    padding: 1.5rem;
    min-height: 200px;
}

.terminal-line {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.prompt {
    color: #27ca3f;
    margin-right: 0.5rem;
}

.cursor {
    animation: cursorBlink 1s infinite;
    color: rgba(255, 255, 255, 0.8);
}

/* Growth Visualization Styles */
.growth-visualization {
    margin: 2rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.growth-path {
    width: 100%;
    height: auto;
    max-height: 350px;
}

.path-line {
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
}

.milestone-group {
    cursor: pointer;
    transition: all 0.3s ease;
}

.milestone-group:hover {
    transform: scale(1.05);
}

.milestone-group:hover .path-node {
    filter: drop-shadow(0 0 8px currentColor);
}

.milestone-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    fill: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.milestone-detail {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 400;
    fill: rgba(255, 255, 255, 0.7);
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.path-node {
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
}

.path-node:hover {
    transform: scale(1.2);
}

.progress-indicator {
    pointer-events: none;
}

/* Footer and Wings */
.cosmic-footer {
    padding: 10vh 5vw;
    text-align: center;
}

.wings-transition {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.wings-emblem {
    width: 300px;
    height: auto;
    opacity: 0.8;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
    animation: wingsGlow 8s ease-in-out infinite alternate;
}

.footer-text {
    text-align: center;
}

.edrayel-text {
    font-family: 'Crimson Text', serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.9);
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.1em;
}

/* Animations */
@keyframes twinkle {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

@keyframes nebulaDrift {
    0% { transform: translateX(-10px) translateY(-5px); }
    100% { transform: translateX(10px) translateY(5px); }
}

@keyframes shootingStar {
    0% {
        opacity: 0;
        transform: translateX(-100px) translateY(100px);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(100vw) translateY(-100px);
    }
}

@keyframes sacredRotation {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes cosmicEmergence {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes nameGlow {
    0% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.3); }
    100% { text-shadow: 0 0 30px rgba(255, 255, 255, 0.6); }
}

@keyframes titleReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes invitationAppear {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes chevronPulse {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50% { opacity: 0.8; transform: translateY(-5px); }
}

@keyframes floatingDrift {
    0% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    100% { transform: translateY(-10px) translateX(5px) rotate(0.5deg); }
}

@keyframes geometryPulse {
    0% { opacity: 0.05; }
    100% { opacity: 0.1; }
}

@keyframes circuitFlow {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

@keyframes creationPulse {
    0% { opacity: 0.04; transform: scale(1); }
    100% { opacity: 0.08; transform: scale(1.05); }
}

@keyframes auroraFlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes pathStrokeDraw {
    from { stroke-dashoffset: var(--path-length, 600); }
    to { stroke-dashoffset: 0; }
}

@keyframes lineReveal {
    from {
        opacity: 0;
        transform: translateY(-50%) scaleX(0);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scaleX(1);
    }
}

@keyframes nodeAppearLite {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes nodeFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes wingsGlow {
    0% { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2)); }
    100% { filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.4)); }
}

/* Enhanced Content Styling */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.philosophy-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.philosophy-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.philosophy-item h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.skills-constellation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-cluster {
    text-align: center;
}

.skill-cluster h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tech-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.05);
}

.ai-augmentation {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 100, 255, 0.1), rgba(100, 0, 255, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.ai-augmentation h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.creation-philosophy {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.creation-principle {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.creation-principle:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.creation-principle h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.design-principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.principle-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.principle-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.principle-card h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.growth-visualization {
    margin-top: 4rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.growth-visualization h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.growth-path {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    min-height: 200px;
}

.path-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateY(-50%);
    opacity: 0;
}

.path-node {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s ease;
    z-index: 2;
}

.path-node:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.node-content h4 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.node-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    line-height: 1.2;
}

.impact-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.metric-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.metric-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.metric-value {
    font-size: 3rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.metric-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mission-statement {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    text-align: center;
}

.mission-statement h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.research-context {
    margin: 2rem 0 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}
.research-context h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
    font-weight: 600;
}
.research-context p {
    color: rgba(255, 255, 255, 0.75);
}
.research-context a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.35);
}
.research-context a:hover {
    opacity: 0.85;
}

.contact-constellation {
    margin-top: 3rem;
    text-align: center;
}

.contact-constellation h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.contact-constellation-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.virgo-color {
    background: rgba(0, 191, 255, 0.6);
    border-color: rgba(0, 191, 255, 0.8);
}

.leo-color {
    background: rgba(255, 215, 0, 0.6);
    border-color: rgba(255, 215, 0, 0.8);
}

.gemini-color {
    background: rgba(138, 43, 226, 0.6);
    border-color: rgba(138, 43, 226, 0.8);
}

.legend-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.contact-constellation-map {
    position: relative;
    min-height: 300px;
    margin: 2rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
}

.contact-constellation-group {
    position: relative;
    margin: 1.5rem;
}

.contact-constellation-node {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    margin: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    animation: nodeFloat 6s ease-in-out infinite alternate;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-constellation-node:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    color: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.virgo-cluster .contact-constellation-node {
    border-color: rgba(0, 191, 255, 0.5);
    animation-delay: 0s;
}

.virgo-cluster .contact-constellation-node:hover {
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.4);
}

.leo-cluster .contact-constellation-node {
    border-color: rgba(255, 215, 0, 0.5);
    animation-delay: 2s;
}

.leo-cluster .contact-constellation-node:hover {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.gemini-cluster .contact-constellation-node {
    border-color: rgba(138, 43, 226, 0.5);
    animation-delay: 4s;
}

.gemini-cluster .contact-constellation-node:hover {
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
}

/* Contact Modal Styles */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    backdrop-filter: blur(20px);
    animation: modalAppear 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 1);
}

.modal-body {
    padding: 1rem 2rem 2rem;
}

.modal-info {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-action-btn {
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Industry Legend Styles */
.industry-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.legend-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.education-color { background: rgba(100, 149, 237, 0.8); }
.tech-color { background: rgba(0, 255, 127, 0.8); }
.engineering-color { background: rgba(255, 69, 0, 0.8); }
.fintech-color { background: rgba(255, 215, 0, 0.8); }
.healthcare-color { background: rgba(220, 20, 60, 0.8); }
.media-color { background: rgba(255, 20, 147, 0.8); }
.other-color { background: rgba(138, 43, 226, 0.8); }

.legend-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Organization Constellation Map Styles */
.organization-constellation-map {
    position: relative;
    width: 100%;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(25, 25, 112, 0.3) 0%, rgba(0, 0, 0, 0.8) 70%);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.constellation-svg {
    width: 100%;
    height: 100%;
}

.central-hub {
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
    animation: pulse 2s ease-in-out infinite alternate;
}

.hub-label {
    fill: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.industry-cluster {
    cursor: pointer;
    transition: all 0.3s ease;
}

.cluster-center {
    filter: drop-shadow(0 0 8px currentColor);
    transition: all 0.3s ease;
}

.cluster-label {
    fill: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 600;
    text-anchor: middle;
    pointer-events: none;
    user-select: none;
}

.org-node {
    cursor: pointer;
    transition: all 0.3s ease;
}

.org-node:hover {
    transform: scale(1.2);
}

.org-node circle {
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px currentColor);
}

.org-node:hover circle {
    filter: drop-shadow(0 0 10px currentColor);
}

.org-label {
    fill: rgba(255, 255, 255, 0.8);
    font-size: 8px;
    font-weight: 500;
    text-anchor: middle;
    pointer-events: none;
}

.connection-line {
    opacity: 0.3;
    transition: all 0.3s ease;
}

.industry-cluster:hover .connection-line {
    opacity: 0.6;
    stroke-width: 2;
}

@keyframes pulse {
    from {
        r: 15;
        opacity: 0.8;
    }
    to {
        r: 18;
        opacity: 1;
    }
}

/* Responsive Design for Constellation */
@media (max-width: 768px) {
    .industry-legend {
        gap: 10px;
        padding: 15px;
    }
    
    .legend-item {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .organization-constellation-map {
        height: 400px;
    }
    
    .constellation-svg {
        transform: scale(0.8);
        transform-origin: center;
    }
    
    .cluster-label {
        font-size: 10px;
    }
    
    .org-label {
        font-size: 7px;
    }
}

/* Animation Keyframes */
@keyframes lineReveal {
    from {
        opacity: 0;
        transform: translateY(-50%) scaleX(0);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scaleX(1);
    }
}

@keyframes nodeAppearLite {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes nodeFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

/* Terminal Hint */
.terminal-hint {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    font-style: italic;
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .philosophy-grid,
    .skills-constellation,
    .creation-philosophy,
    .design-principles {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .growth-path {
        flex-direction: column;
        align-items: center;
    }
    
    .path-line {
        width: 2px;
        height: 100%;
        left: 50%;
        top: 0;
        bottom: 0;
        transform: translateX(-50%);
        background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    .impact-metrics {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .content-block {
        padding: 2rem;
        margin: 1rem 0;
    }
    
    .wings-emblem {
        width: 200px;
    }
    
    .prose-content {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .realm {
        padding: 5vh 3vw;
    }
    
    .content-block {
        padding: 1.5rem;
    }
    
    .cosmic-name {
        font-size: 2.5rem;
    }
    
    .cosmic-title {
        font-size: 1rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .content-block {
        background: rgba(0, 0, 0, 0.8);
        border: 2px solid rgba(255, 255, 255, 0.5);
    }
    
    .constellation-node {
        background: rgba(255, 255, 255, 0.2);
        border: 2px solid rgba(255, 255, 255, 0.8);
    }
}

/* Site Navigation */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-nav .brand {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
}
.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* Ensure anchors account for fixed nav */
.realm {
    scroll-margin-top: 64px;
}

@media (max-width: 768px) {
    .site-nav {
        padding: 0.5rem 0.75rem;
        flex-direction: column;
        align-items: flex-start;
    }
    .site-nav .brand {
        margin-bottom: 0.4rem;
    }
    .nav-links {
        gap: 0.5rem;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
        -webkit-overflow-scrolling: touch;
    }
}

/* Contact Forms */
.connect-forms .content-block { padding: 2rem 0; }
.contact-forms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
  padding: 0; /* remove inner padding to keep cards aligned */
  align-items: stretch;
}
.form-card {
  background: rgba(15, 17, 28, 0.6);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
}
.form-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}
.form-card form { /* align send button consistently */
  display: flex;
  flex-direction: column;
}
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.75rem;
}
.form-group label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.25rem;
}
.form-group input,
.form-group textarea {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(255,215,0,0.6);
  box-shadow: 0 0 0 3px rgba(255,215,0,0.15);
}
.captcha-group { margin-top: 0.5rem; }
.captcha-control {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
/* add indicator next to slider value */
.captcha-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(160,120,255,0.6) 55%, transparent 65%);
  box-shadow: 0 0 2px 1px rgba(138,43,226,0.5);
  transition: box-shadow 0.15s linear, opacity 0.15s linear;
}
.captcha-control input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
  border-radius: 999px;
  outline: none;
}
.captcha-control input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: linear-gradient(90deg, rgba(100,149,237,0.35), rgba(138,43,226,0.35));
  border-radius: 999px;
}
.captcha-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(200,200,255,0.9) 60%, rgba(160,120,255,0.8) 100%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  margin-top: -6px; /* center on track */
}
.captcha-control input[type="range"]::-moz-range-track {
  height: 6px;
  background: linear-gradient(90deg, rgba(100,149,237,0.35), rgba(138,43,226,0.35));
  border-radius: 999px;
}
.captcha-control input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(200,200,255,0.9) 60%, rgba(160,120,255,0.8) 100%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.captcha-value {
  min-width: 2.5rem;
  text-align: right;
}
.form-message {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}
.btn.btn-primary {
  align-self: flex-end;
  margin-top: 0.75rem;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(100,149,237,0.85), rgba(138,43,226,0.85));
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.btn.btn-primary:hover {
  filter: brightness(1.08);
}

/* Easter Egg Modal */
.easter-egg {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1100;
}
.easter-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
}
.easter-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 0;
  width: min(680px, 92%);
  backdrop-filter: blur(20px);
  animation: modalAppear 0.35s ease-out;
}
.easter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.easter-title, .easter-header h3 {
  color: rgba(255,255,255,0.95);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
}
.easter-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.easter-close:hover {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,1);
}
.easter-body {
  padding: 1rem 1.5rem 1.5rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.8;
}
.easter-body #easter-text {
  white-space: pre-wrap;
}
.easter-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.08) 45%, transparent 70%);
  transform: translate(-50%, -50%) scale(0.4);
  animation: cosmicRipple 1.6s ease-out forwards;
  pointer-events: none;
}
/* Cosmic Ripple Animation */
@keyframes cosmicRipple {
  0% { transform: translate(-50%, -50%) scale(0.4); opacity: 0.85; }
  100% { transform: translate(-50%, -50%) scale(36); opacity: 0; }
}