/* Custom styles for Tidewater Properties */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8EF;
}
::-webkit-scrollbar-thumb {
    background: #D99844;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #B85C38;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(253, 248, 239, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(15, 34, 55, 0.08);
}

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

/* Mobile menu active state */
.menu-open #mobileMenu {
    opacity: 1;
    pointer-events: all;
}

.menu-open #bar1 {
    transform: rotate(45deg);
    top: 50%;
    left: 50%;
    transform-origin: center;
}

.menu-open #bar2 {
    opacity: 0;
}

.menu-open #bar3 {
    transform: rotate(-45deg);
    top: 50%;
    left: 50%;
    transform-origin: center;
}

/* Mobile link transitions */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.menu-open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.menu-open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.menu-open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.menu-open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
.menu-open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

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

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

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Selection color */
::selection {
    background: #B85C38;
    color: white;
}
