/* Reset and Base Styles */
:root {
    --bg-color: #0d0d0d;
    --card-bg: #151515;
    --card-light: #1c1c1c;
    --text-color: #ffffff;
    --text-muted: #999999;
    --blue: #0066ff;
    --blue-hover: #3385ff;

    --font-primary: 'Inter', sans-serif;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}



/* Global Vignette */
.site-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
    /* Just below header if header needs clicks, but pointer-events: none solves it. High z-index to overlay everything. */
    box-shadow: inset 0 0 150px rgba(0, 102, 255, 0.12), inset 0 0 50px rgba(0, 0, 0, 0.8);
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 4rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 4rem;
}

.text-blue {
    color: var(--blue);
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

/* Buttons */
.btn-pill-white,
.btn-pill-blue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: none;
}

.btn-pill-white {
    background: #ffffff;
    color: #000000;
}

.btn-pill-white:hover {
    background: #e0e0e0;
    transform: scale(1.05);
}

.btn-pill-blue {
    background: var(--blue);
    color: #ffffff;
    padding: 0.6rem 0.6rem 0.6rem 1.8rem;
    gap: 1.5rem;
}

.btn-pill-blue:hover {
    background: var(--blue-hover);
    transform: scale(1.05);
}

.btn-header-glass {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.8rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-header-glass:hover {
    background: rgba(0, 102, 255, 0.1);
    border-color: rgba(0, 102, 255, 0.4);
    color: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.15);
}

.btn-circle-dark {
    width: 40px;
    height: 40px;
    background: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    transition: var(--transition);
}

.btn-pill-blue:hover .btn-circle-dark {
    transform: rotate(-45deg);
}

/* Header - Dynamic Island Style */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none; /* Let clicks pass through empty space */
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 100px;
    background: transparent;
    border: 1px solid transparent;
    pointer-events: auto; /* Re-enable clicks for the header contents */
}

/* When Scrolled - Turns into a Floating Dock */
.header.scrolled {
    padding: 1.5rem 0 0 0;
}

.header.scrolled .header-container {
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 0.5rem 0.5rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 102, 255, 0.05);
    max-width: 850px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: #fff;
    display: flex;
    align-items: baseline;
    transition: font-size 0.4s ease;
}

.header.scrolled .logo {
    font-size: 1.3rem;
}

.logo-sub {
    font-weight: 400;
    font-size: 0.65em;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0;
    margin-left: 2px;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 100px;
    opacity: 1;
    overflow: hidden;
    white-space: nowrap;
}

.header.scrolled .logo-sub {
    max-width: 0;
    opacity: 0;
    margin-left: 0;
}

/* Magnetic Nav */
.nav {
    display: flex;
    gap: 0.5rem;
    position: relative;
    padding: 0;
}

.nav-active-indicator {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    z-index: 0;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    box-shadow: inset 0 0 10px rgba(0, 102, 255, 0.1);
}

.nav.is-hovered .nav-active-indicator {
    opacity: 1;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
}

/* Hero Section - Immersive */
.hero-section {
    position: relative;
    padding-top: 12rem;
    padding-bottom: 8rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(120deg, #050505, #020a1c, #050505, #000411);
    background-size: 300% 300%;
    animation: gradientMove 15s ease infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Ensure contents stay above animated background */
.hero-center-content,
.hero-skills-row,
.scroll-indicator,
.availability-badge {
    position: relative;
    z-index: 2;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 2rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 255, 136, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
    }
}

.hero-title-main {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #fff;
}

.hero-desc-main {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-primary {
    background: var(--blue);
    color: #fff;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #fff;
    color: #000;
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #fff;
    transform: translateY(-3px);
}

/* Hero Skills Row (Minimalist & Direct) */
.hero-skills-row {
    margin-top: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    z-index: 2;
}

.skills-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.5rem;
}

.skills-icons {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.skills-icons i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    /* initial transform is handled by GSAP */
}

/* Round corners for After Effects and Premiere */
.skills-icons i.rounded-adobe {
    display: inline-block;
    clip-path: inset(1px round 15%);
}

.skills-icons i:hover {
    color: #0066ff;
    transform: translateY(-10px) scale(1.3) !important;
    /* Override GSAP yoyo if hovered */
    filter: drop-shadow(0 10px 20px rgba(0, 102, 255, 0.5));
}

/* Transition to Services Improvements */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.3);
    z-index: 10;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    position: relative;
    display: flex;
    justify-content: center;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--blue);
    border-radius: 4px;
    margin-top: 6px;
    animation: scrollWheel 2s infinite ease-in-out;
}

