/* ==========================================================================
   1. VARIÁVEIS E ESTILOS GLOBAIS
   ========================================================================== */
:root {
    --primary-color: #FF0000;
    --primary-color-rgb: 255, 0, 0; 
    --secondary-color: #000000;
    --text-color: #FFFFFF;
    --accent-color: #E50000;
    --bg-color: #000000;
    font-size: 16px;
}

body.theme-blue {
    --primary-color: #0055A4;
    --primary-color-rgb: 0, 85, 164;
    --secondary-color: #002D5A;
    --text-color: #FFFFFF;
    --accent-color: #EC1C24;
    --bg-color: #001A33;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-padding-top: 6rem; 
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.5s ease, color 0.5s ease;
    line-height: 1.6;
}

main {
    padding-top: 6rem;
}

section {
    padding: 5rem 1.5rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    background-image: linear-gradient(to right, var(--primary-color), var(--text-color), var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 300% auto;
    animation: animate-gradient 6s ease-in-out infinite;
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    margin-top: 2rem;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* ==========================================================================
   2. COMPONENTES GLOBAIS (HEADER, FOOTER, MODAIS)
   ========================================================================== */

/* --- BOTÃO DE TEMA --- */
.color-mode-toggle {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    width: 60px;
    height: 30px;
    border-radius: 30px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 5px;
    transition: all 0.4s ease-in-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    background-color: #333;
    border: 2px solid var(--primary-color);
}

.toggle-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    position: relative;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    transform: translateX(0px);
    background-color: var(--primary-color);
}

body.theme-blue .color-mode-toggle {
    border-color: var(--primary-color);
}

body.theme-blue .toggle-icon {
    transform: translateX(30px);
    background-color: var(--primary-color);
}

/* --- HEADER E NAVEGAÇÃO --- */
.main-header {
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.8rem 0;
    position: fixed;
    width: 100%;
    z-index: 999;
    transition: background-color 0.5s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: auto;
    padding: 0 6rem 0 1.5rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.logo-link img {
    height: 3.5rem;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    position: relative;
}

.nav-links > li > a {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.nav-links > li > a:hover {
    color: var(--primary-color);
}

.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.6em;
    margin-left: 8px;
    display: inline-block;
    vertical-align: middle;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1c1c1c;
    border: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none;
    padding: 0.5rem;
    margin-top: 0.5rem;
    border-radius: 8px;
    width: 250px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    white-space: nowrap;
    color: #ccc;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
    font-size: 0.95rem;
}

.dropdown-menu a:hover {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.hamburger-menu span {
    width: 2rem;
    height: 0.25rem;
    background: var(--text-color);
    border-radius: 10px;
    transition: all 0.3s linear;
}

/* --- FOOTER --- */
footer {
    background-color: var(--secondary-color);
    padding: 3rem 1.5rem 1.5rem;
    border-top: 2px solid var(--primary-color);
}
.footer-professional-grid { display: flex; justify-content: space-between; gap: 2rem; max-width: 1200px; margin: 0 auto 2.5rem; flex-wrap: wrap; text-align: left; }
.footer-about-pro, .footer-units-pro { flex: 1; min-width: 280px; }
footer h4 { color: var(--primary-color); margin-bottom: 1rem; font-size: 1.2rem; }
footer p { color: #ccc; font-size: 0.9rem; line-height: 1.7; }
.footer-bottom { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid #333; max-width: 1200px; margin: 0 auto; }
.social-links { display: flex; gap: 1.5rem; }
.social-links a svg { width: 24px; height: 24px; fill: var(--text-color); transition: fill 0.3s ease, transform 0.3s ease; }
.social-links a:hover svg { fill: var(--primary-color); transform: scale(1.2); }
.copyright { font-size: 0.8rem; color: #888; }
#theme-footer-text { font-weight: bold; text-align: center; margin-top: 1rem; height: 20px; }

/* --- MODAIS E FORMULÁRIOS --- */
.modal { display: none; position: fixed; z-index: 1001; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.85); justify-content: center; align-items: center; padding: 1rem; }
.modal-content { background-color: #1a1a1a; padding: 2.5rem; border-radius: 10px; width: 100%; max-width: 500px; position: relative; border: 1px solid var(--primary-color); box-shadow: 0 0 20px rgba(0,0,0,0.5); }
.close-btn { position: absolute; top: 10px; right: 20px; color: #aaa; font-size: 2rem; font-weight: bold; cursor: pointer; transition: color 0.3s ease; }
.close-btn:hover { color: var(--text-color); }
form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
form input, form textarea { padding: 0.85rem; border: 1px solid #555; background: #222; color: var(--text-color); border-radius: 5px; font-size: 1rem; }
form input:focus, form textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.3); }
form button[type="submit"] { background-color: var(--primary-color); color: var(--text-color); padding: 0.85rem; border: none; border-radius: 5px; cursor: pointer; font-weight: 700; font-size: 1rem; transition: background-color 0.3s; width: fit-content; align-self: center; padding-left: 2rem; padding-right: 2rem; }
form button[type="submit"]:hover { background-color: var(--accent-color); }
.hours-content .hours-subtitle { margin-top: 1.5rem; }
.login-options { display: flex; justify-content: space-between; margin-top: 1rem; font-size: 0.9rem; }
.login-options a { color: #ccc; text-decoration: none; }
.login-options a:hover { color: var(--primary-color); text-decoration: underline; }
.social-login-divider { display: flex; align-items: center; text-align: center; margin: 1.5rem 0; color: #888; }
.social-login-divider::before, .social-login-divider::after { content: ''; flex: 1; border-bottom: 1px solid #444; }
.social-login-divider:not(:empty)::before { margin-right: .5em; }
.social-login-divider:not(:empty)::after { margin-left: .5em; }
.social-login-buttons { display: flex; flex-direction: column; gap: 0.75rem; }
.social-btn { display: flex; align-items: center; justify-content: center; padding: 0.75rem; border-radius: 5px; text-decoration: none; font-weight: 500; transition: opacity 0.3s ease; }
.social-btn:hover { opacity: 0.9; }
.social-btn.google-btn { background-color: #FFFFFF; color: #000000; border: 1px solid #ddd; }
.social-btn.facebook-btn { background-color: #1877F2; color: #FFFFFF; }

/* ==========================================================================
   3. ESTRUTURA E SEÇÕES DE PÁGINA
   ========================================================================== */
   
/* --- HERO SECTION (PÁGINA PRINCIPAL) --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-align: center;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.5s ease-in;
}

.video-container.show-background {
    background-image: url('./assets/images/hero.jpeg');
}

.video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    max-width: 900px;
}

.hero-content h1 {
    font-family: 'Lato', sans-serif;
    font-size: clamp(2.0rem, 6vw, 4.6rem);
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    color: var(--text-color);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.word-wrapper {
    display: inline-block;
    opacity: 0;
    margin: 0 0.2em;
}

.word-wrapper.is-visible {
    opacity: 1;
    animation: text-glitch 1s forwards;
}

.hero-content p {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    margin-top: 1.5rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    position: relative;
    text-align: center;
    max-width: 100%;
    background: linear-gradient(to right, #9f9af5, #f0f1f5, #f0b9b9, #f4f4f8, #9575f3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-content p::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    width: 120%;
    height: 2px;
    background: rgba(var(--primary-color-rgb), 0.5);
    opacity: 0;
    animation: scanline 1s 0.5s forwards;
}

.cta-button-hero {
    background: transparent;
    color: var(--text-color);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    margin-top: 2.5rem;
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.cta-button-hero.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.cta-button-hero:hover {
    color: var(--secondary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.8);
}

.cta-button-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left 0.4s ease-in-out;
    z-index: -1;
}

.cta-button-hero:hover::before {
    left: 0;
}

/* --- HERO SECTION (PÁGINAS INTERNAS) --- */
.about-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    padding-top: 8rem;
}

.about-hero .hero-content h1 {
    font-family: 'Lato', sans-serif;
    font-size: clamp(1.4rem, 5.0vw, 3.8rem);
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    color: var(--text-color);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-sobre {
    background-image: url('./assets/images/sobrecapa.jpeg');
    position: relative;
    overflow: hidden;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.hero-sobre::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.about-hero .hero-content {
    position: relative;
    z-index: 1;
}


/* --- SEÇÃO GENÉRICA DE CONTEÚDO (Imagem + Texto) --- */
.about-content-section {
    padding: 5rem 1.5rem;
}

.about-content-section.bg-darker {
    background-color: #0d0d0d;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    text-align: left;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-grid.reverse .about-text-content {
        order: 2;
    }
    .about-grid.reverse .about-image-content {
        order: 1;
    }
}

.about-text-content h2,
.about-text-content h3 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.about-text-content .highlight {
    color: var(--primary-color);
}

.about-image-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.about-image-content img {
    width: 100%;
    max-width: 450px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 2px solid #222;
}

/* --- SEÇÃO DE IMPACTO --- */
.impact-section {
    padding: 6rem 1.5rem;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-image: url('./assets/images/TodasAsPaginas.png');
    position: relative;
    overflow: hidden;
}

.impact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 0;
}

.impact-content {
    position: relative;
    z-index: 1;
}

.impact-content h2 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 900;
    max-width: 900px;
    margin: 0 auto;
    text-transform: uppercase;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
    line-height: 1.2;
    color: var(--text-color);
}

.impact-content h2 .highlight-portfolio {
    display: block;
    color: var(--primary-color);
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    animation: text-glitch-red 2s infinite alternate;
}

/* --- SEÇÃO FINAL --- */
.final-section {
    background-color: var(--bg-color);
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.cta-block {
    background-color: #1a1a1a;
    padding: 2.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.cta-block h3 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.future-text {
    margin-top: 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #ccc;
    line-height: 1.6;
}

.final-tagline {
    margin-top: 2.5rem;
    text-align: center;
}

.final-tagline p {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
    font-size: 1rem;
}

.final-tagline span {
    font-family: 'Roboto Mono', monospace;
    color: var(--primary-color);
    font-size: 0.9rem;
    display: block;
    margin-top: 0.5rem;
}

/* --- SEÇÕES ESPECÍFICAS (Cursos, Diferenciais, etc.) --- */
.courses-section {
    background-color: var(--bg-color);
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.experience-section {
    background-color: var(--secondary-color);
}

.infinity-you-section {
    position: relative;
    overflow: hidden;
    background-image: url('./assets/images/TodasAsPaginas.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.infinity-you-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 0;
}

.differentials-section {
    background-color: var(--secondary-color);
}

.updates-section {
    background-color: #101010;
}

.students-section {
    /* Estilos base de section já aplicados */
}

.contact-section {
    background-image: url('./assets/images/index1.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.contact-section > * {
    position: relative;
    z-index: 2;
}

.contact-question {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    background-image: linear-gradient(to right, var(--primary-color), var(--text-color), var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 300% auto;
    animation: animate-gradient 6s ease-in-out infinite;
}

.contact-info {
    margin-top: 2.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #e0e0e0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}
.contact-section .cta-button { margin: 0.5rem; }


/* ==========================================================================
   4. COMPONENTES E MÓDULOS ESPECÍFICOS
   ========================================================================== */

/* --- COMPONENTE: CHECKLIST (Normal e em Grid) --- */
.checklist {
    list-style: none;
    margin-top: 1.5rem;
    padding-left: 0;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

.checklist li span {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 1rem;
    line-height: 1;
}

.checklist-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem 1.5rem;
    align-items: start;
    margin-top: 1.5rem;
}

.checklist-grid dt {
    grid-column: 1;
    display: flex;
    align-items: flex-start;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
}

.checklist-grid .checklist-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 1rem;
    line-height: 1;
}

.checklist-grid dd {
    grid-column: 2;
    margin: 0;
    padding-top: 2px;
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.6;
    text-align: justify;
}

/* --- COMPONENTE: COURSE CARD (Grade de cursos na Home) --- */
.course-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.course-card {
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 250px;
    text-decoration: none;
    color: var(--text-color);
    padding: 1.5rem;
    text-align: left;
}

.course-card h3 {
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.9);
    transition: all 0.4s ease;
    font-size: 1.3rem;
}

.course-card .course-description {
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.9);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    font-size: 0.9rem;
    padding: 0;
    max-height: 0;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.course-card:hover h3 {
    transform: translateY(-40px);
}

.course-card:hover .course-description {
    opacity: 1;
    transform: translateY(-30px);
    max-height: 150px;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 10%, rgba(0,0,0,0) 60%);
    z-index: 1;
    transition: background-color 0.3s ease;
}

/* Variações do Course Card */
.course-card[data-course="fullstack"] { background-image: url('./assets/images/curso_fullstack.jpg'); }
.course-card[data-course="marketing"] { background-image: url('./assets/images/curso_marketing.jpg'); }
.course-card[data-course="design"] { background-image: url('./assets/images/curso_design.jpg'); }
.course-card[data-course="photography"] { background-image: url('./assets/images/curso_fotografia.jpg'); }
.course-card[data-course="filmdesign"] { background-image: url('./assets/images/curso_filmdesign.jpg'); }

/* --- COMPONENTE: EXPERIENCE CARD (Cards de tópicos nas páginas de curso) --- */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.experience-card {
    background-color: #1a1a1a;
    padding: 0;
    border-radius: 8px;
    border: 1px solid #222;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    overflow: hidden;
    position: relative;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.4s ease-in-out;
    z-index: 1;
    opacity: 1;
}

.experience-card .card-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.2) 0%, rgba(10, 10, 10, 0.9) 100%);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    z-index: 2;
    padding: 1.5rem;
}

.experience-card:hover .card-content-overlay {
    opacity: 1;
}

.experience-card .icon {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    line-height: 1;
}

.experience-card h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.experience-card p {
    color: #ccc;
    font-size: 0.95rem;
}

/* Variações do Experience Card (CONSOLIDADAS) */
.experience-card[data-card="design1"]::before { background-image: url('./assets/images/design1.png'); }
.experience-card[data-card="design2"]::before { background-image: url('./assets/images/design2.png'); }
.experience-card[data-card="design3"]::before { background-image: url('./assets/images/design3.png'); }
.experience-card[data-card="design4"]::before { background-image: url('./assets/images/design4.png'); }
.experience-card[data-card="sobre1"]::before { background-image: url('./assets/images/sobre1.png'); }
.experience-card[data-card="sobre2"]::before { background-image: url('./assets/images/sobre2.png'); }
.experience-card[data-card="sobre3"]::before { background-image: url('./assets/images/sobre3.png'); }
.experience-card[data-card="sobre4"]::before { background-image: url('./assets/images/sobre4.png'); }
.experience-card[data-card="full1"]::before { background-image: url('./assets/images/full1.png'); }
.experience-card[data-card="full2"]::before { background-image: url('./assets/images/full2.png'); }
.experience-card[data-card="full3"]::before { background-image: url('./assets/images/full3.png'); }
.experience-card[data-card="full4"]::before { background-image: url('./assets/images/full4.png'); }
.experience-card[data-card="mar1"]::before { background-image: url('./assets/images/mar1.png'); }
.experience-card[data-card="mar2"]::before { background-image: url('./assets/images/mar2.png'); }
.experience-card[data-card="mar3"]::before { background-image: url('./assets/images/mar3.png'); }
.experience-card[data-card="mar4"]::before { background-image: url('./assets/images/mar4.png'); }
.experience-card[data-card="foto1"]::before { background-image: url('./assets/images/foto1.png'); }
.experience-card[data-card="foto2"]::before { background-image: url('./assets/images/foto2.png'); }
.experience-card[data-card="foto3"]::before { background-image: url('./assets/images/foto3.png'); }
.experience-card[data-card="foto4"]::before { background-image: url('./assets/images/foto4.png'); }
.experience-card[data-card="f1"]::before { background-image: url('./assets/images/f1.png'); }
.experience-card[data-card="f2"]::before { background-image: url('./assets/images/f2.png'); }
.experience-card[data-card="f3"]::before { background-image: url('./assets/images/f3.png'); }
.experience-card[data-card="f4"]::before { background-image: url('./assets/images/f4.png'); }

/* --- COMPONENTE: DIFFERENTIAL CARD (Bolas com diferenciais) --- */
.differentials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 1200px; 
    margin-left: auto;
    margin-right: auto;
    justify-items: center;
}

.differential-card {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #333;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    background-color: #1a1a1a;
    background-image: none;
    width: 100%;
    max-width: 190px;
}

.differential-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 1;
}

.differential-card::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 150%; 
    height: 150%;
    z-index: 0;
    background: radial-gradient(circle at center, rgba(var(--primary-color-rgb), 0.2) 0%, transparent 60%);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.differential-card:hover {
    transform: scale(1.05);
    border-color: rgba(var(--primary-color-rgb), 0.7);
    box-shadow: 0 0 30px rgba(var(--primary-color-rgb), 0.5);
}

.differential-card:hover::before {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.8;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    height: 100%;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    z-index: 2;
}

.differential-card:hover .card-content {
    transform: translateY(0);
}

.card-content h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.card-content p {
    font-size: 0.9rem;
    color: #eee;
    line-height: 1.4;
}

/* Variações do Differential Card (CONSOLIDADAS) */
.differential-card:nth-child(1)::after { background-image: url('./assets/images/adobe.jpeg'); }
.differential-card:nth-child(2)::after { background-image: url('./assets/images/aulas.jpeg'); }
.differential-card:nth-child(3)::after { background-image: url('./assets/images/micro.jpeg'); }
.differential-card:nth-child(4)::after { background-image: url('./assets/images/compartilhadas.jpeg'); }
.differential-card:nth-child(5)::after { background-image: url('./assets/images/google.jpeg'); }
.differential-card:nth-child(6)::after { background-image: url('./assets/images/super.jpeg'); }
.differential-card:nth-child(7)::after { background-image: url('./assets/images/reserva.jpeg'); }
.differential-card:nth-child(8)::after { background-image: url('./assets/images/game.jpeg'); }
.differential-card:nth-child(9)::after { background-image: url('./assets/images/computador.jpeg'); }
.differential-card:nth-child(10)::after { background-image: url('./assets/images/modulaveis.jpeg'); }
.differential-card:nth-child(11)::after { background-image: url('./assets/images/certificado.jpeg'); }
.differential-card:nth-child(12)::after { background-image: url('./assets/images/reforco.jpeg'); }

/* --- COMPONENTE: MURAL DE NOVIDADES --- */
.updates-grid {
    display: grid;
    gap: 1.5rem; 
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    grid-template-columns: 1fr;
}

.updates-column h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #333;
}

.updates-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 105px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.7s ease-in-out;
}

.updates-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #101010);
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.updates-column:hover .updates-content {
    max-height: 600px;
}

.updates-column:hover .updates-content::after {
    opacity: 0;
}

.aviso-card {
    background-color: #1a1a1a;
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.aviso-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.aviso-card-header h4 {
    font-size: 1rem;
    color: var(--text-color);
}

.aviso-card-header span {
    font-size: 0.75rem;
    color: #999;
}

.aviso-card p {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.4;
}

.professor-item, .curso-item {
    background-color: #1a1a1a;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.professor-item span, .curso-item span {
    color: #ccc;
}

.professor-item strong, .curso-item strong {
    color: var(--text-color);
    font-weight: 500;
}

.curso-item .status-aberto {
    color: #2ECC71;
    font-weight: bold;
}

.curso-item .status-breve {
    color: #E67E22;
    font-weight: bold;
}

/* --- COMPONENTE: DEPOIMENTOS E AFINS --- */
.testimonials-carousel {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1.5rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: #1a1a1a;
    padding: 2rem;
    border-radius: 10px;
    width: 320px;
    height: 285px; 
    flex-shrink: 0;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-color);
}
.testimonial-card blockquote { font-style: italic; color: #ccc; margin-bottom: 1rem; }
.testimonial-card span { font-weight: bold; color: var(--primary-color); }

.infinity-you-module h3 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 900;
    text-transform: uppercase;
    background-image: linear-gradient(to right, var(--primary-color), var(--text-color), var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    background-size: 300% auto;
    animation: animate-gradient 6s ease-in-out infinite;
}

.infinity-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.infinity-items .item {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--text-color);
    border-radius: 50px;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    cursor: default;
    white-space: nowrap;
}

.infinity-items .item:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.infinity-you-module {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   5. OVERRIDES E ESTILOS ESPECÍFICOS DE PÁGINA
   ========================================================================== */
#film-design-image {
    width: 70%;
    height: auto;
    max-width: none;
    aspect-ratio: auto;
}

/* ==========================================================================
   6. ANIMAÇÕES (KEYFRAMES)
   ========================================================================== */
@keyframes animate-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes text-glitch {
    0% {
        transform: translateY(20px) scale(1.1);
        text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff;
        opacity: 0;
    }
    20% {
        transform: translateY(0) skewX(-10deg);
        opacity: 0.8;
    }
    40% {
        transform: translateY(0) skewX(10deg);
        text-shadow: 0 0 15px #00ffff, 0 0 25px #00ffff;
    }
    60% {
        transform: translateY(0) skewX(0);
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    }
}

@keyframes text-glitch-red {
    0% { text-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color); transform: translateX(0); }
    30% { text-shadow: 0 0 8px var(--primary-color), 0 0 15px var(--primary-color); transform: translateX(-2px); }
    70% { text-shadow: 0 0 12px var(--primary-color), 0 0 20px var(--primary-color); transform: translateX(2px); }
    100% { text-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color); transform: translateX(0); }
}

@keyframes scanline {
    from {
        top: 0;
        opacity: 1;
    }
    to {
        top: 100%;
        opacity: 0;
    }
}

@keyframes fadeOutVideo {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}

/* ==========================================================================
   7. MEDIA QUERIES PARA RESPONSIVIDADE
   ========================================================================== */
@media (min-width: 992px) {
    .experience-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .updates-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .course-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .course-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 992px) {
    .infinity-items {
        flex-wrap: wrap;
        overflow-x: visible;
        padding-bottom: 0;
    }
    .color-mode-toggle {
        /* Move o botão de tema para a esquerda do menu hambúrguer */
        right: 4.5rem; /* Ajuste este valor se necessário */
        top: 1.1rem;   /* Alinha verticalmente com o menu */
    }

    .differentials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .nav-bar { padding: 0 1rem; }
    .hamburger-menu { display: flex; }
    .nav-links { position: fixed; top: 0; right: -100%; height: 100vh; width: 70%; background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); flex-direction: column; justify-content: center; gap: 2rem; transition: right 0.4s ease-in-out; box-shadow: -5px 0 15px rgba(0,0,0,0.5); z-index: 1001; }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.2rem; }
    section { padding: 4rem 1rem; }
    .footer-professional-grid { flex-direction: column; gap: 2rem; }
    .footer-bottom { flex-direction: column-reverse; }
    .logo-text { display: none; }
}

@media (max-width: 576px) {
    .differentials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}