/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* PALETA DE CORES AZUL TECH MELHORADA */
    --primary: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --primary-soft: #eff6ff;
    
    --secondary: #1e293b;
    --secondary-light: #334155;
    
    --accent: #06b6d4;
    --accent-light: #22d3ee;
    
    --light: #f8fafc;
    --white: #ffffff;
    --dark: #0f172a;
    
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --gray-dark: #475569;
    
    --text-primary: var(--dark);
    
    /* BRANCO FIXO: para texto sobre fundos sempre coloridos (botões, badges, hero, footer) - NUNCA muda no modo escuro */
    --white-fixed: #ffffff;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --shadow-sm: 0 2px 6px 0 rgba(30, 41, 59, 0.08);
    --shadow: 0 8px 16px -2px rgba(30, 41, 59, 0.14);
    --shadow-md: 0 14px 24px -4px rgba(30, 41, 59, 0.16);
    --shadow-lg: 0 26px 34px -6px rgba(30, 41, 59, 0.18);
    --shadow-xl: 0 32px 60px -12px rgba(30, 41, 59, 0.32);
    
    --radius-sm: 4px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* ESCALA DE ESPAÇAMENTO */
    --space-2xs: 8px;
    --space-xs: 12px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-2xl: 64px;
    --space-3xl: 96px;
    
    /* TIPOGRAFIA FLUIDA (escala suavemente entre mobile e desktop) */
    --fs-hero: clamp(2.25rem, 1.6rem + 3vw, 4rem);
    --fs-section-title: clamp(1.75rem, 1.45rem + 1.3vw, 3rem);
    --fs-section-subtitle: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
    --fs-card-title: clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem);
    
    /* PADDING VERTICAL DE SEÇÃO (substitui salto abrupto por breakpoint) */
    --section-padding-y: clamp(60px, 8vw, 100px);
    
    /* NAVBAR (translúcida, adapta no modo escuro) */
    --navbar-bg: rgba(255, 255, 255, 0.95);
}

/* ===== MODO ESCURO ===== */
[data-theme="dark"] {
    --white: #1e293b;
    --light: #0f172a;
    --gray-light: #334155;
    --gray: #94a3b8;
    --gray-dark: #cbd5e1;
    --primary-soft: rgba(59, 130, 246, 0.16);
    --text-primary: #f1f5f9;
    --navbar-bg: rgba(15, 23, 42, 0.9);
}

[data-theme="dark"] body {
    background-color: var(--light);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    transition: background-color 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--light);
}

/* SCROLLBAR CUSTOMIZADA (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-full);
    border: 2px solid var(--light);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    overflow-x: hidden;
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
}

section {
    padding: var(--section-padding-y) 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* PRELOADER */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%);
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-logo .logo-circle {
    width: 64px;
    height: 64px;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: preloaderPulse 1.1s ease-in-out infinite;
}

.preloader-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.12); opacity: 0.75; }
}

/* SKIP LINK: invisível até receber foco por teclado (Tab) */
.skip-link {
    position: absolute;
    top: -60px;
    left: 16px;
    z-index: 3000;
    padding: 12px 20px;
    background: var(--primary);
    color: var(--white-fixed);
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 16px;
}

.btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    font-family: var(--font-body);
    letter-spacing: 0.2px;
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(3);
        opacity: 0;
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white-fixed);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(59, 130, 246, 0.45);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary-soft);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white-fixed);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-block {
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white-fixed);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

.section-title {
    position: relative;
    font-size: var(--fs-section-title);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    line-height: 1.1;
    font-weight: 800;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    margin: 18px auto 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--radius-full);
}

.section-subtitle {
    font-size: var(--fs-section-subtitle);
    color: var(--gray);
    line-height: 1.6;
}

/* ===== NAVBAR MELHORADA ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    backdrop-filter: none;
    box-shadow: none;
    transition: background-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.navbar.is-scrolled {
    background-color: var(--navbar-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

/* No topo (hero escuro), textos e ícones do menu ficam claros - só desktop, o painel mobile já tem fundo branco próprio */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
    
    .nav-menu {
        display: flex;
    }
    
    .navbar:not(.is-scrolled) .nav-link {
        color: rgba(255, 255, 255, 0.85);
    }
    
    .navbar:not(.is-scrolled) .nav-link i {
        color: rgba(255, 255, 255, 0.6);
    }
    
    .navbar:not(.is-scrolled) .nav-link:hover {
        color: var(--white-fixed);
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .navbar:not(.is-scrolled) .nav-link:hover i {
        color: var(--white-fixed);
    }
    
    .navbar:not(.is-scrolled) .nav-link.active {
        color: var(--white-fixed);
    }
    
    .navbar:not(.is-scrolled) .nav-link.active i {
        color: var(--primary-light);
    }
}

.navbar:not(.is-scrolled) .logo-main {
    color: var(--white-fixed);
}

.navbar:not(.is-scrolled) .logo-sub {
    color: rgba(255, 255, 255, 0.6);
}

.navbar:not(.is-scrolled) .menu-toggle .menu-bar {
    background-color: var(--white-fixed);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 30px;
}

/* LOGO MELHORADA */
.logo-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-circle {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-fixed);
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 22px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-sub {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    color: var(--gray);
    letter-spacing: 1px;
}

/* MENU MELHORADO */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
    min-width: 0;
    justify-content: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 14px;
    color: var(--gray-dark);
    position: relative;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link i {
    font-size: 12px;
    color: var(--gray);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
    background-color: var(--primary-soft);
}