.scroll-arrows {
    animation: bounceArrows 2s infinite ease-in-out;
    opacity: 0.8;
}

@keyframes scrollWheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(10px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 0;
    }
}

@keyframes bounceArrows {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }
}

.hero-transition-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(to bottom, rgba(13, 13, 13, 0) 0%, var(--bg-color) 100%);
    pointer-events: none;
    z-index: 5;
}

.justify-center {
    justify-content: center;
}

.tech-stack-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1.5rem;
}

.tech-stack-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.tech-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: transparent;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
}

.tech-badge i {
    font-size: 2.5rem;
    filter: grayscale(100%) opacity(0.3);
    transition: all 0.5s ease;
}

.tech-badge:hover {
    transform: translateY(-8px);
}

.tech-badge:hover i {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.15);
    /* Subtle professional glow based on original logo colors (simulated by a bright drop-shadow) */
    filter: drop-shadow(0 10px 20px rgba(255, 255, 255, 0.15));
}

.floating-item {
    animation: float 5s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }
}

.hero-bottom {
    position: relative;
    z-index: 1;
    margin-top: 6rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stats {
    display: flex;
    gap: 4rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-num {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.3;
}

/* Sections Global */
section {
    padding: 8rem 0;
}

.section-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: end;
}

.section-tag {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
}

.section-desc {
    font-size: 1.3rem;
    color: var(--text-muted);
}

/* Services Elegant Bento Grid */
.services-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}

.bento-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform-style: preserve-3d;
    cursor: pointer;
}

.bento-card:hover {
    border-color: rgba(0, 102, 255, 0.5);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(0, 102, 255, 0.05);
}

.bento-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: var(--blue);
    filter: blur(100px);
    opacity: 0;
    transition: opacity 0.8s ease;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.bento-card:hover .bento-glow {
    opacity: 0.2;
}

.bento-card-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover .bento-card-top {
    transform: translateY(-10px);
}

.bento-icon {
    color: var(--blue);
    background: rgba(0, 102, 255, 0.05);
    padding: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
}

/* Immersive background icon watermark on hover */
.bento-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background-image: inherit;
}

.bento-card:hover .bento-icon {
    transform: scale(6) translateY(-5px);
    opacity: 0.03;
    color: #fff;
    background: transparent;
}

.bento-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: color 0.4s;
    z-index: 2;
}

.bento-card:hover h3 {
    color: var(--blue);
}

.bento-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 0;
    z-index: 2;
    transition: opacity 0.4s, transform 0.5s;
}

.bento-card:hover p {
    opacity: 0;
    transform: translateY(20px);
}

.bento-action {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 3;
}

.bento-action-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--blue);
    color: #000;
    padding: 0.6rem 1.5rem;
    /* Slightly wider padding for better visual balance */
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: max-content;
}

.bento-card:hover .bento-action {
    opacity: 1;
    transform: translateY(0);
}

