/* home.css - Versão completa e ajustada */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #7b1fa2; /* Roxo vibrante para combinar com o logo */
    --primary-light: #ae52d4;
    --primary-dark: #4a0072;
    --secondary-color: #283593; /* Azul para contraste */
    --accent-color: #e1bee7; /* Tom mais claro para detalhes */
    --text-dark: #212121;
    --text-light: #ffffff;
    --text-medium: #757575;
    --transition-speed: 0.3s;
}

/* Estilos Base */
body, html {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: #fafafa;
}

section {
    position: relative;
    padding: 4rem 0;
}

/* Hero Section com Carrossel */
.hero-section {
    padding: 0;
    margin-top: -20px;
    position: relative;
}

#mainCarousel {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
}

#mainCarousel .carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

#mainCarousel .carousel-item {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Proporção fixa */
    background-color: #f5f5f5; /* Cor de fundo para áreas não cobertas */
    max-height: 600px; /* Limite de altura no desktop */
}

#mainCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Mantém a imagem inteira visível */
    object-position: center;
    filter: brightness(0.8);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.carousel-caption {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    max-width: 80%;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.carousel-caption h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.carousel-caption .btn {
    padding: 0.8rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    box-shadow: 0 4px 15px rgba(74, 0, 114, 0.4);
    transition: all 0.3s ease;
}

.carousel-caption .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 0, 114, 0.6);
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 8px;
    background-color: rgba(255, 255, 255, 0.6);
    border: none;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: var(--primary-color);
    width: 14px;
    height: 14px;
}

.carousel-control-prev, .carousel-control-next {
    width: 10%;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    opacity: 1;
    background: linear-gradient(90deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 100%);
}

.carousel-control-next:hover {
    background: linear-gradient(270deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 100%);
}

/* Seção de Idiomas */
.languages-section {
    background-color: #f8f9fa;
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.main-title {
    color: #000000; /* Preto forte */
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.main-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-light), var(--primary-dark));
    border-radius: 2px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-top: 1.5rem;
}

.languages-container {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap; /* Evita quebra de linha em desktop */
    gap: 15px;
    margin-top: 2rem;
    max-width: 100%;
}

.language-item {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    width: 200px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: visible;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.language-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.flag-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #f5f5f5;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.language-item:hover .flag-wrapper {
    transform: scale(1.05);
    border-color: var(--accent-color);
}

.language-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.language-item:hover img {
    transform: scale(1.1);
}

.language-item h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.language-item:hover h3 {
    color: var(--primary-dark);
}

.language-item .tooltip-text {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(123, 31, 162, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    text-align: center;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.language-item .tooltip-text:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid rgba(123, 31, 162, 0.9);
}

.language-item:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
    top: -90px;
}

/* Sparkle effect for language cards */
.sparkle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
    animation: sparkle 1s ease-out;
    z-index: 10;
}

@keyframes sparkle {
    0% {
        opacity: 1;
        transform: scale(0);
    }
    100% {
        opacity: 0;
        transform: scale(3);
    }
}

/* Responsive Styles */
@media (max-width: 991px) {
    #mainCarousel .carousel-item {
        max-height: 500px; /* Altura reduzida para tablets */
    }
    
    .carousel-caption h2 {
        font-size: 2.2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .language-item {
        width: 180px;
    }
    
    .language-item .tooltip-text {
        width: 180px;
        font-size: 0.8rem;
    }
}

@media (max-width: 767px) {
    #mainCarousel .carousel-item {
        max-height: 400px; /* Altura reduzida para mobile */
    }
    
    .carousel-caption {
        padding: 1.5rem;
    }
    
    .carousel-caption h2 {
        font-size: 1.8rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .carousel-caption .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .main-title {
        font-size: 1.6rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .languages-container {
        flex-wrap: wrap; /* Permite quebra de linha em tablets */
        justify-content: center;
    }
    
    .language-item {
        width: 160px;
        padding: 1.8rem;
    }
    
    .flag-wrapper {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 576px) {
    #mainCarousel .carousel-item {
        max-height: 300px; /* Altura ainda menor para telas pequenas */
        aspect-ratio: 4 / 3; /* Ajuste opcional para mobile */
    }
    
    .carousel-caption {
        max-width: 90%;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .languages-container {
        flex-wrap: wrap; /* Permite quebra de linha em mobile */
        justify-content: center;
        gap: 10px;
    }
    
    .language-item {
        width: 130px;
        padding: 1.5rem;
    }
    
    .flag-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .main-title:after {
        width: 60px;
    }
    
    .language-item .tooltip-text {
        width: 160px;
        font-size: 0.75rem;
        top: -70px;
    }
    
    .language-item:hover .tooltip-text {
        top: -75px;
    }
}