/* ==========================================
   1. RESET, VARIÁVEIS E SCROLL SUAVE
========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scrollbar-width: thin;
    scrollbar-color: #1a1a1a #030303;
}

:root {
    --bg-color: #030303;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-red: #FE202E; 
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
    overflow-x: hidden; 
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================
   2. SCROLLBAR PERSONALIZADA (DARK)
========================================== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb {
    background: #1a1a1a;
    border-radius: 10px;
    border: 2px solid var(--bg-color);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-red); }

/* ==========================================
   3. TELA DE CARREGAMENTO (LOADER)
========================================== */
#loader-wrapper {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: #000000; z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.typewriter-text {
    color: #ffffff; font-size: 3.5rem; font-weight: 700; letter-spacing: 8px;
    border-right: 4px solid #ffffff; padding-right: 8px; animation: blink 0.8s step-end infinite;
    transition: opacity 0.3s ease;
}
@keyframes blink { from, to { border-color: transparent; } 50% { border-color: #ffffff; } }
body.loaded #loader-wrapper { opacity: 0; visibility: hidden; pointer-events: none; }

/* ==========================================
   4. BACKGROUND PATTERN E TEXTO
========================================== */
.bg-pattern {
    position: absolute; top: 0; right: 0; width: 55vw; height: 100vh;
    background: repeating-linear-gradient(-45deg, transparent, transparent 15px, rgba(254, 32, 46, 0.05) 15px, rgba(254, 32, 46, 0.05) 17px);
    -webkit-mask-image: linear-gradient(to right, transparent, black 50%);
    mask-image: linear-gradient(to right, transparent, black 50%);
    z-index: 0; pointer-events: none;
}

.bg-text-wrapper { position: absolute; left: 0; width: 100%; text-align: center; overflow: hidden; pointer-events: none; z-index: 1; }
.bg-text { font-family: 'Inter', sans-serif; font-size: 16vw; font-weight: 900; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, 0.03); text-transform: uppercase; letter-spacing: 12px; user-select: none; }

/* ==========================================
   5. NAVBAR FIXA (GLASSMORPHISM)
========================================== */
.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; }
.nav-container { position: relative; display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; height: 80px; padding: 0 40px; background: rgba(8, 8, 8, 0.55); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-radius: 0 0 32px 32px; border-bottom: 1px solid rgba(255,255,255,0.03); }
.nav-container::before, .nav-container::after { content: ""; position: absolute; top: 0; width: 32px; height: 32px; background: rgba(8, 8, 8, 0.55); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); pointer-events: none; }
.nav-container::before { left: -32px; mask-image: radial-gradient(circle at 0% 100%, transparent 32px, black 32.5px); -webkit-mask-image: radial-gradient(circle at 0% 100%, transparent 32px, black 32.5px); }
.nav-container::after { right: -32px; mask-image: radial-gradient(circle at 100% 100%, transparent 32px, black 32.5px); -webkit-mask-image: radial-gradient(circle at 100% 100%, transparent 32px, black 32.5px); }

.nav-left, .nav-right { display: flex; align-items: center; flex: 1; }
.nav-left { gap: 32px; justify-content: flex-start; }
.nav-right { justify-content: flex-end; }
.nav-center { flex: 0 1 auto; text-align: center; }

