/* Custom styles for Cut Paste & Play Shop */

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

/* Selection color */
::selection {
    background-color: rgba(234, 179, 8, 0.2);
    color: #102a43;
}

/* Navbar transition states */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #eab308, #ca8a04);
    border-radius: 1px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 60%;
}

/* Navbar scrolled state */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(16, 42, 67, 0.05), 0 8px 24px rgba(16, 42, 67, 0.06);
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal delays */
.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; }

/* Mobile menu animation */
#mobileMenu.open {
    max-height: 500px;
}

/* Menu button animation */
#menuBtn.active #menuIcon span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#menuBtn.active #menuIcon span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

#menuBtn.active #menuIcon span:nth-child(3) {
    width: 100%;
    transform: translateX(0);
}

/* Card hover effects */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, #102a43, #eab308);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

::-webkit-scrollbar-track {
    background: #f0f4f8;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #102a43, #334e68);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #243b53, #486581);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .animate-float,
    .animate-float-delayed,
    .animate-float-slow,
    .animate-float-rotate {
        animation: none;
    }
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .font-display {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    #hero .font-display {
        font-size: 2.25rem;
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #eab308;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #f0f4f8 25%, #e8eef5 50%, #f0f4f8 75%);
    background-size: 200% 100%;
    animation: shimmer-loading 1.5s ease-in-out infinite;
}

@keyframes shimmer-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

img[src] {
    animation: none;
    background: none;
}
