
/* Custom CSS for Robo-Sunrise 2084 - Future Version */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    background: #0a0a0f;
    color: #e2e8f0;
    font-family: 'Exo 2', sans-serif;
}

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

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #00f3ff, #b967ff);
    border-radius: 6px;
    border: 2px solid #0a0a0f;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #00c4cc, #9a4dff);
}

/* Cyber Grid Background */
.bg-grid {
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(0, 243, 255, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 243, 255, 0.1) 1px, transparent 1px);
}

/* Animation Delays */
.animation-delay-500 {
    animation-delay: 0.5s;
}
.animation-delay-1000 {
    animation-delay: 1s;
}
.animation-delay-1500 {
    animation-delay: 1.5s;
}
.animation-delay-2000 {
    animation-delay: 2s;
}

/* Header fixes */
header {
    position: relative;
    z-index: 10;
    overflow: hidden;
}

/* Ensure navbar is visible on top */
robo-navbar {
    display: block;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Hero section improvements */
header .container {
    position: relative;
    z-index: 20;
}

/* Fix for gradient overlay */
header .absolute.inset-0.bg-black {
    z-index: 1;
}

/* Ensure content is above overlay */
header .relative.z-10 {
    z-index: 20;
}

/* Cyber Card Hover Effects */
.hover-glow {
    transition: all 0.3s ease;
}
.hover-glow:hover {
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
}

/* Text Glow Effects */
.text-glow {
    text-shadow: 0 0 10px currentColor;
}

/* Cyber Border Animation */
.cyber-border {
    position: relative;
    border: 1px solid transparent;
    background: linear-gradient(#0a0a0f, #0a0a0f) padding-box,
                linear-gradient(45deg, #00f3ff, #b967ff, #ff00ff) border-box;
}

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Mobile header adjustments */
    header {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    header h1 {
        font-size: 3rem;
    }
    
    header p {
        font-size: 1.125rem;
    }
    
    /* Adjust stats grid */
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Accessibility focus styles */
:focus {
    outline: 2px solid #00f3ff;
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid #00f3ff;
    outline-offset: 2px;
}

/* Fix for overlapping elements */
main {
    position: relative;
    z-index: 1;
}

/* Ensure cookie consent is on top */
cookie-consent {
    z-index: 9999;
}

/* Custom Font Weights */
.font-thin {
    font-weight: 100;
}
.font-light {
    font-weight: 300;
}
.font-normal {
    font-weight: 400;
}
.font-medium {
    font-weight: 500;
}
.font-semibold {
    font-weight: 600;
}
.font-bold {
    font-weight: 700;
}
.font-black {
    font-weight: 900;
}

/* Custom Utilities */
.backdrop-blur-sm {
    backdrop-filter: blur(8px);
}
.backdrop-blur-md {
    backdrop-filter: blur(12px);
}
.backdrop-blur-lg {
    backdrop-filter: blur(16px);
}

/* Gradient Underline */
.gradient-underline {
    position: relative;
    display: inline-block;
}
.gradient-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #00f3ff, #b967ff);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}
.gradient-underline:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Neon Button Effects */
.neon-button {
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.neon-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
}
.neon-button:hover::before {
    left: 100%;
}

/* Cyber Grid Pattern Overlay */
.cyber-grid-overlay {
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Hologram Effect */
.hologram-effect {
    position: relative;
    overflow: hidden;
}
.hologram-effect::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(0, 243, 255, 0) 0%,
        rgba(0, 243, 255, 0.1) 50%,
        rgba(0, 243, 255, 0) 100%
    );
    transform: rotate(45deg);
    animation: hologram-scan 3s linear infinite;
}
@keyframes hologram-scan {
    0% { transform: rotate(45deg) translateX(-100%); }
    100% { transform: rotate(45deg) translateX(100%); }
}
