/* Custom styles for Roland Group Real Estate */

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

/* Custom selection color */
::selection {
    background-color: rgba(72, 196, 154, 0.3);
    color: #0A1628;
}

/* Hero content animation */
.hero-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease, transform 1s ease;
}

/* Navigation transitions */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

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

/* Mobile menu transitions */
.mobile-nav-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

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

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

/* Menu button animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-btn.active .menu-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

#menu-btn.active .menu-line:last-child {
    transform: rotate(-45deg) translate(2px, -2px);
    opacity: 0;
}

/* Reveal animations - progressive enhancement */
.reveal {
    /* Default state: visible for accessibility */
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        /* Hidden state for animation - only applied when JS runs */
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

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

/* Process steps animation */
.process-step {
    opacity: 1;
    transform: translateX(0);
}

@media (prefers-reduced-motion: no-preference) {
    .process-step {
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .process-step.revealed {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Form focus styles */
input:focus,
textarea:focus {
    border-bottom-color: #2DA87E !important;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7DD9B8;
}

/* Mobile menu open state */
body.menu-open {
    overflow: hidden;
}

/* Image hover zoom effect */
.group img {
    transition: transform 0.6s ease;
}

.group:hover img {
    transform: scale(1.03);
}

/* Subtle line decoration */
.w-12.h-px {
    background: linear-gradient(to right, #B3EAD4, transparent);
}

/* Testimonial card hover */
.bg-white {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.bg-white:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(10, 22, 40, 0.08);
}

/* Navbar background transition */
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.1);
}

#navbar.scrolled .nav-link,
#navbar.scrolled a {
    color: #0A1628;
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu,
    .reveal {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }
}
