/* Custom styles for Cardboard Gaming */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #2d1117;
}
::-webkit-scrollbar-thumb {
    background: #742c41;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a84d67;
}

/* Selection color */
::selection {
    background: #fbbf24;
    color: #2d1117;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(45, 17, 23, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(116, 44, 65, 0.3);
}

/* Hero geometric animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(12deg); }
    50% { transform: translateY(-12px) rotate(12deg); }
}

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

@keyframes pulse-glow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

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

.geometric-float-slow {
    animation: float-slow 8s ease-in-out infinite;
}

.geometric-pulse {
    animation: pulse-glow 4s ease-in-out infinite;
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Card hover effects */
.game-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Button hover glow */
.btn-glow:hover {
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
}

/* Image aspect ratio fallbacks */
.aspect-\[4\/5\] {
    aspect-ratio: 4 / 5;
}
.aspect-\[3\/4\] {
    aspect-ratio: 3 / 4;
}
.aspect-\[4\/3\] {
    aspect-ratio: 4 / 3;
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
#mobile-menu.open {
    max-height: 400px;
}

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

/* Subtle pattern overlay for sections */
.pattern-dots::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(251, 191, 36, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}
