/* ==========================================
   1. VARIÁVEIS E RESETS GLOBAIS
   ========================================== */
html {
    scroll-behavior: smooth;
}

:root {
    --azul-escuro: #002857;
    --azul-claro: #00a0ff;
    --branco: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--azul-escuro) !important;
    color: var(--branco) !important;
    font-family: 'Sofia Sans', sans-serif;
}

.container {
    width: min(1200px, 90%);
    margin: auto;
}

/* Componentes de Botão */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}
.btn-primary {
    background-color: var(--azul-claro);
    color: var(--branco);
}
.btn-primary:hover {
    background-color: var(--branco);
    color: var(--azul-escuro);
}
.btn-secondary {
    border: 2px solid var(--branco);
    color: var(--branco);
}
.btn-secondary:hover {
    background-color: var(--branco);
    color: var(--azul-escuro);
}

/* Rodapé Padrão */
.footer {
    background-color: var(--azul-claro);
    color: var(--branco);
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}
.footer p {
    font-weight: 500;
    font-size: 0.95rem;
}

/* ==========================================
   2. ESTILOS DA NAV BAR / MENU (menu.html)
   ========================================== */
.header {
    background-color: rgba(0, 40, 87, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: 'Sofia Sans', sans-serif;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    width: min(1200px, 90%);
    margin: auto;
}
.logo-link {
    display: flex;
    align-items: center;
}
.logo-img {
    height: 35px; 
    width: auto;  
    object-fit: contain;
}
.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-link {
    font-family: 'Sofia Sans', sans-serif;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}
.nav-link:hover {
    color: var(--azul-claro);
}
.btn-nav {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 6px;
    font-family: 'Sofia Sans', sans-serif;
    font-weight: 600;
    background-color: var(--azul-claro);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-nav:hover {
    background-color: #ffffff;
    color: var(--azul-escuro);
}

/* ==========================================
   3. ESTILOS DA HOME (index.html)
   ========================================== */
.hero {
    padding: 100px 0;
}
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
@media (max-width: 768px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-buttons { justify-content: center; }
}
.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-title span {
    color: var(--azul-claro);
}
.hero-text {
    font-size: 1.15rem;
    margin-bottom: 30px;
    opacity: 0.85;
}
.hero-buttons {
    display: flex;
    gap: 15px;
}
.features {
    padding: 80px 0;
}
.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 50px;
}
.grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.feature-card {
    padding: 40px 30px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--azul-claro);
}
.feature-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 160, 255, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--azul-claro);
    font-weight: 700;
    margin-bottom: 20px;
}
.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
}
.feature-card p {
    opacity: 0.8;
}

/* ==========================================
   4. ESTILOS DO SOBRE NÓS (sobre.html)
   ========================================== */
.about {
    padding: 80px 0 100px 0;
}
.about-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}
.about-row.mirrored {
    grid-template-columns: 1.2fr 1fr;
}
@media (max-width: 768px) {
    .about-row, .about-row.mirrored { grid-template-columns: 1fr; text-align: center; gap: 40px; margin-bottom: 70px; }
    .about-image { margin: 0 auto; }
    .about-row.mirrored .about-image { order: 0; }
    .about-row.mirrored .about-content { order: 1; }
}
.about-image {
    position: relative;
    max-width: 450px;
    width: 100%;
}
.about-image img {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    width: 100%;
    height: 400px;
    object-fit: cover;
}
.about-row:not(.mirrored) .about-image::before {
    content: '';
    position: absolute;
    top: 15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--azul-claro);
    border-radius: 12px;
    z-index: -1;
}
.about-row.mirrored .about-image::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--azul-claro);
    border-radius: 12px;
    z-index: -1;
}
.about-subtitle {
    color: var(--azul-claro);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}
.about-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 25px;
}
.about-text {
    font-size: 1.15rem;
    margin-bottom: 20px;
    opacity: 0.85;
}

/* ==========================================
   5. CARROSSEL 1: DIRETORIA (diretoria.html)
   ========================================== */
.board-section {
    padding: 80px 0 100px 0;
}
.board-intro {
    max-width: 700px;
    margin-bottom: 60px;
}
.board-subtitle {
    color: var(--azul-claro);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}
