/* Custom styles for Storyteller Comics & Games */

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

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

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

::-webkit-scrollbar-thumb {
    background: #d4b35a;
    border-radius: 4px;
}

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

/* Selection color */
::selection {
    background: #C65D3E;
    color: white;
}

/* Hero image parallax-like subtle effect */
#hero img {
    transition: transform 0.6s ease;
}

#hero:hover img {
    transform: scale(1.02);
}

/* Card hover lift effect */
.group:hover {
    transform: translateY(-2px);
}

.group {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Mobile menu transition */
#mobileMenu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobileMenu.hidden {
    max-height: 0;
    opacity: 0;
}

#mobileMenu:not(.hidden) {
    max-height: 400px;
    opacity: 1;
}

/* Floating card animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.absolute.bottom-8.left-8 {
    animation: float 3s ease-in-out infinite;
}

/* Nav scroll effect */
nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Button focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #C65D3E;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .absolute.bottom-8.left-8 {
        animation: none;
    }
    
    #hero img {
        transition: none;
    }
    
    .group {
        transition: none;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    #hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .font-serif.text-5xl {
        font-size: 2.5rem;
    }
    
    .font-serif.text-4xl {
        font-size: 2rem;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1023px) {
    .font-serif.text-5xl {
        font-size: 3.5rem;
    }
}
