/* Custom Styles for Mike Z Customs */

/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    letter-spacing: 0.01em;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #4a7a4a;
}

/* Selection */
::selection {
    background: #314f31;
    color: #fdfcf8;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollLine {
    0% {
        height: 0;
        opacity: 0;
    }
    50% {
        height: 48px;
        opacity: 1;
    }
    100% {
        height: 48px;
        opacity: 0;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

/* Navbar */
.navbar-scrolled {
    background: rgba(253, 252, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(49, 79, 49, 0.1);
}

.navbar-dark {
    background: rgba(15, 24, 15, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Mobile Menu */
.mobile-menu-open {
    animation: slideInRight 0.5s ease-out forwards;
}

.mobile-menu-closed {
    animation: slideOutRight 0.5s ease-out forwards;
}

/* Hamburger Animation */
.hamburger-active #menu-line-1 {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-active #menu-line-2 {
    opacity: 0;
}

.hamburger-active #menu-line-3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px;
}

/* Form Styles */
select option:first-child {
    color: #c5d7c7;
}

/* Service Card Hover Effect */
.service-card-hover {
    position: relative;
    overflow: hidden;
}

.service-card-hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #9ab99a;
    transition: width 0.4s ease;
}

.service-card-hover:hover::after {
    width: 100%;
}

/* Image Hover */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Smooth Focus States */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(74, 122, 74, 0.1);
}

/* Print Styles */
@media print {
    nav, footer, .no-print {
        display: none;
    }
    
    body {
        color: #1c2e1c;
        background: white;
    }
}

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

/* High Contrast */
@media (prefers-contrast: high) {
    .text-forest-400 {
        color: #1c2e1c;
    }
    
    .text-forest-500 {
        color: #1c2e1c;
    }
}

/* Utility */
.gap-px {
    gap: 1px;
}
