/* ================== 1. RESET & CONFIGURAÇÕES GERAIS ================== */
:root {
    --gradient-blue: #2c57b3;
    --gradient-light-blue: #4facfe;
    --gradient-orange: #f68a5c;
    --card-bg: #0a0a0a;
}

html, body {
    width: 100%;
    max-width: 100vw; /* Evita rolagem horizontal */
    overflow-x: hidden; /* Corta excessos laterais */
    margin: 0;
    padding: 0;
    
    /* AQUI ESTÁ A CORREÇÃO: */
    background-color: #000000; /* Fundo Preto */
    color: #ffffff; /* Texto Branco */
    font-family: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ================== 2. HERO SECTION ================== */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 700px;
    margin-bottom: 80px;
    position: relative;
    gap: 40px;
    z-index: 1;
}

.hero-image-container {
    flex: 1;
    position: relative;
    max-width: 50%;
    height: 600px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: transparent; 
    z-index: 0;
    overflow: visible;
}

.hero-image-container::before {
    content: '';
    position: absolute;
    top: 40%; left: 40%; 
    transform: translate(-50%, -50%);
    width: 230%; height: 180%;
    background: radial-gradient(circle, rgba(44, 87, 179, 0.7) 0%, rgba(26, 26, 46, 0.2) 60%, transparent 75%);
    filter: blur(60px); 
    z-index: -1; 
    pointer-events: none;
}

.hero-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    display: block;
    position: relative;
    z-index: 2;
    left: 10%;
    transform: scale(1.75) translateY(140px);
    transform-origin: bottom center;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 90%);
    mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 90%);
    object-fit: contain;
}

.hero-content {
    flex: 1;
    padding-left: 20px;
    z-index: 4;
}

