/* Self-Hosted Inter Variable Font & Fallback Matching */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/Inter-VariableFont.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter-Fallback';
    src: local('Arial');
    size-adjust: 107.4%;
    ascent-override: 90.49%;
    descent-override: 22.49%;
    line-gap-override: 0%;
}

/* CSS Custom Properties - Dark Premium Theme */
:root {
    --color-bg: #0A0A0C;
    --color-surface: #141418;
    --color-surface-hover: #1E1E24;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-text: #EAEAEA;
    --color-text-muted: #A0A0A0;

    --color-primary: #00D2FF;
    --color-secondary: #FF007F;
    --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-secondary));

    --font-main: 'Inter', 'Inter-Fallback', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

/* Typography */
h1,
h2,
h3,
h4 {
    margin-bottom: 15px;
    line-height: 1.1;
}

h1,
h2 {
    line-height: 1;
}

h1 {
    font-size: clamp(3rem, 9vmin, 6.5rem);
    text-transform: uppercase;
    letter-spacing: -2px;
    font-weight: 900;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

/* Cabeçalhos Globais Padronizados */
.section-header {
    text-align: left;
    max-width: 1200px;
    margin: 0 0 50px 0;
}

.section-header h2 {
    font-size: clamp(2rem, 4.2vw, 4rem);
    text-transform: uppercase;
    letter-spacing: -1.5px;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 16px;
}

.section-header p {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    line-height: 1.6;
    max-width: 900px;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 127, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Header */
.top-blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 250px;
    z-index: 90;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(10, 10, 12, 0.95) 0%, rgba(10, 10, 12, 0.8) 30%, rgba(10, 10, 12, 0) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 100%);
}

.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    background: transparent;
    border: none;
    box-sizing: border-box;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    max-width: 100%;
    box-sizing: border-box;
}

.logo-img {
    height: clamp(25px, 3.5vw, 40px);
    width: auto;
}

.header-actions {
    display: flex;
    align-items: stretch;
    gap: 15px;
    height: 36px;
}

.header-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    padding: 0 20px;
    height: 100%;
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    cursor: pointer;
    padding: 0 16px;
    z-index: 1000;
    transition: all 0.3s ease;
    height: 100%;
}

.mobile-menu-btn:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
}

.menu-text {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.menu-lines {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu-lines span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #fff;
    transition: 0.3s;
}

.mobile-menu-btn.active .menu-lines span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active .menu-lines span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .menu-lines span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Menu Overlay com Acessibilidade Rigorosa */
.mobile-menu-overlay {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(10, 10, 12, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: block;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    /* Retira do foco por teclado (Tab) quando fechado */
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
    z-index: 999;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    /* Reabilita foco ao abrir */
}

.close-side-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    height: 40px;
    padding: 0 16px;
    background: transparent;
    z-index: 10;
}

.mobile-nav {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 400px;
    max-width: 85vw;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0 50px;
    gap: 30px;
    z-index: 1;
}

.mobile-nav::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    right: 0;
    bottom: -10%;
    background: var(--color-bg);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    z-index: -1;
    transform-origin: right center;
    transform: translate3d(120%, 0, 0) rotateZ(-7deg);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.active .mobile-nav::before {
    transform: translate3d(0, 0, 0) rotateZ(0deg);
}

.mobile-nav a {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    opacity: 0;
    transform: translateX(100px);
    transition: color 0.3s ease, opacity 0.8s ease, transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.mobile-menu-overlay.active .mobile-nav a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-overlay.active .mobile-nav a:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu-overlay.active .mobile-nav a:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-menu-overlay.active .mobile-nav a:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-menu-overlay.active .mobile-nav a:nth-child(4) {
    transition-delay: 0.4s;
}

.mobile-menu-overlay.active .mobile-nav a:nth-child(5) {
    transition-delay: 0.5s;
}

.mobile-nav a:hover {
    color: var(--color-primary);
}

/* Hero Section Fallbacks */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    padding-top: 150px;
    padding-bottom: 50px;
}

.hero-content {
    max-width: 1400px;
    text-align: left;
    margin-top: auto;
    margin-bottom: auto;
    opacity: 1;
    transform: none;
}

.hero p {
    font-size: clamp(1.1rem, 2.5vmin, 1.4rem);
    max-width: 800px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    justify-content: flex-start;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Ambient Glows Global */
.glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -2;
    opacity: 0.35;
    pointer-events: none;
    will-change: transform, opacity;
}

.glow-1 {
    top: -10%;
    right: -10%;
    width: 60vw;
    height: 60vh;
    background: #00D2FF;
}

.glow-2 {
    bottom: -10%;
    left: -10%;
    width: 50vw;
    height: 50vh;
    background: #002A33;
}

/* Layout Secções */
.section {
    min-height: 100vh;
    padding: 120px 0 60px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Grids e Cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: rgba(20, 20, 24, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    transition: background-color 0.4s, border-color 0.4s;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0px;
    border-radius: inherit;
    background: radial-gradient(600px circle at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
            rgba(255, 255, 255, 0.07),
            transparent 40%);
    opacity: 0;
    z-index: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
}

.card>* {
    position: relative;
    z-index: 1;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(30, 30, 36, 0.6);
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    opacity: 0.8;
    transition: var(--transition);
}

.card:hover .card-img {
    opacity: 1;
}

.card p {
    font-size: 1rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.card-link:hover {
    color: var(--color-secondary);
    transform: translateX(5px);
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
}

.text-center {
    text-align: center;
}

.text-center p {
    margin-bottom: 0;
}

/* ======================================================
   RESPONSIVIDADE UNIFICADA (DESKTOP & MOBILE PINNING)
   ====================================================== */

#audiovisual,
#design {
    background: transparent;
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 100px;
    padding-bottom: 30px;
    box-sizing: border-box;
}

#audiovisual .container,
#design .container {
    height: 100%;
    min-height: calc(100vh - 130px);
    display: flex;
    flex-direction: column;
    position: relative;
}

.interactive-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    overflow: hidden;
}

