/* =========================================
   1. VARIÁVEIS E ESTILOS BASE
========================================= */
:root {
    --bg-main: #050505;
    --bg-darker: #000000;
    --red-dark: #660000;
    --red-main: #b20000;
    --red-glow: #ff1a1a;
    --gold: #f5b041;
    --text-main: #e0e0e0;
    --text-muted: #888888;
    --font-head: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 100px 20px; 
}

.bg-darker { 
    background-color: var(--bg-darker); 
}

.section-title {
    font-family: var(--font-head); 
    font-size: 2.5rem; 
    text-align: center; 
    margin-bottom: 15px;
}

.section-title span { 
    color: var(--red-main); 
}

.section-desc { 
    text-align: center; 
    color: #ffffff; 
    font-size: 1.2rem; 
    margin-bottom: 50px; 
    max-width: 600px; 
    margin-left: auto; 
    margin-right: auto; 
}

/* =========================================
   2. ELEMENTOS DE UI REUTILIZÁVEIS
========================================= */
/* Botões */
.btn {
    padding: 12px 30px; 
    font-family: var(--font-head); 
    font-weight: 700;
    text-transform: uppercase; 
    letter-spacing: 1px; 
    text-decoration: none;
    border: none; 
    transition: all 0.3s ease; 
    position: relative;
    overflow: hidden;
}

.primary-btn {
    background: transparent; 
    color: var(--red-glow);
    border: 2px solid var(--red-main);
    box-shadow: 0 0 15px rgba(178, 0, 0, 0.3);
}

.primary-btn:hover {
    background: var(--red-main); 
    color: #fff;
    box-shadow: 0 0 30px var(--red-glow);
}

.secondary-btn {
    background: var(--gold); 
    color: var(--bg-main); 
    margin-top: 20px; 
    display: inline-block;
}

.secondary-btn:hover { 
    background: #fff; 
    box-shadow: 0 0 20px var(--gold); 
}

/* Scroll Reveal */
.reveal { 
    opacity: 0; 
    transform: translateY(50px); 
    transition: all 0.8s ease-out; 
}

.reveal.active { 
    opacity: 1; 
    transform: translateY(0); 
}

/* Voltar ao Topo */
#backToTop {
    position: fixed; 
    bottom: 30px; 
    right: 30px;
    width: 40px; 
    height: 40px; 
    background: var(--red-main); 
    color: #fff;
    border: none; 
    border-radius: 5px; 
    font-size: 20px;
    display: none; 
    z-index: 1000; 
    box-shadow: 0 0 10px rgba(178,0,0,0.5);
}

#backToTop:hover { 
    background: var(--red-glow); 
}

/* =========================================
   3. PRELOADER
========================================= */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-darker);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loader-core {
    width: 50px; height: 50px;
    border: 3px solid transparent;
    border-top-color: var(--red-main);
    border-bottom-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

/* =========================================
   4. NAVBAR
========================================= */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: center; 
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

nav.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    padding: 15px 50px;
    border-bottom: 1px solid var(--red-dark);
}

.logo {
    position: absolute;
    left: 50px;
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--text-main);
}

.logo span {
    color: var(--red-main);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    padding: 0;
    margin: 0;
}

.nav-links a {
    color: var(--text-main); 
    text-decoration: none;
    font-family: var(--font-head); 
    font-size: 14px; 
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover { 
    color: var(--red-glow); 
}

/* =========================================
   5. HERO SECTION (BANNER PRINCIPAL)
========================================= */
.parallax-section {
    height: 100vh;
    display: flex; 
    justify-content: center; 
    align-items: center;
    position: relative; 
    overflow: hidden;
    background-color: #000; 
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: 1; 
    opacity: 0.4; 
}

.parallax-section::after {
    content: ''; 
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(255, 50, 0, 0.15) 0%, rgba(0, 0, 0, 0.9) 80%);
    z-index: 2;
    animation: fireGlow 1.5s infinite alternate; 
    pointer-events: none; 
}

@keyframes fireGlow {
    0% { opacity: 0.6; }
    50% { opacity: 0.9; }
    100% { opacity: 1; }
}

.hero-content {
    text-align: center; 
    z-index: 3; 
    position: relative;
    display: flex; 
    flex-direction: column; 
    align-items: center;
}

