/* Custom Y2K Retro Styles */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Share+Tech+Mono&display=swap');

body {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #1E3A8A 100%);
    font-family: 'Share Tech Mono', monospace;
}

/* Glow effects */
.glow-text {
    text-shadow: 0 0 10px #06D6A0, 0 0 20px #06D6A0, 0 0 30px #06D6A0;
    animation: glow-pulse 2s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    from { text-shadow: 0 0 10px #06D6A0, 0 0 20px #06D6A0, 0 0 30px #06D6A0; }
    to { text-shadow: 0 0 5px #06D6A0, 0 0 10px #06D6A0, 0 0 15px #06D6A0; }
}

.retro-glow {
    filter: drop-shadow(0 0 20px #3B82F6);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

/* CRT Scanlines */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(
        transparent 0%,
        rgba(6, 214, 160, 0.03) 50%,
        transparent 51%,
        rgba(6, 214, 160, 0.03) 100%
    );
    background-size: 100% 4px;
    animation: scanlines 0.1s linear infinite;
    z-index: 1;
}

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

/* Typewriter effect */
.typewriter {
    overflow: hidden;
    border-right: .15em solid #06D6A0;
    white-space: nowrap;
    letter-spacing: .15em;
    animation: 
        typing 3.5s steps(30, end),
        blink-caret .75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #06D6A0; }
}

/* Spec cards */
.spec-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
    backdrop-filter: blur(10px);
    animation: slide-up 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

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

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

@keyframes slide-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Retro button styles */
button {
    position: relative;
    overflow: hidden;
    box-shadow: 
        inset 2px 2px 4px rgba(255, 255, 255, 0.2),
        inset -2px -2px 4px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(6, 214, 160, 0.3);
}

button:hover {
    box-shadow: 
        inset 2px 2px 4px rgba(255, 255, 255, 0.3),
        inset -2px -2px 4px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(6, 214, 160, 0.5);
}

button:active {
    box-shadow: 
        inset -2px -2px 4px rgba(255, 255, 255, 0.2),
        inset 2px 2px 4px rgba(0, 0, 0, 0.5);
    transform: scale(0.98);
}

/* Matrix-style digital rain enhancement */
canvas {
    background: radial-gradient(circle at center, rgba(30, 58, 138, 0.1) 0%, transparent 70%);
}

/* Retro grid patterns */
.retro-grid {
    background-image: 
        linear-gradient(rgba(6, 214, 160, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 214, 160, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Loading bar animation */
@keyframes loading-bar {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Futuristic border animations */
.border-animated {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #0F172A, #1E293B) padding-box,
                linear-gradient(135deg, #06D6A0, #3B82F6) border-box;
}

.border-animated::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #06D6A0, #3B82F6, #06D6A0);
    border-radius: inherit;
    z-index: -1;
    animation: border-spin 3s linear infinite;
}

@keyframes border-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile responsiveness for retro elements */
@media (max-width: 768px) {
    .scanlines {
        background-size: 100% 2px;
    }
    
    .typewriter {
        font-size: 1.5rem;
        animation: typing 2s steps(20, end);
    }
    
    .glow-text {
        text-shadow: 0 0 5px #06D6A0, 0 0 10px #06D6A0;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0F172A;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #06D6A0, #3B82F6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #3B82F6, #06D6A0);
}