:root {
    /* Cores baseadas no site oficial da Incode Academy */
    --incode-primary: #00D4AA;
    --incode-secondary: #8B5CF6;
    --incode-accent: #00F5D4;
    --incode-purple: #7C3AED;
    --bg-dark: #0a0a0a;
    --bg-darker: #000000;
    --bg-card: rgba(10, 10, 10, 0.9);
    --text-light: #ffffff;
    --text-gray: #a1a1aa;
    --text-green: #00F5D4;
    --gradient-incode: linear-gradient(135deg, var(--incode-primary), var(--incode-secondary));
    --gradient-incode-reverse: linear-gradient(135deg, var(--incode-secondary), var(--incode-primary));
    --gradient-incode-dark: linear-gradient(135deg, var(--incode-purple), var(--incode-primary));
    --gradient-incode-light: linear-gradient(135deg, var(--incode-accent), var(--incode-primary));
    --gradient-fire: linear-gradient(135deg, var(--incode-primary), var(--incode-accent));
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-display: 'Orbitron', sans-serif;
    --font-cyber: 'Orbitron', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==========================================================================
   PRELOADER STYLES
   ========================================================================== */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at center, var(--bg-dark) 0%, var(--bg-darker) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease-out;
}

.preloader-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.preloader-logo {
    position: relative;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-bottom: 2rem;
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.logo-image {
    width: 140px;
    height: 140px;
    transition: all 0.4s ease;
}

.logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 25px rgba(0, 212, 170, 0.7)) drop-shadow(0 0 10px rgba(0, 245, 212, 0.4));
    transition: all 0.4s ease;
}

.logo-text-container {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.logo-bracket {
    color: var(--incode-primary);
    transition: all 0.3s ease;
}

.logo-text {
    background: var(--gradient-incode);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.4) 0%, rgba(0, 245, 212, 0.2) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preloader-logo:hover .logo-glow {
    opacity: 1;
    animation: pulse 2s infinite;
}

.preloader-logo:hover {
    transform: scale(1.08);
    animation-play-state: paused;
}

.preloader-logo:hover .logo-image {
    transform: scale(1.15) rotate(10deg);
    animation-play-state: paused;
}

.preloader-logo:hover .logo-image img {
    filter: drop-shadow(0 0 35px rgba(0, 212, 170, 1)) drop-shadow(0 0 15px rgba(0, 245, 212, 0.8)) drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.preloader-logo:hover .logo-particles {
    animation: particleExplode 0.8s ease-out forwards;
}

.preloader-logo:hover .logo-bracket {
    color: var(--incode-accent);
    transform: scale(1.1);
}

.preloader-hint {
    font-size: 1.2rem;
    color: var(--text-gray);
    animation: fadeInOut 2s infinite;
}

.preloader-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="%234A90E2" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
    animation: gridMove 20s linear infinite;
}

/* Main Website - Hidden Initially */
.main-website.hidden {
    display: none;
}

.main-website {
    position: relative;
    min-height: 100vh;
}

/* ==========================================================================
   BACKGROUND CANVAS
   ========================================================================== */

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.6;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 170, 0.3);
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo {
    font-family: var(--font-cyber);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.nav-logo .logo-bracket {
    color: var(--incode-primary);
}

.nav-logo .logo-text {
    background: var(--gradient-incode);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    min-height: 100vh;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-container {
    max-width: 1400px;
    width: 100%;
    text-align: center;
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-title {
    font-family: var(--font-cyber);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 4rem;
    letter-spacing: 0.02em;
    opacity: 1 !important;
    visibility: visible !important;
    text-transform: uppercase;
}

.title-line {
    display: block;
    margin-bottom: 0.2em;
}

.title-line.highlight {
    background: var(--gradient-incode);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.title-line {
    background: var(--gradient-incode);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(0, 212, 170, 0.3));
}

/* ==========================================================================
   3 PILARES DA INCODE
   ========================================================================== */

.pilares-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 3rem auto 0;
    padding: 2rem 0;
    opacity: 1 !important;
    visibility: visible !important;
}

.pilar {
    background: var(--bg-card) !important;
    border: 2px solid rgba(0, 212, 170, 0.4) !important;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    min-height: 280px;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.1);
}

.pilar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.15), transparent);
    transition: left 0.6s ease;
}

