/* Custom styles for Sun Wave Realty */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #1b3a6e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c9a84c;
}

/* Selection color */
::selection {
    background: #c9a84c;
    color: #0a1628;
}

/* Service card hover effect */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: #c9a84c;
    transition: height 0.5s ease;
}

.service-card:hover::before {
    height: 100%;
}

/* Navbar transitions */
.nav-scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1);
}

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

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

.mobile-menu-open #menuLine1 {
    transform: rotate(45deg) translate(3px, 3px);
}

.mobile-menu-open #menuLine2 {
    opacity: 0;
}

.mobile-menu-open #menuLine3 {
    transform: rotate(-45deg) translate(2px, -2px);
    width: 1.5rem;
}

/* Select dropdown styling */
select option {
    background: #0a1628;
    color: #fff;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .service-card::before,
    .service-card,
    a,
    button {
        transition: none !important;
    }
}