.nav-link:hover i {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-link.active i {
    color: var(--primary);
}

.link-indicator {
    position: absolute;
    bottom: 2px;
    left: 14px;
    right: 14px;
    width: auto;
    height: 2px;
    background-color: var(--primary);
    border-radius: var(--radius-full);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-link.active .link-indicator {
    transform: scaleX(1);
}

/* AÇÃO NO MENU */
.nav-action {
    margin-left: 20px;
}

.btn-nav-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--success);
    color: var(--white-fixed);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-nav-action:hover {
    background-color: #0da271;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* MENU MOBILE */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-bar {
    width: 24px;
    height: 2px;
    background-color: var(--dark);
    transition: var(--transition);
    border-radius: var(--radius-full);
}

.menu-toggle.active .menu-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .menu-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* LINHA DE PROGRESSO */
.nav-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%);
    color: var(--white-fixed);
    overflow: hidden;
    padding-top: 80px;
}

/* ONDA DE TRANSIÇÃO: substitui o corte reto entre a hero escura e o resto do site */
.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 2;
    fill: var(--white);
    pointer-events: none;
}

/* Padrão de grade sutil - visual "tech" próprio */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(96, 165, 250, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 40%, transparent 90%);
    mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 40%, transparent 90%);
    z-index: 1;
}

/* CAMPO DE ESTRELAS - duas camadas cintilando em ritmos diferentes */
.hero-stars {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.hero-stars::before,
.hero-stars::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 2px;
    background: transparent;
    border-radius: 50%;
    animation: starTwinkle 4s ease-in-out infinite;
}

.hero-stars::before {
    box-shadow: 1309px 228px #fff, 51px 563px #fff, 501px 457px #fff, 285px 209px #fff, 1385px 1116px #fff, 178px 864px #fff, 65px 61px #fff, 191px 447px #fff, 476px 1034px #fff, 1232px 54px #fff, 1149px 407px #fff, 1466px 1116px #fff, 859px 451px #fff, 919px 569px #fff, 1657px 13px #fff, 1554px 326px #fff, 1429px 865px #fff, 696px 569px #fff, 318px 440px #fff, 1960px 689px #fff, 209px 189px #fff, 778px 198px #fff, 735px 704px #fff, 1236px 541px #fff, 1652px 88px #fff, 1494px 940px #fff, 1098px 255px #fff, 1992px 775px #fff, 161px 1130px #fff, 600px 740px #fff, 1182px 393px #fff, 1442px 142px #fff, 93px 466px #fff, 1583px 592px #fff, 163px 476px #fff, 1774px 206px #fff, 778px 569px #fff, 928px 747px #fff, 333px 758px #fff, 727px 429px #fff, 1372px 546px #fff, 1437px 146px #fff, 1247px 350px #fff, 1093px 501px #fff, 334px 946px #fff, 777px 552px #fff, 1895px 1140px #fff, 449px 664px #fff, 1726px 114px #fff, 469px 65px #fff, 1648px 646px #fff, 821px 548px #fff, 135px 432px #fff, 1870px 1161px #fff, 1794px 644px #fff, 435px 1022px #fff, 810px 939px #fff, 292px 542px #fff, 285px 505px #fff, 1525px 1149px #fff, 1103px 538px #fff, 1529px 1197px #fff, 877px 1195px #fff, 817px 741px #fff, 449px 283px #fff, 1043px 1010px #fff, 186px 96px #fff, 1763px 224px #fff, 313px 327px #fff, 1622px 864px #fff, 1221px 130px #fff, 788px 781px #fff, 1220px 958px #fff, 1083px 514px #fff, 1988px 1133px #fff, 1762px 23px #fff, 1393px 234px #fff, 1396px 1099px #fff, 1537px 546px #fff, 1574px 696px #fff, 228px 601px #fff, 890px 323px #fff, 929px 6px #fff, 1953px 539px #fff, 1990px 1025px #fff, 1560px 365px #fff, 1039px 217px #fff, 1782px 611px #fff, 1723px 1039px #fff, 1247px 407px #fff, 313px 765px #fff, 1561px 330px #fff, 1104px 1086px #fff, 1881px 1px #fff, 1226px 663px #fff, 1000px 39px #fff, 229px 743px #fff, 1799px 629px #fff, 490px 118px #fff, 493px 1161px #fff, 1939px 161px #fff, 175px 995px #fff, 1671px 141px #fff, 1557px 1090px #fff, 1568px 257px #fff, 262px 973px #fff, 1939px 1125px #fff, 338px 542px #fff, 1080px 866px #fff, 1975px 433px #fff, 1902px 1104px #fff, 1546px 411px #fff, 1460px 638px #fff, 817px 764px #fff, 897px 1059px #fff, 924px 247px #fff, 507px 460px #fff, 131px 692px #fff, 43px 1134px #fff, 471px 451px #fff;
    animation-duration: 3.5s;
}

.hero-stars::after {
    width: 3px;
    height: 3px;
    box-shadow: 14px 145px #fff, 1449px 120px #fff, 468px 138px #fff, 1854px 64px #fff, 1760px 676px #fff, 145px 1052px #fff, 487px 570px #fff, 1370px 994px #fff, 438px 1104px #fff, 270px 1169px #fff, 1180px 968px #fff, 497px 968px #fff, 1653px 833px #fff, 389px 193px #fff, 198px 882px #fff, 725px 867px #fff, 841px 956px #fff, 1769px 110px #fff, 1379px 201px #fff, 124px 824px #fff, 1491px 694px #fff, 1639px 223px #fff, 509px 392px #fff, 389px 1098px #fff, 918px 287px #fff, 864px 375px #fff, 570px 947px #fff, 511px 154px #fff, 907px 1127px #fff, 200px 103px #fff, 1335px 1107px #fff, 1712px 30px #fff, 1984px 191px #fff, 1897px 484px #fff, 340px 832px #fff, 994px 985px #fff, 437px 821px #fff, 1848px 120px #fff, 337px 776px #fff, 4px 799px #fff, 543px 931px #fff, 584px 866px #fff, 1426px 1138px #fff, 1355px 996px #fff, 317px 388px #fff, 607px 445px #fff, 1983px 119px #fff, 1186px 1110px #fff, 124px 642px #fff, 117px 102px #fff, 1196px 976px #fff, 1029px 1087px #fff, 322px 116px #fff, 1967px 1040px #fff, 164px 380px #fff, 140px 139px #fff, 1382px 481px #fff, 826px 245px #fff, 1928px 1166px #fff, 504px 1185px #fff;
    animation-duration: 5s;
    animation-delay: 1.2s;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
}

