/* Configuração de Fontes */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #3B82F6;
    --secondary-color: #14B8A6;
    --accent-color: #10B981;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --background-light: #F9FAFB;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Classes de Animação */
.animate-fade-in-up {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 1s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 1s ease-out;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.animation-delay-200 {
    animation-delay: 200ms;
}

.animation-delay-400 {
    animation-delay: 400ms;
}

/* Header Scroll Effect */
.header-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563EB, #0D9488);
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

/* Team Member Hover Effect */
.team-member img {
    transition: transform 0.3s ease;
}

.team-member:hover img {
    transform: scale(1.1);
}

/* Form Styling */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Button Hover Effects */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Message */
.success-message {
    background-color: #10B981;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-message {
    background-color: #EF4444;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mobile Menu Animation */
.mobile-menu-enter {
    animation: slideDown 0.3s ease-out;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .team-member {
        margin-bottom: 2rem;
    }
}

/* Performance Optimizations */
.will-change-transform {
    will-change: transform;
}

.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid var(--text-dark);
    }
    
    .btn-primary {
        border: 2px solid var(--text-dark);
    }
}

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

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #F9FAFB;
        --text-light: #D1D5DB;
        --background-light: #1F2937;
    }
    
    body {
        background-color: #111827;
        color: var(--text-dark);
    }
    
    .bg-white {
        background-color: #1F2937 !important;
    }
    
    .bg-gray-50 {
        background-color: #374151 !important;
    }
    
    .text-gray-800 {
        color: #F9FAFB !important;
    }
    
    .text-gray-600 {
        color: #D1D5DB !important;
    }
}

/* Lazy Loading Images */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Tooltips */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.tooltip:hover::after {
    opacity: 1;
}

/* Galeria de Imagens */
.gallery-grid {
    transition: all 0.3s ease;
}

.gallery-item {
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item.hidden {
    display: none;
}

.gallery-item.show {
    display: block;
    animation: fadeInUp 0.6s ease-out;
}

/* Filtros da Galeria */
.filter-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: scale(1.05);
}

/* Lightbox */
#lightbox {
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

#lightbox.show {
    opacity: 1;
}

#lightbox img {
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

#lightbox.show img {
    transform: scale(1);
}

#lightbox-caption {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.1s;
}

#lightbox.show #lightbox-caption {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox Navigation Buttons */
#lightbox-prev,
#lightbox-next,
#lightbox-close {
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#lightbox-prev:hover,
#lightbox-next:hover,
#lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Animações para Galeria */
@keyframes galleryFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gallery-item.animate {
    animation: galleryFadeIn 0.6s ease-out;
}

/* Loading State para Galeria */
.gallery-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.gallery-loading::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

/* Empty State para Galeria */
.gallery-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.gallery-empty i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    #lightbox-prev,
    #lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    #lightbox-caption {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }
    
    #lightbox-title {
        font-size: 1.2rem;
    }
    
    #lightbox-description {
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) and (max-width: 1280px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Performance Optimizations for Gallery */
.gallery-item {
    will-change: transform;
    contain: layout style paint;
}

.gallery-item img {
    will-change: transform;
    contain: layout style paint;
}

/* Focus States para Acessibilidade */
.gallery-item:focus-within {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.filter-btn:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

#lightbox-close:focus,
#lightbox-prev:focus,
#lightbox-next:focus {
    outline: 3px solid white;
    outline-offset: 2px;
}

/* Keyboard Navigation */
.lightbox-open {
    overflow: hidden;
}

/* Hero Slider Styles */
.hero-slider {
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero Slider Indicators */
.hero-indicator {
    transition: all 0.3s ease;
}

.hero-indicator:hover {
    transform: scale(1.2);
}

/* Enhanced Slider Controls */
.hero-indicator:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Performance optimizations for slider */
.hero-slide {
    will-change: opacity;
    contain: layout style paint;
}

.hero-slide img {
    will-change: transform;
    contain: layout style paint;
}

/* Slider loading state */
.hero-slider.loading .hero-slide {
    opacity: 0;
}

/* Responsive adjustments for slider */
@media (max-width: 768px) {
    .hero-indicator {
        width: 8px;
        height: 8px;
    }
    
    .hero-indicator.w-8 {
        width: 12px;
    }
}

/* Print styles for slider */
@media print {
    .hero-slide {
        position: static;
        opacity: 1 !important;
    }
    
    .hero-indicator {
        display: none;
    }
}

/* Accessibility for slider */
@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none;
    }
    
    .hero-indicator {
        transition: none;
    }
}

