/* Custom styles for Mo-Kan Veteran Realty */

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

/* Custom selection color */
::selection {
    background-color: #1a4d2e;
    color: #faf9f6;
}

/* Hero animations */
.hero-title {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-subtitle {
    animation: slideUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-body {
    animation: slideUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-cta-primary {
    animation: slideUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-cta-secondary {
    animation: slideUp 0.8s ease-out 0.7s forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service card hover */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.service-card .service-icon {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Testimonial card hover */
.testimonial-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Navigation scroll effect */
.nav-scrolled {
    background-color: rgba(250, 249, 246, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(26, 77, 46, 0.1);
}

.nav-scrolled .nav-text-color {
    color: #1a4d2e !important;
}

.nav-scrolled .nav-subtext-color {
    color: #3a7443 !important;
}

.nav-scrolled .menu-line {
    background-color: #1a4d2e !important;
}

.nav-scrolled .nav-link {
    color: #1a4d2e !important;
}

/* Mobile menu animation */
.mobile-nav-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-out;
}

.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.2s; }
.mobile-menu-open .mobile-nav-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-open .mobile-nav-link:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu-open .mobile-nav-link:nth-child(5) { transition-delay: 0.5s; }

/* Hamburger animation */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Image hover zoom */
img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8fb88e;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 77, 46, 0.1);
}

/* Print styles */
@media print {
    nav, #contactForm, button {
        display: none;
    }
}