/* AURORA - blobs de cor da marca se movendo devagar */
.hero-aurora {
    position: absolute;
    inset: -15%;
    z-index: 1;
    filter: blur(70px);
    pointer-events: none;
}

.hero-aurora span {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
}

.hero-aurora span:nth-child(1) {
    width: 480px;
    height: 480px;
    background: var(--primary);
    top: 8%;
    left: 2%;
    animation: auroraMove1 19s ease-in-out infinite;
}

.hero-aurora span:nth-child(2) {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: 45%;
    right: 5%;
    opacity: 0.3;
    animation: auroraMove2 23s ease-in-out infinite;
}

.hero-aurora span:nth-child(3) {
    width: 360px;
    height: 360px;
    background: var(--primary-light);
    bottom: 0%;
    left: 28%;
    opacity: 0.25;
    animation: auroraMove3 21s ease-in-out infinite;
}

@keyframes auroraMove1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(70px, 50px) scale(1.15); }
}

@keyframes auroraMove2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-60px, 40px) scale(1.1); }
}

@keyframes auroraMove3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -60px) scale(1.2); }
}

/* ESTRELA CADENTE - cruza a tela de vez em quando, sem exagero */
.hero-shooting-stars {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.hero-shooting-stars span {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    filter: drop-shadow(0 0 6px #fff);
    opacity: 0;
}

.hero-shooting-stars span::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 110px;
    height: 1px;
    background: linear-gradient(90deg, #fff, transparent);
    transform: translateY(-50%);
}

.hero-shooting-stars span:nth-child(1) {
    top: 12%;
    left: 78%;
    animation: shootingStar 9s linear infinite;
    animation-delay: 2s;
}

.hero-shooting-stars span:nth-child(2) {
    top: 55%;
    left: 20%;
    animation: shootingStar 12s linear infinite;
    animation-delay: 7s;
}

@keyframes shootingStar {
    0% { transform: translate(0, 0) rotate(-35deg); opacity: 0; }
    1% { opacity: 1; }
    7% { transform: translate(-280px, 195px) rotate(-35deg); opacity: 0; }
    100% { transform: translate(-280px, 195px) rotate(-35deg); opacity: 0; }
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 40px;
}

.hero-content {
    max-width: 800px;
}

/* ===== MOCKUP DE EDITOR DE CÓDIGO (decorativo, desktop) ===== */
.hero-mockup {
    display: none;
}

.code-window {
    background: #1a1b26;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
    overflow: hidden;
    animation: mockupFloat 6s ease-in-out infinite;
    transition: box-shadow 0.4s ease;
}

.code-window:hover {
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(96, 165, 250, 0.5), 0 0 40px rgba(59, 130, 246, 0.35);
}

@keyframes mockupFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.code-window-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-window-bar .dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.code-window-title {
    margin-left: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-body);
}

.code-window-body {
    padding: 22px 24px;
    min-height: 300px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 13.5px;
    line-height: 1.8;
}

.code-line {
    display: flex;
    white-space: pre;
}

.code-line .line-number {
    width: 22px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.22);
    user-select: none;
}