/* High contrast mode for slider */
@media (prefers-contrast: high) {
    .hero-indicator {
        border: 2px solid white;
    }
    
    .hero-indicator.bg-white {
        background-color: white;
    }
    
    .hero-indicator.bg-white\/50 {
        background-color: rgba(255, 255, 255, 0.5);
    }
}

/* Enhanced Section Backgrounds */
section {
    position: relative;
    overflow: hidden;
}

/* Sobre Section Background */
#sobre {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

#sobre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1559830731-e5e945beb5d6?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80') center/cover;
    opacity: 0.05;
    z-index: 0;
}

#sobre > .container {
    position: relative;
    z-index: 1;
}

/* Serviços Section Background */
#servicos {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    position: relative;
}

#servicos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1559830731-e5e945beb5d6?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80') center/cover;
    opacity: 0.03;
    z-index: 0;
}

#servicos > .container {
    position: relative;
    z-index: 1;
}

/* Diferenciais Section Background */
#diferenciais {
    background: linear-gradient(135deg, #3b82f6 0%, #14b8a6 100%);
    position: relative;
    color: white;
}

#diferenciais::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1559830731-e5e945beb5d6?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80') center/cover;
    opacity: 0.1;
    z-index: 0;
}

#diferenciais > .container {
    position: relative;
    z-index: 1;
}

#diferenciais h2,
#diferenciais h3,
#diferenciais p {
    color: white !important;
}

#diferenciais .text-gray-600 {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Equipe Section Background */
#equipe {
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
    position: relative;
}

#equipe::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1559830731-e5e945beb5d6?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80') center/cover;
    opacity: 0.04;
    z-index: 0;
}

#equipe > .container {
    position: relative;
    z-index: 1;
}

/* Galeria Section Background */
#galeria {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    position: relative;
    color: white;
}

#galeria::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1559830731-e5e945beb5d6?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80') center/cover;
    opacity: 0.15;
    z-index: 0;
}

#galeria > .container {
    position: relative;
    z-index: 1;
}

#galeria h2,
#galeria h3,
#galeria p,
#galeria .text-gray-600,
#galeria .text-gray-800 {
    color: white !important;
}

#galeria .text-gray-600 {
    color: rgba(255, 255, 255, 0.8) !important;
}

#galeria .text-gray-800 {
    color: white !important;
}

/* Depoimentos Section Background */
#depoimentos {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

#depoimentos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1559830731-e5e945beb5d6?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80') center/cover;
    opacity: 0.05;
    z-index: 0;
}

#depoimentos > .container {
    position: relative;
    z-index: 1;
}

/* Contato Section Background */
#contato {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    position: relative;
}

#contato::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1559830731-e5e945beb5d6?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80') center/cover;
    opacity: 0.03;
    z-index: 0;
}

#contato > .container {
    position: relative;
    z-index: 1;
}

