/* Estilos Globais */
body, html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

/* Reset de overflow para containers principais */
body {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    width: 100%;
}

/* Prevenir rolagem horizontal em todas as seções e containers */
.container, 
section, 
main, 
header, 
footer {
    max-width: 100%;
    overflow-x: hidden;
}

/* Remover overflow desnecessário de divs genéricas */
div {
    max-width: 100%;
}

/* Header scroll effect */
header.header-scrolled {
    background-color: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
}

/* Mobile menu */
.md\:hidden.bg-dark {
    max-height: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    width: 100%;
    left: 0;
    z-index: 50;
}

.md\:hidden.bg-dark.mobile-menu-open {
    max-height: 300px;
    opacity: 1;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease-out forwards;
}

.observe-animation {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Garantir que elementos em seções importantes sejam visíveis por padrão */
#features .observe-animation,
section.py-20.bg-darkTertiary .observe-animation {
    opacity: 1; /* Elementos visíveis por padrão */
}

/* Form styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #ff0000;
}

/* FAQ accordion */
.faq-content {
    transition: max-height 0.3s ease-out;
}

/* Custom aspect ratio container */
.aspect-w-16 {
    position: relative;
    padding-bottom: 56.25%;
}

.aspect-h-9 {
    position: relative;
}

.aspect-w-16.aspect-h-9 > * {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Base Styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll Animations */
.header-scrolled {
    background-color: rgba(20, 20, 20, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Button and Link Hover Effects */
.hover-grow {
    transition: transform 0.3s ease;
}

.hover-grow:hover {
    transform: scale(1.05);
}

/* Custom Scrollbar - apenas vertical */
::-webkit-scrollbar {
    width: 8px;
    height: 0; /* Remove scrollbar horizontal */
}

::-webkit-scrollbar-track {
    background: #141414;
}

::-webkit-scrollbar-thumb {
    background: #FF0000;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #BE0000;
}

/* Additional Helper Classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.gradient-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(20, 20, 20, 1) 0%, rgba(20, 20, 20, 0) 100%);
    z-index: 1;
}

/* Animation Classes */
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animate-slideUp {
    animation: slideUp 0.5s ease-in-out;
}

/* Focus States for Accessibility */
a:focus, button:focus, input:focus {
    outline: 2px solid #FF0000;
    outline-offset: 2px;
}

/* Custom Form Elements */
input::placeholder {
    color: #6b7280;
}

/* Responsive Image */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Card Hover Effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Custom Media Queries */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (min-width: 768px) {
    .md-flex-row {
        flex-direction: row !important;
    }
}

/* Print Styles */
@media print {
    body {
        color: #000;
        background: #fff;
    }
    
    header, footer, .no-print {
        display: none;
    }
}

/* Estilos específicos para seções importantes */
#features, 
section.py-20.bg-darkTertiary {
    position: relative;
    z-index: 10;
}

#features .grid,
section.py-20.bg-darkTertiary .grid {
    display: grid;
}

#features h2,
section.py-20.bg-darkTertiary h2 {
    display: block !important;
    visibility: visible !important;
}

#features p,
section.py-20.bg-darkTertiary p {
    display: block !important;
    visibility: visible !important;
}

/* Layout fixes */
.min-h-screen {
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

#home {
    overflow: hidden;
}

/* Controle de scroll para dispositivos móveis */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        position: relative;
        width: 100%;
        -webkit-overflow-scrolling: touch;
    }
    
    .container {
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }
    
    section {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .grid {
        margin-left: 0;
        margin-right: 0;
    }

    img {
        max-width: 100%;
        height: auto;
    }
} 