/* Enhanced Retro 80's Cyber Aesthetic - Tailwind Complement */

/* Advanced Animation Keyframes */
@keyframes glowPulse {
    0%, 100% { 
        text-shadow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 15px currentColor;
        box-shadow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 15px currentColor;
    }
    50% { 
        text-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor, 0 0 40px currentColor;
        box-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor, 0 0 40px currentColor;
    }
}

@keyframes neonFlicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
    20%, 24%, 55% { opacity: 0.4; }
}

@keyframes cyberScan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100vw); }
}

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

@keyframes matrixRain {
    0% { transform: translateY(-100%); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

@keyframes dataStream {
    0% { transform: translateX(-100%) scaleX(0); }
    50% { transform: translateX(0%) scaleX(1); }
    100% { transform: translateX(100%) scaleX(0); }
}

/* Enhanced Neon Effects */
.neon-text {
    color: #00f5ff;
    text-shadow: 
        0 0 5px #00f5ff,
        0 0 10px #00f5ff,
        0 0 15px #00f5ff,
        0 0 20px #00f5ff;
}

.neon-text:hover {
    animation: neonFlicker 0.1s ease-in-out 3;
}

/* Logo Container Constraints */
.logo-container {
    max-width: 150px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.logo-container h1 {
    font-size: clamp(0.875rem, 2vw, 1.25rem) !important;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .logo-container h1 {
        font-size: 0.875rem !important;
    }
}

@media (max-width: 480px) {
    .logo-container h1 {
        font-size: 0.75rem !important;
    }
}

/* Cyber Border Effects */
.cyber-border {
    position: relative;
    border: 1px solid #00f5ff;
    box-shadow: 
        0 0 10px rgba(0, 245, 255, 0.3),
        inset 0 0 10px rgba(0, 245, 255, 0.1);
}

.cyber-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00f5ff, transparent, #bf00ff, transparent, #ff0080);
    z-index: -1;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cyber-border:hover::before {
    opacity: 0.6;
}

/* Retro Card with Glass Morphism */
.retro-card {
    background: linear-gradient(
        135deg,
        rgba(26, 26, 46, 0.95) 0%,
        rgba(22, 33, 62, 0.95) 100%
    );
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 245, 255, 0.3);
    position: relative;
    overflow: hidden;
}

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

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

/* Cyber Grid Background */
.cyber-grid {
    background-image: 
        linear-gradient(rgba(0, 245, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    background-attachment: fixed;
}

/* Scanning Line Effect */
.scan-line {
    position: relative;
    overflow: hidden;
}

.scan-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 245, 255, 0.15),
        transparent
    );
    animation: cyberScan 4s linear infinite;
    pointer-events: none;
}

/* Gradient Button Effects */
.bg-neon-gradient {
    background: linear-gradient(45deg, #00f5ff, #bf00ff, #ff0080);
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
}

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

/* Data Stream Effects */
.data-stream {
    position: relative;
    overflow: hidden;
}

.data-stream::before {
    content: '01110100 01101000 01100101 01110100 01110010 01110101 01110100 01101000 01101001 01110011 01101111 01110101 01110100 01110100 01101000 01100101 01110010 01100101';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    color: rgba(0, 245, 255, 0.1);
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    white-space: nowrap;
    animation: dataStream 8s linear infinite;
    pointer-events: none;
}

/* Matrix Rain Effect for Background */
.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.matrix-char {
    position: absolute;
    color: #00f5ff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    animation: matrixRain 10s linear infinite;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .retro-card {
        backdrop-filter: blur(10px);
    }
    
    .cyber-grid {
        background-size: 30px 30px;
    }
    
    .neon-text {
        text-shadow: 
            0 0 3px currentColor,
            0 0 6px currentColor,
            0 0 9px currentColor;
    }
}

@media (max-width: 480px) {
    .cyber-grid {
        background-size: 20px 20px;
        opacity: 0.1;
    }
    
    .scan-line::after {
        animation-duration: 6s;
    }
}

/* Accessibility - Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .animate-glow-pulse,
    .animate-neon-flicker,
    .animate-cyber-scan,
    .animate-float,
    .scan-line::after,
    .retro-card::before,
    .bg-neon-gradient {
        animation: none;
    }
    
    .neon-text:hover {
        animation: none;
    }
}

/* Focus Indicators for Better Accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #00f5ff;
    outline-offset: 2px;
    border-radius: 4px;
}

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

::-webkit-scrollbar-track {
    background: rgba(26, 26, 46, 0.5);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00f5ff, #bf00ff);
    border-radius: 6px;
    border: 2px solid rgba(26, 26, 46, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #bf00ff, #ff0080);
}