.token-tag { color: #f472b6; }
.token-text { color: #e2e8f0; }
.token-sel { color: #fbbf24; }
.token-punct { color: rgba(255, 255, 255, 0.5); }
.token-prop { color: #7dd3fc; }
.token-value { color: #34d399; }
.token-keyword { color: #c084fc; }
.token-func { color: #60a5fa; }

.code-cursor {
    display: inline-block;
    width: 7px;
    height: 15px;
    background: var(--primary-light);
    margin-left: 1px;
    animation: cursorBlink 0.9s step-end infinite;
    vertical-align: middle;
}

@keyframes cursorBlink {
    50% { opacity: 0; }
}

/* MINI CÓDIGO - versão compacta pro mobile/tablet (o mockup grande é só desktop) */
.hero-mini-code {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    margin-bottom: 24px;
    background: rgba(26, 27, 38, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    backdrop-filter: blur(6px);
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 13px;
}

.mini-code-dots {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.mini-code-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.mini-code-dots span:nth-child(1) { background: #ff5f56; }
.mini-code-dots span:nth-child(2) { background: #ffbd2e; }
.mini-code-dots span:nth-child(3) { background: #27c93f; }

.hero-mini-code code {
    color: rgba(255, 255, 255, 0.65);
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1.05fr 0.95fr;
    }
    
    .hero-mockup {
        display: block;
    }
    
    .hero-mini-code {
        display: none;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 30px;
    color: var(--white-fixed);
}

.hero-title {
    font-size: var(--fs-hero);
    margin-bottom: var(--space-md);
    line-height: 1.1;
}

.hero-subtitle {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-bottom: 8px;
    font-weight: 400;
}

.hero-highlight {
    display: block;
    color: var(--accent-light);
    background: linear-gradient(90deg, var(--accent-light), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #cbd5e1;
    max-width: 600px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary-light);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    z-index: 3;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.scroll-text {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% { height: 0; opacity: 0; }
    50% { height: 40px; opacity: 1; }
    100% { height: 0; opacity: 0; }
}

/* ===== ABOUT SECTION ===== */
.about {
    position: relative;
    overflow: hidden;
    background-image: radial-gradient(rgba(59, 130, 246, 0.09) 1.5px, transparent 1.5px);
    background-size: 26px 26px;
    background-position: -13px -13px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.profile-image {
    position: relative;
}

/* Blob orgânico atrás da foto, na paleta da aurora do hero */
.profile-image::before {
    content: '';
    position: absolute;
    inset: -30px;
    z-index: 0;
    background:
        radial-gradient(circle at 25% 20%, rgba(59, 130, 246, 0.28), transparent 55%),
        radial-gradient(circle at 80% 75%, rgba(6, 182, 212, 0.22), transparent 55%);
    filter: blur(30px);
    border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
    animation: blobMorph 12s ease-in-out infinite;
}

@keyframes blobMorph {
    0%, 100% { border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%; }
    50% { border-radius: 55% 45% 40% 60% / 55% 60% 40% 45%; }
}

.image-frame {
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.image-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    aspect-ratio: 1;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary-soft), var(--light));
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 4rem;
}

.image-placeholder p {
    margin-top: 16px;
    font-size: 1rem;
    color: var(--gray);
    text-align: center;
}

.image-badge {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white-fixed);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow);
}

.about-intro h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.about-intro p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray);
    margin-bottom: 40px;
}

.skills-section h4,
.tech-stack h4 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.skill-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 20px 20px 24px;
    background-color: var(--light);
    border-radius: var(--radius);
    transition: var(--transition);
    border: 1px solid transparent;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.skill-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow), 0 14px 28px rgba(59, 130, 246, 0.15);
    background-color: var(--white);
}

.skill-card:hover::before {
    transform: scaleY(1);
}

.skill-card .skill-number {
    position: absolute;
    top: 10px;
    right: 14px;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--gray-light);
    line-height: 1;
    transition: var(--transition);
    z-index: 0;
}

.skill-card:hover .skill-number {
    color: var(--primary-soft);
}

.skill-icon {
    position: relative;
    z-index: 1;
    width: 50px;
    height: 50px;
    background-color: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.skill-info {
    position: relative;
    z-index: 1;
}

.skill-info h5 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.skill-info p {
    font-size: 14px;
    color: var(--gray);
}

.tech-stack {
    margin-top: 40px;
}

.tech-stack h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.tech-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    background-color: var(--white);
    border-radius: var(--radius);
    transition: var(--transition);
    width: 90px;
    text-align: center;
    border: 1px solid var(--gray-light);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.tech-icon:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
    background-color: var(--primary-soft);
}

.tech-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: var(--transition);
}

.tech-icon:hover .tech-logo {
    transform: scale(1.15) rotate(-4deg);
    filter: brightness(1.1);
}

.tech-icon span {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-dark);
    transition: var(--transition);
}

.tech-icon:hover span {
    color: var(--primary);
}

.tech-icon {
    position: relative;
}

.tech-icon::before {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: var(--dark);
    color: var(--white-fixed);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 10;
    pointer-events: none;
}

.tech-icon:hover::before {
    opacity: 1;
    visibility: visible;
    bottom: -25px;
    transform: translateX(-50%) scale(1);
}

.tech-icon::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    border: 5px solid transparent;
    border-bottom-color: var(--dark);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
}

.tech-icon:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -17px;
    transform: translateX(-50%) scale(1);
}

/* ===== SERVICES SECTION ===== */
.services {
    background-color: var(--light);
    background-image: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.07) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background-color: var(--white);
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-light);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-icon {
    width: 52px;
    height: 52px;
    background-color: var(--primary-soft);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.service-features {
    flex-grow: 1;
    margin-bottom: 24px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--gray-dark);
    font-size: 14px;
}

.service-features li i {
    color: var(--success);
    font-size: 13px;
    flex-shrink: 0;
}

.btn-service {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 13px 18px;
    background-color: var(--primary);
    color: var(--white-fixed);
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    width: 100%;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
    text-align: left;
}

.btn-service i {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.btn-service:hover {
    background-color: var(--primary-dark);
    transform: translateX(4px);
}

.btn-service:hover i {
    transform: translateX(4px);
}


.service-whatsapp-link:not(.btn) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px;
    color: var(--gray);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
}

.service-whatsapp-link:not(.btn) i {
    color: #25D366;
    font-size: 16px;
}

.service-whatsapp-link:not(.btn):hover {
    color: var(--text-primary);
    background-color: var(--primary-soft);
}

/* ===== PARCEIROS SECTION ===== */
.partners {
    position: relative;
    background: linear-gradient(180deg, var(--white) 0%, var(--primary-soft) 50%, var(--white) 100%);
    overflow: hidden;
}

.partners::before,
.partners::after {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.partners::before {
    top: -120px;
    left: -100px;
}

.partners::after {
    bottom: -120px;
    right: -100px;
}

.partners .container {
    position: relative;
    z-index: 1;
}

.partners-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin: var(--space-md) auto var(--space-xl);
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-full);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
    overflow: hidden;
    animation: badgePulse 3s ease-in-out infinite;
}

.partners-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    animation: badgeShine 3.5s ease-in-out infinite;
}

@keyframes badgeShine {
    0% {
        left: -60%;
    }
    45%, 100% {
        left: 130%;
    }
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
    }
    50% {
        box-shadow: 0 8px 30px rgba(59, 130, 246, 0.45);
    }
}

.partners-badge-number {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
    font-weight: 800;
    color: var(--white-fixed);
    line-height: 1;
}

.partners-badge-text {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-align: left;
    max-width: 220px;
    line-height: 1.3;
}

.partners-carousel {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.carousel-arrow {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-full);
    border: 1px solid var(--gray-light);
    background: var(--white);
    color: var(--primary);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
    transition: var(--transition);
}