.bento-action-circle svg {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover .bento-action-circle svg {
    transform: rotate(-45deg);
}

@media (max-width: 1024px) {
    .services-bento {
        grid-template-columns: 1fr;
    }

    .bento-card {
        transform: translateY(0) !important;
    }
}

/* Projects Horizontal Scroll Layout */
.projects {
    overflow: hidden;
    /* Prevent horizontal scrollbar on body */
}

.projects-horizontal-wrapper {
    width: 100vw;
    position: relative;
    left: 0;
    padding-left: 2rem;
    /* Mobile default padding */
}

@media (min-width: 1200px) {
    .projects-horizontal-wrapper {
        padding-left: calc((100vw - 1200px) / 2 + 2rem);
    }
}

.projects-track {
    display: flex;
    gap: 2rem;
    padding-right: 2rem;
    /* Padding at the end of the scroll */
    width: max-content;
    will-change: transform;
}

.project-img-simple {
    height: 55vh;
    /* Decreased consistent height for all images in carousel */
    max-height: 550px;
    min-height: 300px;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.project-img-simple img {
    height: 100%;
    width: auto;
    display: block;
    border-radius: 20px;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.project-img-simple:hover img {
    filter: grayscale(0%);
}

.project-card:hover .view-circle {
    background: var(--blue);
    color: #000;
    transform: rotate(-45deg);
}

/* --- NOVO PROCESSO (Stacking Grid) --- */
.process-stack {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 5vh; /* space to unstick */
    margin-top: 5rem;
}

.process-stack-card {
    position: sticky;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 4rem;
    margin-bottom: 35vh; /* Reduced for faster scrolling */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform-origin: top center;
    will-change: transform, filter;
}

.process-stack-card:last-child {
    margin-bottom: 0; /* Prevents huge gap before the next section */
}

/* Stacking top offsets */
.process-stack-card:nth-child(1) { top: 12vh; z-index: 1; }
.process-stack-card:nth-child(2) { top: 15vh; z-index: 2; }
.process-stack-card:nth-child(3) { top: 18vh; z-index: 3; }
.process-stack-card:nth-child(4) { top: 21vh; z-index: 4; }

.process-stack-card:hover {
    background: rgba(0, 102, 255, 0.05);
    border-color: rgba(0, 102, 255, 0.3);
}

.step-num-new {
    font-size: 4rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15);
    margin-bottom: 1.5rem;
    line-height: 1;
    transition: all 0.5s ease;
}

.process-stack-card:hover .step-num-new {
    color: var(--blue);
    -webkit-text-stroke: 1px transparent;
}

.process-stack-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #fff;
    transition: color 0.3s;
}

.process-stack-card:hover h3 {
    color: var(--blue);
}

.process-stack-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
}

/* Testimonials - Infinite Glassmorphism Track */
.testimonials-section {
    position: relative;
    overflow: hidden;
    padding-bottom: 8rem;
}

.test-track-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.test-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    padding: 2rem 0;
    animation: scrollTrack 40s linear infinite;
}

.test-track:hover {
    animation-play-state: paused;
}

.test-track:hover .t-glass-card {
    filter: blur(5px) grayscale(50%);
    opacity: 0.5;
    transform: scale(0.98);
}

@keyframes scrollTrack {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 1rem));
    }
}

.t-glass-card {
    width: 450px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    padding: 3rem;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.test-track .t-glass-card:hover {
    filter: blur(0px) grayscale(0%);
    opacity: 1;
    transform: scale(1.05) translateY(-10px);
    border-color: rgba(0, 102, 255, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(0, 102, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    z-index: 10;
}

.t-glass-quote {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 2.5rem;
    font-style: italic;
    opacity: 0.9;
}

.t-glass-author-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.t-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), #001133);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.t-glass-author {
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.t-glass-author span {
    font-size: 0.85rem;
    color: var(--blue);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

/* Site Vignette Overlay */
.site-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
    /* Below modal */
    box-shadow: inset 0 0 200px rgba(0, 102, 255, 0.08);
}

/* --- NOVO CTA (Focado em Ação e Inovador) --- */
.cta-final-section {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.cta-background-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    animation: pulseGlow 8s infinite alternate;
}

@keyframes pulseGlow {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.cta-interactive-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 5rem 3rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    overflow: hidden;
    transform-style: preserve-3d;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(0, 102, 255, 0.05);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.cta-interactive-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.cta-interactive-wrapper:hover::before {
    opacity: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    transform: translateZ(30px);
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.3);
    margin-bottom: 2rem;
}

.font-semibold {
    font-weight: 600;
}

.cta-massive-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #fff;
}

.cta-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.btn-magnetic {
    position: relative;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.btn-text {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    pointer-events: none;
}

.btn-cta-primary {
    background: #fff;
    color: #000;
}

.btn-cta-primary:hover {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 15px 30px rgba(0, 102, 255, 0.3);
}

.btn-cta-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cta-secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Dynamic Glare Effect */
.bento-card::after,
.project-card::after,
.process-card::after,
.t-glass-card::after,
.contact-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.08),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.bento-card:hover::after,
.project-card:hover::after,
.process-card:hover::after,
.t-glass-card:hover::after,
.contact-card:hover::after {
    opacity: 1;
}

/* Ensure content stays above the glare */
.bento-card>*,
.project-card>*,
.process-stack-card>*,
.t-glass-card>*,
.contact-card>* {
    position: relative;
    z-index: 1;
}

/* Numbers Section */
.numbers-wrapper {
    position: relative;
    padding: 3rem 0;
}

.numbers-glow-orb {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 400px; height: 400px;
    background: var(--blue);
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0;
    transition: opacity 0.5s ease, left 0.3s ease, top 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.numbers-wrapper:hover .numbers-glow-orb {
    opacity: 0.25;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.number-card {
    padding: 5rem 2rem;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.4s ease;
}

.number-card:last-child {
    border-right: none;
}

.number-card:hover {
    background: rgba(255, 255, 255, 0.03);
}

.number-value {
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.15);
    margin-bottom: 1rem;
    line-height: 1;
    letter-spacing: -3px;
    transition: color 0.5s, -webkit-text-stroke 0.5s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0) 100%);
    -webkit-background-clip: text;
}

