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

@keyframes float-slow-delayed {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-25px) translateX(-15px);
    }
}

@keyframes grid-move {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(60px);
    }
}

@keyframes scroll-indicator {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(6, 182, 212, 0.6);
    }
}

@keyframes border-glow {
    0% {
        border-color: rgba(6, 182, 212, 0.3);
    }
    50% {
        border-color: rgba(6, 182, 212, 0.6);
    }
    100% {
        border-color: rgba(6, 182, 212, 0.3);
    }
}

.animate-float-slow {
    animation: float-slow 12s ease-in-out infinite;
}

.animate-float-slow-delayed {
    animation: float-slow-delayed 15s ease-in-out infinite;
}

.animate-grid-move {
    animation: grid-move 20s linear infinite;
}

.animate-scroll-indicator {
    animation: scroll-indicator 2s ease-in-out infinite;
}

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

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

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

::-webkit-scrollbar-track {
    background: #0f172a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Smooth scrolling and height control */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    max-width: 100vw;
}

/* Selection styling */
::selection {
    background: rgba(6, 182, 212, 0.3);
    color: #ffffff;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
}

/* Button glow effect */
.btn-glow-dark {
    position: relative;
    overflow: hidden;
}

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

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

/* Card hover effects */
.card-hover-dark {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover-dark:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px -12px rgba(6, 182, 212, 0.25);
}

/* Gradient text animation */
.gradient-text-animated {
    background: linear-gradient(
        90deg,
        #06b6d4,
        #8b5cf6,
        #ec4899,
        #06b6d4
    );
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-flow-dark 4s linear infinite;
}

@keyframes gradient-flow-dark {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 300% center;
    }
}

/* Particle effect for dark theme */
.particle-dark {
    position: fixed;
    width: 3px;
    height: 3px;
    background: rgba(6, 182, 212, 0.4);
    border-radius: 50%;
    pointer-events: none;
    animation: particle-float-dark 20s infinite linear;
    z-index: 0;
}

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

/* Glassmorphism for dark theme */
.glass-card-dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Neon glow effect */
.neon-glow {
    box-shadow: 
        0 0 5px rgba(6, 182, 212, 0.5),
        0 0 10px rgba(6, 182, 212, 0.3),
        0 0 20px rgba(6, 182, 212, 0.1);
}

.neon-glow:hover {
    box-shadow: 
        0 0 10px rgba(6, 182, 212, 0.7),
        0 0 20px rgba(6, 182, 212, 0.5),
        0 0 40px rgba(6, 182, 212, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .animate-float-slow,
    .animate-float-slow-delayed {
        animation-duration: 18s;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Loading animation */
@keyframes fade-in-up-dark {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up-dark {
    animation: fade-in-up-dark 0.8s ease-out forwards;
}

/* Staggered animation delays */
.stagger-dark-1 { animation-delay: 0.1s; }
.stagger-dark-2 { animation-delay: 0.2s; }
.stagger-dark-3 { animation-delay: 0.3s; }
.stagger-dark-4 { animation-delay: 0.4s; }
.stagger-dark-5 { animation-delay: 0.5s; }
.stagger-dark-6 { animation-delay: 0.6s; }

/* Counter animation */
@keyframes count-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter-animate {
    animation: count-up 1s ease-out forwards;
}

/* Hover line effect */
.hover-line {
    position: relative;
}

.hover-line::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    transition: width 0.3s ease;
}

.hover-line:hover::after {
    width: 100%;
}

/* Map marker pulse */
@keyframes marker-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.marker-pulse {
    animation: marker-pulse 2s ease-in-out infinite;
}