.carousel-arrow:hover {
    background: var(--primary);
    color: var(--white-fixed);
    border-color: var(--primary);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
    transform: scale(1.05);
}

.carousel-arrow:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.partners-track {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-auto-flow: column;
    grid-auto-columns: 210px;
    gap: var(--space-md);
    overflow-x: auto;
    padding: 4px 4px 12px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
}

.partners-track::-webkit-scrollbar {
    display: none;
}

.partners-track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.partners-track.is-dragging .partner-logo {
    pointer-events: none;
}

/* BARRA DE PROGRESSO DO CARROSSEL */
.partners-progress {
    max-width: 240px;
    height: 4px;
    margin: var(--space-sm) auto 0;
    background: var(--gray-light);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.partners-progress-bar {
    height: 100%;
    width: 6%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-full);
    transition: width 0.2s ease;
}

.partner-logo {
    width: 100%;
    min-width: 0;
    scroll-snap-align: start;
}

/* LOGO CARD (legenda sempre visível, não depende de hover) */
.logo-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 172px;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-sm) var(--space-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-2xs);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    transition: var(--transition);
    overflow: hidden;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(59, 130, 246, 0.2);
    border-color: var(--primary-light);
}

.logo-container:hover::before {
    transform: scaleX(1);
}

/* IMAGEM DO LOGO: sempre colorido, leve destaque no hover */
.logo-img {
    max-width: 100%;
    max-height: 88px;
    object-fit: contain;
    transition: var(--transition);
}

.logo-container:hover .logo-img {
    transform: scale(1.05);
}

/* LEGENDA (nome + serviço) - sempre visível, essencial no mobile */
.logo-overlay {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    text-align: center;
    padding-top: var(--space-2xs);
    margin-top: auto;
    border-top: 1px solid var(--gray-light);
}

.logo-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.logo-service {
    display: none;
}

/* FALLBACK PARA IMAGENS QUE NÃO CARREGAM (ver initImageFallbacks no script.js) */
.img-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary-light);
    border-radius: var(--radius-sm);
}

.img-fallback.logo-img {
    width: 100%;
    height: 88px;
    max-height: 88px;
    font-size: 30px;
}

.img-fallback.tech-logo {
    width: 28px;
    height: 28px;
    font-size: 13px;
    border-radius: 6px;
}

.img-fallback.img-fallback-round {
    border-radius: var(--radius-full);
}

.img-fallback.img-fallback-tall {
    width: 100%;
    aspect-ratio: 1 / 1;
    font-size: 2.5rem;
    border-radius: var(--radius-lg);
}

.project-image.img-fallback-bg {
    background: linear-gradient(135deg, var(--primary-soft), var(--light));
}

.partners-cta {
    text-align: center;
    margin-top: var(--space-2xl);
    padding: var(--space-xl);
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.partners-cta p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.partners-cta p i {
    color: var(--primary);
    margin-right: 10px;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--light);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary);
    color: var(--white-fixed);
    transform: translateY(-2px);
}

.filter-btn i {
    font-size: 14px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.project-card {
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition), opacity 0.3s ease, transform 0.3s ease;
    height: 100%;
}

.project-card.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

.project-card.visible {
    opacity: 1;
    transform: scale(1);
    position: relative;
    visibility: visible;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 16px 32px rgba(59, 130, 246, 0.14);
    border-color: var(--primary-light);
}

.project-image {
    position: relative;
    height: 250px;
    background-color: var(--light);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.project-image img,
.project-image[style*="background-image"] {
    transition: transform 0.5s ease;
}

.project-card:hover .project-image[style*="background-image"] {
    transform: scale(1.08);
}

.project-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 5px 14px;
    background-color: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    color: var(--white-fixed);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

/* TOUCH (sem mouse): o overlay de hover nunca apareceria, então fica sempre visível
   como uma faixa no rodapé da imagem, sem esconder a arte inteira */
@media (hover: none) {
    .project-overlay {
        opacity: 1;
        top: auto;
        height: auto;
        align-items: flex-end;
        justify-content: center;
        padding-bottom: 16px;
        background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, transparent 65%);
    }
    
    .project-view {
        padding: 10px 20px;
        font-size: 14px;
    }
}

.project-view {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--primary);
    color: var(--white-fixed);
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
}

.project-view i {
    transition: transform 0.25s ease;
}

.project-view:hover i {
    transform: translate(2px, -2px);
}

.project-view:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 3rem;
}

.project-placeholder p {
    margin-top: 16px;
    font-size: 1rem;
    color: var(--gray);
    text-align: center;
}

.project-info {
    padding: 28px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.project-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background-color: var(--primary-soft);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.project-category::before {
    content: '\f02b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
}

.project-date {
    font-size: 14px;
    color: var(--gray);
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    transition: color 0.25s ease;
}

.project-card:hover .project-info h3 {
    color: var(--primary);
}

.project-info > p {
    color: var(--gray);
    margin-bottom: 16px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    padding: 4px 12px;
    background-color: transparent;
    border: 1px solid var(--gray-light);
    color: var(--gray-dark);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--gray-light);
}