.hero-logo {
    width: 350px; 
    max-width: 80%; 
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(178, 0, 0, 0.7));
}

h1.glitch {
    font-family: var(--font-head); 
    font-size: 3rem; 
    color: #fff;
    margin-bottom: 10px; 
    text-shadow: 2px 2px 0px var(--red-main);
}

.subtitle {
    font-size: 1.5rem; 
    color: var(--gold); 
    margin-bottom: 30px; 
    height: 30px;
}

/* =========================================
   6. SOBRE O ESPORTE
========================================= */
.about-combat-card {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
}

.combat-title {
    font-family: var(--font-head); 
    color: var(--gold); 
    margin-bottom: 30px; 
    font-size: 1.8rem; 
    text-align: center;
}

.combat-content {
    display: flex;
    gap: 40px; 
    align-items: center; 
}

.combat-text {
    flex: 1;
}

.combat-text p {
    font-size: 1.3rem; 
    line-height: 1.8; 
    color: #ffffff; 
    margin-bottom: 15px; 
    text-align: justify;
}

.combat-image {
    flex: 1; 
    max-width: 400px; 
    display: flex;
    justify-content: center;
}

.combat-image img {
    width: 100%;
    height: auto;
    border: 2px solid var(--red-dark);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(102, 0, 0, 0.4);
    object-fit: cover;
}

/* =========================================
   7. EQUIPE (IRMANDADE)
========================================= */
.cards-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}

.tilt-card, .static-card {
    background: linear-gradient(145deg, #111, #0a0a0a);
    border: 1px solid #222; 
    border-radius: 10px;
    padding: 30px; 
    transition: border-color 0.3s, box-shadow 0.3s;
}

.tilt-card {
    transform-style: preserve-3d;
}

.tilt-card:hover, .static-card:hover { 
    border-color: var(--red-main); 
    box-shadow: 0 0 15px rgba(178, 0, 0, 0.2);
}

.card-content { 
    transform: translateZ(30px); 
    text-align: center; 
}

.team-card h3 { 
    font-family: var(--font-head); 
    color: #fff; 
    font-size: 1.5rem; 
    margin-bottom: 2px;
}

.team-card .role { 
    color: var(--red-glow); 
    font-weight: bold; 
    margin: 10px 0; 
}

.divider { 
    width: 50px; 
    height: 2px; 
    background: var(--gold); 
    margin: 15px auto; 
}

.member-img-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #1a1a1a;
    border: 3px solid var(--red-dark);
    margin: 0 auto 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #444;
    font-size: 0.9rem;
    font-family: var(--font-head);
    overflow: hidden;
    box-shadow: 0 0 15px rgba(102, 0, 0, 0.5);
    transition: all 0.4s ease;
    background-size: cover;
    background-position: center;
}

.member-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center; 
}

.tilt-card:hover .member-img-placeholder {
    border-color: var(--red-glow);
    box-shadow: 0 0 25px rgba(255, 26, 26, 0.6);
    transform: scale(1.05);
}

.member-img-placeholder[style*="url"] span { display: none; }
.member-img-placeholder[style='background-image: url("");'] span { display: block; }

.nickname {
    color: var(--gold);
    font-family: var(--font-head);
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-shadow: 0 0 5px rgba(245, 176, 65, 0.3);
}

/* =========================================
   8. FROTA (ROBÔS E CARROSSEL)
========================================= */
.robot-showcase {
    display: flex; gap: 40px; align-items: center; background: #0a0a0a;
}

.robot-info { flex: 1; }

.status-badge {
    display: inline-block; padding: 5px 10px; background: rgba(245, 176, 65, 0.1);
    color: var(--gold); font-size: 0.8rem; font-family: var(--font-head);
    border: 1px solid var(--gold); margin-bottom: 15px;
}

.robot-info h3 { 
    font-family: var(--font-head); 
    font-size: 3rem; 
    color: var(--red-glow); 
    margin-bottom: 20px; 
}

.robot-info p { 
    font-size: 1.2rem; 
    color: #fffcfc; 
    margin-bottom: 20px; 
}

.tech-list {
    list-style: none;
    margin-top: 30px; 
}

.tech-list li {
    margin-bottom: 18px; 
    padding-left: 20px; 
    position: relative;
    font-size: 1.15rem; 
    color: #ddd;
}

