/* Custom Styles for A Tear Solution */

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

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

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #e5c158;
}

/* Hero animations - only for below-fold content enhancement via JS */
.hero-anim {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.1);
}

/* Process step animations */
.process-step {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal animations - applied via JS for progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu transitions */
#mobile-menu {
    backdrop-filter: blur(10px);
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* Button focus styles for accessibility */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* Input focus styles */
input:focus,
textarea:focus,
select:focus {
    border-color: #d4af37 !important;
}

/* Image loading optimization */
img {
    content-visibility: auto;
}

/* Print styles */
@media print {
    nav,
    #back-to-top,
    .service-card:hover {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

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

/* Mobile responsiveness adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .service-card {
        padding: 2rem !important;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .service-card:hover {
        transform: none;
    }
    
    .service-card:active {
        transform: translateY(-4px);
    }
}
