/* --- ANIMAÇÃO DE BORDA GIRATÓRIA --- */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #011126;
    color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-wrapper {
    background-color: transparent;
    position: absolute;
    width: 100%;
    z-index: 10;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

header .logo {
    margin-top: 12px; 
}

header .logo img {
    height: 150px;
    filter: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); 
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 35px; /* Aumentei o espaço para o novo estilo */
}

header nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem; /* Levemente reduzido para o estilo maiúsculo */
    transition: color 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    text-transform: uppercase; /* Transforma o texto em maiúsculas */
    letter-spacing: 1.5px; /* Adiciona mais espaço entre as letras */
}

header nav ul li a:hover {
    color: #C4A35A; /* Mantém o hover simples que você pediu */
}

.header-contact-button {
    background-color: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.header-contact-button:hover {
    background-image: linear-gradient(45deg, #d4ae5f, #b89543); /* DEGRADÊ DOURADO */
    color: #011126;
    border-color: transparent;
}

/* --- HERO SECTION ATUALIZADO --- */
.hero-section {
    background-image: linear-gradient(rgba(1, 17, 38, 0.815), rgba(1, 17, 38, 0.822)), url('../img/FUNDO_INICIO.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding-top: 200px;
    position: relative;
    z-index: 1; /* Define a camada da seção hero */
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 0 80px 0;
    min-height: 70vh;
}

.hero-text {
    max-width: 50%;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    max-width: 90%;
}

.cta-button {
    color: #011126;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    background-image: linear-gradient(45deg, #d4ae5f, #C4A35A); /* DEGRADÊ DOURADO */
    box-shadow: 0 4px 15px rgba(196, 163, 90, 0.3);
    transition: transform 0.3s ease;
}
.cta-button img {
    filter: brightness(0);
}

.cta-button:hover {
    transform: scale(1.05);
}

/* --- ESTILOS DAS IMAGENS REDONDAS E ANIMAÇÃO DE PULSO --- */
.hero-images-container {
    width: 45%;
    height: 400px; /* Altura fixa para o container */
    position: relative; /* Essencial para o posicionamento absoluto das imagens */
}

.hero-image-A,
.hero-image-B {
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    position: absolute; /* Posicionamento absoluto dentro do container */
}

.hero-image-A img,
.hero-image-B img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Posicionamento e tamanho da imagem A (maior, atrás) */
.hero-image-A {
    width: 350px;
    height: 350px;
    top: 0;
    right: 50px;
    z-index: 1;
}

/* Posicionamento e tamanho da imagem B (menor, na frente) */
.hero-image-B {
    width: 250px;
    height: 250px;
    bottom: 0;
    right: 0;
    border: 4px solid #011126; /* Borda para destacar da imagem de trás */
    z-index: 2;
}


/* --- ANIMAÇÃO DE PULSO --- */

/* Base para os anéis de animação */
.hero-image-A::before, .hero-image-A::after,
.hero-image-B::before, .hero-image-B::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid;
    box-sizing: border-box;
}

/* Anéis da imagem A */
.hero-image-A::before {
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    border-color: rgba(46, 224, 255, 0.6);
    animation: pulse 4s infinite ease-out;
}
.hero-image-A::after {
    width: calc(100% + 80px);
    height: calc(100% + 80px);
    border-color: rgba(4, 217, 255, 0.4);
    animation: pulse 4s infinite ease-out 2s;
}

/* Anéis da imagem B */
.hero-image-B::before {
    width: calc(100% + 30px);
    height: calc(100% + 30px);
    border-color: rgba(0, 191, 255, 0.7);
    animation: pulse 5s infinite ease-out 1s;
}
.hero-image-B::after {
    width: calc(100% + 60px);
    height: calc(100% + 60px);
    border-color: rgba(0, 111, 133, 0.5);
    animation: pulse 5s infinite ease-out 3.5s;
}

/* Animação de pulso */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.7;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0;
    }
}

.logos-section {
    background-color: #0A2B52; 
    padding: 10px 0;
    overflow: hidden;
    width: 100%;
    border-top: 1px solid #103562;
    position: relative; /* Adicionado para o z-index funcionar */
    z-index: 2; /* Define a camada da seção de logos */
}

.logos-carousel {
    display: flex;
    width: fit-content;
    animation: scroll 30s linear infinite;
}

.logos-slide {
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 0 40px;
}

