/* Custom Styles for Exp Realty: Erin Grace Vargas */

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

/* 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;
}

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

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

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

/* Navbar Scroll State */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.navbar-scrolled .nav-text {
    color: #0f172a !important;
}

.navbar-scrolled .nav-subtext {
    color: #64748b !important;
}

.navbar-scrolled .nav-link {
    color: #475569 !important;
}

/* Hero Badge Animation */
.hero-badge {
    animation: fadeInUp 0.8s ease-out;
}

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

/* Hero Content Animation */
.hero-badge,
.hero-content h1,
.hero-content p,
.hero-content .flex,
.hero-content .mt-16 {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.hero-content h1 {
    animation-delay: 0.1s;
}

.hero-content p {
    animation-delay: 0.2s;
}

.hero-content .flex {
    animation-delay: 0.3s;
}

.hero-content .mt-16 {
    animation-delay: 0.4s;
}

/* Service Card Hover */
.service-card {
    transform: translateY(0);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

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

/* Neighborhood Card */
.neighborhood-card {
    overflow: hidden;
}

.neighborhood-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.neighborhood-card:hover::after {
    opacity: 1;
}

/* Testimonial Card */
.testimonial-card {
    transition: transform 0.5s ease, background-color 0.5s ease;
}

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

/* Contact Form Focus States */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #0d9488 !important;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1) !important;
}

/* Button Ripple Effect */
button,
a {
    position: relative;
    overflow: hidden;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    nav,
    #contact-form,
    .scroll-indicator {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* Mobile Menu Animation */
.mobile-nav-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 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 Icon Animation */
.menu-line-1 {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-line-2 {
    transition: opacity 0.3s ease;
}

.menu-line-3 {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-open .menu-line-1 {
    transform: translateY(6px) rotate(45deg);
}

.menu-open .menu-line-2 {
    opacity: 0;
}

.menu-open .menu-line-3 {
    transform: translateY(-6px) rotate(-45deg);
}

/* Image Hover Zoom */
.group img {
    transition: transform 0.7s ease;
}

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