:root {
    --primary-color: #2186f2;
    --secondary-color: #e0f2fe;
    --background-color: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-color: #f59e0b;
}

/* Garante que o body tenha o padding correto */
body {
    font-family: 'Lexend', 'Noto Sans', sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    padding-top: 80px;
    margin: 0;
    min-height: 100vh;
}

.button_primary {
    background-color: var(--primary-color);
    color: white;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(33, 134, 242, 0.3);
    position: relative;
    overflow: hidden;
}

.button_primary:hover {
    background-color: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -3px rgba(33, 134, 242, 0.4);
}

.button_secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.button_secondary:hover {
    background-color: #bfdbfe;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.typography_h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.typography_h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.typography_body {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
    height: 80px; /* Define altura fixa do header */
}

/* Adiciona padding-top ao body para compensar o header fixo */
body {
    padding-top: 80px;
}

/* Ajusta seções para não sobrepor */
main, section {
    position: relative;
    z-index: 1;
}

/* Scroll offset para navegação suave */
main[id], section[id] {
    scroll-margin-top: 100px;
}

footer {
    --primary-color: #2186f2;
    --secondary-color: #e0f2fe;
    --background-color: #0d1b2a;
    --text-primary: #ffffff;
    --text-secondary: #e0e1dd;
    --accent-color: #bfdbfe;
}

/* Form Styles */
.input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
}

.input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 134, 242, 0.1);
}

.card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
}

/* Hover effects for navigation */
.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.hover-underline:hover::after {
    width: 100%;
}

/* Animation classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-400 { animation-delay: 0.4s; }
.animation-delay-600 { animation-delay: 0.6s; }
.animation-delay-800 { animation-delay: 0.8s; }
.animation-delay-1000 { animation-delay: 1.0s; }
.animation-delay-1200 { animation-delay: 1.2s; }

/* Pulse animation with different delays */
@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

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

.animation-delay-0 { animation-delay: 0s; }
.animation-delay-1000 { animation-delay: 1s; }
.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-3000 { animation-delay: 3s; }

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    pointer-events: none;
}

.ripple.animate {
    animation: ripple-effect 0.6s linear;
}

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

/* Mobile menu transitions */
#mobile-menu > div {
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
}

#mobile-menu.show > div {
    transform: translateX(0);
}

/* Image loading states */
img {
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}

img.error {
    opacity: 0.5;
}

/* Form group animations */
.form-group {
    position: relative;
}

.form-group.focused label {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Gradient text support */
.bg-clip-text {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Enhanced shadows */
.shadow-3xl {
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.25);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

/* Backdrop blur support */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

/* Loading state */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Enhanced button states */
.button_primary:active,
.button_secondary:active {
    transform: translateY(0);
}

/* Focus states for accessibility */
.button_primary:focus,
.button_secondary:focus,
.input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .typography_h1 {
        font-size: 1.5rem;
    }
    
    .typography_h2 {
        font-size: 1.25rem;
    }
    
    header {
        padding: 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    /* Mobile optimizations */
    .button_primary,
    .button_secondary {
        min-height: 48px; /* Touch target size */
    }
}

@media (max-width: 640px) {
    /* Very small screens */
    .animate-fade-in-up {
        animation-delay: 0s !important; /* Remove delays on mobile for faster loading */
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --text-secondary: #333333;
    }
    
    .button_primary,
    .button_secondary {
        border: 2px solid currentColor;
    }
}

/* 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;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .animate-fade-in-up {
        opacity: 1;
        transform: none;
    }
}

/* Dark mode support (future enhancement) */
/* @media (prefers-color-scheme: dark) {
    :root {
        --background-color: #0f172a;
        --text-primary: #f1f5f9;
        --text-secondary: #94a3b8;
    }
    
    body {
        background-color: var(--background-color);
        color: var(--text-primary);
    }
    
    .card,
    .input {
        background-color: #1e293b;
        border-color: #334155;
        color: var(--text-primary);
    }
    
    header {
        background-color: rgba(15, 23, 42, 0.95);
        border-bottom-color: rgba(51, 65, 85, 0.8);
    }
} */

/* Print styles */
@media print {
    header {
        position: static;
    }
    
    .animate-fade-in-up {
        opacity: 1;
        transform: none;
    }
    
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Account for fixed header */
}

/* Garante que o body tenha o padding correto */
body {
    font-family: 'Lexend', 'Noto Sans', sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    padding-top: 80px;
    margin: 0;
    min-height: 100vh;
}

/* Layout principal */
.main-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header fixo com altura definida */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
    height: 80px; /* Define altura fixa do header */
    display: flex;
    align-items: center;
}

/* Seções principais */
main, section {
    position: relative;
    z-index: 1;
    width: 100%;
    clear: both;
    display: block;
}

/* Primeira seção com altura mínima */
main#inicio {
    min-height: 100vh;
    padding-top: 2rem;
}

/* IDs das seções para scroll suave */
#inicio, #recursos, #planos, #contato {
    scroll-margin-top: 100px;
}

/* Garante visibilidade das seções */
section {
    margin-bottom: 0;
    padding-bottom: 2rem;
}