/* Barra de progresso vertical */
.scroll-progress-container {
    position: absolute;
    display: flex;
    justify-content: center;
    z-index: 60;
}

.progress-track {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    background: #3b5f64;
    border-radius: 2px;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, rgba(103, 165, 174, 0.2), #67a5ae);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(103, 165, 174, 0.4);
    will-change: height;
}

.progress-dots {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translateX(-50%);
    pointer-events: auto;
}

.progress-dot {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    --dot-size: 8px;
    --dot-bg: #3b5f64;
    --dot-shadow: transparent;
    --dot-ring-opacity: 0;
    width: var(--dot-size);
    height: var(--dot-size);
    border-radius: 50%;
    background-color: var(--dot-bg);
    box-shadow: 0 0 10px var(--dot-shadow), 0 0 25px var(--dot-shadow);
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.progress-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    background-color: rgba(103, 165, 174, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(var(--dot-ring-opacity));
    opacity: var(--dot-ring-opacity);
    border: 1px solid rgba(103, 165, 174, 0.6);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --- Desktop Layout --- */
@media (min-width: 993px) {
    .stack-texts {
        width: 46%;
        height: 100%;
        position: relative;
        display: flex;
        align-items: center;
    }

    .stack-text-item {
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        max-width: 540px;
        will-change: transform, opacity;
    }

    .stack-text-item h3 {
        font-size: clamp(1.6rem, 3.2vw, 2.4rem);
        margin-bottom: 18px;
        color: #FFF;
        line-height: 1.15;
    }

    .stack-text-item p {
        font-size: clamp(1rem, 1.25vw, 1.2rem);
        color: var(--color-text-muted);
        line-height: 1.6;
        margin-bottom: 28px;
    }

    .stack-images {
        width: 48%;
        height: 100%;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .media-item {
        position: absolute;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        will-change: transform, opacity;
    }

    .media-item video,
    .media-item img {
        max-width: 100%;
        max-height: 60vh;
        object-fit: contain;
    }

    #media-ds-1 img {
        max-width: 75% !important;
        max-height: 55vh !important;
    }

    .scroll-progress-container {
        right: 1.5vw;
        top: 20vh;
        height: 60vh;
        width: 24px;
        z-index: 60;
    }

    .progress-track {
        width: 3px;
    }
}

/* --- Mobile Layout --- */
@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }

    .header-actions {
        height: 30px;
        gap: 10px;
    }

    .header-contact-btn {
        display: none;
    }

    .mobile-menu-btn {
        padding: 0 12px;
        gap: 6px;
    }

    .menu-text {
        font-size: 0.7rem;
    }

    .glow-1,
    .glow-2 {
        width: 250px;
        height: 250px;
        filter: blur(70px);
    }

    .mobile-nav a {
        font-size: 1.2rem;
    }

    .top-blur-overlay {
        height: 100px;
    }

    .hero {
        padding-top: 100px;
        align-items: flex-start;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
        margin-top: 4vh;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        margin-top: 40px;
    }

    #audiovisual,
    #design {
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .interactive-wrapper {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100vh;
        height: 100dvh;
        padding-top: 0;
        padding-right: 36px;
        box-sizing: border-box;
    }

    .stack-images {
        order: 1;
        width: 100%;
        height: 38vh;
        max-height: 300px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 12px;
    }

    .media-item {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        will-change: transform, opacity;
    }

    .media-item video,
    .media-item img {
        max-width: 95%;
        max-height: 100%;
        object-fit: contain;
    }

    .stack-texts {
        order: 2;
        width: 100%;
        height: 38vh;
        max-height: 280px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 0;
    }

    .stack-text-item {
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        will-change: transform, opacity;
    }

    .stack-text-item h3 {
        font-size: clamp(1.6rem, 5.8vw, 2.1rem);
        margin-bottom: 8px;
        color: #FFF;
        line-height: 1.15;
        letter-spacing: -0.5px;
    }

    .stack-text-item p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 16px;
        color: var(--color-text-muted);
    }

    .scroll-progress-container {
        display: flex !important;
        position: absolute;
        right: 8px;
        top: 25vh;
        height: 50vh;
        width: 16px;
        z-index: 80;
    }

    .progress-track {
        width: 2px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .interactive-wrapper {
        padding-right: 30px;
    }

    .stack-images {
        height: 34vh;
    }

    .stack-texts {
        height: 40vh;
    }

    .stack-text-item h3 {
        font-size: clamp(1.45rem, 5.5vw, 1.85rem);
    }

    .stack-text-item p {
        font-size: 0.9rem;
        margin-bottom: 14px;
    }
}

