/* Reset and Base Styles */
* {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Custom CTA Button Animations */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::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.6s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button-final {
    position: relative;
    overflow: hidden;
    animation: pulse-gold 3s infinite;
}

@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(255, 193, 7, 0);
    }
}

/* Problem Cards Hover Effects */
.problem-card {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.1), transparent);
    transition: left 0.6s;
}

.problem-card:hover::before {
    left: 100%;
}

.problem-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.5);
}

/* Hero Background Parallax */
.hero-bg {
    will-change: transform;
}

/* Navigation Enhancements */
nav {
    transition: all 0.3s ease;
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Smooth Transitions */
.transition-all {
    transition: all 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FFC107, #FF8F00);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FFD700, #FFC107);
}

/* Loading States */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    animation: spin 1s linear infinite;
}

/* Glassmorphism Effects */
.glass {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 193, 7, 0.2);
}

/* Text Gradients */
.text-gradient-gold {
    background: linear-gradient(135deg, #FFD700, #FFC107);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hover Animations for Interactive Elements */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Responsive Image Handling */
img {
    max-width: 100%;
    height: auto;
}

/* Focus States for Accessibility */
a:focus,
button:focus {
    outline: 2px solid #FFC107;
    outline-offset: 2px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-button,
    .cta-button-final {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
    }
    
    .problem-card {
        text-align: center;
    }
    
    /* Fix para o botão WhatsApp */
    .whatsapp-btn-safe {
        width: 52px !important;
        height: 52px !important;
        max-width: 52px !important;
        max-height: 52px !important;
        inset: auto 0.75rem 0.75rem auto !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .text-4xl {
        font-size: 1.875rem;
    }
    
    .text-5xl {
        font-size: 2.25rem;
    }
}

/* Print Styles */
@media print {
    .fixed,
    nav,
    .cta-button,
    .cta-button-final {
        display: none !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .bg-gray-900,
    .bg-gray-950,
    .bg-black {
        background-color: #000 !important;
    }
    
    .text-gray-300,
    .text-gray-400 {
        color: #fff !important;
    }
    
    .border-gray-700,
    .border-gray-800 {
        border-color: #fff !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-bounce {
        animation: none;
    }
}

/* Selection Styling */
::selection {
    background: rgba(255, 193, 7, 0.3);
    color: #fff;
}

::-moz-selection {
    background: rgba(255, 193, 7, 0.3);
    color: #fff;
}

/* Fix para HTML e Body */
html, body {
    overflow-x: hidden !important;
    width: 100vw !important;
    max-width: 100vw !important;
}