/* Custom Styles for Diaz Auto Service */

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

body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

.font-cormorant {
    font-family: 'Cormorant Garamond', serif;
}

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

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

::-webkit-scrollbar-thumb {
    background: #D4A853;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0F172A;
}

/* Selection Color */
::selection {
    background: #D4A853;
    color: #0F172A;
}

/* Navbar Scroll State */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.05);
}

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

.animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scrollDot {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(200%);
    }
}

.animate-scroll-dot {
    animation: scrollDot 1.5s ease-in-out infinite;
}

/* Mobile Menu Transitions */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-open .mobile-link:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }

/* Hamburger Animation */
.menu-open #line1 {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-open #line2 {
    opacity: 0;
}

.menu-open #line3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Service Card Hover Effect */
.group:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Image Hover Zoom */
img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Input Autofill Style */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

/* Smooth Section Transitions */
section {
    position: relative;
}

/* Thin decorative line accent */
.section-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, #D4A853, transparent);
}

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

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

/* Focus Visible Styles */
:focus-visible {
    outline: 2px solid #D4A853;
    outline-offset: 2px;
}

/* Loading State for Buttons */
button:active {
    transform: scale(0.98);
}

/* Selection highlight for links */
a:hover {
    color: inherit;
}
