/* Custom styles for Certified Translation Miami */

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

/* Base styles */
body {
    font-family: 'DM Sans', sans-serif;
}

/* Reveal animation for scroll-triggered elements */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.hidden {
    opacity: 0;
    transform: translateY(30px);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #3d6641;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #4f8352;
    outline-offset: 2px;
}

/* Button hover effects */
button, a {
    transition: all 0.2s ease-in-out;
}

/* Form input focus states */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(79, 131, 82, 0.2);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar transition */
#navbar {
    transition: all 0.3s ease;
}

/* Hero section parallax effect */
.hero-bg {
    will-change: transform;
}

/* Card hover effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Print styles */
@media print {
    header, footer, .reveal {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* Reduced motion preference */
@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 mode support */
@media (prefers-contrast: high) {
    .bg-forest-900 {
        background-color: #000 !important;
    }
    
    .text-forest-200 {
        color: #fff !important;
    }
}

/* Tablet and desktop adjustments */
@media (min-width: 768px) {
    .font-serif {
        line-height: 1.2;
    }
}

/* Large screen optimizations */
@media (min-width: 1024px) {
    .max-w-7xl {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}
