/* Custom styles for Silva Realty */

/* Base transitions */
html {
    scroll-behavior: smooth;
}

/* Navbar styles */
#navbar {
    color: rgba(255, 255, 255, 0.9);
}

#navbar.scrolled {
    background: rgba(59, 7, 100, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1px;
    background: #fbbf24;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: #fbbf24;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-stroke {
    stroke: rgba(255, 255, 255, 0.9);
}

.nav-logo-text {
    color: rgba(255, 255, 255, 0.9);
}

#navbar.scrolled .nav-stroke {
    stroke: #fbbf24;
}

#navbar.scrolled .nav-logo-text {
    color: #fff;
}

/* Mobile menu */
.mobile-menu-link {
    opacity: 0;
    transform: translateY(10px);
}

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

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

/* Menu button */
.menu-line {
    background: rgba(255, 255, 255, 0.9);
}

#navbar.scrolled .menu-line {
    background: #fff;
}

/* Service cards */
.service-card {
    transition: transform 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9333ea;
}

/* Selection */
::selection {
    background: #fbbf24;
    color: #3b0764;
}