.pilar:hover::before {
    left: 100%;
}

.pilar:hover {
    transform: translateY(-10px);
    border-color: var(--incode-primary);
    box-shadow: 0 20px 40px rgba(0, 212, 170, 0.3);
}

.pilar-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(0, 212, 170, 0.6));
}

.pilar h3 {
    font-family: var(--font-cyber);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pilar p {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ==========================================================================
   COURSE CARD SECTION
   ========================================================================== */

.course-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
}

.section-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.course-card-wrapper {
    perspective: 1200px;
    max-width: 650px;
    width: 100%;
    height: 550px;
    margin: 2rem auto;
    opacity: 1 !important;
    visibility: visible !important;
    min-width: 320px;
    flex-shrink: 0;
    transform-style: preserve-3d;
}

.course-card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s ease-in-out;
    cursor: pointer;
    opacity: 1 !important;
    visibility: visible !important;
}

.course-card.flipped {
    transform: rotateY(180deg) !important;
}

/* Estado padrão - mostrar apenas frente */
.course-card .card-back {
    opacity: 0;
    visibility: hidden;
}

/* Estado flipped - mostrar apenas verso */
.course-card.flipped .card-front {
    opacity: 0;
    visibility: hidden;
}

.course-card.flipped .card-back {
    opacity: 1;
    visibility: visible;
}

.card-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    background: var(--bg-card);
    border: 2px solid rgba(0, 212, 170, 0.5);
    border-radius: 25px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 212, 170, 0.3), 0 0 25px rgba(0, 212, 170, 0.1);
    min-width: 280px;
    box-sizing: border-box;
    transform-style: preserve-3d;
}

.card-face::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.08), rgba(0, 245, 212, 0.05));
    z-index: 0;
}

.card-front {
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.card-back {
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    transform: rotateY(180deg);
}

.card-header {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 20px;
}

.card-header h2 {
    font-family: var(--font-cyber);
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient-incode);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-front .card-header h2:not(.course-intro-text) {
    margin-top: 100px;
}

.course-intro-text {
    color: var(--text-light) !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: var(--text-light) !important;
    background-clip: unset !important;
}

.card-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 20px rgba(0, 212, 170, 0.7));
}

.card-content {
    position: relative;
    z-index: 2;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 10px;
}

.card-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 10px;
    color: var(--text-light);
}

.card-content p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.4;
}

.card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--incode-primary);
    font-weight: 600;
    margin-top: auto;
    padding-top: 1rem;
    position: relative;
    bottom: 0;
}

.flip-icon {
    font-size: 1.5rem;
    animation: rotate 3s ease-in-out infinite;
}

/* Future Content Placeholder */
.future-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 1rem 0;
}

.placeholder-item {
    text-align: left;
}

.placeholder-item span {
    color: var(--text-gray);
    font-size: 1rem;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.placeholder-line {
    height: 10px;
    background: linear-gradient(90deg, rgba(0, 212, 170, 0.4), rgba(0, 245, 212, 0.3));
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.placeholder-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

/* ==========================================================================
   CAREER PROGRESSION SECTION
   ========================================================================== */

.progression-section {
    min-height: 100vh;
    padding: 6rem 2rem;
    position: relative;
}

.progression-section .section-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    background: var(--gradient-incode);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
}

.progression-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
    clear: both;
    overflow: visible;
}

.timeline-path {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: calc(100% - 4rem);
    background: var(--gradient-incode);
    border-radius: 2px;
    z-index: 0;
}

.progression-step {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 6rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.progression-step.animate {
    opacity: 1;
    transform: translateY(0);
}

.progression-step:nth-child(even) {
    flex-direction: row-reverse;
}

.progression-step:nth-child(even) .step-content {
    text-align: right;
    padding-right: 3rem;
}

.progression-step:nth-child(odd) .step-content {
    text-align: left;
    padding-left: 3rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-incode);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 30px rgba(0, 212, 170, 0.5);
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    max-width: 300px;
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.step-content p {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(0, 212, 170, 0.3);
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--font-cyber);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

.footer-logo .logo-bracket {
    color: var(--incode-primary);
}

.footer-logo .logo-text {
    background: var(--gradient-incode);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-contact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-bottom: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.contact-card {
    background: var(--bg-card);
    border: 2px solid rgba(0, 212, 170, 0.3);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    min-height: 75px;
    width: 100%;
    min-width: 250px;
    cursor: pointer;
    user-select: none;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.1), transparent);
    transition: left 0.6s ease;
}