.logos-slide img {
    height: 100px; 
    filter: none; 
    opacity: 1; 
    transition: transform 0.3s ease; 
}

.logos-slide img:hover {
    transform: scale(1.1); 
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.services-section {
    padding: 80px 0;
    background-color: #011126;
}

.section-header {
    text-align: left;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
}

.services-viewport {
    overflow: hidden;
    perspective: 1500px;
}

.services-slider {
    display: flex;
    gap: 30px;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-card {
    min-height: 350px;
    flex: 0 0 calc(25% - 22.5px);
    background-color: transparent;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.service-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-front {
    border: 1px solid #103562;
    box-shadow: 0 0 10px rgba(6, 5, 109, 0.5);
}

.card-front img {
    width: 80px;
    height: 80px;
    opacity: 0.8;
    filter: brightness(0) invert(1);
}

.service-card:nth-child(odd) .card-front {
    /* Dourado-laranja (#E8A857) para um dourado-escuro (#A18849) */
    background-image: linear-gradient(45deg, #E8A857, #A18849);
}
.service-card:nth-child(even) .card-front {
    background-image: linear-gradient(90deg, #0052D4, #011126);
}

.card-back {
    background-color: #0A2B52;
    color: #ffffff;
    padding: 30px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    transform: rotateY(180deg);
    border: 1px solid #103562;
    box-shadow: 0 0 10px rgba(6, 5, 109, 0.5);
}

.card-subtitle {
    font-size: 0.9rem;
    color: #C4A35A; /* COR MELHORADA */
    font-weight: 500;
}

.card-back h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 5px 0 15px 0;
    color: #ffffff;
}

.card-back p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.pagination-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #103562;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.pagination-dot:hover {
    background-color: #04d9ff;
    transform: scale(1.2);
}

.pagination-dot.active {
    background-color: #006f85;
    transform: scale(1.4);
}

.tech-stack-section {
    padding: 80px 0;
    background-color: #011126;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 60px;
    padding-left: 20px;
    color: #ffffff;
}

.tech-stack-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.tech-accordion {
    padding: 0 20px;
}

.accordion-item {
    border-bottom: 1px solid #103562;
}
.accordion-item:first-child {
    border-top: 1px solid #103562;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    cursor: pointer;
}

.accordion-header h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffffff;
    opacity: 0.7;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.accordion-item.active .accordion-header h3 {
    opacity: 1;
    color: #C4A35A; /* COR MELHORADA */
}

.accordion-chevron {
    width: 24px;
    height: 24px;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    filter: invert(1);
    opacity: 0.7;
}

.accordion-item.active .accordion-chevron {
    transform: rotate(180deg);
    filter: invert(0) sepia(100%) saturate(500%) hue-rotate(-20deg) brightness(1.2);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), padding 0.4s ease;
}

.accordion-item.active .accordion-content {
    max-height: 350px;
    padding-bottom: 30px;
}

.accordion-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 90%;
}

.accordion-button {
    display: inline-block;
    margin-top: 20px;
    background-image: linear-gradient(45deg, #d4ae5f, #b89543); /* DEGRADÊ DOURADO */
    color: #011126;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: filter 0.3s ease, transform 0.3s ease;
    border: none;
    margin-left: 10px;
}

.accordion-button:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
    transform-origin: bottom; 
}

.tech-image-display {
    text-align: center;
}

.tech-image {
    max-width: 80%;
    border-radius: 15px;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.tech-image.active {
    display: block;
    opacity: 1;
}

.numbers-section {
    padding: 60px 0;
    background-color: #0A2B52;
}

.section-header-alt {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.section-header-alt .line {
    width: 40px;
    height: 3px;
    background-image: linear-gradient(45deg, #d4ae5f, #b89543); /* DEGRADÊ DOURADO */
}

.section-header-alt h2 {
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: lowercase;
    color: #C4A35A; /* COR MELHORADA */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: left;
}

.stat-item .stat-number {
    font-size: 3rem;
    font-weight: 600;
    color: #ffffff;
    display: block;
}

.stat-item .stat-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.timeline-section {
    padding: 80px 0;
    background-color: #011126;
}

.timeline-section .section-title {
    text-align: center;
    color: #ffffff;
}

.timeline-grid {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px; 
}

.timeline-card {
    position: relative;
    min-height: 300px; 
    background-color: #0A2B52;
    border-radius: 12px;
    border: 1px solid #103562;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.4s ease, transform 0.4s ease;
}

.timeline-card:hover {
    border-color: #C4A35A; /* COR MELHORADA */
    transform: translateY(-5px);
}

.timeline-year {
    font-size: 2.8rem; 
    font-weight: 700;
    color: #103562;
    transition: color 0.4s ease;
}

.timeline-card:hover .timeline-year {
    color: #C4A35A; /* COR MELHORADA */
}

.timeline-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-image: linear-gradient(to top, #b89543, #d4ae5f); /* DEGRADÊ DOURADO */
    color: #011126;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    transition: height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.timeline-card:hover .timeline-overlay {
    height: 85%;
}

.timeline-overlay p,
.timeline-overlay .timeline-button {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s;
}

.timeline-card:hover .timeline-overlay p,
.timeline-card:hover .timeline-overlay .timeline-button {
    opacity: 1;
    transform: translateY(0);
}

.timeline-overlay p {
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #011126;
}

.timeline-button {
    background-color: #011126;
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.timeline-button:hover {
    background-color: #0A2B52;
    transform: scale(1.05);
}

.video-section {
    padding: 80px 0;
    background-color: #0A2B52;
}

.video-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.video-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.video-header h2 span {
    color: #C4A35A; /* COR MELHORADA */
}

.video-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.video-carousel-wrapper {
    position: relative;
}

.video-carousel-viewport {
    overflow: hidden;
    padding: 20px 0;
}

.video-carousel-slider {
    display: flex;
    align-items: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.video-embed-container.video-slide {
    position: relative;
    width: 100%;
    flex: 0 0 240px;
    margin: 0 30px; 
    padding-top: calc(240px * 1.777);
    border-radius: 20px;
    overflow: hidden;
    opacity: 0.5;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
    cursor: pointer;
    z-index: 1;
}

.video-embed-container.video-slide.active {
    opacity: 1;
    transform: scale(1.1); 
    cursor: default;
    z-index: 10;
}

.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.form-section {
    padding: 80px 20px;
    background-color: #011126;
}

.contact-full-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    background: transparent;
}

.contact-details {
    background: #0A2B52;
    border-radius: 20px;
    padding: 60px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-details h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.contact-details ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-details li img {
    width: 24px;
    height: 24px;
}

.contact-socials h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
}
.social-icons img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}
.social-icons img:hover {
    transform: scale(1.2);
}

.contact-form {
    background-image: linear-gradient(45deg, #d4ae5f, #b89543); /* DEGRADÊ DOURADO */
    border-radius: 20px;
    padding: 40px 70px;
    color: #011126;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-form .input-group {
    margin-bottom: 10px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: rgba(1, 17, 38, 0.2);
    border: 1px solid rgba(1, 17, 38, 0.2);
    border-radius: 12px;
    padding: 12px 20px;
    color: #011126;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(1, 17, 38, 0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border: 1px solid #011126;
    background-color: rgba(255, 255, 255, 0.3);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn-contact {
    background-color: #011126;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn-contact:hover {
    background-color: #0A2B52;
}


.site-footer {
    background-color: #011126;
    padding: 20px 0;
    color: #ffffff;
}

.footer-copyright {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}


/* --- Media Queries (Responsividade) --- */

@media (max-width: 1200px) {
    .timeline-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-section { padding-top: 100px; }
    .hero { flex-direction: column; text-align: center; }
    .hero-text { max-width: 100%; order: 2; }
    .hero-images-container { width: 100%; margin-bottom: 40px; order: 1; }
    .hero-text h1 { font-size: 2.5rem; }
    header nav { display: none; }
    .section-header h2 { font-size: 2rem; }
    .service-card { flex: 0 0 calc(50% - 10px); }
    .tech-stack-content { grid-template-columns: 1fr; }
    .tech-image-display { order: -1; margin-bottom: 40px; }
    .section-title { font-size: 2.2rem; text-align: center; padding-left: 0; }
    .contact-full-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); text-align: center; }
    .section-header-alt { justify-content: center; }
    .timeline-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-details, .contact-form { padding: 40px; }
}

@media (max-width: 576px) {
    .hero-image-A { width: 220px; height: 220px; }
    .hero-image-B { width: 160px; height: 160px; align-self: center; margin-right: 0; }
    .service-card { flex: 0 0 100%; }
    .timeline-grid { grid-template-columns: 1fr; }
}
