/* Custom styles for Isabelle Rossi Real Estate */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #F9F7F4;
}
::-webkit-scrollbar-thumb {
    background: #A8E6CF;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7BC8A4;
}

/* Selection */
::selection {
    background: #A8E6CF;
    color: #0A1628;
}

/* Hero animations */
.hero-tag {
    animation: fadeUp 0.8s ease forwards 0.2s;
}
.hero-title {
    animation: fadeUp 0.8s ease forwards 0.4s;
}
.hero-subtitle {
    animation: fadeUp 0.8s ease forwards 0.6s;
}
.hero-ctas {
    animation: fadeUp 0.8s ease forwards 0.8s;
}
.hero-stats {
    animation: fadeUp 0.8s ease forwards 1s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll indicator */
@keyframes scrollIndicator {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(400%); }
}
.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* Property cards */
.property-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.property-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Service items */
.service-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.service-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Testimonial cards */
.testimonial-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(249, 247, 244, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(10, 22, 40, 0.06);
}

nav.scrolled #nav-logo-text {
    color: #0A1628;
}
nav.scrolled #nav-logo-sub {
    color: rgba(10, 22, 40, 0.5);
}

/* Mobile menu */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }

/* Menu button animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}
body.menu-open .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}
body.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

/* Parallax-like subtle movement for hero decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.hero .absolute.top-1\/3 {
    animation: float 6s ease-in-out infinite;
}

/* Hover underline animation for nav links */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #A8E6CF;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Image hover zoom with smooth transition */
img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Print styles */
@media print {
    nav, #mobile-menu, .animate-scroll-indicator { display: none; }
    body { background: white; }
    section { page-break-inside: avoid; }
}
