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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Hero animations */
.hero-headline {
    animation: heroFadeUp 0.8s ease-out 0.2s forwards;
}
.hero-subtitle {
    animation: heroFadeUp 0.8s ease-out 0.1s forwards;
}
.hero-tagline {
    animation: heroFadeUp 0.8s ease-out 0.3s forwards;
}
.hero-cta {
    animation: heroFadeUp 0.8s ease-out 0.4s forwards;
}

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

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .hero-headline,
    .hero-subtitle,
    .hero-tagline,
    .hero-cta {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Service card hover */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-4px);
}

/* Property card hover */
.property-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.property-card:hover {
    transform: translateY(-4px);
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}
.nav-scrolled .nav-logo,
.nav-scrolled .nav-link {
    color: #1e293b !important;
}
.nav-scrolled .nav-link:hover {
    color: #0d9488 !important;
}

/* Mobile menu */
.mobile-nav-link {
    transition: color 0.2s ease;
}
.mobile-nav-link:hover {
    color: #5eead4;
}

/* Form focus states */
input:focus,
textarea:focus {
    outline: none;
}

/* Selection color */
::selection {
    background: #99f6e4;
    color: #042f2e;
}
