/* Reset e configurações básicas */
/* Carrossel principal */
.carousel {
    position: relative;
    height: 780px;
    max-height: 780px;
    min-height: 400px;
}

.carousel-inner {
    height: 100%;
}

.carousel-item {
    height: 100%;
    position: relative;
}

.carousel-slide {
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    transition: all 0.6s ease-in-out;
}

/* Overlay escuro para melhor legibilidade */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

/* Conteúdo do carrossel */
.carousel-content {
    position: relative;
    z-index: 3;
    margin: 0 auto;
    width: 80%;
    color: white;
}

.carousel-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);

}

.carousel-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);

}

/* Hexágonos flutuantes */
.hexagons-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.hexagon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(47, 139, 243, 0.3);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: float 6s ease-in-out infinite;
}

/* Posicionamento e animações dos hexágonos */
.hex-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.hex-2 {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
    animation-duration: 7s;
    transform: rotate(30deg);
}

.hex-3 {
    top: 60%;
    left: 5%;
    animation-delay: 2s;
    animation-duration: 9s;
    transform: rotate(60deg);
}

.hex-4 {
    top: 70%;
    right: 10%;
    animation-delay: 3s;
    animation-duration: 6s;
    transform: rotate(90deg);
}

.hex-5 {
    top: 40%;
    left: 20%;
    animation-delay: 4s;
    animation-duration: 8s;
    transform: rotate(120deg);
}

.hex-6 {
    top: 30%;
    right: 30%;
    animation-delay: 5s;
    animation-duration: 7s;
    transform: rotate(150deg);
}

.hex-7 {
    top: 80%;
    left: 30%;
    animation-delay: 6s;
    animation-duration: 9s;
    transform: rotate(180deg);
}

.hex-8 {
    top: 50%;
    right: 5%;
    animation-delay: 7s;
    animation-duration: 6s;
    transform: rotate(210deg);
}

/* Animação de flutuação */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-40px) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-20px) rotate(270deg);
        opacity: 0.7;
    }
}



/* Controles de navegação customizados */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(53, 198, 255, 0.8);
    border-radius: 50%;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: rgba(53, 198, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control-icon i {
    font-size: 1.5rem;
    color: white;
}

/* Indicadores customizados */
.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators li {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(53, 198, 255, 0.8);
    margin: 0 8px;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background: rgba(53, 198, 255, 0.8);
    transform: scale(1.2);
}

/* Responsividade */
@media (max-width: 1200px) {
    .carousel {
        height: 650px;
        max-height: 650px;
        min-height: 350px;
    }
    
    .carousel-title {
        font-size: 3rem;
    }
    
    .carousel-subtitle {
        font-size: 1.2rem;
    }
    
    .hexagon {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 992px) {
    .carousel {
        height: 500px;
        max-height: 500px;
        min-height: 300px;
    }
    
    .carousel-title {
        font-size: 2.5rem;
    }
    
    .carousel-subtitle {
        font-size: 1.1rem;
    }
    

    
    .carousel-control-prev,
    .carousel-control-next {
        width: 60px;
        height: 60px;
    }
    
    .carousel-control-prev {
        left: 20px;
    }
    
    .carousel-control-next {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .carousel {
        height: 400px;
        max-height: 400px;
        min-height: 250px;
    }
    
    .carousel-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .carousel-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    

    
    .hexagon {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .carousel-control-prev {
        left: 15px;
    }
    
    .carousel-control-next {
        right: 15px;
    }
    
    .carousel-control-icon i {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .carousel {
        margin-top:86px;
        height: 350px;
        max-height: 350px;
        min-height: 200px;
    }
    
    .carousel-title {
        font-size: 1.8rem;
    }
    
    .carousel-subtitle {
        font-size: 0.95rem;
    }
    

    
    .hexagon {
        width: 30px;
        height: 30px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
}

/* Efeito de fade entre slides */
.carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    transform: none;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-left,
.carousel-fade .carousel-item-prev.carousel-item-right {
    opacity: 1;
}

.carousel-fade .active.carousel-item-left,
.carousel-fade .active.carousel-item-right {
    opacity: 0;
}

.carousel-fade .carousel-item-next,
.carousel-fade .carousel-item-prev,
.carousel-fade .carousel-item.active,
.carousel-fade .active.carousel-item-left,
.carousel-fade .active.carousel-item-prev {
    transform: none;
}

/* Otimizações de performance */
.carousel-slide,
.hexagon {ge: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

.carousel-links {
    margin-top: 20px;
}

.carousel-links a {
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: underline;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.carousel-links a:hover {
    color: #ff6b35 !important;
}

@media (max-width: 768px) {
    .carousel-links a {
        font-size: 1rem;
        margin-right: 10px;
    }
}