/* Base styles and custom utilities */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

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

@keyframes float-delay {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delay {
    animation: float-delay 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal.hidden-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
}

/* Menu card hover effect */
.menu-card {
    position: relative;
}

.menu-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    box-shadow: inset 0 0 0 1px rgba(13, 148, 136, 0.1);
    pointer-events: none;
    transition: box-shadow 0.3s ease;
}

.menu-card:hover::after {
    box-shadow: inset 0 0 0 1px rgba(13, 148, 136, 0.2);
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 24px rgba(0, 0, 0, 0.04);
}

nav.scrolled .nav-link {
    color: #475569;
}

nav.scrolled .nav-link:hover {
    color: #0d9488;
    background: #f0fdfa;
}

nav.scrolled .mobile-link {
    color: #475569;
}

nav.scrolled .mobile-link:hover {
    color: #0d9488;
    background: #f0fdfa;
}

/* Smooth section transitions */
section {
    position: relative;
}

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

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Prevent FOUC on hero */
#hero {
    will-change: auto;
}

/* Ensure images don't cause layout shift */
img {
    max-width: 100%;
    height: auto;
}
