/* Custom styles for The Boat House on Lake Tillery */

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

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

::-webkit-scrollbar-track {
    background: #0a0e1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #5eead4, #10b981);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #34d399, #059669);
}

/* Selection color */
::selection {
    background: rgba(94, 234, 212, 0.3);
    color: #f0fdf4;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Navbar transition states */
nav.scrolled {
    background: rgba(10, 14, 26, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

nav.scrolled .menu-line {
    background: #ffffff !important;
}

/* Hero animations - only for below fold content, hero is always visible */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.4s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.5s; }

/* Mobile menu button animation */
#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

#menu-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(94, 234, 212, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.1) !important;
}

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

/* Subtle glow effects */
.glow-mint {
    box-shadow: 0 0 40px rgba(94, 234, 212, 0.15);
}

.glow-gold {
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.15);
}

/* Loading state for buttons */
button:active {
    transform: scale(0.98);
}

button:hover {
    transform: scale(1.02);
}

/* Gallery image transitions */
.relative.overflow-hidden img {
    will-change: transform;
}

/* Date input styling */
input[type="date"] {
    color-scheme: dark;
}

/* Ensure all text is readable */
.text-gray-300 {
    color: #d1d5db;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

/* Button hover transitions */
a, button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Prevent layout shift */
img {
    loading: lazy;
}

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

/* Print styles */
@media print {
    nav, #mobile-menu, .reveal-up, .reveal-left, .reveal-right {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