.logo-link { display: flex; align-items: center; text-decoration: none; padding: 10px 0; }
.logo-text { font-size: 26px; font-weight: 900; letter-spacing: 0.5px; color: #ffffff; transition: transform 0.3s ease; }
.logo-link:hover .logo-text { transform: scale(1.05); color: #ffffff; }

.nav-link { position: relative; color: #9ca3af; text-decoration: none; font-size: 0.9rem; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; transition: color 0.3s ease; }
.nav-link:hover { color: #ffffff; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background-color: #ffffff; transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease-in-out; }
.nav-link:hover::after { transform: scaleX(1); }
.arrow-down { width: 14px; height: 14px; opacity: 0.8; display: block; transform-origin: center; transition: transform 0.3s ease; }
.nav-link:hover .arrow-down { transform: rotate(-180deg); }
.btn-contact { display: flex; align-items: center; gap: 8px; background: #ffffff; color: #000000; text-decoration: none; height: 44px; padding: 0 24px; border-radius: 30px; font-weight: 600; font-size: 0.9rem; transition: all 0.3s ease; }
.btn-contact svg { width: 16px; height: 16px; }
.btn-contact:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15); }
.menu-btn { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 10px; }
.menu-btn .line { display: block; width: 26px; height: 2px; background-color: var(--text-primary); transition: 0.3s ease; }

/* ==========================================
   6. HERO SECTION PRINCIPAL (HOME)
========================================== */
.hero { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; flex: 1; padding: 0 8%; max-width: 1600px; margin: 0 auto; width: 100%; min-height: 100vh; padding-top: 100px; }
.hero-content { flex: 0 1 500px; position: relative; z-index: 5; }
.hero-content h1 { font-size: 3.4rem; line-height: 1.15; font-weight: 700; margin-bottom: 24px; letter-spacing: -1.5px; }
.hero-content h1 span { display: block; }
.hero-content p { font-size: 1.1rem; line-height: 1.6; color: var(--text-secondary); font-weight: 400; }
.hero-mockups { position: relative; flex: 0 1 850px; display: flex; align-items: center; justify-content: flex-end; z-index: 2; }
.mockup-composition { position: relative; width: 115%; max-width: 1100px; display: block; right: 0; }
.device { height: auto; filter: drop-shadow(-20px 35px 45px rgba(0, 0, 0, 0.7)); }
.tablet { width: 100%; display: block; position: relative; z-index: 1; }
.phone { position: absolute; width: 80%; right: -25%; bottom: -5%; z-index: 3; }

/* ==========================================
   7. SECÇÃO DE TECNOLOGIAS (FAIXAS CRUZADAS)
========================================== */
.tech-section { position: relative; width: 100%; padding: 0 0 60px 0; overflow: hidden; z-index: 5; display: flex; flex-direction: column; align-items: center; }
.tech-intro { font-size: 1.05rem; color: #a1a1aa; text-align: center; margin-bottom: 30px; font-weight: 500; z-index: 10; }
.tech-bands-container { position: relative; width: 110vw; left: -5vw; height: 160px; display: flex; align-items: center; justify-content: center; }
.tech-band { position: absolute; width: 100%; background: rgba(255, 255, 255, 0.02); backdrop-filter: blur(10px); padding: 16px 0; display: flex; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); border-top: 1px solid rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.tech-band.band-1 { transform: rotate(-3deg); z-index: 2; }
.tech-band.band-2 { transform: rotate(3deg); z-index: 1; }
.tech-track { display: flex; align-items: center; gap: 70px; width: max-content; }
.track-left-to-right { animation: scrollTechLeft 40s linear infinite; }
.track-right-to-left { animation: scrollTechRight 45s linear infinite; }
.tech-item { display: flex; align-items: center; gap: 12px; font-size: 1rem; font-weight: 700; color: #ffffff; white-space: nowrap; opacity: 0.9; transition: opacity 0.3s ease; }
.tech-item:hover { opacity: 1; }
.tech-item img { width: 24px; height: 24px; object-fit: contain; }
@keyframes scrollTechLeft { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }
@keyframes scrollTechRight { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ==========================================
   8. SECÇÃO DE CLIENTES (MARQUEE)
========================================== */
.clients-section { position: relative; width: 100%; background: linear-gradient(to bottom, #030303 0%, var(--accent-red) 40px, var(--accent-red) 100%); padding: 80px 0; overflow: hidden; z-index: 5; }
.clients-container { display: flex; align-items: center; max-width: 1600px; margin: 0 auto; padding: 0 8%; gap: 60px; }
.clients-text { flex: 0 0 350px; color: #ffffff; position: relative; z-index: 10; }
.clients-text::after { content: ''; position: absolute; right: -30px; top: 10%; height: 80%; width: 1px; background-color: rgba(255, 255, 255, 0.3); }
.clients-text h2 { font-size: 2.2rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.5px; margin-bottom: 12px; }
.clients-text p { font-size: 0.95rem; font-weight: 500; line-height: 1.5; opacity: 0.9; }
.clients-marquee { flex: 1; overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent); mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 60px; width: max-content; animation: scrollLogos 80s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.client-logo { height: 45px; width: auto; object-fit: contain; opacity: 0.85; transition: opacity 0.3s ease, transform 0.3s ease; }
.client-logo:hover { opacity: 1; transform: scale(1.05); }
@keyframes scrollLogos { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ==========================================
   9. SECÇÃO PROJETOS DE SUCESSO (HOME)
========================================== */
.projects-section { position: relative; width: 100%; background: linear-gradient(to bottom, var(--accent-red) 0%, #030303 150px, #030303 100%); padding: 80px 0 100px 0; overflow: hidden; z-index: 4; }
.bg-text-wrapper { position: absolute; top: 50px; left: 0; width: 100%; text-align: center; overflow: hidden; pointer-events: none; z-index: 1; }
.bg-text { font-family: 'Inter', sans-serif; font-size: 16vw; font-weight: 900; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, 0.06); text-transform: uppercase; letter-spacing: 12px; user-select: none; }
.projects-container { max-width: 1400px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 2; }
.projects-header { text-align: center; margin-bottom: 80px; }
.projects-header h2 { font-family: 'Inter', sans-serif; font-size: 3.5rem; font-weight: 900; line-height: 1.1; letter-spacing: 4px; text-transform: uppercase; color: #ffffff; }
.projects-header h2 span { color: var(--text-secondary); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 40px; }
.project-card { background: #030303; border: none; border-radius: 24px; padding: 0; transition: transform 0.4s ease, box-shadow 0.4s ease; display: flex; flex-direction: column; overflow: hidden; }
.project-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); }
.project-image-container { position: relative; background: linear-gradient(150deg, var(--brand-color) 0%, rgba(0,0,0,0.5) 150%); width: 100%; height: 260px; display: flex; justify-content: center; align-items: center; overflow: hidden; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.project-mockup { position: relative; z-index: 2; width: 115%; max-width: none; height: auto; left: 22%; filter: drop-shadow(0 15px 25px rgba(0,0,0,0.4)); transition: transform 0.5s ease, left 0.5s ease; }
.project-card:hover .project-mockup { transform: scale(1.05) translateY(-2%); }
.project-info { display: flex; flex-direction: column; flex-grow: 1; padding: 30px; }
.project-logo { height: 26px; width: auto; object-fit: contain; margin-bottom: 20px; align-self: flex-start; filter: brightness(0) invert(1); }
.text-logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -1px; color: #ffffff; margin-bottom: 20px; }
.project-info h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 12px; color: #ffffff; }
.project-info p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 24px; flex-grow: 1; }
.tech-stack { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 30px; }
.tech-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: #ffffff; background: transparent; padding: 0; border: none; }
.tech-icon { width: 18px; height: 18px; object-fit: contain; opacity: 0.9; transition: opacity 0.3s ease; }
.project-card:hover .tech-icon { opacity: 1; }
.tech-tag.plus { font-weight: 800; font-size: 0.95rem; }
.btn-card { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 30px; color: #ffffff; text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: all 0.3s ease; align-self: flex-start; position: relative; overflow: hidden; }
.btn-card::before { content: ''; position: absolute; top: 50%; left: 50%; width: 150%; height: 150%; background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%); transform: translate(-50%, -50%); z-index: 0; pointer-events: none; }
.btn-card > * { position: relative; z-index: 1; }
.btn-card svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.btn-card:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.3); }
.btn-card:hover svg { transform: translateX(4px); }
.all-projects-wrapper { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 80px; }
.red-line { height: 1px; width: 150px; }
.red-line.left { background: linear-gradient(90deg, transparent, var(--accent-red)); }
.red-line.right { background: linear-gradient(270deg, transparent, var(--accent-red)); }
.btn-all-projects { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; background: transparent; border: 1px solid var(--accent-red); border-radius: 30px; color: #ffffff; text-decoration: none; font-size: 1rem; font-weight: 600; transition: all 0.3s ease; }
.btn-all-projects svg { width: 18px; height: 18px; color: var(--accent-red); transition: color 0.3s ease; }
.btn-all-projects:hover { background: var(--accent-red); box-shadow: 0 10px 30px rgba(230, 0, 0, 0.3); }
.btn-all-projects:hover svg { color: #ffffff; }

/* ==========================================
   10. BENTO GRID (METODOLOGIA E GERAL)
========================================== */
.methodology-section { position: relative; width: 100%; padding: 40px 0 80px 0; background-color: transparent; z-index: 5; }
.methodology-container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.methodology-header { text-align: center; margin-bottom: 80px; }
.methodology-header h2 { font-family: 'Inter', sans-serif; font-size: 3.5rem; font-weight: 900; line-height: 1.1; letter-spacing: 2px; text-transform: uppercase; color: #ffffff; }
.methodology-header h2 span { color: var(--accent-red); }
.methodology-header p { font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; margin: 20px auto 0 auto; line-height: 1.6; }

.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 80px; }
.bento-card { background: #09090C; border: 1px solid rgba(255, 255, 255, 0.04); border-radius: 32px; padding: 40px; position: relative; overflow: hidden; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease; display: flex; flex-direction: column; justify-content: space-between; min-height: 280px; box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.bento-card:hover { transform: translateY(-8px); border-color: rgba(230, 0, 0, 0.3); }
.bento-card.span-2 { grid-column: span 2; }

.bento-card.card-glow::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at top left, rgba(230, 0, 0, 0.08), transparent 70%); pointer-events: none; transition: opacity 0.4s ease; }
.bento-card.card-glow:hover::before { opacity: 1; background: radial-gradient(circle at top left, rgba(230, 0, 0, 0.15), transparent 70%); }

.bento-number { position: absolute; bottom: -30px; right: -10px; font-size: 14rem; font-weight: 900; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, 0.02); line-height: 1; pointer-events: none; z-index: 0; transition: -webkit-text-stroke-color 0.4s ease; }
.bento-card:hover .bento-number { -webkit-text-stroke-color: rgba(230, 0, 0, 0.06); }
.bento-content { position: relative; z-index: 1; }

.icon-wrapper { width: 48px; height: 48px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; color: var(--accent-red); }
.icon-wrapper svg { width: 24px; height: 24px; }
.bento-card h3 { font-size: 1.6rem; font-weight: 700; color: #ffffff; margin-bottom: 16px; letter-spacing: -0.5px; }
.bento-card p { font-size: 1rem; color: var(--text-secondary); line-height: 1.6; max-width: 90%; }

.typology-wrapper { border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 60px; text-align: center; }
.typology-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.type-pill { padding: 14px 28px; border-radius: 40px; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.06); color: #ffffff; font-size: 0.95rem; font-weight: 500; transition: all 0.3s ease; cursor: default; }
.type-pill:hover { background: var(--accent-red); border-color: var(--accent-red); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(230, 0, 0, 0.2); }

/* ==========================================
   11. IDENTIDADE VISUAL EDITORIAL
========================================== */
.brand-section { position: relative; width: 100%; padding: 40px 0 120px 0; background-color: transparent; z-index: 5; }
.brand-container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.brand-layout { display: flex; flex-direction: column; gap: 40px; }
.brand-bento-card { background: #09090C; border-radius: 32px; border: 1px solid rgba(255,255,255,0.04); padding: 60px; display: flex; gap: 60px; align-items: center; position: relative; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.brand-bento-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at top right, rgba(230,0,0,0.04), transparent 60%); pointer-events: none; }
.typo-bg-text { position: absolute; right: -2%; bottom: -15%; font-size: 26rem; font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,0.02); z-index: 0; user-select: none; pointer-events: none; }
.typo-visual { flex: 1; position: relative; z-index: 2; border-right: 1px solid rgba(255,255,255,0.05); padding-right: 40px; }
.font-badge { display: inline-block; background: rgba(230,0,0,0.08); color: var(--accent-red); padding: 8px 20px; border-radius: 30px; font-weight: 700; font-size: 0.85rem; margin-bottom: 30px; border: 1px solid rgba(230,0,0,0.2); text-transform: uppercase; letter-spacing: 1px; }
.typo-visual h3 { font-size: 6rem; font-weight: 900; margin-bottom: 20px; letter-spacing: -3px; color: #ffffff; line-height: 1; }
.typo-visual p { color: var(--text-secondary); font-size: 1.1rem; line-height: 1.7; max-width: 90%; }
.typo-weights-list { flex: 1; display: flex; flex-direction: column; gap: 15px; z-index: 2; padding-left: 20px; }
.weight-item { display: flex; align-items: center; justify-content: space-between; font-size: 1.5rem; color: #ffffff; padding: 12px 0; transition: transform 0.3s ease, color 0.3s ease; cursor: default; }
.weight-item:hover { transform: translateX(10px); color: var(--accent-red); }
.w-line { flex: 1; height: 1px; margin: 0 24px; background: rgba(255,255,255,0.06); transition: background 0.3s ease; }
.weight-item:hover .w-line { background: rgba(230,0,0,0.3); }
.w-name { font-weight: inherit; } 
.w-num { color: var(--text-secondary); font-size: 1.1rem; font-weight: 500; font-family: monospace; transition: color 0.3s ease; }
.weight-item:hover .w-num { color: var(--accent-red); }

.color-accordion { display: flex; height: 350px; gap: 16px; margin-top: 16px; }
.color-pillar { flex: 1; border-radius: 24px; padding: 30px 24px; display: flex; flex-direction: column; justify-content: flex-end; transition: flex 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease; cursor: pointer; overflow: hidden; position: relative; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05); }
.color-pillar:hover { flex: 2.5; filter: brightness(1.1); }
.pillar-content { display: flex; flex-direction: column; gap: 6px; opacity: 0.6; transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); transform: translateY(15px); white-space: nowrap; }
.color-pillar:hover .pillar-content { opacity: 1; transform: translateY(0); }
.c-hex { font-family: monospace; font-size: 1.1rem; letter-spacing: 1px; font-weight: 600; opacity: 0.8; text-transform: uppercase; }
.c-name { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.5px; }

/* ==========================================
   12. SECÇÃO: CALL TO ACTION (BLUEPRINT)
========================================== */
.cta-section { position: relative; width: 100%; padding: 100px 0; background-color: var(--bg-color); border-top: 1px solid rgba(255,255,255,0.03); }
.cta-container { max-width: 1400px; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; gap: 80px; }

.cta-visual { flex: 1; position: relative; height: 400px; border-radius: 24px; overflow: hidden; background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px); background-size: 40px 40px; }
.wireframe-grid { position: relative; width: 100%; height: 100%; }
.wf-box { position: absolute; border: 1px dashed rgba(255,255,255,0.15); border-radius: 8px; }
.wf-box.red { border: 1px solid var(--accent-red); box-shadow: 0 0 30px rgba(230,0,0,0.15); background: rgba(230,0,0,0.02); }
.wf-line { position: absolute; background: repeating-linear-gradient(90deg, transparent, transparent 5px, rgba(255,255,255,0.1) 5px, rgba(255,255,255,0.1) 10px); height: 1px; }
.box-1 { top: 15%; left: 15%; width: 100px; height: 100px; }
.box-2 { top: 35%; left: 40%; width: 160px; height: 200px; }
.box-3 { bottom: 15%; right: 15%; width: 120px; height: 120px; }
.line-1 { top: 50%; left: 0; width: 100%; }
.line-2 { top: 0; left: 60%; width: 1px; height: 100%; background: repeating-linear-gradient(0deg, transparent, transparent 5px, rgba(255,255,255,0.1) 5px, rgba(255,255,255,0.1) 10px); }

.cta-content { flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.cta-content h2 { font-size: 4.5rem; font-weight: 800; line-height: 1.1; letter-spacing: -2px; color: #ffffff; margin-bottom: 50px; }
.cta-action { display: flex; align-items: center; gap: 24px; text-decoration: none; }
.cta-text { font-size: 1.4rem; font-weight: 600; color: #ffffff; transition: color 0.3s ease; }
.cta-circle-btn { width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; color: #ffffff; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.cta-circle-btn svg { width: 24px; height: 24px; transition: transform 0.4s ease; }

.cta-action:hover .cta-text { color: var(--accent-red); }
.cta-action:hover .cta-circle-btn { background: var(--accent-red); border-color: var(--accent-red); transform: scale(1.1); box-shadow: 0 10px 30px rgba(230,0,0,0.3); }
.cta-action:hover .cta-circle-btn svg { transform: translateX(5px); }

/* ==========================================
   13. FOOTER
========================================== */
.site-footer { border-top: 1px solid rgba(255,255,255,0.05); background-color: var(--bg-color); padding: 60px 0 40px 0; }
.footer-container { max-width: 1400px; margin: 0 auto; padding: 0 40px; display: flex; flex-direction: column; gap: 60px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; }
.footer-logo-wrapper { display: flex; align-items: center; gap: 14px; }
.footer-logo-text { font-size: 2.5rem; font-weight: 900; letter-spacing: -1px; color: #ffffff; }

.back-to-top { display: flex; align-items: center; gap: 16px; background: none; border: none; color: #ffffff; font-family: 'Inter', sans-serif; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: color 0.3s ease; }
.up-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.up-arrow svg { width: 18px; height: 18px; transition: transform 0.3s ease; }
.back-to-top:hover { color: var(--accent-red); }
.back-to-top:hover .up-arrow { border-color: var(--accent-red); }
.back-to-top:hover .up-arrow svg { transform: translateY(-4px); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; color: var(--text-secondary); font-size: 0.9rem; font-weight: 400; }

/* ==========================================
   14. PÁGINA DE PROJETO (ESTUDO DE CASO HERO)
========================================== */
.project-hero-section { padding: 40px 0 100px 0; position: relative; border-bottom: 1px solid rgba(255,255,255,0.03); margin-bottom: 60px; }
.project-hero-container { max-width: 1400px; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; gap: 80px; }
.ph-content { flex: 1; }
.ph-logo { height: 35px; margin-bottom: 30px; }
.ph-content h1 { font-size: 4rem; font-weight: 900; line-height: 1.1; margin-bottom: 24px; color: #ffffff; letter-spacing: -2px; }
.ph-content p { font-size: 1.15rem; color: var(--text-secondary); line-height: 1.7; max-width: 90%; }

.ph-mockup { flex: 1.2; position: relative; cursor: zoom-in; perspective: 1000px; }
.ph-mockup .mockup-img { width: 100%; height: auto; position: relative; z-index: 2; filter: drop-shadow(0 30px 50px rgba(0,0,0,0.8)); transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); transform-origin: center right; }
.ph-mockup:hover .mockup-img { transform: scale(1.05) rotateY(-5deg) translateY(-10px); }
.ph-glow { position: absolute; top: 50%; left: 50%; width: 80%; height: 80%; background: radial-gradient(circle, rgba(254, 32, 46, 0.15) 0%, transparent 70%); transform: translate(-50%, -50%); z-index: 1; pointer-events: none; transition: opacity 0.4s ease; }
.ph-mockup:hover .ph-glow { opacity: 1; background: radial-gradient(circle, rgba(254, 32, 46, 0.25) 0%, transparent 70%); }

.btn-live-site { display: inline-flex; align-items: center; gap: 12px; background: #ffffff; color: #000000; text-decoration: none; padding: 16px 32px; border-radius: 40px; font-weight: 700; font-size: 1.05rem; margin-top: 40px; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.btn-live-site:hover { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(254, 32, 46, 0.4); color: #fff; }

.psychology-card { background: linear-gradient(145deg, #0D0D11, #09090C); }
.psyc-icon { width: 48px; height: 48px; background: rgba(254, 32, 46, 0.1); border-radius: 12px; display: flex; justify-content: center; align-items: center; margin-bottom: 24px; }

.cs-tech { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 50px; }
.cs-tech-item { width: 54px; height: 54px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 50%; display: flex; justify-content: center; align-items: center; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); cursor: default; }
.cs-tech-item:hover { background: rgba(255,255,255,0.1); transform: translateY(-5px); border-color: var(--accent-red); box-shadow: 0 10px 20px rgba(254,32,46,0.15); }
.cs-tech-item img { width: 24px; height: 24px; object-fit: contain; }

/* ==========================================
   15. JORNADA DO UTILIZADOR (MACRO CARDS)
========================================== */
.journey-section { padding: 100px 0; position: relative; background: transparent; }
.journey-stack { display: flex; flex-direction: column; gap: 60px; }

.journey-card { display: flex; background: #09090C; border: 1px solid rgba(255,255,255,0.04); border-radius: 32px; overflow: hidden; align-items: stretch; min-height: 480px; box-shadow: 0 20px 40px rgba(0,0,0,0.4); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease; }
.journey-card:hover { transform: translateY(-8px); border-color: rgba(230,0,0,0.3); box-shadow: 0 30px 60px rgba(0,0,0,0.6); }
.journey-card.reverse { flex-direction: row-reverse; }

.jc-content { flex: 1; padding: 60px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
.jc-badge { align-self: flex-start; padding: 8px 24px; background: rgba(254, 32, 46, 0.1); border: 1px solid rgba(254, 32, 46, 0.2); color: var(--accent-red); font-family: monospace; font-size: 1.05rem; border-radius: 30px; margin-bottom: 24px; text-transform: uppercase; letter-spacing: 1px; }

.jc-content h3 { font-size: 2.8rem; font-weight: 800; color: #ffffff; margin-bottom: 20px; letter-spacing: -1px; line-height: 1.1; }
.jc-content p { font-size: 1.15rem; color: var(--text-secondary); line-height: 1.7; }

.jc-mockup { flex: 1.4; position: relative; background: linear-gradient(145deg, #0D0D11, #050507); border-left: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; padding: 40px; cursor: zoom-in; overflow: hidden; }
.journey-card.reverse .jc-mockup { border-left: none; border-right: 1px solid rgba(255,255,255,0.05); }

.jc-mockup::before { content: ''; position: absolute; top: 50%; left: 50%; width: 150%; height: 150%; background: radial-gradient(circle, rgba(254, 32, 46, 0.06) 0%, transparent 60%); transform: translate(-50%, -50%); pointer-events: none; transition: opacity 0.4s ease; }
.journey-card:hover .jc-mockup::before { opacity: 0.8; }

.jc-mockup img { width: 130%; max-width: none; height: auto; transform: perspective(1000px) rotateY(-5deg) translateX(5%); transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6)); position: relative; z-index: 2; }
.journey-card.reverse .jc-mockup img { transform: perspective(1000px) rotateY(5deg) translateX(-5%); }
.journey-card:hover .jc-mockup img { transform: perspective(1000px) rotateY(0deg) scale(1.05) translateX(0); filter: drop-shadow(0 30px 60px rgba(0,0,0,0.9)); }

.jc-hover { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.8); width: 64px; height: 64px; background: rgba(0,0,0,0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #ffffff; opacity: 0; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); border: 1px solid rgba(255,255,255,0.1); z-index: 3; }
.jc-hover svg { width: 28px; height: 28px; }
.jc-mockup:hover .jc-hover { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ==========================================
   16. MODAL PROGRESSIVO (LIGHTBOX)
========================================== */
.lightbox { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 999999; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox-close { position: absolute; top: 40px; right: 50px; background: transparent; border: none; color: var(--text-secondary); font-size: 4rem; line-height: 1; cursor: pointer; transition: color 0.3s ease; }
.lightbox-close:hover { color: var(--accent-red); }
.lightbox-content { max-width: 90vw; max-height: 85vh; border-radius: 16px; box-shadow: 0 40px 100px rgba(0,0,0,1); transform: scale(0.95) translateY(20px); transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); object-fit: contain; }
.lightbox.active .lightbox-content { transform: scale(1) translateY(0); }

/* ==========================================
   17. ANIMAÇÃO DE TRANSIÇÃO DE PÁGINA (SMOOTH EXIT)
========================================== */
main {
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

body.page-exit main {
    opacity: 0;
    transform: translateY(-40px);
}

body.page-exit #loader-wrapper {
    opacity: 1 !important;
    visibility: visible !important;
    background-color: var(--bg-color); 
    pointer-events: all;
}

/* ==========================================
   18. LANGUAGE SWITCHER (Bandeiras)
========================================== */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 32px;
}
.lang-btn {
    background: transparent;
    border: 2px solid transparent;
    border-radius: 50%;
    padding: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.4;
}
.lang-btn img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}
.lang-btn.active {
    opacity: 1;
    border-color: var(--accent-red);
}
.lang-btn:hover {
    opacity: 1;
}

/* ==========================================
   20. TOAST NOTIFICATION (FEEDBACK ELITE)
========================================== */
.custom-toast {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: rgba(9, 9, 12, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    z-index: 100000;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.custom-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
}

.toast-icon svg {
    width: 22px;
    height: 22px;
}

.toast-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.toast-content h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.toast-content p {
    color: #a1a1aa;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
}

/* ==========================================
   21. FEEDBACK DE DIGITAÇÃO NO FORMULÁRIO
========================================== */
#form-contato input:focus, 
#form-contato textarea:focus {
    border-color: var(--accent-red) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 20px rgba(254, 32, 46, 0.15);
    transition: all 0.3s ease;
}

/* ==========================================
   19. RESPONSIVIDADE (MOBILE & TABLET - ABSOLUTO)
   (Bloqueio de largura e reajuste total)
========================================== */
@media (max-width: 1024px) {
    .nav-left, .nav-right { display: none; }
    .menu-btn { display: flex; z-index: 1001; }
    .nav-container { padding: 0 20px; height: 64px; }
    .lang-switch { position: absolute; top: 20px; right: 60px; margin-right: 0; display: flex; }
    
    .hero { flex-direction: column; padding-top: 120px; gap: 40px; text-align: center; }
    .hero-content { max-width: 100%; flex: 0 1 auto; }
    .hero-content h1 { font-size: 3rem; }
    .hero-mockups { width: 100%; justify-content: center; flex: 0 1 auto; margin-top: 20px; }
    
    .bento-grid, .projects-grid { grid-template-columns: 1fr; gap: 20px; }
    .bento-card.span-2 { grid-column: span 1; }
    .brand-layout { gap: 20px; }
    .color-accordion { flex-direction: column; height: 500px; }
}

@media (max-width: 768px) {
    html { scroll-padding-top: 80px; }
    body { overflow-x: hidden; width: 100vw; } /* Bloqueio absoluto de scroll horizontal */
    
    /* 1. Correção do Título Hero que explodiu a tela */
    .hero-content h1 { font-size: 2.2rem; line-height: 1.2; }
    .hero-content h1 span { white-space: normal !important; display: block; margin-bottom: 5px; }
    .hero-content p { font-size: 1rem; padding: 0 10px; margin-top: 15px; }
    
    /* 2. Mockups Ajustados */
    .hero-mockups { transform: scale(0.9); margin-top: 0; }
    .mockup-composition { max-width: 100%; right: 0; left: -5%; }
    .phone { right: -5%; width: 75%; }
    
    /* 3. Margens e Paddings Globais */
    .projects-container, .methodology-container, .brand-container, .cta-container, .footer-container { padding: 0 20px; }
    .clients-container { padding: 0; }
    .clients-text { padding: 0 20px; text-align: center; }
    
    /* 4. Tipografia de Títulos Reduzida */
    .clients-text h2, .projects-header h2, .methodology-header h2, .brand-container h2, .cta-content h2 { font-size: 2rem; text-align: center; letter-spacing: -0.5px; }
    .bg-text { display: none; }
    
    /* 5. Cards Menores e Compactos */
    .bento-card, .brand-bento-card, .project-card { padding: 30px 20px; border-radius: 20px; }
    .bento-number { font-size: 7rem; right: -5px; bottom: -15px; }
    .bento-card h3, .project-info h3 { font-size: 1.4rem; }
    
    /* 6. Identidade Visual Ajustada */
    .typo-visual { border-right: none; padding-right: 0; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 30px; }
    .typo-visual h3 { font-size: 3rem; }
    .typo-bg-text { font-size: 12rem; opacity: 0.1; right: -10%; bottom: -5%; }
    .typo-weights-list { padding-left: 0; margin-top: 20px; }
    .color-accordion { height: auto; display: flex; flex-direction: column; gap: 12px; }
    .color-pillar { padding: 20px; height: 70px; justify-content: center; }
    .pillar-content { flex-direction: row; justify-content: space-between; align-items: center; opacity: 1; transform: none; }
    .c-name { font-size: 1.2rem; }
    
    /* 7. Call To Action e Formulário */
    .cta-visual { display: none; }
    .cta-content { align-items: center; text-align: center; width: 100%; }
    #form-contato { max-width: 100%; width: 100%; align-items: center; }
    #form-contato input, #form-contato textarea { font-size: 16px !important; padding: 14px; width: 100%; }
    .cta-circle-btn { width: 100% !important; padding: 16px !important; border-radius: 12px !important; }
    
    /* 8. Footer */
    .footer-top { flex-direction: column; gap: 20px; align-items: center; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .custom-toast { bottom: 20px; right: 20px; left: 20px; padding: 16px 20px; }
    
    /* 9. Componentes do Case Study */
    .project-hero-container { flex-direction: column; gap: 40px; padding: 0 20px; }
    .ph-content h1 { font-size: 2.8rem; }
    .journey-card, .journey-card.reverse { flex-direction: column; }
    .jc-content { padding: 40px 20px; }
    .jc-content h3 { font-size: 2rem; }
    .jc-mockup { padding: 40px 20px; border-left: none; border-right: none; border-top: 1px solid rgba(255,255,255,0.05); }
    .jc-mockup img, .journey-card.reverse .jc-mockup img { width: 110%; transform: none !important; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.8rem; }
    .clients-text h2, .projects-header h2, .methodology-header h2, .brand-container h2, .cta-content h2 { font-size: 1.7rem; }
    .bento-card p, .project-info p, .typo-visual p { font-size: 0.95rem; }
}