html {
    scroll-behavior: smooth;
}

/* Modern Design Enhancements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

*::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #fafafa;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth fade-in animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Modern glassmorphism effect */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Modern gradient backgrounds */
.gradient-red {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.gradient-overlay {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.9) 0%, rgba(153, 27, 27, 0.8) 100%);
}

/* Google Forms iframe styling */
.google-form-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: white;
}

.google-form-container iframe {
    display: block;
    width: 100%;
    min-height: 800px;
    border: none !important;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .google-form-container iframe {
        min-height: 1000px;
    }
    
    .google-form-container {
        border-radius: 0;
    }
    
    #contact .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    #contact .max-w-4xl {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
}

/* Skip link - accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 10000;
    padding: 0.75rem 1.5rem;
    background: #dc2626;
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 0.5rem 0;
    transition: top 0.2s ease-in-out;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Language selector dropdown */
.lang-dropdown {
    transform-origin: top right;
    animation: dropdownFade 0.15s ease-out;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lang-dropdown-btn:focus-visible {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

.lang-select-btn:focus-visible {
    outline: 2px solid #dc2626;
    outline-offset: -2px;
}

.lang-select-btn.active {
    background: #fef2f2;
    color: #dc2626;
    font-weight: 600;
}

/* Review carousel */
.reviews-track {
    display: flex;
    will-change: transform;
}

.review-card {
    box-sizing: border-box;
}

.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 640px) {
    .review-card {
        width: 100% !important;
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Ensure sufficient color contrast */
.text-gray-600 {
    color: #555555;
}

.text-gray-700 {
    color: #404040;
}

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

/* Print styles */
@media print {
    header {
        position: relative;
    }
    
    .glass {
        background: white;
        backdrop-filter: none;
    }
    
    #contact .google-form-container iframe {
        display: none;
    }
}