/* =========================================
   ANIMATED ARROW BUTTON (NEON ATIVO)
   ========================================= */
.animated-arrow {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: visible;
}

.animated-arrow:hover .the-arrow.-left .shaft,
.animated-arrow.is-active .the-arrow.-left .shaft {
    width: 32px;
    transition-delay: 0.05s;
}

.animated-arrow:hover .the-arrow.-left .shaft:before,
.animated-arrow:hover .the-arrow.-left .shaft:after,
.animated-arrow.is-active .the-arrow.-left .shaft:before,
.animated-arrow.is-active .the-arrow.-left .shaft:after {
    width: 8px;
    transition-delay: 0.05s;
}

.animated-arrow:hover .the-arrow.-left .shaft:before,
.animated-arrow.is-active .the-arrow.-left .shaft:before {
    transform: rotate(40deg);
}

.animated-arrow:hover .the-arrow.-left .shaft:after,
.animated-arrow.is-active .the-arrow.-left .shaft:after {
    transform: rotate(-40deg);
}

.animated-arrow:hover .main,
.animated-arrow.is-active .main {
    transform: translateX(40px);
}

.animated-arrow:hover .main .the-arrow.-right .shaft,
.animated-arrow.is-active .main .the-arrow.-right .shaft {
    width: 0;
    transform: translateX(200%);
    transition-delay: 0;
}

.animated-arrow:hover .main .the-arrow.-right .shaft:before,
.animated-arrow:hover .main .the-arrow.-right .shaft:after,
.animated-arrow.is-active .main .the-arrow.-right .shaft:before,
.animated-arrow.is-active .main .the-arrow.-right .shaft:after {
    width: 0;
    transition-delay: 0;
    transition: all 0.1s;
}

.animated-arrow:hover .main .the-arrow.-right .shaft:before,
.animated-arrow.is-active .main .the-arrow.-right .shaft:before {
    transform: rotate(0);
}

.animated-arrow:hover .main .the-arrow.-right .shaft:after,
.animated-arrow.is-active .main .the-arrow.-right .shaft:after {
    transform: rotate(0);
}

.animated-arrow.is-active .main .text {
    color: var(--color-primary);
    text-shadow: 0 0 12px rgba(0, 210, 255, 0.75);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.animated-arrow.is-active .the-arrow.-left .shaft,
.animated-arrow.is-active .the-arrow.-left .shaft:before,
.animated-arrow.is-active .the-arrow.-left .shaft:after {
    background-color: var(--color-primary) !important;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.8);
}

.animated-arrow .main {
    display: flex;
    align-items: center;
    transition: all 0.25s ease;
}

.animated-arrow .main .text {
    margin: 0 8px 0 0;
    line-height: 1;
}

.animated-arrow .main .the-arrow {
    position: relative;
}

.animated-arrow .the-arrow {
    width: 32px;
    transition: all 0.25s ease;
}

