/* Reset e configurações gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: #0f1316 !important;
    color: #f8f9fa !important;
}

body.home {
    background: linear-gradient(to bottom, #141414, #262626) !important;
}

.main-content {
    margin-top: 76px; /* Altura da navbar */
}

/* Estilo da navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    background-color: #000000 !important;
    border-bottom: 2px solid #520207 !important;
}

.navbar-brand {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: #f8f9fa !important;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: #ffffff !important;
}

/* Efeitos nos links do menu */
.nav-link {
    transition: all 0.3s ease;
    position: relative;
    color: #f8f9fa !important;
}

.nav-link:hover {
    transform: translateY(-2px);
    color: #f8f9fa !important;
}

.nav-link.active {
    font-weight: 600;
    color: #f8f9fa !important;
}

/* Seção Hero */
.hero-section {
    min-height: 10vh;
    display: flex;
}

/* Estilos específicos para bloco hero */
.hero-background {
    z-index: 2;
}

.hero-overlay {
    z-index: 3;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, transparent 10%, transparent 90%, rgba(0, 0, 0, 0.6) 100%) !important;
}

.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    z-index: 10 !important;
    position: absolute !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    cursor: pointer;
    pointer-events: auto !important;
}

/* Garantir que as setas do carousel sejam sempre clicáveis */
.hero-section .carousel-control-prev:hover,
.hero-section .carousel-control-next:hover {
    opacity: 1 !important;
}

/* Específico para slider em tela cheia */
.hero-section .carousel .carousel-control-prev,
.hero-section .carousel .carousel-control-next {
    z-index: 15 !important;
    position: absolute !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    pointer-events: auto !important;
}

.hero-section .position-relative {
    z-index: 5;
}

/* Slider personalizado para hero */
.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    width: 5%;
}

.hero-section .carousel-control-prev-icon,
.hero-section .carousel-control-next-icon {
    background-color: transparent;
    border-radius: 50%;
    padding: 10px;
}

/* Responsividade para diferentes posicionamentos */
@media (max-width: 991.98px) {
    .hero-section .row.align-items-center.flex-row-reverse {
        flex-direction: column !important;
    }

    .hero-section .col-lg-6 {
        margin-bottom: 2rem;
    }
}

.hero-section h1 {
    animation: fadeInUp 1s ease-out;
    color: #f8f9fa !important;
}

.hero-section p {
    animation: fadeInUp 1s ease-out 0.2s both;
    color: #f8f9fa !important;
}

.hero-section .btn {
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Cards */
.card {
    transition: all 0.3s ease;
    background: #212529 !important;
    border: 4px solid transparent !important;
    border-radius: 20px !important;
    background-clip: padding-box !important;
    background-color: #212529 !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4) !important;
    overflow: hidden !important;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
}

.card-body i {
    transition: all 0.3s ease;
}

.card:hover .card-body i {
    transform: scale(1.1);
}

.card-title {
    color: #f8f9fa !important;
    text-transform: uppercase;
}

.card-text {
    color: #dee2e6 !important;
}

/* Botões */
.btn {
    transition: all 0.3s ease;
    border-radius: 25px;
    padding: 0.2rem 0.4rem !important;
    font-family: 'Exo Demi', 'Exo', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529 !important;
}

.btn-warning:hover {
    background-color: #ffcd39;
    border-color: #ffcd39;
    color: #212529 !important;
}

.btn-outline-warning {
    color: #ffc107;
    border-color: #ffc107;
}

.btn-outline-warning:hover {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529 !important;
}

/* Seções */
.bg-secondary {
    background-color: #1e2228 !important;
}

.bg-black {
    background-color: #000000 !important;
}

.bg-footer-black {
    background-color: #000000 !important;
}

/* Footer */
footer {
    margin-top: auto;
    background-color: #000000 !important;
    border-top: 2px solid #520207 !important;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.3);
}

/* Custom padding for py-4 */
.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 4.5rem !important;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        min-height: 60vh;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .main-content {
        margin-top: 56px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 8px 20px;
        font-size: 1rem;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Estilo para dropdown */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-radius: 10px;
    background-color: #343a40 !important;
}

.dropdown-menu-dark {
    background-color: #343a40 !important;
}

.dropdown-item {
    transition: all 0.3s ease;
    color: #f8f9fa !important;
}

.dropdown-item:hover {
    background-color: #f8f9fa !important;
    color: #000000 !important;
    transform: translateX(5px);
}

/* Títulos e textos */
h1, h2, h3, h4, h5, h6 {
    color: #f8f9fa !important;
    margin-bottom: 0 !important;
}

.card-title {
    margin-bottom: 0 !important;
}

.text-warning {
    color: #f8f9fa !important;
}

.text-light {
    color: #f8f9fa !important;
}

/* Placeholder text styling */
input::placeholder,
textarea::placeholder,
select::placeholder {
    color: #f8f9fa !important;
    opacity: 0.7 !important;
}

/* Remove yellow focus outlines */
.btn:focus,
.btn:active,
.card:focus,
.form-control:focus,
.form-select:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* Scrollbar customizada para dark theme */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #212529;
}

::-webkit-scrollbar-thumb {
    background: #495057;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f8f9fa;
}

/* Hero Banner com altura controlada */
.hero-section {
    min-height: 500px !important;
    max-height: 500px !important;
    overflow: hidden;
}

/* Slider/Carousel shadow */
.carousel {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6) !important;
    border-radius: 10px !important;
    overflow: hidden;
}

.hero-section .carousel-item img,
.hero-section .img-fluid,
.hero-section .hero-background img {
    height: 500px !important;
    object-fit: contain !important;
    width: 100% !important;
}

.hero-section .hero-background,
.hero-section .hero-overlay,
.hero-section .carousel {
    max-height: 500px !important;
}

.hero-section .container {
    min-height: 500px !important;
}

/* Responsividade para hero banner */
@media (max-width: 768px) {
    .hero-section {
        min-height: 400px !important;
        max-height: 400px !important;
    }

    .hero-section .carousel-item img,
    .hero-section .img-fluid,
    .hero-section .hero-background img {
        height: 400px !important;
        object-fit: contain !important;
    }

    .hero-section .hero-background,
    .hero-section .hero-overlay,
    .hero-section .carousel {
        max-height: 400px !important;
    }

    .hero-section .container {
        min-height: 400px !important;
    }
}