.project-link {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: var(--primary);
    color: var(--white-fixed);
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.project-link:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* FAIXA HORIZONTAL: PRÓXIMO PROJETO (abaixo do grid) */
.portfolio-add-banner {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    padding: var(--space-lg) var(--space-xl);
    background: linear-gradient(135deg, var(--light), var(--primary-soft));
    border: 2px dashed var(--primary-light);
    border-radius: var(--radius-lg);
}

.portfolio-add-banner .add-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background-color: var(--primary);
    color: var(--white-fixed);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.portfolio-add-text {
    flex: 1;
    min-width: 200px;
}

.portfolio-add-text h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.portfolio-add-text p {
    color: var(--gray);
    line-height: 1.5;
}

.portfolio-add-banner .btn {
    flex-shrink: 0;
}

.portfolio-cta {
    text-align: center;
    padding: 40px;
    background-color: var(--light);
    border-radius: var(--radius-lg);
    margin-top: 40px;
}

.portfolio-cta p {
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

/* ACOMPANHE MAIS (GITHUB / BEHANCE) */
.follow-more {
    text-align: center;
    margin-top: var(--space-lg);
}

.follow-more-text {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.follow-more-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.follow-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    border: 1px solid var(--gray-light);
    background: var(--white);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.follow-link i {
    font-size: 18px;
}

.follow-link-github:hover {
    background: #181717;
    border-color: #181717;
    color: var(--white-fixed);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(24, 23, 23, 0.25);
}

.follow-link-behance:hover {
    background: #1769ff;
    border-color: #1769ff;
    color: var(--white-fixed);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(23, 105, 255, 0.25);
}

/* ===== SEÇÃO DE DEPOIMENTOS ===== */
.testimonials {
    background-color: var(--light);
    background-image: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.07) 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.testimonial-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    right: 16px;
    font-family: Georgia, serif;
    font-size: 90px;
    line-height: 1;
    color: var(--primary-soft);
    z-index: 0;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 16px 32px rgba(59, 130, 246, 0.16);
    border-color: var(--primary-light);
}

.testimonial-stars,
.testimonial-text,
.testimonial-author {
    position: relative;
    z-index: 1;
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 14px;
    margin-bottom: var(--space-sm);
    display: flex;
    gap: 3px;
}

.testimonial-text {
    color: var(--gray-dark);
    line-height: 1.7;
    font-size: 15px;
    font-style: italic;
    flex: 1;
    margin-bottom: var(--space-lg);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: var(--space-md);
    border-top: 1px solid var(--gray-light);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    object-fit: cover;
    background-color: var(--primary-soft);
    border: 2px solid var(--primary-soft);
    flex-shrink: 0;
}

.testimonial-author-info h4 {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.testimonial-author-info span {
    font-size: 13px;
    color: var(--gray);
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== FAQ SECTION ===== */
.faq {
    background-color: var(--light);
    background-image: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.07) 100%);
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-question i {
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 24px 20px;
}

.faq-answer p {
    color: var(--gray-dark);
    line-height: 1.7;
}

.form-note-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info h3,
.contact-form h3 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.form-description {
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

.contact-method:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 16px 32px rgba(59, 130, 246, 0.16);
}

.method-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white-fixed);
    flex-shrink: 0;
}

.whatsapp .method-icon {
    background-color: #25D366;
}

.instagram .method-icon {
    background: linear-gradient(45deg, #405DE6, #E1306C);
}

.contact-method .method-icon {
    background-color: var(--primary);
}

.method-content {
    flex-grow: 1;
}

.method-content h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.method-content p {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.method-status,
.method-sub {
    font-size: 14px;
    color: var(--gray);
}

.online {
    color: var(--success);
    font-size: 10px;
    margin-right: 6px;
}

.method-action {
    color: var(--gray);
    font-size: 1.2rem;
    transition: var(--transition);
}

.contact-method:hover .method-action {
    color: var(--primary);
    transform: translateX(4px);
}

.contact-social h4 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    background-color: var(--light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gray);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary);
    color: var(--white-fixed);
    transform: translateY(-4px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.field-error {
    display: none;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 13px;
    color: var(--danger);
    font-weight: 500;
}

.field-error:not(:empty) {
    display: flex;
}

.field-error::before {
    content: '\f06a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: var(--danger);
}

.form-group.has-error input:focus,
.form-group.has-error select:focus,
.form-group.has-error textarea:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 16px;
    transition: var(--transition);
    background-color: var(--white);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    margin-top: 30px;
}

.form-note {
    margin-top: 12px;
    font-size: 14px;
    color: var(--gray);
    text-align: center;
}

.form-note i {
    margin-right: 6px;
    color: var(--success);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background-color: #25D366;
    color: white;
    border-radius: var(--radius-full);
    padding: 16px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.float-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.whatsapp-float i {
    font-size: 1.8rem;
}

.float-text {
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white-fixed);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 998;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(59, 130, 246, 0.45);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark);
    color: var(--white-fixed);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .logo-circle {
    background: linear-gradient(135deg, var(--white), var(--primary-light));
    color: var(--text-primary);
}

.footer-brand .logo-main {
    color: var(--white-fixed);
}

.footer-brand .logo-sub {
    color: #94a3b8;
}

.footer-description {
    margin-top: 20px;
    color: #94a3b8;
    line-height: 1.6;
    font-size: 15px;
}

.footer-links,
.footer-services,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white-fixed);
}

