/*
  Theme Name:  Lucas Ediitor Portfolio
  Description: Portfólio pessoal de Lucas Santos — Editor e Storymaker.
  Version:     1.7 (correções de otimização e acessibilidade)
  Author:      Lucas Santos
*/


/* ==========================================================================
   1. VARIÁVEIS GLOBAIS (Design Tokens)
   ========================================================================== */

:root {
    /* --- Cores --- */
    --color-bg:           #080B12;
    --color-bg-card:      rgba(255,255,255,0.03);
    --color-bg-card-alt:  rgba(255,255,255,0.04);
    --color-bg-hover:     rgba(255,255,255,0.05);
    --color-border:       rgba(255,255,255,0.08);
    --color-border-subtle: rgba(255,255,255,0.08);
    --color-border-mid:   rgba(255,255,255,0.12);

    --color-white:        #ffffff;
    --color-text-primary: #ffffff;
    --color-text-muted:   #B8C1CC;
    --color-text-dim:     #B8C1CC;
    --color-text-faint:   #8A94A6;
    --color-text-dark:    #5C6472;

    --color-blue:         #1E90FF;
    --color-blue-light:   #3EA0FF;
    --color-blue-bright:  #5CB3FF;
    --color-green:        #10b981;
    --color-green-fill:   rgba(128, 255, 174, 0.5);
    --color-green-social: #25D366;
    --color-instagram:    #E1306C;
    --color-email:        #0078d4;

    --color-glow: rgba(30,144,255,0.08);
    --color-bg-secondary: #111827;

    /* --- Fundo em gradiente (identidade premium) --- */
    --gradient-bg: linear-gradient(180deg, #080B12 0%, #0B1220 50%, #111827 100%);

    /* --- Sombras (baseadas no tom de fundo, nunca preto puro) --- */
    --shadow-blue-sm: 0 0 15px rgba(30,144,255,0.35);
    --shadow-card:    0 20px 60px rgba(0, 0, 0, 0.35);
    --shadow-card-lg: 0 20px 60px rgba(0, 0, 0, 0.35);

    /* --- Fontes --- */
    --font-main: 'Inter', sans-serif;

    /* --- Espaçamentos base --- */
    --space-xs:  8px;
    --space-sm:  15px;
    --space-md:  20px;
    --space-lg:  40px;
    --space-xl:  60px;
    --space-2xl: 100px;
    --space-3xl: 120px;

    /* --- Bordas arredondadas --- */
    --radius-sm:   8px;
    --radius-md:   12px;
    --radius-lg:   20px;
    --radius-xl:   25px;
    --radius-2xl:  40px;
    --radius-full: 50px;
    --radius-circle: 50%;

    /* --- Transições --- */
    --transition-fast:   all 0.3s ease;
    --transition-base:   all 0.4s ease;
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}


/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    background: var(--gradient-bg);
    background-attachment: fixed;
    color:            var(--color-text-primary);
    font-family:      var(--font-main);
    margin:  0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul,
ol {
    list-style: none;
    margin:  0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

p {
    margin: 0;
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}


/* ==========================================================================
   3. UTILITÁRIOS
   ========================================================================== */

.text-gradient {
    background: linear-gradient(to right, var(--color-blue), var(--color-blue-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(30,144,255, 0.4));
}

.highlight-blue {
    color: var(--color-blue);
    transition: var(--transition-base);
}


/* ==========================================================================
   4. HEADER — Cabeçalho fixo
   ========================================================================== */

.site-header {
    display:         flex;
    justify-content: space-between;
    align-items:     center;
    padding: 20px clamp(16px, 4vw, 20px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(8, 11, 18, 0.9);
    backdrop-filter: blur(10px);
    width: 100%;
    -webkit-backdrop-filter: blur(10px);
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    contain: layout paint style;
    isolation: isolate;
}

.site-logo {
    display:     flex;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    transition: var(--transition-fast);
    min-width: 0;
}

.site-logo__photo-wrap {
    position: relative;
    display:  flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo__photo {
    width:  65px;
    height: 65px;
    border-radius: var(--radius-circle);
    object-fit: cover;
    border: 3px solid var(--color-blue);
    box-shadow: var(--shadow-blue-sm);
    transition: var(--transition-base);
}

.site-logo__status {
    position: absolute;
    bottom: 2px;
    right:  2px;
    width:  14px;
    height: 14px;
    background-color: #00ff00;
    border: 2px solid var(--color-bg);
    border-radius: var(--radius-circle);
}

.site-logo__text {
    display:        flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
}

.site-logo__name {
    font-size:      clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight:    900;
    color:          var(--color-white);
    letter-spacing: -1px;
    text-transform: uppercase;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.site-logo:hover .site-logo__photo {
    transform:  scale(1.1) rotate(5deg);
    box-shadow: 0 0 25px rgba(30,144,255, 0.6);
    border-color: var(--color-white);
}

.site-logo:hover .site-logo__name {
    color: var(--color-blue);
}

.site-nav__list {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.site-nav__link {
    color:          var(--color-text-muted);
    font-size:      0.95rem;
    font-weight:    500;
    transition: var(--transition-fast);
}

.site-nav__link:hover {
    color: var(--color-white);
}

.btn-cta {
    display: inline-block;
    padding: 12px 24px;
    background: var(--color-blue);
    color:            var(--color-white);
    border: 2px solid var(--color-blue);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.btn-cta:hover {
    background-color: var(--color-blue-light);
    color:            var(--color-white);
    border-color:     var(--color-blue-light);
    box-shadow:       0 0 20px rgba(30,144,255, 0.4);
    transform:        scale(1.05);
}

/* --------------------------------------------------------------------------
   MENU MOBILE — Botão hambúrguer e painel de navegação
   Adicionado porque a navegação simplesmente desaparecia (display: none)
   abaixo de 768px sem nenhum substituto, deixando o site sem forma de
   navegar pelas seções em celulares/tablets.
   -------------------------------------------------------------------------- */

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--color-border-mid);
    border-radius: var(--radius-sm);
    cursor: pointer;
    flex-shrink: 0;
    order: 3;
    transition: var(--transition-fast);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    border-color: var(--color-blue);
    background: rgba(30,144,255, 0.08);
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.nav-toggle__icon {
    position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
    content: '';
    position: absolute;
    left: 0;
}

.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after  { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__icon {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
    top: 0;
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .site-nav {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        height: 100dvh;
        width: min(78vw, 320px);
        padding: 100px 30px 40px;
        background: rgba(8, 11, 18, 0.98);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-left: 1px solid var(--color-border-mid);
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9998;
        overflow-y: auto;
    }

    .site-nav.is-open {
        transform: translateX(0);
    }

    .site-nav__list {
        flex-direction: column;
        gap: 6px;
    }

    .site-nav__link {
        display: block;
        padding: 14px 4px;
        font-size: 1.05rem;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 9997;
    }

    .nav-overlay.is-open {
        display: block;
    }

    .site-logo__photo {
        width:  50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .btn-cta {
        padding: 10px 16px;
        font-size: 0.75rem;
    }
}


/* ==========================================================================
   5. HERO — Seção de apresentação principal
   ========================================================================== */

.hero {
    text-align: center;
    padding: 20px 0 var(--space-2xl);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 0 !important;
    width: 100%;
}

.hero__bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -2;
    object-fit: cover;
}

.hero__bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background:
        radial-gradient(ellipse 70% 60% at 50% 42%, rgba(8, 11, 18, 0.78) 0%, rgba(8, 11, 18, 0.55) 45%, rgba(8, 11, 18, 0.15) 75%, transparent 100%),
        linear-gradient(180deg, rgba(8, 11, 18, 0.55) 0%, rgba(8, 11, 18, 0.25) 22%, rgba(8, 11, 18, 0.25) 68%, rgba(8, 11, 18, 0.6) 100%),
        linear-gradient(90deg, rgba(8, 11, 18, 0.35) 0%, transparent 15%, transparent 85%, rgba(8, 11, 18, 0.35) 100%);
    z-index: -1;
}

.line-tag {
    display:         flex;
    align-items:     center;
    justify-content: center;
    gap:    15px;
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.line-tag::before,
.line-tag::after {
    content: '';
    height: 1px;
    width:  35px;
    transition: var(--transition-base);
}

.line-tag::before {
    background: linear-gradient(to right, transparent, var(--color-blue));
}

.line-tag::after {
    background: linear-gradient(to left, transparent, var(--color-blue));
}

.line-tag span {
    color:          var(--color-text-faint);
    font-size:      0.85rem;
    font-weight:    500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition-base);
}

.line-tag--interactive:hover span {
    color:          var(--color-white);
    text-shadow:    0 0 10px rgba(255, 255, 255, 0.5);
    letter-spacing: 3px;
}

.line-tag--interactive:hover::before {
    background: linear-gradient(to right, transparent, var(--color-white));
    width: 50px;
}

.line-tag--interactive:hover::after {
    background: linear-gradient(to left, transparent, var(--color-white));
    width: 50px;
}

.hero__text-wrap {
    position: relative;
    z-index:  1;
    text-align: center;
    margin: var(--space-xl) 0;
    padding: 0 20px;
    max-width: 100%;
}

.hero__text-wrap::after {
    content: '';
    position: absolute;
    top:  50%;
    left: 50%;
    width:  min(900px, 100vw);
    height: min(500px, 80vw);
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(8, 11, 18, 0.35) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero__text-wrap::before {
    content: '';
    position: absolute;
    top:  50%;
    left: 50%;
    width:  0;
    height: 0;
    background: radial-gradient(circle, rgba(30,144,255, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 1s ease;
    z-index: -1;
    border-radius: var(--radius-circle);
    pointer-events: none;
}

.hero__text-wrap:hover::before {
    width:  min(600px, 90vw);
    height: min(400px, 60vw);
}

.hero__name {
    display: block;
    font-size:      clamp(2.2rem, 8vw, 4.5rem);
    font-weight:    900;
    text-transform: uppercase;
    letter-spacing: -3px;
    line-height:    0.9;
    background: linear-gradient(to right, #ffffff 20%, var(--color-blue) 50%, #ffffff 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 18px rgba(0, 0, 0, 0.55));
    transition: all 0.8s cubic-bezier(0.15, 0.83, 0.66, 1);
    cursor: default;
    word-break: break-word;
}

.hero__name:hover {
    background-position: -200% center;
    transform:      scale(1.03);
    letter-spacing: -1px;
    filter:         drop-shadow(0 0 15px rgba(30,144,255, 0.3));
}

.hero__role {
    display: block;
    font-size:      clamp(1rem, 3vw, 1.6rem);
    font-weight:    700;
    color:          var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-top: 15px;
    position:   relative;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
    transition: var(--transition-base);
    cursor:     default;
}

.hero__role::after {
    content: '';
    position:  absolute;
    bottom:    -5px;
    left:      50%;
    width:     0;
    height:    2px;
    background: var(--color-blue);
    transition: all 0.6s cubic-bezier(0.15, 0.83, 0.66, 1);
    transform:  translateX(-50%);
}

.hero__role:hover {
    color:          var(--color-white);
    letter-spacing: 8px;
}

.hero__role:hover::after {
    width: 100px;
}

.hero__description {
    display:   block;
    max-width: 1100px;
    margin:    25px auto 0;
    padding:   20px;
    border-radius: 15px;
    font-size:      clamp(0.8rem, 2vw, 0.95rem);
    font-weight:    500;
    line-height:    1.7;
    letter-spacing: 0.8px;
    text-align:     center;
    color:       var(--color-text-faint);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.hero__description span {
    display:     inline-block;
    white-space: nowrap;
}

.hero__description:hover {
    color:     var(--color-white);
    transform: translateY(-5px) scale(1.02);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4),
                 0 0 40px rgba(30,144,255, 0.2);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
}

.hero__stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 35px;
    padding: 0 20px;
}

.hero__stats li {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero__stats li:hover {
    transform: translateY(-3px) scale(1.03);
}

.hero__stats li:hover .hero__stats-number {
    animation: none;
    text-shadow:
        0 0 10px rgba(30,144,255, 0.70),
        0 0 22px rgba(30,144,255, 0.40),
        0 0 40px rgba(30,144,255, 0.18);
}

.hero__stats-number {
    font-size:   clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 900;
    color:       var(--color-blue);
    text-shadow: var(--shadow-blue-sm);
    line-height: 1;
    animation: number-glow 4s ease-in-out infinite;
}

.hero__stats-label {
    font-size:      0.75rem;
    color:          var(--color-text-faint);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top:     6px;
    text-align: center;
}

@keyframes number-glow {
    0%, 100% {
        text-shadow: 0 0 8px rgba(30,144,255, 0.15),
                     0 0 16px rgba(30,144,255, 0.08);
    }
    50% {
        text-shadow: 0 0 14px rgba(30,144,255, 0.45),
                     0 0 28px rgba(30,144,255, 0.20),
                     0 0 42px rgba(30,144,255, 0.08);
    }
}

.stat-card__number {
    font-size:   clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 900;
    color:       var(--color-blue);
    text-shadow: var(--shadow-blue-sm);
    white-space: nowrap;
    min-width: 110px;
    flex-shrink: 0;
}

.stat-card {
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
                background  0.3s ease,
                border-color 0.3s ease,
                box-shadow   0.3s ease;
}

.stat-card:hover {
    background:   transparent;
    border-color: rgba(30,144,255, 0.2);
    transform:    translateX(6px);
}

.stat-card:hover .stat-card__number {
    text-shadow:
        0 0 10px rgba(30,144,255, 0.70),
        0 0 22px rgba(30,144,255, 0.40);
}

.hero__scroll-hint {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    cursor: default;
    user-select: none;
}

.hero__scroll-hint:hover {
    opacity: 1;
}

.hero__scroll-label {
    font-size:      0.7rem;
    font-weight:    600;
    color:          var(--color-text-faint);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero__scroll-arrow {
    color: var(--color-blue);
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
    .hero__scroll-arrow { animation: none; }
}

@media (max-width: 1200px) {
    .hero__name { letter-spacing: -2px; }
}

@media (max-width: 992px) {
    .hero__stats { gap: 28px; }
}

@media (max-width: 768px) {
    .hero {
        padding: 15px 0 30px;
    }

    .hero__name { letter-spacing: -1px; }
    .hero__role { letter-spacing: 3px; margin-top: 10px; }

    .hero__text-wrap {
        margin: var(--space-md) 0;
    }

    .hero__description {
        padding: 0 20px;
        margin-top: 15px;
    }

    .hero__description span {
        white-space: normal;
        display: inline;
    }

    .hero__stats {
        gap: 20px;
        margin-top: 22px;
    }

    .hero__scroll-hint {
        bottom: 18px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 10px 0 22px;
    }

    .hero__text-wrap {
        margin: var(--space-sm) 0;
    }

    .hero__description {
        margin-top: 12px;
        padding: 12px;
    }

    .hero__stats {
        gap: 16px;
        margin-top: 18px;
    }

    .hero__stats li {
        min-width: 80px;
    }

    .hero__scroll-hint {
        bottom: 12px;
    }
}

@media (max-height: 700px) and (max-width: 768px) {
    .hero {
        min-height: 100vh;
        min-height: 100svh;
        min-height: 100dvh;
        padding: 12px 0 16px;
        gap: 0;
    }

    .site-logo__photo { width: 46px; height: 46px; }

    .hero__text-wrap { margin: 10px 0; }

    .hero__description { display: none; }

    .hero__stats { margin-top: 14px; gap: 14px; }

    .hero__scroll-hint { bottom: 8px; }
}


/* ==========================================================================
   6. SOCIAL PROOF — Criadores parceiros
   ========================================================================== */

.social-proof {
    padding: var(--space-xl) 20px;
    background: var(--gradient-bg);
    text-align: center;
}

.social-proof__title {
    font-size:      0.8rem;
    font-weight:    800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: var(--space-sm);
    background: linear-gradient(to right, #666 20%, var(--color-blue) 40%, var(--color-blue) 60%, #666 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(30,144,255, 0.2));
    animation: shine-flow 4s linear infinite;
    cursor: default;
    transition: var(--transition-fast);
}

.social-proof__title:hover {
    filter:         drop-shadow(0 0 10px rgba(30,144,255, 0.6));
    letter-spacing: 5px;
}

@keyframes shine-flow {
    to { background-position: 200% center; }
}

.creators-grid {
    display:         flex;
    justify-content: center;
    flex-wrap:       wrap;
    gap: var(--space-lg);
}

.creator-item {
    display:        flex;
    flex-direction: column;
    align-items:    center;
    text-decoration: none;
    transition: var(--transition-fast);
}

.creator-item__photo {
    width:  70px;
    height: 70px;
    border-radius: var(--radius-circle);
    object-fit: cover;
    filter:  grayscale(100%);
    border:  2px solid transparent;
    transition: var(--transition-fast);
}

.creator-item__name {
    color:       var(--color-text-dark);
    font-size:   0.8rem;
    margin-top:  10px;
    transition:  var(--transition-fast);
}

.creator-item:hover,
.creator-item--active {
    transform: translateY(-5px);
}

.creator-item:hover .creator-item__photo,
.creator-item--active .creator-item__photo {
    filter:       grayscale(0%);
    border-color: var(--color-blue);
}

.creator-item:hover .creator-item__name,
.creator-item--active .creator-item__name {
    color: var(--color-white);
}

@media (max-width: 600px) {
    .creators-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        justify-items: center;
        align-items: start;
        gap: 24px 10px;
        row-gap: 28px;
    }

    .creator-item {
        width: 100%;
        min-width: 0;
    }

    .creator-item__name {
        text-align: center;
        white-space: normal;
        word-break: break-word;
        max-width: 90px;
    }
}

@media (max-width: 480px) {
    .creators-grid {
        gap: 18px 8px;
        row-gap: 22px;
    }
    .creator-item__photo { width: 56px; height: 56px; }

    .creator-item__name {
        max-width: 78px;
        font-size: 0.75rem;
    }
}


/* ==========================================================================
   7. ABOUT — Seção Sobre com serviços e estatísticas
   ========================================================================== */

.about {
    padding: var(--space-2xl) 20px;
    background: radial-gradient(circle at 10% 50%, var(--color-glow) 0%, transparent 50%);
    border-top:    1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin: var(--space-xl) auto;
}

.about__grid {
    display:     flex;
    align-items: stretch;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.about__services {
    flex: 0 0 55%;
    min-width: 0;
}

.services-grid {
    display:               grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows:    repeat(3, 1fr);
    gap: 8px;
    height: 100%;
}

.service-card {
    display:        flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    background:    rgba(255, 255, 255, 0.03);
    border:        1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    backdrop-filter: blur(20px);
    transition: var(--transition-fast);
    height: 100%;
    min-width: 0;
}

.service-card:hover {
    background:    rgba(255, 255, 255, 0.06);
    border-color:  var(--color-blue);
    transform:     translateY(-5px);
}

.service-card__icon {
    font-size: 1.2rem;
    background:    rgba(30,144,255, 0.1);
    width:  36px;
    height: 36px;
    display:     flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.service-card__text h3 {
    font-size:   0.88rem;
    font-weight: 700;
    color:       var(--color-white);
    margin-bottom: 3px;
    overflow-wrap: break-word;
}

.service-card__text p {
    font-size:   0.8rem;
    color:       rgba(255, 255, 255, 0.5);
    line-height: 1.3;
    overflow-wrap: break-word;
}

.about__stats-col {
    flex: 1;
    display:        flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding-left: 40px;
    border-left: 1px solid rgba(255,255,255,0.06);
    min-width: 0;
}

.about__title {
    font-size:   clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    color:       var(--color-white);
    line-height: 1.15;
    text-align:  left;
    margin-bottom: 12px;
    transition: var(--transition-base);
    cursor: default;
    max-width: 100%;
}

.about__title:hover {
    transform:   translateX(10px);
    text-shadow: 0 0 20px rgba(30,144,255, 0.4);
}

.stats-list {
    display:        flex;
    flex-direction: column;
    gap: 0;
}

.stat-card {
    display:         flex;
    justify-content: flex-start;
    align-items:     center;
    gap: 18px;
    padding: 22px 0;
    background:    transparent;
    border:        none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
    flex-wrap: wrap;
}

.stat-card:last-child {
    border-bottom: none;
}

.stat-card__label {
    color:          var(--color-white);
    font-size:      0.78rem;
    font-weight:    700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.5;
    line-height: 1.4;
}

@media (max-width: 1200px) {
    .about__stats-col { padding-left: 24px; }
}

@media (max-width: 992px) {
    .about__grid {
        flex-direction: column;
        align-items:    center;
        text-align:     center;
        gap: var(--space-lg);
    }

    .about__services { flex: 1 1 100%; width: 100%; order: 2; }

    .about__stats-col {
        padding-left: 0;
        border-left: none;
        width: 100%;
        order: 1;
    }

    .about__title {
        text-align: center;
    }

    .stat-card {
        flex-direction: column;
        gap: 10px;
        transform: none !important;
        justify-content: center;
    }

    .line-tag { justify-content: center !important; }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }
}


/* ==========================================================================
   8. PORTFOLIO — Grade de trabalhos
   ========================================================================== */

.portfolio__subtitle-wrapper {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

.portfolio__header--visible .portfolio__subtitle-wrapper {
    opacity: 1;
    transform: translateY(0);
}

.portfolio__subtitle-highlight {
    color: var(--color-blue);
    font-weight: 600;
    text-shadow:
        0 0 8px rgba(30,144,255, 0.25),
        0 0 16px rgba(30,144,255, 0.12);
    transition: all 0.3s ease;
    position: relative;
}

.portfolio__subtitle:hover .portfolio__subtitle-highlight {
    text-shadow:
        0 0 12px rgba(30,144,255, 0.35),
        0 0 24px rgba(30,144,255, 0.18);
    color: var(--color-blue-light);
}

.portfolio__subtitle-line {
    width: 120px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--color-blue) 50%,
        transparent 100%
    );
    margin: 15px auto 0;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition:
        opacity 0.6s ease 0.5s,
        transform 0.6s ease 0.5s;
}

.portfolio__header--visible .portfolio__subtitle-line {
    opacity: 1;
    transform: scaleX(1);
}

@keyframes subtitleFadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio__header--visible .portfolio__subtitle-wrapper {
    animation: subtitleFadeInUp 0.65s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

@media (prefers-reduced-motion: reduce) {
    .portfolio__subtitle-wrapper,
    .portfolio__subtitle-line,
    .portfolio__subtitle-highlight {
        transition: none;
        animation: none;
    }

    .portfolio__header--visible .portfolio__subtitle-wrapper {
        opacity: 1;
        transform: translateY(0);
    }

    .portfolio__header--visible .portfolio__subtitle-line {
        opacity: 1;
        transform: scaleX(1);
    }
}

.portfolio {
    padding:    var(--space-2xl) 20px;
    text-align: center;
}

.portfolio__title {
    font-size:      clamp(2.1rem, 6vw, 4.2rem);
    font-weight:    900;
    color:          var(--color-white);
    text-transform: uppercase;
    letter-spacing: -1.5px;
    line-height:    1.08;
    margin: 10px 0 18px;
    display:        flex;
    flex-direction: column;
    align-items:    center;
    gap:            4px;
}

.portfolio__title-line {
    display: block;
    opacity:   0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio__title-line:nth-child(2) {
    transition-delay: 0.15s;
}

.portfolio__header--visible .portfolio__title-line {
    opacity:   1;
    transform: translateY(0);
}

.portfolio__subtitle {
    color:          var(--color-text-faint);
    font-size:      clamp(0.85rem, 1.6vw, 1rem);
    font-weight:    400;
    letter-spacing: 0.6px;
    margin-top:     2px;
    margin-bottom:  52px;
    opacity:   0;
    transform: translateY(12px);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
    padding: 0 15px;
}

.portfolio__header--visible .portfolio__subtitle {
    opacity:   1;
    transform: translateY(0);
}

.line-tag--portfolio::before {
    background: linear-gradient(to right, transparent, var(--color-blue));
    width: 60px;
}

.line-tag--portfolio::after {
    background: linear-gradient(to left, transparent, var(--color-blue));
    width: 60px;
}

.line-tag--portfolio span {
    font-size:      0.78rem;
    font-weight:    700;
    letter-spacing: 3.5px;
    color:          var(--color-blue);
}

.line-tag--portfolio:hover span {
    color:          var(--color-white);
    letter-spacing: 4.5px;
}

.text-gradient--portfolio {
    background: linear-gradient(to right, var(--color-blue), var(--color-blue-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(30,144,255, 0.35))
            drop-shadow(0 0 25px rgba(30,144,255, 0.15));
}

.portfolio__grid {
    display:               grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: var(--space-lg) auto 0;
}

/* --------------------------------------------------------------------------
   OTIMIZAÇÃO DE PERFORMANCE (DESKTOP) — .work-card
   Motivo: com vários cards renderizados simultaneamente no desktop, o
   backdrop-filter com blur alto + will-change permanente + transition:all
   forçavam o navegador a recompor/recalcular camadas pesadas a cada frame,
   gerando lag no cursor e no scroll ao passar o mouse pela galeria.
   Nada de layout, tamanho, posição ou design foi alterado — apenas o custo
   de renderização das mesmas propriedades visuais.
   -------------------------------------------------------------------------- */
.work-card {
    position: relative;
    height:        clamp(320px, 42vw, 500px);
    border-radius: 45px;
    overflow:      hidden;
    cursor:     pointer;
    background: rgba(255,255,255,0.03);
    border:     1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    will-change: transform;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
                border-color 0.35s ease,
                box-shadow 0.35s ease;
    container-type: inline-size;
    container-name: work-card;
}

.work-card__video {
    position: absolute;
    top:  0;
    left: 0;
    z-index: 1;
    width:  100%;
    height: 100%;
    object-fit:    cover;
    border-radius: 45px;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.work-card__fallback {
    position: absolute;
    top:  0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 45px;
    transition: var(--transition-base);
}

.work-card__fallback-icon {
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.work-card:hover .work-card__fallback-icon {
    opacity: 1;
    transform: scale(1.15);
}

.work-card__info {
    position: absolute;
    bottom:   clamp(16px, 3.6vw, 26px);
    bottom:   clamp(16px, 10cqw, 26px);
    left:     0;
    z-index:  10;
    width:      100%;
    padding:    clamp(6px, 1.6vw, 10px) clamp(18px, 5vw, 26px) 0;
    padding:    clamp(6px, 4.4cqw, 10px) clamp(18px, 13.8cqw, 26px) 0;
    text-align: center;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(7px, 1.6vw, 10px);
    gap: clamp(7px, 4.4cqw, 10px);
}

.work-card__badge {
    display:     inline-flex;
    align-items: center;
    gap: clamp(4px, 1vw, 6px);
    gap: clamp(4px, 2.6cqw, 6px);
    padding:       clamp(3px, 0.8vw, 5px) clamp(8px, 2.2vw, 12px);
    padding:       clamp(3px, 2.2cqw, 5px) clamp(8px, 6cqw, 12px);
    background:    rgba(30,144,255, 0.9);
    border-radius: var(--radius-full);
    box-shadow:    0 4px 15px rgba(8, 11, 18, 0.5);
}

.work-card__badge svg {
    width:  clamp(9px, 1.6vw, 11px);
    width:  clamp(9px, 4.2cqw, 11px);
    height: clamp(9px, 1.6vw, 11px);
    height: clamp(9px, 4.2cqw, 11px);
    flex-shrink: 0;
}

.work-card__badge span {
    color:          var(--color-white);
    font-size:      clamp(0.5rem, 1.3vw, 0.62rem);
    font-size:      clamp(0.5rem, 3.6cqw, 0.62rem);
    font-weight:    700;
    white-space:    nowrap;
}

.work-card__client-name {
    color:          var(--color-white);
    font-size:      clamp(0.85rem, 2.1vw, 1.32rem);
    font-size:      clamp(0.85rem, 5.8cqw, 1.32rem);
    font-weight:    900;
    letter-spacing: -0.3px;
    text-transform: uppercase;
    text-shadow:    0px 4px 12px rgba(8, 11, 18, 0.9),
                    0px 0px 5px rgba(8, 11, 18, 0.5);
    overflow-wrap: break-word;
    line-height: 1.18;
}

.work-card__style {
    display:        block;
    color:          var(--color-blue-light);
    font-size:      clamp(0.48rem, 1.05vw, 0.58rem);
    font-size:      clamp(0.48rem, 2.9cqw, 0.58rem);
    font-weight:    600;
    text-transform: uppercase;
    letter-spacing: clamp(1.2px, 0.45vw, 2px);
    letter-spacing: clamp(1.2px, 1.2cqw, 2px);
    opacity:        0.85;
    margin-top:     2px;
    text-shadow:    0px 2px 8px rgba(8, 11, 18, 0.8);
}

.work-card__hint {
    position: absolute;
    top:   clamp(12px, 2.6vw, 20px);
    top:   clamp(12px, 7cqw, 20px);
    right: clamp(12px, 2.6vw, 20px);
    right: clamp(12px, 7cqw, 20px);
    z-index: 20;
    display: inline-flex;
    align-items: center;
    padding: clamp(3px, 0.7vw, 5px) clamp(7px, 1.6vw, 11px);
    padding: clamp(3px, 1.9cqw, 5px) clamp(7px, 4.4cqw, 11px);
    background:    rgba(30,144,255, 0.8);
    border-radius: var(--radius-full);
    opacity:   0;
    transform: translateY(-10px);
    transition: var(--transition-base);
    width: max-content;
    max-width: none;
    white-space: nowrap;
}

.work-card__hint span {
    display:        inline-block;
    color:          var(--color-white);
    font-size:      clamp(0.36rem, 0.85vw, 0.46rem);
    font-size:      clamp(0.36rem, 2.3cqw, 0.46rem);
    font-weight:    700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    line-height: 1.2;
    white-space:    nowrap;
}

.work-card:hover {
    transform:    translateY(-12px) scale(1.02);
    border-color: rgba(30,144,255, 0.4);
    box-shadow:   var(--shadow-card-lg);
}

.work-card:hover .work-card__video {
    transform: scale(1.1);
}

.work-card:hover .work-card__hint {
    opacity:   1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   OTIMIZAÇÃO DE PERFORMANCE (DESKTOP) — .play-cursor
   Motivo: o cursor customizado segue o mouse a cada movimento. Com
   will-change:transform permanente + filter:drop-shadow (renderizado via
   software em vários navegadores) ele criava repaint contínuo e competia
   por recursos com o hover dos cards, agravando o lag do cursor.
   -------------------------------------------------------------------------- */
.play-cursor {
    position: fixed;
    top:  0;
    left: 0;
    width:  60px;
    height: 60px;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    will-change: transform;
}

.play-cursor--visible {
    opacity: 1;
}

.play-cursor svg {
    width:  60px;
    height: 60px;
    filter: drop-shadow(0 2px 6px rgba(30,144,255, 0.45));
}

.portfolio__grid:has(.work-card:hover) {
    cursor: none;
}

.modal-overlay__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-muted);
    font-size: 1rem;
}

.modal-overlay__empty strong {
    color: var(--color-white);
}

@media (max-width: 992px) {
    .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .portfolio__grid  { grid-template-columns: 1fr; }
    .work-card        { height: clamp(300px, 90vw, 450px); }
}

@media (hover: none) and (pointer: coarse) {
    .work-card__hint {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================================================
   9. MODAL — Galeria de vídeos
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top:  0;
    left: 0;
    z-index: 9999;
    display:         none;
    justify-content: center;
    align-items:     center;
    width:  100%;
    height: 100%;
    background:      rgba(8, 11, 18, 0.95);
    backdrop-filter: blur(15px);
}

.modal-overlay__content {
    width:      90%;
    max-width:  1000px;
    height:     85vh;
    overflow-y: auto;
    padding: clamp(28px, 6vw, var(--space-xl)) clamp(20px, 5vw, var(--space-xl)) clamp(20px, 5vw, var(--space-xl));
    position:      relative;
    background:    var(--color-bg);
    border:        1px solid var(--color-border);
    border-radius: var(--space-lg);
}

.modal-overlay__header {
    text-align:    center;
    margin-bottom: clamp(28px, 5vw, 44px);
    padding-top:   clamp(4px, 1vw, 10px);
}

.modal-overlay__title {
    font-size:      clamp(1.6rem, 4.2vw, 2.6rem);
    font-weight:    900;
    color:          var(--color-white);
    letter-spacing: -0.5px;
    line-height:    1.15;
    margin:         0 0 clamp(8px, 1.6vw, 12px);
}

.modal-overlay__subtitle {
    font-size:      clamp(0.8rem, 1.6vw, 0.95rem);
    font-weight:    500;
    color:          var(--color-text-dim);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin:         0;
}

.modal-overlay__close {
    position: absolute;
    top:   20px;
    right: 20px;
    display:         flex;
    align-items:     center;
    justify-content: center;
    width:  clamp(38px, 6vw, 48px);
    height: clamp(38px, 6vw, 48px);
    background: rgba(255, 255, 255, 0.04);
    border:     1px solid var(--color-border-subtle);
    border-radius: var(--radius-circle);
    color:      var(--color-white);
    font-size:  clamp(1.3rem, 3vw, 1.7rem);
    line-height: 1;
    cursor:     pointer;
    opacity:    0.7;
    transition: var(--transition-fast);
    z-index: 10;
}

.modal-overlay__close:hover {
    opacity:      1;
    background:   rgba(255, 255, 255, 0.08);
    border-color: var(--color-border-mid);
    transform:    scale(1.05);
}

.modal-overlay__grid {
    display:               grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: var(--space-md);
}

.modal-overlay__reel {
    aspect-ratio: 9 / 16;
    background:   var(--color-border);
    border-radius: var(--radius-lg);
    overflow:     hidden;
    border:       1px solid var(--color-border-mid);
}

.modal-overlay__reel video {
    width:      100%;
    height:     100%;
    object-fit: cover;
}

.modal-overlay__reel--lazy {
    position: relative;
}

.modal-overlay__thumb-btn {
    position: absolute;
    inset: 0;
    width:  100%;
    height: 100%;
    padding: 0;
    margin:  0;
    border:  none;
    background: rgba(8, 11, 18, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay__thumb-img {
    position: absolute;
    inset: 0;
    width:      100%;
    height:     100%;
    object-fit: cover;
}

.modal-overlay__play-icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 15px rgba(8, 11, 18, 0.6));
    transition: var(--transition-fast);
}

.modal-overlay__thumb-btn:hover .modal-overlay__play-icon {
    transform: scale(1.1);
}

.modal-overlay__reel--playing .modal-overlay__thumb-btn {
    display: none;
}

.modal-overlay__reel--playing iframe,
.modal-overlay__player {
    width:  100%;
    height: 100%;
    display: block;
}

@media (max-width: 600px) {
    .modal-overlay__content {
        width: 94%;
        height: 90vh;
    }
}


/* ==========================================================================
   10. TESTIMONIALS — Depoimentos de clientes
   ========================================================================== */

.testimonials {
    padding: var(--space-2xl) 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonials__header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 660px;
    padding-bottom: 8px;
}

.badge-framed {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 22px;
    font-size:      0.72rem;
    font-weight:    700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color:          rgba(120, 170, 255, 0.9);
    background:     rgba(30,144,255, 0.06);
    border:         1px solid rgba(30,144,255, 0.22);
    border-radius:  var(--radius-full);
    position:       relative;
    transition:     var(--transition-smooth);
    cursor:         default;
    box-shadow:     0 0 18px rgba(30,144,255, 0.07),
                    inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
}

.badge-framed::after {
    content: '';
    display: inline-block;
    width:  5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-blue);
    box-shadow: 0 0 6px rgba(30,144,255, 0.8);
    flex-shrink: 0;
}

.badge-framed:hover {
    color:        rgba(180, 210, 255, 1);
    border-color: rgba(30,144,255, 0.45);
    background:   rgba(30,144,255, 0.10);
    box-shadow:   0 0 28px rgba(30,144,255, 0.14),
                  inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform:    translateY(-2px);
}

.badge-framed::before {
    display: none;
}

.testimonials__title {
    font-size:      clamp(2rem, 5vw, 3.2rem);
    font-weight:    900;
    color:          var(--color-white);
    letter-spacing: -1.5px;
    line-height:    1.18;
    margin: 20px auto 0;
    max-width: 600px;
    position: relative;
}

.testimonials__title::before {
    content: '';
    position: absolute;
    top:  50%;
    left: 50%;
    width:  min(500px, 90vw);
    height: min(200px, 40vw);
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(30,144,255, 0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    filter: blur(24px);
}

.testimonials__highlight {
    background: linear-gradient(100deg, var(--color-blue) 0%, var(--color-blue-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(30,144,255, 0.35));
}

.testimonials__subtitle {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.testimonials__subtitle:hover {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4),
                 0 0 30px rgba(255, 255, 255, 0.2);
    filter: brightness(1.2);
}

.testimonials__subtitle::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: none;
}

.testimonials__subtitle:hover::after {
    left: 150%;
    transition: left 0.8s ease-in-out;
}

.testimonials__subtitle .highlight {
    color: var(--color-blue);
    font-weight: 600;
    background: linear-gradient(to right, var(--color-blue), var(--color-blue-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(30,144,255, 0.2));
}

.testimonials__grid {
    display:               grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: var(--space-md);
    align-items: start;
    width: 100%;
    max-width: 1200px;
    margin: 4rem auto 0;
}

.testimonial-card {
    position: relative;
    padding: 25px;
    background:    var(--color-bg-card);
    border:        1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-width: 0;
    contain: layout paint style;
}

.testimonial-card:hover {
    border-color: var(--color-blue);
    transform:    translateY(-8px);
    background:   var(--color-bg-hover);
    box-shadow:   var(--shadow-card);
}

.testimonial-card--featured {
    border-color: var(--color-blue);
    border-left: 4px solid var(--color-blue);
    box-shadow: 0 0 25px rgba(30,144,255, 0.15);
    background: rgba(30,144,255, 0.02);
}

.testimonial-card__quote {
    font-family: serif;
    font-size:   4rem;
    color:       var(--color-blue);
    opacity:     0.2;
    position:    absolute;
    top:  10px;
    left: 20px;
    line-height: 1;
}

.testimonial-card__text {
    color:         var(--color-text-muted);
    font-size:     0.95rem;
    line-height:   1.6;
    position:      relative;
    z-index:       1;
    margin-bottom: var(--space-md);
    border: none;
    padding: 0;
    overflow-wrap: break-word;
}

.testimonial-card__author {
    display:     flex;
    align-items: center;
    gap: 15px;
    border: none;
    padding: 0;
    margin: 0;
}

.testimonial-card__avatar,
.testimonial-card__author img {
    width:  40px;
    height: 40px;
    border-radius: var(--radius-circle);
    object-fit: cover;
    border: 2px solid var(--color-border-mid);
    flex-shrink: 0;
}

.testimonial-card__name {
    display:     block;
    color:       var(--color-white);
    font-weight: 700;
    font-size:   0.9rem;
}

.testimonial-card__role {
    display:   block;
    color:     var(--color-text-faint);
    font-size: 0.75rem;
}

@media (max-width: 1024px) {
    .testimonials__title { max-width: 520px; }
}

@media (max-width: 768px) {
    .testimonials__title    { max-width: 100%; }
    .testimonials__grid     { grid-template-columns: 1fr; margin-top: 2.5rem; }
    .testimonials__subtitle { white-space: normal; }
    .testimonials__header   { margin-bottom: 2.5rem; }
}


/* ==========================================================================
   11. CONTACT — Formulário de contato
   ========================================================================== */

.contact {
    padding:    var(--space-2xl) 20px;
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-2xl);
    padding-bottom: 100px;
}

.contact__grid {
    display:               grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.contact__title {
    font-size:      clamp(2rem, 5vw, 3.8rem);
    font-weight:    900;
    color:          var(--color-white);
    line-height:    1.05;
    letter-spacing: -1.5px;
    margin-bottom: var(--space-lg);
    transition: var(--transition-base);
    cursor: default;
    overflow-wrap: break-word;
}

.contact__title:hover {
    transform: translateX(8px);
}

.contact__label {
    display:        block;
    color:          var(--color-blue-light);
    font-size:      0.8rem;
    font-weight:    800;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom:  10px;
}

.contact__email {
    color:       var(--color-white);
    font-size:   clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
    word-break: break-word;
}

.contact__email:hover {
    color:        var(--color-blue-light);
    border-color: var(--color-blue-light);
}

.contact-form {
    display:        flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.contact-form__row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-form__row input {
    flex: 1 1 200px;
    min-width: 0;
}

.contact-form input,
.contact-form textarea {
    width:   100%;
    padding: 12px 16px;
    background:    rgba(255, 255, 255, 0.03);
    border:        1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color:         var(--color-white);
    font-family: var(--font-main);
    font-size:   0.95rem;
    transition: var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-blue);
    background:   rgba(255, 255, 255, 0.06);
    box-shadow:   0 0 15px rgba(30,144,255, 0.15);
    outline:      none;
}

.contact-form input.is-filled,
.contact-form textarea.is-filled {
    border-color:     var(--color-green-fill);
    background-color: rgba(128, 255, 174, 0.03);
}

.contact-form__btn {
    width:   100%;
    padding: 16px;
    background:    var(--color-blue);
    color:         var(--color-white);
    border:        none;
    border-radius: var(--radius-md);
    font-family:    var(--font-main);
    font-weight:    700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor:     pointer;
    margin-top: 5px;
    transition: var(--transition-fast);
}

.contact-form__btn:hover {
    background:  var(--color-blue-light);
    box-shadow:  0 8px 25px rgba(30,144,255, 0.3);
}

.contact-form__btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.contact-form__error {
    display:       none;
    margin-top:    var(--space-md);
    padding:       var(--space-md);
    background:    rgba(239, 68, 68, 0.1);
    border:        1px solid #ef4444;
    border-radius: var(--radius-md);
    color:         #ef4444;
    text-align:    center;
}

.contact-form__success {
    display:       none;
    margin-top:    var(--space-md);
    padding:       var(--space-md);
    background:    rgba(16, 185, 129, 0.1);
    border:        1px solid var(--color-green);
    border-radius: var(--radius-md);
    color:         var(--color-green);
    text-align:    center;
}

@media (max-width: 768px) {
    .contact__grid  { grid-template-columns: 1fr; text-align: center; gap: var(--space-lg); }

    .contact-form__row {
        flex-direction: column;
        gap: 0;
    }

    .contact-form__row input {
        margin-bottom: 10px;
        flex-basis: auto;
    }
}


/* ==========================================================================
   12. FOOTER — Rodapé
   ========================================================================== */

.site-footer {
    padding:       var(--space-xl) 20px;
    background:    var(--color-bg);
    border-top:    1px solid var(--color-border);
    margin-top: 80px;
}

.site-footer__inner {
    display:        flex;
    flex-direction: column;
    align-items:    center;
    gap: 30px;
}

.site-footer__copy {
    color:     var(--color-text-faint);
    font-size: 0.9rem;
    text-align: center;
}

.site-footer__copy strong {
    color: var(--color-white);
}

.site-footer__social {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-link {
    display:     flex;
    align-items: center;
    gap: 10px;
    color:       var(--color-text-muted);
    font-size:   0.9rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.social-link svg {
    transition: transform var(--transition-fast);
}

.social-link:hover svg {
    transform: translateY(-5px);
}

.social-link--instagram:hover {
    color: var(--color-instagram);
}

.social-link--instagram:hover svg {
    fill:   url(#instaGradient);
    filter: drop-shadow(0 0 8px rgba(225, 48, 108, 0.5));
}

.social-link--whatsapp:hover {
    color: var(--color-green-social);
}

.social-link--whatsapp:hover svg {
    color:  var(--color-green-social);
    filter: drop-shadow(0 0 8px rgba(37, 211, 102, 0.5));
}

.social-link--email:hover {
    color: var(--color-email);
}

.social-link--email:hover svg {
    color:  var(--color-email);
    filter: drop-shadow(0 0 8px rgba(0, 120, 212, 0.5));
}

@media (max-width: 600px) {
    .site-footer__social { gap: var(--space-md); }
}


/* ==========================================================================
   13. CURSOR CUSTOMIZADO GLOBAL
   ========================================================================== */

*, *::before, *::after {
    cursor: none !important;
}

#mouse-trail-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999998;
    will-change: auto;
}

body.cursor--over-video #custom-cursor {
    opacity: 0 !important;
    pointer-events: none;
}

body.cursor--over-video #mouse-trail-canvas {
    opacity: 0 !important;
}

body.cursor--over-video,
body.cursor--over-video *,
body.cursor--over-video *::before,
body.cursor--over-video *::after {
    cursor: auto !important;
}


#custom-cursor {
    position:       fixed;
    top:            0;
    left:           0;
    width:          0;
    height:         0;
    border-left:    10px solid transparent;
    border-right:   10px solid transparent;
    border-bottom:  15px solid #00FFFF;
    pointer-events: none;
    z-index:        999999;
    transform:      translate(-50%, -50%);
    filter:         drop-shadow(0 0 5px #00FFFF) drop-shadow(0 0 10px #00FFFF);
    transition:
        border-bottom 0.3s ease,
        filter        0.3s ease,
        transform     0.2s ease;
    will-change: transform;
}

#custom-cursor.cursor--hover {
    border-bottom-color: #00BFFF;
    filter:              drop-shadow(0 0 8px #00BFFF) drop-shadow(0 0 15px #00BFFF);
}

#custom-cursor.cursor--click {
    border-bottom-color: #ADD8E6;
    transform:           translate(-50%, -50%) scale(0.8);
    filter:              drop-shadow(0 0 3px #ADD8E6) drop-shadow(0 0 6px #ADD8E6);
}

@media (hover: none) {
    #custom-cursor      { display: none; }
    *, *::before, *::after { cursor: auto !important; }
}

/* ==========================================================================
   FIX: Compensação do header fixed + reset de offset do WordPress
   ========================================================================== */

body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

main#inicio {
    padding-top: 20px;
}

html body.admin-bar {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

html body.admin-bar #wpadminbar {
    position: fixed !important;
}

#inicio {
    scroll-margin-top: 0;
}

.hero-video-wrapper {
    z-index: 0 !important; /* Mude de -1 para 0 */
}

.video-foreground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.video-foreground iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
}

.video-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.6) !important; /* Aqui você controla o escuro (0.6 = 60%) */
    z-index: 2 !important; /* Isso garante que ele fique na frente do vídeo */
    pointer-events: none; /* Isso garante que você ainda consiga clicar no que estiver atrás se precisar */
}


html.modal-is-open,
html.modal-is-open body,
html.modal-is-open * {
    cursor: auto !important;
}

html.modal-is-open #custom-cursor,
html.modal-is-open #mouse-trail-canvas,
html.modal-is-open .play-cursor {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.video-gallery,
.video-gallery * {
    cursor: auto !important;
}


/* ==========================================================================
   14. MEDIA QUERIES GERAIS DE CONTAINER / DISPOSITIVOS
   ========================================================================== */

@media (min-width: 1440px) {
    .container { max-width: 1280px; }
}

@media (max-width: 1439px) and (min-width: 1200px) {
    .about__grid,
    .contact__grid { max-width: 1000px; }
}

@media (max-width: 991px) and (min-width: 768px) {
    .container { padding: 0 24px; }
}

@media (max-width: 767px) and (min-width: 600px) {
    .container { padding: 0 20px; }
}

@media (max-width: 599px) and (min-width: 361px) {
    .container { padding: 0 16px; }
}

@media (max-width: 360px) {
    .container { padding: 0 12px; }
    .hero__stats { gap: 12px; }
}


/* ==========================================================================
   15. CORREÇÕES MOBILE/TABLET — Ajustes pontuais (bugs pós-responsividade)
   ========================================================================== */

@media (max-width: 991px) {
    .portfolio__grid {
        justify-items: center;
    }

    .work-card {
        width: 72%;
        max-width: 340px;
        height: clamp(269px, 35vw, 420px);
    }
}

@media (max-width: 600px) {
    .portfolio__grid {
        grid-template-columns: 1fr;
    }

    .work-card {
        width: 72%;
        max-width: 320px;
        height: clamp(252px, 76vw, 378px);
        margin: 0 auto;
    }
}

@media (max-width: 991px) {
    .testimonials {
        margin-top: var(--space-2xl);
    }
}

@media (max-width: 991px) {
    .site-header {
        gap: 12px;
    }

    .btn-cta {
        padding: 7px 14px;
        font-size: 0.7rem;
        white-space: nowrap;
        flex-shrink: 0;
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    .btn-cta {
        padding: 6px 10px;
        font-size: 0.62rem;
    }
}


/* ==========================================================================
   16. CORREÇÕES ADICIONAIS — Título, Serviços e Depoimentos (Tablet/Mobile)
   ========================================================================== */

@media (max-width: 991px) {
    .testimonials__highlight {
        display: block;
    }

    .testimonials__title {
        font-size: clamp(1.8rem, 4.5vw, 2.88rem);
    }
}

@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 8px;
    }
}

@media (max-width: 991px) and (min-width: 601px) {
    .testimonials__grid {
        grid-template-columns: repeat(2, 1fr);
        align-items: start;
        gap: var(--space-md);
    }

    .testimonial-card {
        height: auto;
        padding: 22px;
    }

    .testimonial-card__text {
        font-size: 0.92rem;
    }
}

@media (max-width: 600px) {
    .testimonials {
        padding: var(--space-xl) 16px;
    }

    .testimonials__grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 2.5rem;
        max-width: 480px;
    }

    .testimonial-card {
        height: auto;
        width: 100%;
        padding: 22px 20px;
        border-radius: var(--radius-lg);
    }

    .testimonial-card__quote {
        font-size: 3rem;
        top: 8px;
        left: 16px;
    }

    .testimonial-card__text {
        font-size: 0.92rem;
        line-height: 1.65;
        margin-bottom: var(--space-sm);
    }

    .testimonial-card__author {
        gap: 12px;
    }

    .testimonial-card__avatar,
    .testimonial-card__author img {
        width: 44px;
        height: 44px;
    }

    .testimonial-card__name {
        font-size: 0.92rem;
    }

    .testimonial-card__role {
        font-size: 0.78rem;
    }
}


/* ==========================================================================
   17. ÍCONES DA GALERIA — Tamanho confortável para toque (Tablet/Mobile)
   ========================================================================== */

@media (max-width: 991px) {
    .work-card__fallback-icon {
        transform: scale(1.3);
        opacity: 0.75;
    }

    .work-card__fallback-icon svg {
        width: 44px;
        height: 44px;
    }

    .work-card__hint {
        opacity: 1;
        transform: translateY(0);
    }

    .modal-overlay__close {
        font-size: clamp(2.2rem, 6vw, 2.8rem);
        top: 14px;
        right: 14px;
        opacity: 0.8;
    }
}

@media (max-width: 600px) {
    .work-card__fallback-icon svg {
        width: 48px;
        height: 48px;
    }
}

/* ==========================================================================
   18. AJUSTES GERAIS DE ESPAÇAMENTO — Tablet/Mobile
   ========================================================================== */

@media (max-width: 991px) {
    .service-card {
        padding: 14px 16px;
    }

    .stat-card {
        padding: 18px 0;
    }
}

@media (max-width: 600px) {
    .portfolio { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
    .about { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
    .contact { padding-top: var(--space-xl); }
}


/* ==========================================================================
   19. PERFORMANCE — Galeria de Vídeos e Cards de Feedback (Mobile/Tablet)
   Escopo: max-width 991px — Desktop não é afetado
   Objetivo: reduzir custo de repaint/GPU (backdrop-filter pesado,
   transition:all, will-change permanente) que causam flash branco
   e travamento de scroll no mobile/tablet.
   ========================================================================== */

@media (max-width: 991px) {
    /* --- Galeria de Vídeos (.work-card) --- */
    .work-card {
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
                    border-color 0.35s ease,
                    box-shadow 0.35s ease;
        will-change: auto;
        contain: layout paint;
    }

    .work-card__video {
        transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .work-card__fallback,
    .work-card__hint {
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    /* --- Cards de Feedback (.testimonial-card) --- */
    .testimonial-card {
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        transition: transform 0.3s ease,
                    border-color 0.3s ease,
                    background 0.3s ease,
                    box-shadow 0.3s ease;
        contain: layout paint;
        will-change: auto;
    }

    /* --- Modal / Galeria (scroll interno mais leve) --- */
    .modal-overlay__content {
        -webkit-overflow-scrolling: touch;
        contain: layout paint;
    }

    .modal-overlay {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

/* Dispositivos sem hover (touch): remove qualquer resíduo de will-change
   usado apenas para efeitos de hover, liberando memória de GPU. */
@media (hover: none) and (pointer: coarse) {
    .work-card,
    .testimonial-card,
    .service-card,
    .stat-card {
        will-change: auto;
    }
}

/* ==========================================================================
   20. PERFORMANCE — Header fixo (.site-header)
   Escopo: max-width 991px (Mobile/Tablet) — Desktop não é afetado
   Objetivo: reduzir o custo de recálculo do backdrop-filter durante o
   scroll contínuo, promovendo o header a uma camada de composição
   própria e reduzindo o raio de blur (que é o fator mais caro para a
   GPU), mantendo a aparência vidro fosco quase idêntica.
   ========================================================================== */

@media (max-width: 991px) {
    .site-header {
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        background: rgba(8, 11, 18, 0.94);
    }
}

/* Melhoria de legibilidade das legendas dos cards de portfólio */
.work-card__style {
    color: #F5F5F5 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.45) !important;
}