.tech-list li::before {
    content: '▹'; 
    position: absolute; 
    left: 0; 
    color: var(--red-main); 
}

.tech-list span {
    color: #fff; 
    font-weight: bold; 
}

.robot-image-placeholder {
    flex: 1; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    position: relative; 
    padding: 20px; 
    background: transparent; 
    border: none; 
    box-shadow: none; 
}

.robot-image-placeholder img {
    max-width: 100%;
    max-height: 400px; 
    width: auto;
    height: auto;
    border: 2px solid var(--red-dark); 
    border-radius: 16px; 
    box-shadow: 0 0 20px rgba(102, 0, 0, 0.4); 
    position: relative;
    z-index: 2; 
}

.scanline { z-index: 10; }
@keyframes scan { 0% { top: -10%; } 100% { top: 110%; } }

/* Carrossel */
.carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    padding-bottom: 20px;
    padding-left: 70px; 
    padding-right: 70px; 
}

.carousel-slide { display: none; }
.carousel-slide.active { display: block; }

.fade {
    animation-name: fadeAnim;
    animation-duration: 0.6s;
}

@keyframes fadeAnim {
    from {opacity: 0.4; transform: scale(0.98);}
    to {opacity: 1; transform: scale(1);}
}

.carousel-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: var(--gold);
    font-weight: bold;
    font-size: 24px;
    background-color: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--red-main);
    border-radius: 5px;
    transition: 0.3s;
    user-select: none;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: var(--red-main);
    color: white;
    box-shadow: 0 0 15px var(--red-glow);
}

.carousel-btn.prev { left: 0px; }
.carousel-btn.next { right: 0px; }

.carousel-dots { text-align: center; margin-top: 20px; }
.dot {
    cursor: pointer;
    height: 12px; width: 12px; margin: 0 5px;
    background-color: #333;
    border: 1px solid #555; border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: var(--red-glow);
    border-color: var(--red-main);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--red-glow);
}

/* =========================================
   9. CONQUISTAS
========================================= */
.achievements-grid {
    display: flex;
    justify-content: center; 
    width: 100%;
    margin-top: 40px;
}

.achievement-card {
    width: 100%;
    max-width: 600px; 
    margin: 0 auto; 
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.achievement-card p {
    font-size: 1.2rem; 
    line-height: 1.6;   
}

.trophy-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 15px rgba(245, 176, 65, 0.4));
    animation: floatTrophy 3s ease-in-out infinite;
}