.footer-links a,
.footer-services a {
    color: #94a3b8;
    font-size: 15px;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    font-size: 15px;
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-contact-link:hover {
    color: var(--primary-light);
}

.footer-contact-link i {
    font-size: 1.2rem;
    color: var(--primary-light);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright p {
    color: #94a3b8;
    font-size: 14px;
}

.made-with {
    margin-top: 4px;
    color: #cbd5e1;
}

.made-with i {
    color: #ef4444;
    margin: 0 4px;
}

.legal-link {
    color: #94a3b8;
    font-size: 14px;
    margin-left: 20px;
    transition: var(--transition);
}

.legal-link:hover {
    color: var(--primary-light);
}

/* ==========================================================================
   RESPONSIVIDADE - APENAS CORREÇÕES NECESSÁRIAS
   ========================================================================== */

/* MOBILE: até 768px */
@media (max-width: 768px) {
    /* NAVBAR MOBILE */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 100px 20px 30px;
        transition: var(--transition);
        box-shadow: var(--shadow-xl);
        overflow-y: auto;
        gap: 0;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        background: none;
        box-shadow: none;
        padding: 0;
        gap: 0;
        width: 100%;
        margin-bottom: 30px;
    }
    
    .nav-link {
        padding: 15px 20px;
        border-radius: var(--radius);
        margin-bottom: 5px;
        justify-content: flex-start;
    }
    
    .link-indicator {
        display: none;
    }
    
    .nav-action {
        margin: 20px 0 0;
        width: 100%;
    }
    
    .btn-nav-action {
        width: 100%;
        justify-content: center;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    /* HERO MOBILE */
    .hero {
        min-height: auto;
        padding: 100px 0 80px;
    }
    
    .hero-wave {
        height: 50px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-mini-code {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 20px;
        justify-content: center;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* ABOUT MOBILE */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .about-image {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .skills-section h4 {
        text-align: center;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-icons {
        justify-content: center;
    }
    
    /* SERVICES MOBILE */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* PARTNERS MOBILE */
    .partners-track {
        grid-auto-columns: 180px;
    }
    
    .logo-container {
        min-height: 150px;
        padding: var(--space-sm) var(--space-2xs) var(--space-2xs);
    }
    
    .logo-img {
        max-height: 70px;
    }
    
    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    /* PORTFOLIO MOBILE */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        height: 200px;
    }
    
    .portfolio-add-banner {
        flex-direction: column;
        text-align: center;
        padding: var(--space-lg);
    }
    
    .portfolio-add-banner .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* PRICING MOBILE */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    /* TESTIMONIALS MOBILE */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .pricing-featured,
    .pricing-featured.animate-in {
        grid-column: auto;
        max-width: none;
        order: -1;
        transform: none !important;
    }
    
    .pricing-featured:hover,
    .pricing-featured.animate-in:hover {
        transform: translateY(-4px) !important;
    }
    
    /* CONTACT MOBILE */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info > h3,
    .contact-social h4 {
        text-align: center;
    }
    
    .contact-social .social-links {
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* FOOTER MOBILE */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-brand .logo-brand {
        justify-content: center;
    }
    
    .footer-links,
    .footer-services,
    .footer-contact {
        align-items: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    /* ELEMENTOS FLUTUANTES MOBILE */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        padding: 12px;
    }
    
    .float-text {
        display: none;
    }
    
    .back-to-top {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    /* GARANTIR QUE IMAGENS NÃO DESAPAREÇAM */
    .profile-photo {
        width: 100%;
        height: auto;
    }
    
    .project-image[style*="background-image"] {
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }
    
    .logo-img,
    .tech-logo {
        max-width: 100%;
        height: auto;
    }
    
    /* ÁREA DE TOQUE MÍNIMA (acessibilidade mobile) */
    .btn,
    .nav-link,
    .filter-btn,
    .project-view,
    .btn-service,
    .contact-method {
        min-height: 44px;
        min-width: 44px;
    }
    
    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* MENU COMPACTO: evita quebra/estouro em telas "desktop" estreitas */
@media (min-width: 769px) and (max-width: 1200px) {
    .nav-menu {
        gap: 16px;
    }
    
    .nav-link {
        padding: 10px 14px;
    }
    
    .nav-link span {
        display: none;
    }
    
    .btn-nav-action span {
        display: none;
    }
}

/* TABLET: 769px - 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Evita colunas espremidas em tablets (foto+texto / info+form) */
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .about-image {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-featured {
        grid-column: span 2;
        max-width: 380px;
        margin: 0 auto;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* TELAS MUITO PEQUENAS: até 480px */
@media (max-width: 480px) {
    .partners-badge {
        flex-direction: column;
        text-align: center;
        gap: 4px;
        padding: 16px 24px;
    }
    
    .partners-badge-text {
        text-align: center;
        max-width: 200px;
    }
    
    .partners-track {
        grid-auto-columns: 150px;
    }
    
    .logo-container {
        min-height: 135px;
        padding: var(--space-xs) 8px 8px;
    }
    
    .logo-img {
        max-height: 60px;
    }
    
    .tech-icon {
        width: 80px;
        padding: 10px;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
}

/* DESKTOP: acima de 768px - menu normal */
/* ===== ANIMAÇÃO DE ENTRADA AO SCROLL (usada pelo IntersectionObserver no JS) ===== */
.service-card,
.skill-card,
.tech-icon,
.partner-logo,
.testimonial-card,
.pricing-card,
.faq-item,
.contact-method,
.footer-links,
.footer-services,
.footer-contact {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.pricing-featured.animate-in {
    transform: scale(1.04) !important;
}

.pricing-featured.animate-in:hover {
    transform: scale(1.04) translateY(-6px) !important;
}

/* CASCATA: cards de depoimentos e preços entram em sequência */
.testimonial-card:nth-child(2).animate-in,
.pricing-card:nth-child(2).animate-in { transition-delay: 0.1s; }
.testimonial-card:nth-child(3).animate-in,
.pricing-card:nth-child(3).animate-in { transition-delay: 0.2s; }

/* CASCATA: itens do FAQ entram um depois do outro */
.faq-item:nth-child(2).animate-in { transition-delay: 0.08s; }
.faq-item:nth-child(3).animate-in { transition-delay: 0.16s; }
.faq-item:nth-child(4).animate-in { transition-delay: 0.24s; }
.faq-item:nth-child(5).animate-in { transition-delay: 0.32s; }

/* CASCATA: métodos de contato */
.contact-method:nth-child(2).animate-in { transition-delay: 0.08s; }
.contact-method:nth-child(3).animate-in { transition-delay: 0.16s; }
.contact-method:nth-child(4).animate-in { transition-delay: 0.24s; }

/* CASCATA: colunas do rodapé */
.footer-services.animate-in { transition-delay: 0.1s; }
.footer-contact.animate-in { transition-delay: 0.2s; }

/* CASCATA: cards de parceiros entram em sequência, não todos juntos */
.partner-logo:nth-child(6n+1).animate-in { transition-delay: 0s; }
.partner-logo:nth-child(6n+2).animate-in { transition-delay: 0.06s; }
.partner-logo:nth-child(6n+3).animate-in { transition-delay: 0.12s; }
.partner-logo:nth-child(6n+4).animate-in { transition-delay: 0.18s; }
.partner-logo:nth-child(6n+5).animate-in { transition-delay: 0.24s; }
.partner-logo:nth-child(6n+6).animate-in { transition-delay: 0.3s; }

/* project-card usa seu próprio sistema de visibilidade (filtro de portfólio) */
.project-card {
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, translate 0.3s ease;
}

/* ===== TOGGLE DE TEMA CLARO/ESCURO ===== */
/* ===== MENU DE OPÇÕES (IDIOMA + TEMA) ===== */
.nav-options {
    position: relative;
    margin-left: 12px;
    flex-shrink: 0;
}

.nav-options-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid var(--gray-light);
    background: var(--white);
    color: var(--gray-dark);
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
}

.nav-options-toggle:hover,
.nav-options-toggle[aria-expanded="true"] {
    border-color: var(--primary-light);
    color: var(--primary);
    background: var(--primary-soft);
}

.nav-options-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 1100;
    animation: navOptionsIn 0.18s ease;
}

.nav-options-menu[hidden] {
    display: none;
}

@keyframes navOptionsIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-options-item {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: none;
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.nav-options-item:hover {
    background-color: var(--primary-soft);
    color: var(--primary);
}

.nav-options-item i {
    width: 18px;
    text-align: center;
    color: var(--gray);
}

.nav-options-item:hover i {
    color: var(--primary);
}

.lang-flag {
    font-size: 16px;
    line-height: 1;
}

.theme-icon-sun {
    display: none;
}

[data-theme="dark"] .theme-icon-moon {
    display: none;
}

[data-theme="dark"] .theme-icon-sun {
    display: inline-block;
    color: #fbbf24;
}

/* ===== BOTÃO COMPARTILHAR ===== */
.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: var(--space-sm);
    padding: 10px 18px;
    background: transparent;
    border: 1px solid var(--secondary-light);
    color: var(--white-fixed);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-share:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ===== SEÇÃO DE PREÇOS ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    align-items: stretch;
    margin-top: var(--space-lg);
}

.pricing-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-lg);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 16px 32px rgba(59, 130, 246, 0.16);
    border-color: var(--primary-light);
}

.pricing-featured {
    border: 2px solid var(--primary);
    box-shadow: 0 16px 36px rgba(59, 130, 246, 0.2);
    transform: scale(1.04);
    z-index: 1;
}

.pricing-featured:hover {
    transform: scale(1.04) translateY(-6px);
    border-color: var(--primary);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white-fixed);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
    white-space: nowrap;
}

.pricing-badge::before {
    content: '\f005';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.pricing-header i {
    width: 60px;
    height: 60px;
    margin: 0 auto 14px;
    background-color: var(--primary-soft);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.pricing-featured .pricing-header i {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white-fixed);
}

.pricing-header h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.pricing-value {
    text-align: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--gray-light);
}

.price-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.price-note {
    font-size: 13px;
    color: var(--gray);
}

.pricing-features {
    list-style: none;
    flex: 1;
    margin-bottom: var(--space-lg);
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--gray-light);
    color: var(--gray-dark);
    font-size: 14px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: var(--success);
    margin-top: 3px;
    flex-shrink: 0;
}

.pricing-disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    margin-top: var(--space-xl);
    color: var(--gray);
    font-size: 14px;
}

.pricing-disclaimer i {
    color: var(--primary);
    flex-shrink: 0;
}

/* ===== MODAL DE CASE COMPLETO ===== */
/* ===== TELA DE ESCOLHA DE IDIOMA ===== */
.lang-gate {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lang-gate[hidden] {
    display: none;
}

.lang-gate-backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%);
}

.lang-gate-content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-lg);
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-xl);
    animation: langGateIn 0.35s ease;
}

@keyframes langGateIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.lang-gate-logo {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.lang-gate-logo .logo-circle {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.lang-gate-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lang-gate-content h2 {
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

.lang-gate-divider {
    color: var(--gray);
    font-weight: 400;
}

.lang-gate-options {
    display: flex;
    gap: 12px;
}

.lang-gate-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.lang-gate-option:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
    transform: translateY(-3px);
}

.lang-gate-flag {
    font-size: 32px;
    line-height: 1;
}

.lang-gate-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}


.case-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.case-modal[hidden] {
    display: none;
}

.case-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
}

.case-modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: caseModalIn 0.25s ease;
}

@keyframes caseModalIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.case-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--light);
    color: var(--gray-dark);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.case-modal-close:hover {
    background: var(--primary);
    color: var(--white-fixed);
}

.case-modal-body {
    padding: var(--space-xl);
}

.case-modal-tag {
    display: inline-block;
    padding: 4px 14px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.case-modal-body h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.case-modal-block {
    margin-bottom: var(--space-md);
}

.case-modal-block h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.case-modal-block p {
    color: var(--gray-dark);
    line-height: 1.6;
    font-size: 15px;
}

.case-modal-body .btn {
    margin-top: var(--space-sm);
}

.project-link-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.project-link-outline:hover {
    background: var(--primary);
    color: var(--white-fixed);
}

/* ===== RESPEITAR PREFERÊNCIA DE MOVIMENTO REDUZIDO ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .service-card,
    .project-card,
    .skill-card,
    .tech-icon {
        opacity: 1;
        transform: none;
    }
}
