/* CSS Variables & Theming */
:root {
    --bg-dark: #050508;
    --bg-darker: #020203;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-primary: #00f0ff;
    --accent-secondary: #7000ff;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Global Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.icon-svg {
    display: inline-block;
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
    vertical-align: -0.125em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-spin {
    animation: icon-spin 1s linear infinite;
}

.icon-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6em;
    font-size: 0.72em;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.w-100 {
    width: 100%;
}

.relative {
    position: relative;
}

/* Highlights & Gradients */
.highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Background Glow Orbs */
.bg-orbs-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s infinite alternate;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
}

.orb-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    animation-delay: -5s;
}

.orb-3 {
    top: 40%;
    left: 50%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, #ff007b 0%, transparent 70%);
    opacity: 0.2;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, -50px) scale(1.1);
    }
}

@keyframes icon-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Glassmorphism Classes */
.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.glassmorphism:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.1);
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    font-family: var(--font-heading);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(112, 0, 255, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    color: #fff;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-primary);
    font-weight: 300;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links > li > a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.nav-client-shell {
    position: relative;
}

.nav-client-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.62rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.nav-client-trigger .icon-svg {
    color: var(--accent-primary);
    font-size: 1.08rem;
    stroke-width: 2;
    transform: translateY(-0.01em);
}

.nav-client-trigger:hover,
.nav-client-trigger[aria-expanded="true"] {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-1px);
}

.client-popover {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    width: min(380px, calc(100vw - 2rem));
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.28s ease, transform 0.32s ease, visibility 0.28s ease;
    pointer-events: none;
    z-index: 120;
}

.nav-client-shell.open .client-popover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.client-popover-glow {
    position: absolute;
    inset: auto 20px -18px auto;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.18), rgba(112, 0, 255, 0.12) 40%, transparent 72%);
    filter: blur(22px);
    pointer-events: none;
}

.client-popover-card {
    position: relative;
    padding: 1.15rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(145deg, rgba(11, 16, 28, 0.98), rgba(4, 8, 15, 0.96)),
        linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(112, 0, 255, 0.08));
    backdrop-filter: blur(18px);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.client-popover-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(0, 240, 255, 0.12), transparent 34%),
        radial-gradient(circle at top right, rgba(112, 0, 255, 0.18), transparent 34%);
    pointer-events: none;
}

.client-popover-head,
.client-popover-copy,
.client-popover-badges,
.client-popover-notice,
.client-popover-form,
.client-popover-links {
    position: relative;
    z-index: 1;
}

.client-popover-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.client-popover-kicker {
    display: inline-block;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.client-popover-head h3 {
    margin-top: 0.7rem;
    font-size: 1.4rem;
    line-height: 1.05;
}

.client-popover-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.client-popover-close:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.client-popover-copy {
    margin-top: 0.8rem;
    color: #cbd5e1;
    font-size: 0.93rem;
    line-height: 1.6;
}

.client-popover-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.9rem;
}

.client-popover-badges span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.48rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #dbe7ff;
    font-size: 0.78rem;
}

.client-popover-badges .icon-svg {
    color: var(--accent-primary);
}

.client-popover-notice {
    display: none;
    margin-top: 0.95rem;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(248, 113, 113, 0.22);
    background: rgba(248, 113, 113, 0.08);
    color: #fecaca;
    font-size: 0.86rem;
}

.client-popover-notice.show {
    display: block;
}

.client-popover-notice.success {
    border-color: rgba(16, 185, 129, 0.24);
    background: rgba(16, 185, 129, 0.1);
    color: #86efac;
}

.client-popover-form {
    display: grid;
    gap: 0.82rem;
    margin-top: 1rem;
}

.client-popover-field {
    display: grid;
    gap: 0.42rem;
}

.client-popover-field label {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.client-popover-field input {
    width: 100%;
    padding: 0.92rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font: inherit;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.client-popover-field input:focus {
    outline: none;
    border-color: rgba(0, 240, 255, 0.45);
    background: rgba(0, 240, 255, 0.04);
    box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.08);
}

.client-popover-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 0.1rem;
    padding: 0.95rem 1rem;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.92), rgba(112, 0, 255, 0.92));
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(0, 240, 255, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.client-popover-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 36px rgba(112, 0, 255, 0.2);
}