.animated-arrow .the-arrow.-left {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.animated-arrow .the-arrow.-left .shaft {
    width: 0;
    background-color: #FFF;
}

.animated-arrow .the-arrow.-left .shaft:before,
.animated-arrow .the-arrow.-left .shaft:after {
    width: 0;
    background-color: #FFF;
}

.animated-arrow .the-arrow.-left .shaft:before {
    transform: rotate(0);
}

.animated-arrow .the-arrow.-left .shaft:after {
    transform: rotate(0);
}

.animated-arrow .the-arrow.-right {
    top: 0;
}

.animated-arrow .the-arrow.-right .shaft {
    width: 32px;
    transition-delay: 0.15s;
}

.animated-arrow .the-arrow.-right .shaft:before,
.animated-arrow .the-arrow.-right .shaft:after {
    width: 8px;
    transition-delay: 0.2s;
    transition: all 0.3s;
}

.animated-arrow .the-arrow.-right .shaft:before {
    transform: rotate(40deg);
}

.animated-arrow .the-arrow.-right .shaft:after {
    transform: rotate(-40deg);
}

.animated-arrow .the-arrow .shaft {
    background-color: #FFF;
    display: block;
    height: 1.5px;
    position: relative;
    transition: all 0.25s;
    will-change: transform;
}

.animated-arrow .the-arrow .shaft:before,
.animated-arrow .the-arrow .shaft:after {
    background-color: #FFF;
    content: '';
    display: block;
    height: 1.5px;
    position: absolute;
    top: 0;
    right: 0;
    transition: all 0.25s;
}

.animated-arrow .the-arrow .shaft:before {
    transform-origin: top right;
}

.animated-arrow .the-arrow .shaft:after {
    transform-origin: bottom right;
}

/* =========================================
   CTAS E CARROSSEL DE PORTFÓLIO
   ========================================= */
.cta-panel {
    width: 100%;
    margin: 0 auto;
    padding: clamp(36px, 6vw, 70px) clamp(22px, 4vw, 60px);
    border-radius: 20px;
    position: relative;
    box-sizing: border-box;
}

.cta-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: var(--color-primary);
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-panel-contact .cta-actions {
    justify-content: flex-start;
}

.cta-panel-portfolio {
    text-align: center;
    background: rgba(20, 20, 24, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.cta-panel-portfolio:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.cta-panel-portfolio h2 {
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    line-height: 1.2;
    margin-bottom: 18px;
}

.cta-panel-portfolio p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.7;
    max-width: 720px;
    margin: 0 auto 34px;
    color: var(--color-text);
}

.cta-panel-portfolio .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    font-weight: 700;
}

/* Container do Carrossel com Setas Sobrepostas */
.carousel-container {
    position: relative;
    width: 100%;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
}

.carousel-viewport {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding: 8px 2px;
    width: 100%;
}

.carousel-viewport::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    flex: 0 0 clamp(220px, 26vw, 340px);
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: #0f0f13;
    position: relative;
}

.carousel-slide a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.85;
    transition: opacity 0.4s ease, transform 0.5s ease;
}

.carousel-slide:hover img {
    opacity: 1;
    transform: scale(1.05);
}

/* Setas Sobrepostas nas Extremidades */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

.carousel-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(0, 210, 255, 0.18);
    transform: translateY(-50%) scale(1.08);
}

.carousel-btn-prev {
    left: 8px;
}

.carousel-btn-next {
    right: 8px;
}

/* CTA Contato */
.cta-panel-contact {
    text-align: left;
    background: rgba(20, 20, 24, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.cta-panel-contact h2 {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    text-transform: uppercase;
    letter-spacing: -2px;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 22px;
    max-width: 15ch;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.cta-panel-contact p {
    font-size: clamp(1.1rem, 2.5vmin, 1.4rem);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 0 40px;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .cta-panel {
        padding: 36px 18px;
        border-radius: 16px;
    }

    .cta-panel-contact h2 {
        letter-spacing: -1px;
        max-width: none;
    }

    .carousel-slide {
        flex: 0 0 78%;
    }

    .carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }

    .carousel-btn-prev {
        left: 4px;
    }

    .carousel-btn-next {
        right: 4px;
    }

    .cta-panel-portfolio p {
        margin-bottom: 26px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-actions .btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 15px 20px;
    }
}

/* Glow Button */
.hero-glow-btn {
    position: relative;
}

.hero-glow-btn::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 51px;
    padding: 2px;
    background: linear-gradient(45deg, #00D2FF, #00FF88, #0099FF, #00FFD5, #00D2FF, #00FF88);
    background-size: 400%;
    animation: glowing-theme 8s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 2;
}

.hero-glow-btn:hover::before {
    opacity: 1;
}

@keyframes glowing-theme {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 400% 0;
    }

    100% {
        background-position: 0 0;
    }
}