@keyframes floatTrophy {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.gold-tier {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(245, 176, 65, 0.1);
}

.gold-tier:hover {
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(245, 176, 65, 0.3);
    transform: translateY(-5px);
}

.gold-tier h3 {
    font-family: var(--font-head);
    color: var(--gold);
    font-size: 1.6rem;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(245, 176, 65, 0.3);
}

.event-name {
    color: #fff;
    font-family: var(--font-head);
    letter-spacing: 2px;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.victory-img-container {
    width: 100%;
    max-width: 450px; 
    height: 250px;
    margin-bottom: 20px;
    border: 2px solid var(--gold); 
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: 0 0 15px rgba(245, 176, 65, 0.3);
}

.victory-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease; 
}

.gold-tier:hover .victory-img-container img {
    transform: scale(1.08);
}

/* =========================================
   10. PARCEIROS
========================================= */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.sponsor-card {
    text-align: center;
    padding: 20px;
    text-decoration: none; 
    display: block; 
    color: inherit; 
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.sponsor-card.static-card:hover {
    transform: translateY(-8px); 
    border-color: var(--gold); 
    box-shadow: 0 10px 25px rgba(245, 176, 65, 0.15); 
}

.sponsor-img-placeholder {
    width: 100%;
    height: 100px;
    background-color: #ffffff;
    border: 1px dashed #444;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #555;
    font-family: var(--font-head);
    margin-bottom: 15px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s;
}

.sponsor-card:hover .sponsor-img-placeholder {
    border-color: var(--gold);
}

.sponsor-card h4 {
    font-family: var(--font-head);
    color: var(--text-main);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.sponsor-card:hover h4 {
    color: var(--gold);
}

.sponsor-img-placeholder[style*="url"] {
    color: transparent; 
    border-style: solid;
}

/* =========================================
   11. PATROCÍNIO E CONTATO
========================================= */
.flexibility-box { margin-bottom: 50px; }
.flexibility-box h3 { font-family: var(--font-head); font-size: 2rem; margin-bottom: 20px; text-align: center; }
.flexibility-box h3 span { color: var(--gold); }
.flexibility-box > p { text-align: center; font-size: 1.2rem; color: #ffffff; margin-bottom: 30px; }

.flex-columns { display: flex; gap: 40px; margin-bottom: 30px; }
.flex-col {
    flex: 1; background: #0a0a0a; padding: 25px; border-radius: 8px; border-left: 3px solid var(--red-main);
}
.flex-col h4 { font-family: var(--font-head); color: var(--red-glow); margin-bottom: 15px; font-size: 1.2rem; }
.flex-col ul { list-style: none; }
.flex-col li {
    margin-bottom: 15px; 
    position: relative;
    padding-left: 25px;
    color: #ffffff; 
    font-size: 1.2rem; 
    font-weight: 500; 
}
.flex-col li::before {
    content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: bold;
}
.highlight-text {
    text-align: center; font-family: var(--font-head); color: var(--gold);
    font-weight: bold; font-size: 1.1rem; padding-top: 20px; border-top: 1px dashed #333;
}

.contact-box { 
    text-align: center; 
    margin-top: 50px; 
    padding: 40px; 
    border: 1px dashed #333; 
}

.contact-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; 
    margin-top: 30px;
}

.contact-actions .secondary-btn { margin-top: 0; }

.insta-btn {
    background: transparent; 
    color: var(--gold);
    border: 2px solid var(--gold);
    margin-top: 0;
}

.insta-btn:hover {
    background: var(--gold); 
    color: var(--bg-main);
    box-shadow: 0 0 20px var(--gold);
}

/* Tabs (Caso você volte a usar futuramente) */
.tabs-container { max-width: 800px; margin: 0 auto; background: #0a0a0a; border: 1px solid #222; border-radius: 8px; overflow: hidden;}
.tab-buttons { display: flex; border-bottom: 1px solid #222; }
.tab-btn { flex: 1; padding: 15px; background: #111; color: var(--text-muted); border: none; font-family: var(--font-head); font-size: 1.1rem; transition: all 0.3s; }
.tab-btn:hover { background: #1a1a1a; color: #fff; }
.tab-btn.active { background: var(--red-dark); color: #fff; border-bottom: 2px solid var(--red-glow); }
.tab-btn.gold-tab.active { background: #332200; border-bottom: 2px solid var(--gold); color: var(--gold); }
.tab-content { padding: 40px; display: none; animation: fadeIn 0.5s; }
.tab-content.active { display: block; }
.tab-content h3 { font-family: var(--font-head); color: var(--red-glow); margin-bottom: 15px; font-size: 1.5rem; }
.tab-content ul { margin-top: 20px; padding-left: 20px; color: #ffffff; }
.tab-content li { margin-bottom: 10px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }


/* =========================================
   12. RODAPÉ (FOOTER)
========================================= */
footer { 
    text-align: center; 
    padding: 20px; 
    background: #000; 
    border-top: 1px solid #111; 
    font-family: var(--font-head); 
    font-size: 0.9rem; 
    color: #ffffff; 
}

.footer-social { margin-bottom: 15px; }

.footer-social a {
    color: var(--gold);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 1px;
    transition: color 0.3s, text-shadow 0.3s;
}

.footer-social a:hover {
    color: var(--red-glow);
    text-shadow: 0 0 10px rgba(255, 26, 26, 0.5);
}

/* =========================================
   13. RESPONSIVIDADE (MOBILE / TELAS MENORES)
========================================= */
@media(max-width: 768px) {
    /* Navbar e Banner */
    .nav-links { display: none; }
    h1.glitch { font-size: 2rem; }

    /* Seção O Esporte */
    .combat-content { flex-direction: column; }
    .combat-image { max-width: 100%; margin-top: 10px; }

    /* Frota / Carrossel */
    .robot-showcase { flex-direction: column; }
    .carousel-btn { padding: 10px; font-size: 18px; }

    /* Flexibilidade e Patrocínio */
    .flex-columns { flex-direction: column; gap: 20px; }
}