/* Enhanced Section Headers */
section h2 {
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Enhanced Service Cards */
.service-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

.service-card .w-16 {
    transition: all 0.4s ease;
}

.service-card:hover .w-16 {
    transform: scale(1.1) rotate(5deg);
}

/* Enhanced Team Member */
.team-member {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.team-member .relative {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Enhanced Depoimentos Cards */
#depoimentos .bg-white {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#depoimentos .bg-white:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

/* Enhanced Gallery Items */
.gallery-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

/* Enhanced Filter Buttons */
.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    transform: translateY(-2px) scale(1.05);
}

/* Enhanced Section Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced Button Effects */
.btn-enhanced {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-enhanced:hover::before {
    width: 300px;
    height: 300px;
}

/* Enhanced Card Hover Effects */
.card-enhanced {
    position: relative;
    overflow: hidden;
}

.card-enhanced::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.card-enhanced:hover::before {
    animation: shine 0.6s ease-in-out;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { opacity: 1; }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Enhanced Section Highlight */
.highlighted {
    animation: sectionHighlight 2s ease-in-out;
}

@keyframes sectionHighlight {
    0%, 100% { 
        box-shadow: inset 0 0 0 4px rgba(59, 130, 246, 0);
    }
    50% { 
        box-shadow: inset 0 0 0 4px rgba(59, 130, 246, 0.3);
    }
}

/* Enhanced Focus States */
.keyboard-navigation *:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Enhanced Form Styles */
.focused {
    transform: translateY(-2px);
}

.focused label {
    color: var(--primary-color);
    font-weight: 600;
}

/* Enhanced Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

/* Enhanced Success/Error Messages */
.success-message {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    animation: fadeInUp 0.6s ease-out;
}

.error-message {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
    animation: fadeInUp 0.6s ease-out;
}

/* Enhanced Mobile Menu */
.mobile-menu-enter {
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Header */
.header-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Enhanced Button Ripple Effect */
.btn-enhanced {
    position: relative;
    overflow: hidden;
}

.btn-enhanced .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Enhanced Card Animations */
.card-enhanced {
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card-enhanced:hover {
    transform: perspective(1000px) rotateY(5deg) translateY(-8px);
}

/* Enhanced Text Effects */
.text-glow {
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    animation: textGlow 3s ease-in-out infinite;
}

/* Enhanced Scroll Indicator */
.animate-bounce {
    animation: bounce 2s infinite;
}

/* Enhanced Performance */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Enhanced Responsive */
@media (max-width: 768px) {
    .service-card:hover {
        transform: translateY(-8px) scale(1.01);
    }
    
    .team-member:hover {
        transform: translateY(-6px);
    }
    
    .gallery-item:hover {
        transform: translateY(-8px) scale(1.02);
    }
    
    .floating-element {
        animation: none;
    }
    
    .particle {
        display: none;
    }
}

/* Enhanced Print Styles */
@media print {
    section::before {
        display: none !important;
    }
    
    .floating-element,
    .particle,
    .glow,
    .glow-teal {
        display: none !important;
    }
    
    .btn-enhanced::before,
    .card-enhanced::before {
        display: none !important;
    }
}

/* Enhanced Accessibility */
@media (prefers-reduced-motion: reduce) {
    .floating-element,
    .particle,
    .text-glow,
    .btn-enhanced::before,
    .card-enhanced::before {
        animation: none !important;
    }
    
    .service-card:hover,
    .team-member:hover,
    .gallery-item:hover {
        transform: none !important;
    }
}

/* Enhanced Dark Mode */
@media (prefers-color-scheme: dark) {
    .service-card {
        background: rgba(30, 41, 59, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .team-member {
        background: rgba(30, 41, 59, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    #depoimentos .bg-white {
        background: rgba(30, 41, 59, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* Preloader Styles */
#preloader {
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#preloader .relative {
    animation: preloaderScale 2s ease-in-out infinite;
}

@keyframes preloaderScale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

#preloader .animate-bounce {
    animation-duration: 1s;
    animation-iteration-count: infinite;
}

#preloader .animate-pulse {
    animation-duration: 2s;
    animation-iteration-count: infinite;
}

#preloader .animate-spin {
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
}

/* Preloader dots animation */
#preloader .flex.justify-center.space-x-1 div {
    animation: dotBounce 1.4s ease-in-out infinite both;
}

#preloader .flex.justify-center.space-x-1 div:nth-child(1) {
    animation-delay: -0.32s;
}

#preloader .flex.justify-center.space-x-1 div:nth-child(2) {
    animation-delay: -0.16s;
}

#preloader .flex.justify-center.space-x-1 div:nth-child(3) {
    animation-delay: 0s;
}

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Preloader fade out animation */
#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Body overflow hidden when preloader is active */
body.preloader-active {
    overflow: hidden;
}

/* Hide header during preloader */
body.preloader-active header {
    display: none;
}

/* Enhanced preloader for better performance */
@media (prefers-reduced-motion: reduce) {
    #preloader .animate-bounce,
    #preloader .animate-pulse,
    #preloader .animate-spin,
    #preloader .relative {
        animation: none;
    }
    
    #preloader .flex.justify-center.space-x-1 div {
        animation: none;
        opacity: 1;
        transform: scale(1);
    }
}