.contact-card:hover::before {
    left: 100%;
}

.contact-card:hover {
    border-color: var(--incode-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 212, 170, 0.2);
}

.contact-icon-container {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gradient-incode);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.contact-icon {
    font-size: 1.3rem;
    filter: drop-shadow(0 0 10px rgba(0, 212, 170, 0.5));
}

.instagram-icon {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.instagram-icon svg {
    color: white;
    width: 20px;
    height: 20px;
}

.website-icon {
    background: linear-gradient(135deg, var(--incode-primary), var(--incode-secondary));
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
}

.website-icon svg {
    color: white;
    width: 20px;
    height: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    position: relative;
    z-index: 2;
}

.contact-label {
    font-size: 0.75rem;
    color: var(--text-gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.contact-value {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-word;
    line-height: 1.2;
}

.instagram-link {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.instagram-link:hover {
    color: var(--incode-accent);
    transform: scale(1.05);
}

.social-card:hover .instagram-link {
    color: var(--incode-accent);
}

.website-link {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.website-link:hover {
    color: var(--incode-primary);
    transform: scale(1.05);
}

.website-card:hover .website-link {
    color: var(--incode-primary);
}

.footer p {
    color: var(--text-gray);
    font-size: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 212, 170, 0.2);
}

/* ==========================================================================
   SCROLL INDICATOR
   ========================================================================== */

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-gray);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border: 2px solid var(--incode-primary);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeInOut {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes gridMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-50px) translateY(-50px); }
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes logoGlow {
    0% { filter: drop-shadow(0 0 20px rgba(0, 212, 170, 0.6)); }
    100% { filter: drop-shadow(0 0 30px rgba(0, 212, 170, 0.9)) drop-shadow(0 0 10px rgba(0, 245, 212, 0.5)); }
}

@keyframes particleExplode {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(90deg); }
    50% { transform: rotate(180deg); }
    75% { transform: rotate(270deg); }
    100% { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}


/* ==========================================================================
   CTA BUTTON STYLES
   ========================================================================== */

.cta-button-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 2.5rem;
    background: var(--gradient-incode);
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.4);
    filter: brightness(1.1);
}

.cta-button.secondary-cta {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.cta-button.secondary-cta:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* Card Loading State */
.card-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(99, 102, 241, 0.3);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 2rem;
}

