/* ============================================
   Bright Mountain Retreat — Custom Styles
   Classic & Elegant | Teal + Slate Grey
   ============================================ */

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

/* Selection color */
::selection {
    background-color: rgba(26, 107, 107, 0.4);
    color: #f1f5f9;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Base typography */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar transitions */
#navbar {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

#navbar.scrolled {
    background-color: rgba(8, 14, 26, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

/* Hero parallax feel */
#hero {
    perspective: 1px;
}

/* Image hover zoom */
.group img {
    will-change: transform;
}

/* Form focus animations */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

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

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* Decorative line animation */
.w-12.h-px.bg-teal-500 {
    transition: width 0.6s ease;
}

/* Link underline animation */
a.border-b {
    background-image: linear-gradient(currentColor, currentColor);
    background-position: left bottom;
    background-repeat: no-repeat;
    background-size: 0 1px;
    transition: background-size 0.3s ease;
}

a.border-b:hover {
    background-size: 100% 1px;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .group img {
        transition: none;
    }
    .group:hover img {
        transform: none;
    }
}

/* Print styles */
@media print {
    nav, #contact-form, button {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.2;
    }
}
