/* Custom styles for Krispy Krab Clearwater Seafood */

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

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

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

::-webkit-scrollbar-thumb {
    background: #ff6b4a;
    border-radius: 5px;
}

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

/* Selection color */
::selection {
    background: #ff6b4a;
    color: #ffffff;
}

/* Animation keyframes */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

/* Float animation class */
.float {
    animation: float 3s ease-in-out infinite;
}

/* Pulse glow animation class */
.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Reveal animation for scroll sections */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* 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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Image hover effects */
img {
    max-width: 100%;
    height: auto;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #ff6b4a !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.1);
}

/* Button hover lift effect */
button,
a {
    transition: all 0.3s ease;
}

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

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

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

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

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, #ff6b4a 0%, #ffa088 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Loading state for buttons */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

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

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-charcoal-900 {
        background-color: #000000 !important;
    }
    
    .text-gray-400 {
        color: #cccccc !important;
    }
}

/* Reduced transparency preference */
@media (prefers-reduced-transparency: reduce) {
    .bg-charcoal-900\\/90 {
        background-color: #0a0a0a !important;
    }
    
    .bg-white\\/5 {
        background-color: rgba(255, 255, 255, 0.1) !important;
    }
}