.card-loading h3 {
    font-family: var(--font-cyber);
    color: var(--primary);
    font-size: 1.5rem;
    margin: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cta-button:active {
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .hero-section {
        padding: 6rem 1rem 4rem;
    }

    .pilares-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
        margin-top: 2rem;
    }

    .pilar {
        padding: 2rem 1.5rem;
        min-height: 240px;
    }

    .pilar-icon {
        font-size: 3rem;
    }

    .course-section {
        padding: 4rem 1rem;
    }

    .course-card-wrapper {
        height: 480px;
        max-width: 500px;
    }

    .card-face {
        padding: 2.5rem 2rem;
    }

    .card-header h2 {
        font-size: 2rem;
    }

    .card-content h3 {
        font-size: 1.4rem;
    }

    .card-content p {
        font-size: 1rem;
    }

    .progression-timeline {
        padding: 1rem;
    }

    .progression-step:nth-child(even) {
        flex-direction: row;
    }

    .progression-step:nth-child(even) .step-content {
        text-align: left;
        padding-left: 2rem;
        padding-right: 0;
    }

    .progression-step:nth-child(odd) .step-content {
        padding-left: 2rem;
    }

    .timeline-path {
        left: 40px;
        transform: none;
    }

    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .footer-contact {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 2rem;
        max-width: 100%;
    }

    .contact-card {
        padding: 1rem;
        min-width: 200px;
    }

    .contact-icon-container {
        width: 45px;
        height: 45px;
    }

    .contact-icon {
        font-size: 1.3rem;
    }

    .instagram-icon svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        width: 80px;
        height: 80px;
    }

    .logo-text-container {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .pilar {
        padding: 2rem 1rem;
    }

    .pilar h3 {
        font-size: 1.5rem;
    }

    .card-header h2 {
    }

    .section-title {
        font-size: 2rem;
    }

    .course-card-wrapper {
        height: 450px;
    }

    .card-face {
        padding: 1.5rem 1.5rem;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    .card-header h2 {
        font-size: 1.8rem;
    }

    .card-content h3 {
        font-size: 1.3rem;
    }

    .card-content p {
        font-size: 0.95rem;
    }

    .future-content {
        gap: 1rem;
        margin: 0.5rem 0;
    }

    .cta-button-container {
        margin: 1rem 0;
    }

    .cta-button {
        padding: 0.6rem 2rem;
        font-size: 0.9rem;
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Ajustar espaçamento do card no mobile */
    .card-front .card-header h2:not(.course-intro-text) {
        margin-top: 40px;
    }

    .card-content h3 {
        margin-top: 5px;
    }


    .footer-contact {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
    }

    .contact-card {
        padding: 1rem;
        min-width: auto;
    }
}

/* Course Page Specific Styles */

/* Navigation Back Button */
.nav-back {
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 8px;
}

.nav-back:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

/* Course Hero */
.course-hero {
    min-height: 100vh;
    position: relative;
}

/* Fixed logo background for specific sections */
.course-hero,
.course-modules-section {
    background-image: url('assets/LogoInCode.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 650px 650px;
    background-attachment: fixed;
    position: relative;
}

/* Sobreposição transparente para reduzir opacidade da logo */
.course-hero::before,
.course-modules-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
    pointer-events: none;
}

.course-hero .hero-container,
.course-hero .hero-content,
.course-modules-section .section-container {
    position: relative;
    z-index: 2;
}

/* Hard & Soft Skills branco na página do curso */
.course-hero .hero-title .title-line:last-child {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: white !important;
    color: white !important;
}

/* Scroll indicator visível na página do curso */
.course-hero .scroll-indicator {
    opacity: 1 !important;
    z-index: 3;
}

/* Hero subtitle cinza quase branco na página do curso */
.course-hero .hero-subtitle {
    color: #bbbbbb !important;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Course Overview Stats */
.course-overview-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgb(15, 23, 42) 0%, rgb(30, 41, 59) 100%);
}

.course-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-content h3 {
    font-family: var(--font-cyber);
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-content p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Course Modules */
.course-modules-section {
    padding: 6rem 0;
    position: relative;
}

.course-modules-section .section-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.course-modules-section .section-header {
    width: 100%;
    margin-bottom: 4rem;
    text-align: center;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.module-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.module-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
}

.module-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.module-number {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-cyber);
    font-size: 1.5rem;
    font-weight: bold;
}

.module-header h3 {
    font-family: var(--font-cyber);
    font-size: 1.5rem;
    color: var(--text-primary);
}

.module-topics {
    list-style: none;
    margin-bottom: 2rem;
}

.module-topics li {
    color: var(--text-light);
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.module-topics li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.8rem;
}

.module-duration {
    color: var(--primary);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.1rem;
    text-align: right;
}

/* Projects Section */
.projects-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgb(15, 23, 42) 0%, rgb(30, 41, 59) 100%);
}

.projects-section .section-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.projects-section .section-header {
    width: 100%;
    margin-bottom: 4rem;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.project-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.project-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.project-card h3 {
    font-family: var(--font-cyber);
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    text-align: center;
    background: #000000;
}

.cta-content h2 {
    font-family: var(--font-cyber);
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary);
    padding: 1rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-button.secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Mobile Responsiveness for Course Page */
@media (max-width: 768px) {
    .course-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-content h3 {
        font-size: 2rem;
    }

    .modules-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .module-card {
        padding: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-top: 1.5rem;
    }

    /* Logo menor no mobile */
    .course-hero,
    .course-modules-section {
        background-size: 250px 250px;
    }

}

@media (max-width: 480px) {
    .nav-container {
        justify-content: space-between;
    }

    .nav-back {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .course-stats {
        grid-template-columns: 1fr;
    }

    .modules-grid {
        margin-top: 2rem;
    }

    .module-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .module-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        margin-top: 2rem;
    }
}