.board-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 25px;
}
.board-description {
    font-size: 1.2rem;
    opacity: 0.85;
    line-height: 1.6;
}

/* Estrutura do Carrossel de Membros (Scroll Snap Nátivo) */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-bottom: 20px;
}
.carousel-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 10px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar {
    display: none;
}
.member-card {
    flex: 0 0 calc((100% - 60px) / 3);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}
@media (max-width: 992px) {
    .member-card { flex: 0 0 calc((100% - 30px) / 2); }
}
@media (max-width: 600px) {
    .member-card { flex: 0 0 85%; }
}
.member-photo-frame {
    width: 100%;
    height: 420px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.member-photo-frame:hover {
    transform: translateY(-5px);
    border-color: var(--azul-claro);
}
.member-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.member-info {
    padding: 5px 0;
    text-align: center;
}
.member-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 2px;
}
.member-role {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--azul-claro);
}
.carousel-nav {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}
.nav-arrow {
    width: 45px;
    height: 45px;
    border: 2px solid var(--branco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--branco);
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}
.nav-arrow:hover {
    background-color: var(--branco);
    color: var(--azul-escuro);
}

/* Badge de Imagens */
.image-card {
    position: relative;
    display: inline-block;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}
.image-card img {
    width: 100%;
    height: auto;
    display: block;
}
.image-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #ffffff;
    color: #00a0ff;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 2;
}

/* ==========================================
   6. CARROSSEL 2: EMPRESAS JUNIORES (index.html)
   ========================================== */
.ejs-section {
    padding: 40px 0;
}
.ej-card {
    flex: 0 0 220px;
    max-width: 220px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}
.ej-card:hover {
    transform: translateY(-5px);
}
.ej-card-inner {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.ej-card:hover .ej-card-inner {
    border-color: var(--azul-claro);
}
.ej-icon-wrapper {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}
.ej-icon-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.ej-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--branco);
}

/* ==========================================
   7. CARROSSEL 3: EVENTOS / PARCEIROS (proximo.html / eventos.html)
   ========================================== */
.event-header {
    text-align: center;
    margin-bottom: 2rem;
}
.event-header .about-title {
    font-size: 2.5rem;
}
.event-header .about-text {
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.8);
}
.event-video {
    width: 100%;
    min-height: 400px;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}
.event-quick-info {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.quick-info-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #0056b3;
    flex: 1;
    min-width: 180px;
}
.quick-info-title {
    display: block;
    color: #fff;
    font-size: 0.9rem;
}
.quick-info-desc {
    color: rgba(255, 255, 255, 0.8);
}
.confirmed-ejs-section {
    margin: 4rem 0;
    text-align: center;
}
.carousel-heading {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

/* Carrossel Infinito / Rolagem Automática sem scrollbar */
.carousel-track-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}
.confirmed-ejs-section .carousel-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: scroll 25s linear infinite;
    overflow-x: visible;
}
.confirmed-ejs-section .carousel-track:hover {
    animation-play-state: paused;
}
.carousel-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    width: 120px;
}
.carousel-item img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.8);
    opacity: 0.8;
    transition: all 0.3s ease;
}
.carousel-item img:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Seção do Mapa e Foto do Local */
.mirrored.events-row {
    margin-top: 2rem;
}
.location-image-container {
    margin-top: 1rem;
    border-radius: 12px;
    overflow: hidden;
}
.location-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.map-container {
    min-height: 400px;
}
.map-iframe {
    border: 0;
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================
   10. SEÇÃO DE CONTATO / FORMULÁRIO
   ========================================== */
.contact-section {
    padding: 80px 0;
    scroll-margin-top: 90px; /* Cria uma margem de respiro para a Navbar não cobrir o título */
}

.contact-intro {
    max-width: 600px;
    margin-bottom: 40px;
}

.contact-form {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    max-width: 800px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--branco);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--branco);
    font-family: 'Sofia Sans', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus {
    border-color: var(--azul-claro);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 10px rgba(0, 160, 255, 0.2);
}

.btn-submit {
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .contact-form {
        padding: 25px;
    }
}