.client-popover-submit:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.client-popover-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.82rem;
}

.client-popover-links a {
    color: #cbd5e1;
}

.client-popover-links a:hover {
    color: var(--accent-primary);
}

.nav-links > li > a:not(.btn-outline)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.nav-links > li > a:not(.btn-outline):hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.hamburger .icon-svg {
    stroke-width: 2.1;
}

.hamburger:hover,
.hamburger[aria-expanded="true"] {
    border-color: rgba(0, 240, 255, 0.24);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.hamburger[aria-expanded="true"] {
    transform: translateY(1px) scale(0.98);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-shell {
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 80px);
    display: grid;
    grid-template-columns: minmax(0, 1.34fr) minmax(240px, 0.66fr);
    align-items: center;
    gap: 0.5rem;
}

.hero-shell.is-transitioning .hero-content,
.hero-shell.is-transitioning .hero-visual {
    opacity: 0;
    transform: translateY(-18px);
}

.hero-layout {
    isolation: isolate;
}

.hero-backdrop-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    transform: scale(1.03);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: opacity 0.6s ease, transform 1.2s ease;
}

.hero-backdrop-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 5, 8, 0.94) 0%, rgba(5, 5, 8, 0.78) 38%, rgba(5, 5, 8, 0.42) 100%),
        radial-gradient(circle at 20% 50%, rgba(112, 0, 255, 0.2), transparent 45%);
}

.hero-backdrop-media.is-visible {
    opacity: 0.72;
    transform: scale(1);
}

.hero-content {
    max-width: clamp(860px, 66vw, 1160px);
    z-index: 10;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    opacity: 1;
    transform: translateY(0);
}

.hero-content.slider-fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