.main-title {
    font-weight: 900;
    font-size: 4.5rem;
    line-height: 0.9;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.middle-name {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    margin: 10px 0;
    color: #cccccc;
}

.job-badge {
    display: inline-block;
    background: linear-gradient(to right, #3b6ebf, #d97c62);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(44, 87, 179, 0.3);
}

.job-badge .separator {
    font-weight: 400; margin: 0 5px; opacity: 0.8;
}

.bio-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e0e0e0;
    max-width: 600px;
}

/* ================== 3. SERVICES SECTION ================== */
.services-section {
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 40px;
    text-shadow: 0 0 20px rgba(79, 172, 254, 0.2);
}

.services-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.services-col-right { flex: 1; }

.services-grid-left {
    flex: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.grid-item-animate {
    height: 100%;
    width: 100%;
}

/* Cards Hover & Style */
.service-card-wrapper {
    position: relative;
    border-radius: 15px;
    padding: 2px;
    background: linear-gradient(135deg, var(--gradient-light-blue), var(--gradient-orange));
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.1), 0 0 10px rgba(246, 138, 92, 0.05);
    display: flex;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.service-card-wrapper:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(79, 172, 254, 0.3), 0 0 25px rgba(246, 138, 92, 0.2);
    z-index: 20;
}

.service-card {
    background-color: var(--card-bg);
    border-radius: 13px;
    padding: 25px;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    transition: background-color 0.3s ease;
}

.service-card-wrapper:hover .service-card {
    background-color: #121212; 
}

.card-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.card-icon svg { width: 100%; height: 100%; }

.service-card-wrapper:hover .card-icon {
    transform: translateX(8px) scale(1.1);
}

.card-text {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #ffffff;
}

/* ================== 4. SKILLS SECTION ================== */
.skills-section {
    position: relative;
    padding: 100px 0;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 5;
}

.skills-bg-container {
    position: absolute;
    width: 100%;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0;
}

.main-pill-bg {
    width: 85%;
    height: 100%;
    background: linear-gradient(90deg, #1e3c72 0%, #2a5298 50%, #6d4c41 100%);
    border-radius: 175px 0 0 175px;
    position: relative;
    left: -5%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.right-pill-decoration {
    width: 200px;
    height: 100%;
    background: linear-gradient(180deg, #2a5298 0%, #6d4c41 100%);
    border-radius: 200px 0 0 200px;
    margin-left: 20px;
    position: relative;
    opacity: 0.8;
}

.curved-lines {
    position: absolute;
    top: 0; left: -50px;
    height: 100%; width: auto;
    opacity: 0.8;
}

.skills-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skills-row { display: flex; gap: 15px; justify-content: center; }

.skills-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 4rem;
    color: white;
    text-transform: uppercase;
    line-height: 1;
    display: flex; align-items: center; margin-left: 10px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.skill-tag {
    background-color: rgba(43, 85, 163, 0.65);
    border: 2px solid rgba(100, 160, 255, 0.5);
    border-radius: 12px;
    padding: 15px 25px;
    color: white; font-weight: 600; font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-align: center;
}

.skill-tag:hover {
    transform: translateY(-3px);
    background-color: rgba(43, 85, 163, 0.85);
    border-color: rgba(255, 255, 255, 0.8);
}

.video-editing-tag { gap: 15px; padding-right: 15px; }
.software-icons { display: flex; gap: 8px; align-items: center; }
.software-icons img { height: 30px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }

/* ================== 5. AWARDS SECTION ================== */
.awards-section { 
    padding: 80px 0; 
    position: relative; 
    z-index: 5; 
}
.awards-section .section-title { margin-bottom: 60px; line-height: 1.1; }
.awards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: stretch; }

.award-card-wrapper {
    position: relative;
    border-radius: 15px;
    padding: 2px; /* Espessura da borda */
    background: linear-gradient(135deg, var(--gradient-blue), var(--gradient-orange));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    
    /* Configuração 3D */
    transform-style: preserve-3d;
    transform: perspective(1000px);
    will-change: transform;
    
    /* IMPORTANTE: Sem transição para o JS controlar rápido */
    transition: none !important;
}

.award-card-wrapper:hover { 
    z-index: 20; /* Traz para frente dos outros */
    box-shadow: 
        0 20px 50px rgba(44, 87, 179, 0.4), 
        0 0 30px rgba(246, 138, 92, 0.3);
}

.award-card {
    background-color: #050505;
    border-radius: 13px; /* Um pouco menos que o wrapper para encaixar */
    padding: 30px 20px;
    width: 100%;
    height: 100%; /* Garante que ocupe tudo */
    
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start;
    
    /* CORREÇÃO AQUI: Removemos o translateZ(40px) do fundo */
    /* Agora o fundo preto fica colado na borda colorida */
    transform: translateZ(1px); 
    transform-style: preserve-3d; /* Permite que os filhos flutuem */
}

.award-image-container {
    transform: translateZ(30px); /* A imagem salta pra fora */
    /* Adicione sombra para reforçar a flutuação da imagem */
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
}
.award-info {
    transform: translateZ(20px); /* O texto salta um pouco menos */
}
.award-img { 
    max-width: 100%; max-height: 100%; object-fit: contain; 
    transition: transform 0.5s ease;
}
.award-card-wrapper:hover .award-img { transform: scale(1.15); }

.award-info h3 { font-size: 1.1rem; font-weight: 700; color: #ffffff; margin-bottom: 10px; line-height: 1.4; }
.award-info p { font-size: 0.95rem; color: var(--gradient-orange); font-weight: 500; opacity: 0.9; }

/* ================== 6. CAREER HIGHLIGHTS SECTION ================== */
.career-section {
    padding: 150px 0;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.career-container {
    width: 100%;
    max-width: 900px;
    position: relative;
    z-index: 5;
    padding: 0 20px;
}

.career-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 3.5rem;
    text-transform: uppercase;
    font-weight: 900;
}

/* Decoração Lateral (Semicírculos) */
.career-deco-left {
    position: absolute;
    top: 50%; left: -100px;
    transform: translateY(-50%);
    width: 250px; height: 500px;
    background: linear-gradient(180deg, #2c3e50 0%, #2c57b3 50%, #000000 100%);
    border-radius: 0 250px 250px 0;
    opacity: 0.6; z-index: 1;
}

.career-deco-right {
    position: absolute;
    top: 50%; right: -100px;
    transform: translateY(-50%);
    width: 250px; height: 500px;
    background: linear-gradient(180deg, #6d4c41 0%, #a86c58 50%, #000000 100%);
    border-radius: 250px 0 0 250px;
    opacity: 0.6; z-index: 1;
}

.career-line-right {
    position: absolute;
    top: 0; right: 15%;
    width: 1px; height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

/* Lista de Carreira Interativa */
.career-list {
    display: flex;
    flex-direction: column;
    gap: 0; 
}

.career-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 25px 20px;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid transparent; 
}

.career-item:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(10px);
    border-color: rgba(255, 255, 255, 0.1);
}

.career-marker {
    flex-shrink: 0;
    width: 6px; 
    height: 50px;
    border-radius: 6px;
    background: linear-gradient(180deg, var(--gradient-light-blue), var(--gradient-orange));
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.career-item:hover .career-marker {
    width: 10px; height: 60px;
    box-shadow: 0 0 25px var(--gradient-light-blue), 0 0 10px var(--gradient-orange);
}

.career-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #e0e0e0;
    font-weight: 400;
    transition: color 0.3s ease;
}

.career-item:hover .career-text { color: #ffffff; }

.career-text strong {
    color: #ffffff;
    font-weight: 700;
    transition: text-shadow 0.3s ease;
}

.career-item:hover .career-text strong {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.career-separator {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 15%, rgba(255,255,255,0.1) 85%, transparent 100%);
}

/* ================== 7. CLIENTS SECTION (INFINITE SCROLL) ================== */
.clients-section {
    padding: 60px 0 100px 0;
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.clients-marquee-container {
    background-color: #ffffff;
    border-radius: 50px;
    padding: 40px 0;
    width: 100%;
    max-width: 1200px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    cursor: grab;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    user-select: none;
    -webkit-user-select: none;
}

.clients-marquee-container:active { cursor: grabbing; }

.clients-track {
    display: inline-flex;
    align-items: center;
    gap: 60px;
    padding-left: 60px;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 100px;
    pointer-events: none; 
}

.client-logo img {
    max-height: 80px; max-width: 180px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Balanceamento Visual Logos */
.logo-globo img, .logo-sbt img, .logo-band img, .logo-fortaleza img, .logo-ceara img { max-height: 90px; max-width: 100px; }
.logo-remax img, .logo-jangadeiro img, .logo-gshow img, .logo-enel img, .logo-nordestv img, .logo-verdesmares img { max-height: 70px; max-width: 200px; }
.logo-gov img { max-height: 75px; max-width: 250px; }

/* ================== 8. HISTORY SECTION ================== */
.history-section {
    position: relative;
    margin-top: 100px; 
    min-height: 1100px; 
    padding: 100px 0;
    overflow: hidden;
    background-color: #000000;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Fundo */
.tunnel-bg-container {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Quadrados do Túnel (Estilo Wireframe Neon) */
.tunnel-square {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 20px;
    background: transparent;
    box-shadow: -5px -5px 25px rgba(44, 87, 179, 0.5), 5px 5px 25px rgba(246, 138, 92, 0.5);
    animation: tunnel-pulse 5s ease-in-out infinite alternate;
    border: none;
}

/* Borda com Gradiente via Máscara */
.tunnel-square::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px; 
    padding: 2px; 
    background: linear-gradient(135deg, #2c57b3, #f68a5c);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Tamanhos dos Quadrados (Escala Gigante) */
.sq-1 { 
    width: 500px; height: 500px; opacity: 1; animation-delay: 0s;
    box-shadow: -2px -2px 40px rgba(44, 87, 179, 0.9), 2px 2px 40px rgba(246, 138, 92, 0.9);
}
.sq-2 { width: 610px; height: 610px; opacity: 0.8; animation-delay: 0.2s; }
.sq-3 { width: 720px; height: 720px; opacity: 0.6; animation-delay: 0.4s; }
.sq-4 { width: 830px; height: 830px; opacity: 0.4; animation-delay: 0.6s; }
.sq-5 { width: 940px; height: 940px; opacity: 0.2; animation-delay: 0.8s; }

/* Grid de Fotos */
.history-content { position: relative; z-index: 5; display: flex; justify-content: center; }

.history-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-items: center; align-items: center;
    width: max-content; margin: 0 auto;
}

.history-photo-wrapper {
    position: relative;
    animation: float-photo 6s ease-in-out infinite;
    cursor: pointer;
}

.history-photo {
    width: 230px; height: 230px;
    border-radius: 15px; padding: 2px;
    background: linear-gradient(135deg, rgba(44, 87, 179, 0.5), rgba(246, 138, 92, 0.5));
    box-shadow: 0 10px 20px rgba(0,0,0,0.6);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.history-photo img {
    width: 100%; height: 100%; 
    object-fit: cover;
    border-radius: 10px;
    /* Filtro Azulado */
    filter: sepia(1) hue-rotate(190deg) saturate(2.5) brightness(0.7);
    transition: all 0.5s ease;
}

.photo-offset { margin-top: 30px; }

/* Hover History */
.history-photo-wrapper:hover img { filter: none; }
.history-photo-wrapper:hover .history-photo {
    transform: scale(1.15);
    background: linear-gradient(135deg, #4facfe, #f68a5c);
    box-shadow: 0 0 30px rgba(79, 172, 254, 0.5);
}

/* Delays Animação */
.float-delay-1 { animation-delay: 0s; }
.float-delay-2 { animation-delay: 1.5s; }
.float-delay-3 { animation-delay: 0.8s; }
.float-delay-4 { animation-delay: 2.2s; }

/* ================== 9. FOOTER SECTION ================== */
.footer-section {
    position: relative;
    padding: 80px 0 250px 0;
    background-color: #000000;
    overflow: hidden;
    z-index: 10;
    display: flex;
    justify-content: center;
}

.footer-container {
    width: 100%; max-width: 1200px;
    z-index: 20; padding: 0 20px;
}

.contact-grid {
    display: flex; justify-content: center;
    flex-wrap: wrap; gap: 25px;
    margin-bottom: 20px; position: relative; z-index: 20;
}

/* Botão Neon Glass */
.contact-btn {
    position: relative; display: flex; align-items: center;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 10px 25px 10px 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.contact-btn:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(44, 87, 179, 0.4), 0 0 20px rgba(246, 138, 92, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.05);
}

/* Ícone Animado */
.btn-icon-box {
    width: 45px; height: 45px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2c57b3 0%, #f68a5c 100%);
    display: flex; align-items: center; justify-content: center;
    margin-right: 15px; flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
}

.contact-btn:hover .btn-icon-box {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.btn-icon-box svg {
    width: 22px; height: 22px; fill: white;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.btn-text {
    color: #e0e0e0; font-size: 1rem; font-weight: 500;
    letter-spacing: 0.5px; transition: color 0.3s ease;
}
.contact-btn:hover .btn-text { color: #ffffff; text-shadow: 0 0 10px rgba(255,255,255,0.5); }

/* Shine Effect */
.contact-btn::after {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: none;
}
.contact-btn:hover::after { left: 100%; transition: 0.5s ease; }

/* Decoração Footer (Meias-Luas) */
.footer-deco-container {
    position: absolute; bottom: -140px; left: 0;
    width: 100%; height: 450px; 
    pointer-events: none;
    display: flex; justify-content: center; align-items: flex-end;
    overflow: hidden; 
}

.footer-dome {
    position: absolute; bottom: 0; background: transparent;
}

.dome-filled {
    width: 640px; height: 320px;
    border-radius: 320px 320px 0 0; 
    background: linear-gradient(to bottom, #2c57b3 0%, #f68a5c 100%);
    z-index: 10; left: 50%; transform: translateX(-50%);
    opacity: 0.95;
    box-shadow: 0 -10px 40px rgba(44, 87, 179, 0.4);
}

.dome-outline {
    width: 800px; height: 400px;
    border-radius: 400px 400px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.4); border-bottom: none;
    z-index: 5;
}
.dome-left { left: 50%; transform: translateX(-125%); }
.dome-right { left: 50%; transform: translateX(25%); }

/* ================== 10. ANIMAÇÕES GERAIS ================== */
.animate-block { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-block.is-visible { opacity: 1; transform: translateY(0); }
.animate-delay-1 { transition-delay: 0.2s; }
.animate-delay-2 { transition-delay: 0.4s; }
.animate-delay-3 { transition-delay: 0.6s; }
.animate-delay-4 { transition-delay: 0.8s; }

@keyframes tunnel-pulse {
    0% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    100% { transform: translate(-50%, -50%) scale(1.05) rotate(2deg); }
}

@keyframes float-photo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ================== 11. RESPONSIVIDADE (CONSOLIDADA) ================== */

/* --- TABLETS E LAPTOPS (max-width: 1024px) --- */
@media (max-width: 1024px) {
    .history-section { min-height: 800px; margin-top: 80px; }
    
    .sq-1 { width: 400px; height: 400px; }
    .sq-2 { width: 480px; height: 480px; }
    .sq-3 { width: 560px; height: 560px; }
    .sq-4 { width: 640px; height: 640px; }
    .sq-5 { width: 720px; height: 720px; }
    
    .history-photo { width: 140px; height: 140px; }
}

/* --- MOBILE & TABLET PORTRAIT (max-width: 992px) --- */
@media (max-width: 992px) {
    /* Hero */
    .hero-section { flex-direction: column; text-align: center; min-height: auto; overflow: hidden; overflow: hidden !important;}
    .hero-image-container { max-width: 100%; width: 100%; height: 450px; margin-bottom: 20px; overflow: hidden !important;
        width: 100%;}
    .hero-image-container::before { width: 150%; height: 150%; filter: blur(50px); }
    .hero-img { left: 0; transform: scale(1.4) translateY(80px); }
    .hero-content { padding-left: 0; padding-top: 0; }
    .main-title { align-items: center; font-size: 3rem; }
    .bio-text { margin: 0 auto; }

    /* Services */
    .services-layout { flex-direction: column; }
    .services-grid-left { grid-template-columns: 1fr; width: 100%; }
    .services-col-right { width: 100%; }

    /* Skills */
    .skills-section { padding: 50px 20px; }
    .main-pill-bg { width: 100%; border-radius: 20px; left: 0; }
    .right-pill-decoration { display: none; }
    .skills-bg-container { height: 100%; min-height: 400px; }
    .skills-row { flex-wrap: wrap; }
    .row-top { flex-direction: column-reverse; align-items: center; }
    .video-editing-tag { flex-direction: column; gap: 10px; }
    .skill-tag { width: 100%; }

    /* Awards */
    .awards-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .award-card { padding: 40px; text-align: center; }
    .award-image-container { height: 150px; }

    /* Career */
    .career-section { padding: 80px 0; }
    .career-title { font-size: 2.5rem; }
    .career-deco-left, .career-deco-right { width: 150px; height: 300px; opacity: 0.4; }
    .career-item { padding: 20px 0; gap: 15px; }
    .career-marker { width: 15px; height: 40px; }
    .career-text { font-size: 1rem; }

    /* History */
    .history-section { min-height: 700px; margin-top: 50px; }

    /* Footer */
    .contact-btn { width: 100%; max-width: 350px; justify-content: flex-start; }
    .footer-deco-container { height: 200px; }
    .dome-filled { width: 400px; height: 200px; border-radius: 200px 200px 0 0; }
    .dome-outline { display: none; }
}

/* --- CELULARES (max-width: 768px) --- */
@media (max-width: 768px) {
    /* Clients */
    .clients-marquee-container { border-radius: 30px; padding: 30px 0; }
    .clients-track { gap: 40px; padding-left: 40px; }
    .client-logo img { max-height: 60px; }
    .logo-gov img { max-height: 55px; max-width: 180px; }

    /* Career */
    .career-section { padding: 60px 0; }
    .career-title { font-size: 2.2rem; margin-bottom: 40px; }
    .career-deco-left, .career-deco-right { width: 80px; opacity: 0.2; }
    .career-line-right { display: none; }

    /* History */
    .history-section { min-height: 550px; margin-top: 50px; padding: 50px 0; }
    .history-photo { width: 100px; height: 100px; border-radius: 10px; }
    .history-grid { gap: 8px; }
    .photo-offset { margin-top: 0; transform: translateY(15px); }

    /* Tunnel Mobile */
    .sq-1 { width: 240px; height: 240px; box-shadow: -2px -2px 20px rgba(44,87,179,0.8), 2px 2px 20px rgba(246,138,92,0.8); }
    .sq-2 { width: 290px; height: 290px; }
    .sq-3 { width: 340px; height: 340px; }
    .sq-4, .sq-5 { display: none; }
    
    /* Clients */
    .clients-section { padding: 40px 0; }
    .section-title { font-size: 2.5rem; }
}

/* --- TELAS MUITO PEQUENAS (max-width: 400px) --- */
@media (max-width: 400px) {
    .history-photo { width: 85px; height: 85px; }
    .sq-1 { width: 200px; height: 200px; }
    .sq-2 { width: 250px; height: 250px; }
    .sq-3 { display: none; }
}

/* ================== EFEITOS PREMIUM EXTRAS ================== */

/* 1. TEXTURA DE CINEMA (NOISE OVERLAY) */
.noise-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
}

/* 2. CURSOR PERSONALIZADO (Opcional - bolinha que segue o mouse) */
.cursor-dot {
    width: 20px; height: 20px;
    background-color: white;
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference; /* Inverte a cor onde passa */
    transform: translate(-50%, -50%);
    display: none; /* Ativado via JS se não for mobile */
}

@media (min-width: 992px) {
    .cursor-dot { display: block; }
}

/* 3. CLASSE PARA BOTÕES MAGNÉTICOS */
.magnetic-btn {
    display: inline-block; /* Necessário para o cálculo de posição */
}

/* ================== CONFIGURAÇÃO OBRIGATÓRIA LENIS ================== */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* ================== NOVOS EFEITOS (TILT 3D & CARROSSEL) ================== */

/* Prepara os cards para o efeito 3D */
.service-card-wrapper, .award-card-wrapper {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.service-card, .award-card {
    /* Garante que o conteúdo interno tenha profundidade */
    transform: translateZ(20px); 
}

/* Garante que a imagem do Hero não seja cortada */
.hero-image-container {
    overflow: visible !important; /* Permite que a imagem saia se precisar */
    /* Mas limitamos a seção para não criar rolagem lateral */
}
.hero-section {
    overflow: visible; /* Deixa a imagem respirar */
}

/* ================== NOVOS EFEITOS (ATUALIZADO GLOBAL) ================== */

/* 1. GLOBAL SHINE (LUZ EM TODA A PÁGINA) */
.global-shine {
    position: fixed; /* Fica fixo na tela enquanto você rola */
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none; /* Permite clicar através da luz */
    z-index: 9999; /* Fica acima de quase tudo */
    
    /* O gradiente segue o mouse via variáveis --x e --y */
    background: radial-gradient(
        800px circle at var(--x, 50%) var(--y, 50%), 
        rgba(255, 255, 255, 0.06) 0%, /* Centro da luz (sutil) */
        transparent 40% /* Borda da luz */
    );
    
    /* Mistura a luz com o fundo para ficar elegante */
    mix-blend-mode: screen;
}

/* 2. EFEITO 3D EXTREMO (Serviços E Prêmios) */
.service-card-wrapper, .award-card-wrapper {
    transform-style: preserve-3d;
    transform: perspective(1000px);
    will-change: transform; 
    
    /* IMPORTANTE: Removemos a transição do CSS para o JS controlar sem lag */
    transition: none !important; 
}

.service-card, .award-card {
    /* Empurra o conteúdo para frente (Z) para criar o 3D */
    transform: translateZ(50px); 
    box-shadow: 0 15px 35px rgba(0,0,0,0.6); 
    
    /* Garante que o fundo preto cubra a parte de trás se girar muito */
    background-color: #050505; 
    transform-style: preserve-3d;
}

/* Garante que a imagem e o texto também flutuem em camadas (3D Profundo) */
.card-icon, .award-image-container {
    transform: translateZ(30px);
}
.card-text, .award-info {
    transform: translateZ(20px);
}