@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* Retro-futuristic green theme */
:root {
    --neon-green: #00ff41;
    --dark-green: #0a0a0a;
    --medium-green: #1a1a1a;
    --light-green: #00cc33;
    --accent-green: #39ff14;
    --glow-green: #00ff88;
    --crt-green: #00ff00;
}

.gradient-text {
    background: linear-gradient(45deg, var(--neon-green) 0%, var(--accent-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 10px var(--neon-green);
}

.cosmic-bg {
    background: radial-gradient(ellipse at center, var(--dark-green) 0%, #000000 50%, #000000 100%);
    position: relative;
}

/* CRT scanlines effect */
.cosmic-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 50%,
        rgba(0, 255, 0, 0.02) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1;
    animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* CRT flicker effect */
.cosmic-bg::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 50% 50%,
        transparent 0%,
        rgba(0, 255, 0, 0.01) 100%
    );
    pointer-events: none;
    z-index: 2;
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.2; }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite alternate;
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 20px var(--neon-green);
}

@keyframes pulse-glow {
    from { 
        box-shadow: 0 0 20px var(--neon-green), 0 0 40px var(--neon-green), 0 0 60px var(--neon-green);
        border-color: var(--neon-green);
    }
    to { 
        box-shadow: 0 0 10px var(--accent-green), 0 0 20px var(--accent-green), 0 0 30px var(--accent-green);
        border-color: var(--accent-green);
    }
}

.parallax-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Use viewport height units for consistent sizing */
    pointer-events: none;
    z-index: -1;
}

.star {
    position: absolute;
    background: var(--neon-green);
    border-radius: 50%;
    animation: twinkle 3s infinite;
    box-shadow: 0 0 5px var(--neon-green);
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.cosmic-card {
    backdrop-filter: blur(10px);
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid var(--neon-green);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cosmic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.1), transparent);
    transition: left 0.5s;
}

.cosmic-card:hover::before {
    left: 100%;
}

.cosmic-card:hover {
    transform: scale(1.05) rotateY(5deg);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.3);
    border-color: var(--accent-green);
}

.hero-3d {
    perspective: 1000px;
}

.hero-content {
    transform-style: preserve-3d;
}

/* Title styling without animations */
.title-container {
    position: relative;
    overflow: hidden;
}

.title-word {
    display: inline-block;
    position: relative;
    text-shadow: 0 0 10px var(--neon-green);
}

.title-underline {
    position: relative;
    display: inline-block;
}

.title-underline::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(45deg, var(--neon-green), var(--accent-green));
}

/* Particle effects for title */
.title-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, var(--neon-green), var(--accent-green));
    border-radius: 50%;
    animation: particle-float 4s linear infinite;
    box-shadow: 0 0 10px var(--neon-green);
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Enhanced floating elements */
.floating-element {
    position: absolute;
    opacity: 0.6;
    animation: float-complex 8s ease-in-out infinite;
    border: 1px solid var(--neon-green);
}

.floating-element:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 6s;
}

.floating-element:nth-child(2) {
    animation-delay: -4s;
    animation-duration: 7s;
}

.floating-element:nth-child(3) {
    animation-delay: -1s;
    animation-duration: 5s;
}

@keyframes float-complex {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    25% { 
        transform: translateY(-15px) rotate(90deg) scale(1.1);
    }
    50% { 
        transform: translateY(-25px) rotate(180deg) scale(0.9);
    }
    75% { 
        transform: translateY(-10px) rotate(270deg) scale(1.05);
    }
}

/* Responsive improvements */
@media (max-width: 768px) {
    .title-word {
        font-size: 0.8em;
    }
}



/* Enhanced button animations */
.btn-cosmic {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, var(--neon-green), var(--accent-green));
    color: black;
    font-weight: bold;
}

.btn-cosmic::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.5s;
}

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

.btn-cosmic:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 255, 0, 0.4);
}

/* Ripple effect for buttons */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 255, 0, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Three.js canvas styling */
#universe-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Use viewport height units for consistent sizing */
    z-index: -2;
    pointer-events: none;
}

/* Retro-futuristic text styling */
.retro-text {
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 10px var(--neon-green);
    letter-spacing: 2px;
}

/* CRT terminal effect for text */
.terminal-text {
    font-family: 'Courier New', monospace;
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green);
    animation: terminal-blink 1s infinite;
}

@keyframes terminal-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Enhanced particle effects */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, var(--neon-green), var(--accent-green));
    border-radius: 50%;
    animation: particle-float 4s linear infinite;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

/* Additional floating elements styles */
.floating-element {
    position: absolute;
    opacity: 0.6;
    animation: float-complex 8s ease-in-out infinite;
    pointer-events: none;
}

.floating-element:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/* Title container without animations */
.title-container {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

/* Retro-futuristic navigation */
nav {
    border-bottom: 2px solid var(--neon-green);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

nav a {
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--neon-green);
    transition: left 0.3s ease;
}

nav a:hover::before {
    left: 0;
}

/* Retro-futuristic cards */
.cosmic-card {
    background: rgba(0, 20, 0, 0.8);
    border: 1px solid var(--neon-green);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.cosmic-card:hover {
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.4);
    border-color: var(--accent-green);
}

/* Retro-futuristic buttons */
button {
    background: linear-gradient(45deg, var(--neon-green), var(--accent-green));
    color: black;
    font-weight: bold;
    border: none;
    text-shadow: none;
}

button:hover {
    background: linear-gradient(45deg, var(--accent-green), var(--neon-green));
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
} 