.hero-content p {
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    color: var(--text-muted);
    margin: 1.5rem 0 2.5rem;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 420px;
    overflow: visible;
    transform: translateX(4.2rem);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.hero.template_1 .hero-shell {
    grid-template-columns: minmax(0, 1.42fr) minmax(240px, 0.58fr);
}

.hero.template_1 .hero-content {
    max-width: clamp(920px, 70vw, 1200px);
}

.hero.template_1 .hero-visual {
    transform: translateX(5rem);
}

.hero h1 {
    font-size: clamp(3rem, 6.5vw, 6rem);
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 3D Element CSS */
.hero-3d-element {
    position: relative;
    width: 300px;
    height: 300px;
    perspective: 1000px;
}

.hero.template_1 .hero-3d-element {
    width: 340px;
    height: 340px;
}

.hero-media-card {
    position: relative;
    width: min(100%, 520px);
    min-height: 360px;
    overflow: visible;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.hero-media-loader,
.hero-media-stage {
    position: absolute;
    inset: 0;
}

.hero-media-loader {
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #d7f9ff;
    font-weight: 600;
    background: transparent;
    transition: opacity 0.35s ease;
}

.hero-loader-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-top-color: var(--accent-primary);
    border-right-color: var(--accent-secondary);
    animation: icon-spin 0.9s linear infinite;
}

.hero-media-stage {
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-media-card.is-loaded .hero-media-loader {
    opacity: 0;
    pointer-events: none;
}

.hero-lazy-video {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: transparent;
}

.cube-container {
    width: 100%;
    height: 100%;
    animation: rotate3d 20s infinite linear;
    transform-style: preserve-3d;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.2);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
}

.front {
    transform: translateZ(100px);
}

.back {
    transform: rotateY(180deg) translateZ(100px);
}

.right {
    transform: rotateY(90deg) translateZ(100px);
}

.left {
    transform: rotateY(-90deg) translateZ(100px);
}

.top {
    transform: rotateX(90deg) translateZ(100px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

@keyframes rotate3d {
    0% {
        transform: rotateX(0) rotateY(0);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* Sobre */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 1.2rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.stats-container {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 0.2rem;
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.glass-card {
    padding: 3rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.glow-icon {
    font-size: 3rem;
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(112, 0, 255, 0.5));
}

/* Serviços */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    padding: 2.5rem;
    text-align: left;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-img-placeholder {
    height: 250px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.dark-grad {
    background: linear-gradient(45deg, #1a1a24, #0d0d14);
}

.neon-grad {
    background: linear-gradient(45deg, #0d1214, #1a2a30);
    border-bottom: 2px solid var(--accent-primary);
}

.cyber-grad {
    background: linear-gradient(45deg, #1b1024, #120a1a);
    border-bottom: 2px solid var(--accent-secondary);
}

/* Contato & Form */
.contact-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem;
}

.contact-info p {
    color: var(--text-muted);
    margin: 1rem 0 2rem;
}

.contact-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #cbd5e1;
}

.contact-list .icon-svg,
.contact-list .icon-mark {
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    transition: 0.3s;
}

.social-links .icon-mark {
    font-size: 0.72rem;
}

.social-links a:hover {
    background: var(--accent-gradient);
    transform: translateY(-3px);
}

.cyber-form .input-group {
    margin-bottom: 1.5rem;
}

.cyber-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cyber-form input,
.cyber-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-body);
    transition: 0.3s;
}

.cyber-form input:focus,
.cyber-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(0, 240, 255, 0.02);
}

.human-check-group input[type="number"] {
    max-width: 180px;
}

.contact-trap-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.form-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

.status-success {
    color: #10b981;
}

.status-error {
    color: #ef4444;
}

/* Footer */
footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
}

.footer-logo {
    text-align: center;
    margin-bottom: 3rem;
}

.footer-logo img {
    display: block;
    width: min(250px, 100%);
    height: auto;
    margin: 0 auto;
}

.footer-logo p {
    color: var(--text-muted);
    max-width: 400px;
    margin: 1rem auto;
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links a {
    margin-left: 1.5rem;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

/* Float WhatsApp */
.float-btn-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    border: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.float-btn-whatsapp .icon-mark {
    font-size: 0.78rem;
}

.float-btn-whatsapp:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.42);
}

.whatsapp-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1.5rem;
    background: rgba(2, 7, 13, 0.3);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    z-index: 998;
}

.whatsapp-modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.whatsapp-modal-card {
    width: min(380px, 100%);
    padding: 1.25rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(145deg, rgba(6, 12, 18, 0.96), rgba(4, 24, 28, 0.94)),
        linear-gradient(135deg, rgba(37, 211, 102, 0.08), rgba(0, 240, 255, 0.06));
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.35);
    transform: translateY(24px) scale(0.96);
    transition: transform 0.32s ease;
    position: relative;
    overflow: hidden;
}

.whatsapp-modal.show .whatsapp-modal-card {
    transform: translateY(0) scale(1);
}

.whatsapp-modal-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(37, 211, 102, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 38%);
    pointer-events: none;
}

.whatsapp-modal-close,
.whatsapp-modal-kicker,
.whatsapp-modal-copy,
.whatsapp-modal-notice,
.whatsapp-modal-form {
    position: relative;
    z-index: 1;
}

.whatsapp-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    cursor: pointer;
}

.whatsapp-modal-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.34rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #b7f7cb;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.whatsapp-modal h3 {
    margin-top: 1rem;
    font-size: 1.55rem;
    line-height: 1.08;
}

.whatsapp-modal-copy {
    margin-top: 0.7rem;
    color: #cbd5e1;
    font-size: 0.92rem;
    line-height: 1.6;
}

.whatsapp-modal-notice {
    display: none;
    margin-top: 0.95rem;
    padding: 0.78rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(248, 113, 113, 0.22);
    background: rgba(248, 113, 113, 0.08);
    color: #fecaca;
    font-size: 0.86rem;
}

.whatsapp-modal-notice.show {
    display: block;
}

.whatsapp-modal-form {
    display: grid;
    gap: 0.82rem;
    margin-top: 1rem;
}

.whatsapp-modal-field {
    display: grid;
    gap: 0.42rem;
}

.whatsapp-modal-field label {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.whatsapp-modal-field input {
    width: 100%;
    padding: 0.92rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font: inherit;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-modal-field input:focus {
    outline: none;
    border-color: rgba(37, 211, 102, 0.55);
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.1);
}

.whatsapp-modal-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 0.2rem;
    padding: 0.98rem 1rem;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #25d366, #00f0ff);
    color: #052110;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-modal-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(37, 211, 102, 0.22);
}

.pulse {
    animation: shadowPulse 2s infinite;
}

