/* Custom styles for Meybohm Real Estate */

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAF8F6;
}
::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #E8735A;
}

/* Scroll animation for the scroll indicator */
@keyframes scrollDown {
    0% { top: -16px; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 40px; opacity: 0; }
}
.scroll-line {
    animation: scrollDown 1.5s ease-in-out infinite;
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal delays */
.reveal:nth-child(1) { transition-delay: 0.1s; }
.reveal:nth-child(2) { transition-delay: 0.2s; }
.reveal:nth-child(3) { transition-delay: 0.3s; }
.reveal:nth-child(4) { transition-delay: 0.4s; }
.reveal:nth-child(5) { transition-delay: 0.5s; }
.reveal:nth-child(6) { transition-delay: 0.6s; }

/* Hero animations */
.hero-subtitle {
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.hero-title {
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(250, 248, 246, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* Service card hover */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Listing card hover */
.listing-card {
    transition: transform 0.4s ease;
}
.listing-card:hover {
    transform: translateY(-4px);
}

/* Testimonial card hover */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* Mobile menu animations */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}
#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}
#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.5rem;
}

/* Mobile link animation */
.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #E8735A;
    transition: width 0.3s ease;
}
.mobile-link:hover::after {
    width: 100%;
}

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

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #E8735A;
    outline-offset: 2px;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .reveal {
        transform: translateY(20px);
    }
}

/* Print styles */
@media print {
    header, footer, #contactForm, .scroll-indicator {
        display: none;
    }
    body {
        color: #1A1A1A;
        background: white;
    }
}