.number-card:hover .number-value {
    color: #fff;
    -webkit-text-stroke: 2px transparent;
    transform: scale(1.1);
}

.number-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 200px;
    margin: 0 auto;
    font-weight: 500;
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Dynamic Service Modal Overlay */
.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.service-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.s-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    cursor: pointer;
}

.s-modal-content {
    position: relative;
    background: #0a0a0a;
    border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: 20px;
    padding: 4rem;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), inset 0 0 40px rgba(0, 102, 255, 0.05);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.service-modal.is-open .s-modal-content {
    transform: translateY(0) scale(1);
}

.s-modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.s-modal-close-btn:hover {
    color: #fff;
}

.s-modal-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    color: #fff;
}

.s-modal-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.s-modal-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.s-modal-subtitle {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 1rem;
}

.s-modal-text.text-muted {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
}

/* =========================================================================
   Responsive & Mobile Optimization (End-to-End)
   ========================================================================= */

@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 992px) {
    /* Services / Bento */
    .services-bento {
        grid-template-columns: 1fr;
    }
    
    .bento-card {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    /* Split Sections */
    .section-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Process Stack */
    .process-stack-card {
        padding: 3rem 2rem;
    }

    /* Numbers */
    .numbers-grid {
        grid-template-columns: 1fr;
    }

    .number-card {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 3rem 1.5rem;
    }

    .number-card:last-child {
        border-bottom: none;
    }

    /* Final CTA */
    .cta-massive-title {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    /* Header */
    .header-container {
        padding: 0 1.5rem;
    }

    .nav {
        display: none; /* Hide nav on small screens to keep it clean */
    }

    .header.scrolled .header-container {
        padding: 0.5rem 1rem;
    }

    .btn-header-glass {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    /* Hero */
    .hero-section {
        padding-top: 10rem;
        padding-bottom: 5rem;
    }

    .hero-title-main {
        font-size: 2.8rem;
    }
    
    .hero-desc-main {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .hero-ctas {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        padding: 0 1.5rem;
    }

    .hero-ctas a {
        width: 100%;
        justify-content: center;
    }

    .hero-skills-row {
        flex-direction: column;
        gap: 1rem;
    }

    /* General Typography */
    .section-title {
        font-size: 2.2rem;
    }

    /* Process Stack */
    .process-stack-card {
        padding: 2.5rem 1.5rem;
        margin-bottom: 30vh;
    }
    .process-stack-card:last-child {
        margin-bottom: 0;
    }
    .step-num-new {
        font-size: 3rem;
    }
    .process-stack-card h3 {
        font-size: 1.5rem;
    }
    .process-stack-card p {
        font-size: 1rem;
    }

    /* Projects Horizontal */
    .projects-horizontal-wrapper {
        padding-left: 1.5rem;
    }
    
    .project-img-simple {
        height: 40vh;
        min-height: 250px;
    }

    /* Testimonials */
    .test-track {
        gap: 1rem;
    }

    .t-glass-card {
        width: 300px;
        padding: 2rem;
    }

    .t-glass-quote {
        font-size: 1.1rem;
    }

    /* Final CTA */
    .cta-final-section {
        padding: 5rem 0;
    }

    .cta-massive-title {
        font-size: 2.8rem;
    }

    .cta-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .btn-cta-primary, .btn-cta-secondary {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
}
