/* ============================================
   Fantasy Bay — Custom Styles
   Classic & Elegant | Teal + Slate Grey
   ============================================ */

/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: #0d9488;
    color: white;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .nav-logo-text {
    color: #0f172a !important;
}

#navbar.scrolled .mobile-nav-link {
    color: #0f172a !important;
}

#navbar.scrolled #menuIcon span {
    background-color: #0f172a !important;
}

/* ============================================
   Hero Animations (above the fold — visible by default)
   ============================================ */
.hero-eyebrow {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.1s;
    opacity: 1;
}

.hero-headline {
    animation: slideUp 0.9s ease forwards;
    animation-delay: 0.25s;
    opacity: 1;
}

.hero-subtitle {
    animation: slideUp 0.9s ease forwards;
    animation-delay: 0.4s;
    opacity: 1;
}

.hero-card {
    animation: slideUp 1s ease forwards;
    animation-delay: 0.55s;
    opacity: 1;
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   Scroll Reveal (below the fold)
   Progressive enhancement: content is visible by default,
   JS adds the animated state only when preferred.
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Marquee
   ============================================ */
.marquee-track {
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.close {
    opacity: 0;
    pointer-events: none;
}

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

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

#menuBtn.active #menuIcon span:nth-child(3) {
    width: 100%;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ============================================
   Buttons & Links
   ============================================ */
a {
    text-decoration: none;
}

button {
    cursor: pointer;
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
textarea:focus {
    outline: none;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 767px) {
    .hero-headline {
        font-size: 2.75rem !important;
    }
    
    .hero-card {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-top: 2rem;
    }
}

@media (min-width: 768px) {
    .hero-headline {
        font-size: 4rem !important;
    }
}

@media (min-width: 1024px) {
    .hero-headline {
        font-size: 5rem !important;
    }
}

@media (min-width: 1280px) {
    .hero-headline {
        font-size: 5.5rem !important;
    }
}

@media (min-width: 1536px) {
    .hero-headline {
        font-size: 6.5rem !important;
    }
}

/* ============================================
   Subtle Animations
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .group img {
        transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .group:hover img {
        transform: scale(1.05);
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ============================================
   Focus Visible for Accessibility
   ============================================ */
:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}