@keyframes shadowPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.is-visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Responsive Details */
@media (max-width: 992px) {
    .hero {
        min-height: auto;
        text-align: center;
    }

    .hero-shell {
        min-height: auto;
        grid-template-columns: 1fr;
        justify-items: stretch;
        gap: 1.5rem;
        padding: clamp(1.5rem, 4vw, 2.4rem) 0 3.5rem;
    }

    .hero-3d-element {
        display: none;
    }

    .hero-content,
    .hero.template_1 .hero-content {
        width: 100%;
        max-width: min(100%, 40rem);
        margin: 0 auto;
    }

    .hero.template_1 .hero-content,
    .hero.template_3 .hero-content {
        max-width: min(100%, 44rem);
    }

    .hero.template_1 .hero-shell {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .hero-content p {
        max-width: 32rem;
        margin: 1.25rem auto 2rem;
        font-size: clamp(1rem, 2.8vw, 1.18rem);
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
        min-height: 0;
        justify-content: center;
        transform: none;
    }

    .hero.template_1 .hero-visual {
        display: none;
        min-height: 0;
        transform: none;
    }

    .hero.template_2 .hero-visual,
    .hero.template_3 .hero-visual {
        margin: 0 auto;
    }

    .hero.template_2 .hero-media-card,
    .hero.template_3 .hero-media-card {
        width: min(100%, 420px);
        min-height: clamp(220px, 42vw, 320px);
    }

    .hero.template_3 .hero-backdrop-media::after {
        background:
            linear-gradient(180deg, rgba(5, 5, 8, 0.9) 0%, rgba(5, 5, 8, 0.72) 34%, rgba(5, 5, 8, 0.9) 100%),
            radial-gradient(circle at 50% 18%, rgba(112, 0, 255, 0.24), transparent 44%);
    }

    .about-grid,
    .contact-box {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-box {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.1rem;
    }

    .nav-container {
        gap: 0.8rem;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 0.75rem);
        left: 0.2rem;
        right: 0.2rem;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
        padding: 0.85rem;
        border-radius: 24px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background:
            linear-gradient(145deg, rgba(8, 10, 18, 0.96), rgba(4, 7, 13, 0.94)),
            linear-gradient(135deg, rgba(0, 240, 255, 0.06), rgba(112, 0, 255, 0.08));
        box-shadow: 0 26px 60px rgba(0, 0, 0, 0.32);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-14px) scale(0.97);
        transform-origin: top center;
        transition: opacity 0.24s ease, transform 0.38s cubic-bezier(0.22, 1.18, 0.36, 1), visibility 0.24s ease;
        z-index: 140;
    }

    .nav-links.mobile-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .nav-links > li {
        width: 100%;
        opacity: 0;
        transform: translateX(-12px);
        transition: opacity 0.28s ease, transform 0.42s cubic-bezier(0.22, 1.18, 0.36, 1);
    }

    .nav-links.mobile-open > li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.mobile-open > li:nth-child(1) { transition-delay: 0.02s; }
    .nav-links.mobile-open > li:nth-child(2) { transition-delay: 0.05s; }
    .nav-links.mobile-open > li:nth-child(3) { transition-delay: 0.08s; }
    .nav-links.mobile-open > li:nth-child(4) { transition-delay: 0.11s; }
    .nav-links.mobile-open > li:nth-child(5) { transition-delay: 0.14s; }
    .nav-links.mobile-open > li:nth-child(6) { transition-delay: 0.17s; }
    .nav-links.mobile-open > li:nth-child(7) { transition-delay: 0.2s; }

    .nav-links > li > a,
    .nav-client-trigger {
        display: flex;
        width: 100%;
        justify-content: flex-start;
        padding: 0.95rem 1rem;
        border-radius: 16px;
    }

    .nav-links > li > a:not(.btn-outline)::after {
        display: none;
    }

    .nav-links > li > a:not(.btn-outline),
    .nav-client-trigger {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid transparent;
    }

    .nav-links > li > a:not(.btn-outline):hover,
    .nav-client-trigger:hover,
    .nav-client-trigger[aria-expanded="true"] {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .nav-links .btn-outline {
        justify-content: flex-start;
        border-color: rgba(0, 240, 255, 0.2);
    }

    .hamburger {
        display: inline-flex;
        flex: 0 0 auto;
        margin-top: 0.1rem;
        margin-right: 0.05rem;
    }

    .navbar {
        padding: 0.8rem 0 0.78rem;
    }

    .logo {
        font-size: 1.2rem;
        margin-left: 0.15rem;
    }

    .logo img {
        max-height: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hero {
        padding-top: 72px;
    }

    .hero-shell {
        gap: 1.25rem;
        padding: 1rem 0 2.75rem;
    }

    .hero.template_1 .hero-shell {
        grid-template-columns: 1fr;
        justify-items: stretch;
        gap: 1.6rem;
        padding-top: 1.35rem;
        padding-bottom: 3.1rem;
    }

    .hero h1 {
        font-size: clamp(2.55rem, 14vw, 4rem);
        line-height: 0.95;
        letter-spacing: -0.05em;
        text-wrap: initial;
    }

    .hero-content p {
        max-width: 26rem;
        font-size: clamp(1rem, 4.7vw, 1.12rem);
        line-height: 1.7;
    }

    .hero.template_1 .hero-content p,
    .hero.template_3 .hero-content p {
        max-width: 30rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.85rem;
        padding-inline: 0.75rem;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        max-width: 19.75rem;
        min-height: 54px;
        padding: 0.95rem 1.25rem;
    }

    .hero.template_2 .hero-media-card,
    .hero.template_3 .hero-media-card {
        width: min(100%, 380px);
        min-height: 240px;
    }

    .hero.template_2 .hero-media-card {
        width: min(100%, 420px);
        min-height: 280px;
    }

    .hero.template_2 .hero-content {
        max-width: 100%;
        padding-inline: 0.25rem;
    }

    .hero.template_2 h1 {
        max-width: 11ch;
        margin: 0 auto;
        font-size: clamp(2.45rem, 11.2vw, 4rem);
        line-height: 0.98;
    }

    .hero.template_2 .highlight {
        display: block;
        width: 100%;
        max-width: 100%;
        margin-top: 0.2rem;
        font-size: clamp(2.15rem, 10vw, 3.55rem);
        line-height: 0.92;
        letter-spacing: 0.01em;
        word-spacing: -0.32em;
    }

    .hero.template_2 .hero-content p {
        max-width: 22rem;
        margin: 1rem auto 1.7rem;
        padding-inline: 0.25rem;
        font-size: clamp(0.98rem, 4vw, 1.05rem);
    }

    .hero.template_2 .hero-buttons {
        padding-inline: 0.35rem;
    }

    .hero.template_2 .hero-buttons .btn-primary,
    .hero.template_2 .hero-buttons .btn-secondary {
        max-width: 18.5rem;
    }

    .hero.template_2 .hero-visual {
        margin-top: 0.35rem;
    }

    .hero.template_1 {
        text-align: center;
    }

    .hero.template_1 .hero-content,
    .hero.template_1 .hero-content p {
        text-align: center;
    }

    .hero.template_1 .hero-content {
        max-width: 100%;
        padding-inline: 0.5rem;
    }

    .hero.template_1 h1 {
        font-size: clamp(2.6rem, 10.8vw, 4.1rem);
        line-height: 1.02;
        letter-spacing: -0.045em;
        max-width: 12ch;
        margin: 0 auto;
    }

    .hero.template_1 .hero-content p {
        max-width: 28rem;
        margin: 1.25rem auto 2rem;
        font-size: clamp(1rem, 4.35vw, 1.08rem);
        line-height: 1.8;
    }

    .hero.template_1 .hero-buttons {
        align-items: center;
        padding-inline: 0.9rem;
        margin-inline: auto;
    }

    .hero.template_1 .hero-buttons .btn-primary,
    .hero.template_1 .hero-buttons .btn-secondary {
        max-width: 20rem;
    }

    .hero.template_3 .hero-backdrop-media {
        background-position: center top;
    }

    .nav-client-shell {
        width: 100%;
    }

    .nav-client-trigger {
        width: 100%;
    }

    .client-popover {
        position: static;
        width: 100%;
        margin-top: 0.65rem;
        transform-origin: top center;
    }

    .whatsapp-modal {
        padding: 1rem;
        align-items: flex-end;
        justify-content: stretch;
    }

    .whatsapp-modal-card {
        width: 100%;
    }
}
