:root {
    --primary: #ffd700;
    --secondary: #333333;
    --text-dark: #222222;
}

.bg-primary-custom {
    background-color: var(--primary);
}

.text-primary-custom {
    color: var(--primary);
}

.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: white;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Overlay escuro para melhor legibilidade */
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    background-color: #ffd700;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.cta-button:hover {
    background-color: #ffed4a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }
}

.service-card {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
}

.navbar {
    background-color: rgba(255, 255, 255, 0.95);
}

.cta-section {
    background-color: var(--primary);
    padding: 4rem 0;
}

.stats-item {
    text-align: center;
    padding: 2rem;
}

.footer {
    background-color: var(--secondary);
    color: white;
    padding: 4rem 0 2rem;
}

/* Cards com os projetos  */
.project-card {
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.project-card:hover .card-background {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 0.8)
    );
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.project-status {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    background: #ffd700;
    color: #000;
}

.company-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    font-weight: bold;
}

.card-content {
    color: white;
}

.sector-badge {
    display: inline-block;
    padding: 5px 10px;
    background: rgba(255, 215, 0, 0.9);
    color: #000;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 10px;
    margin-top: 10px;
}

.location-badge {
    display: inline-block;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 15px;
    font-size: 0.8rem;
}

.projects-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    margin: 0.25rem;
    border: 2px solid #ffd700;
    border-radius: 25px;
    background: transparent;
    color: #333;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #ffd700;
    color: #000;
}


.project-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-ongoing {
    background: #ffd700;
    color: #000;
}

.status-completed {
    background: #28a745;
    color: #fff;
}

.project-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

.modal-xl {
    max-width: 1140px;
}

.project-details-header {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7));
    background-size: cover;
    background-position: center;
    color: white;
    padding: 3rem;
    border-radius: 0px;
    margin-bottom: 2rem;
}

.project-stat {
    padding: 1.5rem;
    border-radius: 10px;
    background: #f8f9fa;
    margin-bottom: 1rem;
}

.sector-icon {
    width: 50px;
    height: 50px;
    background: #ffd700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.industry-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.animated-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.company-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#projectsGrid {
    min-height: 400px;
}

.loading-spinner {
    display: none;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.project-filter {
    margin-bottom: 2rem;
}

.project-filter button {
    border: none;
    background: none;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    cursor: pointer;
    position: relative;
}

.project-filter button.active {
    color: var(--primary);
    font-weight: bold;
}

.project-filter button::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

.project-filter button.active::after {
    width: 80%;
    left: 10%;
}

.project-card {
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.about-image {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.training-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.main-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.main-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #ffd700;
}

.category-card {
    background: #fff;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.category-header {
    background-color: #ffd700;
    padding: 1rem 1.5rem;
    color: #333;
    font-weight: bold;
    font-size: 1.2rem;
}

.training-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.training-item {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
}

.training-item:last-child {
    border-bottom: none;
}

.training-item:hover {
    background-color: #f8f9fa;
}

.training-item:before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #ffd700;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

.category-accordion .accordion-button:not(.collapsed) {
    background-color: #ffd700;
    color: #333;
}

.category-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25);
}

.partners-section {
    background: #f8f9fa;
    overflow: hidden;
}

.logos-slide-container {
    overflow: hidden;
    padding: 20px 0;
    background: white;
    margin: 0 -15px;
    position: relative;
}

.logos-slide-container::before,
.logos-slide-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.logos-slide-container::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.logos-slide-container::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

.logos-slider {
    display: flex;
    animation: slide 30s linear infinite;
    width: calc(200px * 12); /* Ajuste baseado no número de logos */
}

.logos-slider:hover {
    animation-play-state: paused;
}

.logos-slide {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 40px;
    padding: 0 20px;
    margin-bottom: 10px;
}

.partner-logo {
    max-width: 160px;
    height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    margin-right: 20px;
    margin-bottom: 10px;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}



/* Responsividade */
@media (max-width: 768px) {
    .partner-logo {
        max-width: 120px;
        height: 60px;
    }

    .logos-slider {
        animation-duration: 20s;
    }
}

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Impede interação com o vídeo */
    z-index: 0;
}

#youtube-player {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
}

@media (max-aspect-ratio: 16/9) {
    #youtube-player {
        width: 100%;
        height: auto;
    }
}

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    width: 100%;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

#youtube-player {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    z-index: -1;
}

/* Ajuste específico para garantir cobertura total */
.video-background iframe {
    width: 177.77777778vh; /* 100 * 16/9 */
    height: 56.25vw; /* 100 * 9/16 */
    min-width: 100%;
    min-height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
}

.mission-section {
    padding: 0px 0px 80px 0;
    background-color: #ffffff;
}

.mvv-card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 30px;
}

.mvv-card:hover {
    transform: translateY(-5px);
}

.mvv-section-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1.5rem;
}

.mvv-value-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.mvv-value-dot {
    width: 8px;
    height: 8px;
    background-color: #ffd700;
    border-radius: 50%;
    margin-right: 12px;
}

.mvv-value-text {
    color: #555;
    font-size: 1rem;
}

.mvv-card-body {
    padding: 2rem;
}

.mvv-card-text {
    color: #666;
    line-height: 1.6;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 400px;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
}