*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #060a14;
    --navy2: #090e1c;
    --navy3: #0c1220;
    --blue: #4f8ef7;
    --blue2: #3b6fe0;
    --cyan: #22d3ee;
    --violet: #818cf8;
    --gold: #fbbf24;
    --white: #eef2ff;
    --muted: #7b85a0;
    --card: rgba(var(--edge-rgb), 0.035);
    --card2: rgba(79, 142, 247, 0.06);
    --border: rgba(var(--edge-rgb), 0.07);
    --border2: rgba(79, 142, 247, 0.2);
    --glow: 0 0 60px rgba(79, 142, 247, 0.3);
    --glow2: 0 0 30px rgba(34, 211, 238, 0.2);

    /* theme-aware helper tokens */
    --edge-rgb: 255, 255, 255;
    --text-soft: rgba(240, 244, 255, 0.85);
    --nav-bg1: rgba(6, 10, 20, 0.55);
    --nav-bg2: rgba(6, 10, 20, 0.75);
    --overlay-strong: rgba(4, 7, 15, 1);
    --mobile-menu-bg: rgba(10, 15, 30, 1);
    --bg-image:
        radial-gradient(
            ellipse 80% 60% at 20% -10%,
            rgba(79, 142, 247, 0.12) 0%,
            transparent 60%
        ),
        radial-gradient(
            ellipse 60% 50% at 80% 110%,
            rgba(34, 211, 238, 0.08) 0%,
            transparent 55%
        ),
        radial-gradient(
            ellipse 50% 40% at 50% 50%,
            rgba(129, 140, 248, 0.05) 0%,
            transparent 60%
        );
    --scrollbar-track: var(--navy2);
    --scrollbar-thumb: var(--blue);
    color-scheme: dark;
}

html[data-theme="light"] {
    --navy: #f5f7fc;
    --navy2: #ffffff;
    --navy3: #eef1f8;
    --white: #101425;
    --muted: #5b6478;
    --card: rgba(16, 20, 37, 0.035);
    --card2: rgba(79, 142, 247, 0.07);
    --border: rgba(16, 20, 37, 0.09);
    --border2: rgba(79, 142, 247, 0.25);
    --glow: 0 0 60px rgba(79, 142, 247, 0.18);
    --glow2: 0 0 30px rgba(34, 211, 238, 0.14);

    --edge-rgb: 15, 23, 42;
    --text-soft: rgba(16, 20, 37, 0.78);
    --nav-bg1: rgba(255, 255, 255, 0.65);
    --nav-bg2: rgba(255, 255, 255, 0.85);
    --overlay-strong: rgba(245, 247, 252, 1);
    --mobile-menu-bg: rgba(255, 255, 255, 1);
    --bg-image:
        radial-gradient(
            ellipse 80% 60% at 20% -10%,
            rgba(79, 142, 247, 0.1) 0%,
            transparent 60%
        ),
        radial-gradient(
            ellipse 60% 50% at 80% 110%,
            rgba(34, 211, 238, 0.07) 0%,
            transparent 55%
        ),
        radial-gradient(
            ellipse 50% 40% at 50% 50%,
            rgba(129, 140, 248, 0.05) 0%,
            transparent 60%
        );
    --scrollbar-track: #e4e8f2;
    --scrollbar-thumb: var(--blue);
    color-scheme: light;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    transition:
        background-color 0.4s ease,
        color 0.4s ease;
}
nav,
.nav-inner,
section,
.card-3d,
.float-badge,
.testi-card,
.pricing-card,
.portfolio-item,
.service-card,
footer,
#projectOverlay,
#subPageOverlay,
.mobile-menu,
.proj-info-card,
.proj-point,
.proj-stat-card,
.proj-nav-btn,
.proj-page-wrap,
.proj-tech-badge,
.proj-testi,
.proj-gallery-item,
.proj-page-close,
.social-btn,
.btn-ghost,
.btn-ghost-sm {
    transition:
        background-color 0.35s ease,
        border-color 0.35s ease,
        color 0.35s ease,
        box-shadow 0.35s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}
::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 10px;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--navy);
    background-image: var(--bg-image);
    color: var(--white);
    overflow-x: hidden;
    cursor: none;
}

/* ── CUSTOM CURSOR ── */
#cursor {
    width: 14px;
    height: 14px;
    background: var(--cyan);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    transition: transform 0.15s ease;
}
#cursor-trail {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(6, 182, 212, 0.4);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transition:
        transform 0.35s ease,
        width 0.2s,
        height 0.2s;
}
body:has(a:hover) #cursor {
    transform: scale(2.5);
}
body:has(button:hover) #cursor {
    transform: scale(2.5);
}

/* ── NOISE TEXTURE ── */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: radial-gradient(
        circle,
        rgba(79, 142, 247, 0.06) 1px,
        transparent 1px
    );
    background-size: 36px 36px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* ── CANVAS PARTICLES ── */
#particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* ── NAVBAR ── */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
nav.scrolled {
    padding: 10px 60px;
}
/* Frosted pill container inside nav */
.nav-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--nav-bg1);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(79, 142, 247, 0.15);
    border-radius: 16px;
    padding: 12px 28px;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(var(--edge-rgb), 0.04) inset;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
nav.scrolled .nav-inner {
    border-radius: 12px;
    padding: 10px 24px;
    background: var(--nav-bg2);
    border-color: rgba(79, 142, 247, 0.2);
    box-shadow:
        0 12px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(var(--edge-rgb), 0.05) inset;
}
.nav-logo {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    position: relative;
}
.nav-logo span {
    -webkit-text-fill-color: var(--gold);
}
.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
}
.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    padding: 7px 14px;
    border-radius: 8px;
    transition:
        color 0.2s,
        background 0.2s;
    position: relative;
}
.nav-links a:hover {
    color: var(--white);
    background: rgba(79, 142, 247, 0.1);
}
.nav-cta {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #fff;
    border: none;
    padding: 9px 20px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        opacity 0.2s,
        transform 0.2s,
        box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(79, 142, 247, 0.4);
    letter-spacing: 0.2px;
}
.nav-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(79, 142, 247, 0.5);
}
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
}

/* ── THEME TOGGLE ── */
.theme-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(var(--edge-rgb), 0.06);
    border: 1px solid var(--border);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        background 0.2s,
        border-color 0.2s,
        transform 0.2s;
}
.theme-toggle:hover {
    border-color: var(--blue);
    background: rgba(79, 142, 247, 0.1);
    transform: translateY(-1px);
}
.theme-toggle i {
    position: absolute;
    font-size: 1rem;
    transition:
        opacity 0.3s ease,
        transform 0.4s ease;
}
.theme-icon-light {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
    color: var(--gold);
}
.theme-icon-dark {
    opacity: 1;
    transform: rotate(0) scale(1);
    color: var(--cyan);
}
html[data-theme="light"] .theme-icon-dark {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}
html[data-theme="light"] .theme-icon-light {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 140px 60px 80px;
}
/* Aurora/mesh gradient overlay */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(
            ellipse 100% 80% at 30% 20%,
            rgba(79, 142, 247, 0.13) 0%,
            transparent 55%
        ),
        radial-gradient(
            ellipse 70% 60% at 75% 80%,
            rgba(34, 211, 238, 0.09) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse 50% 40% at 90% 10%,
            rgba(129, 140, 248, 0.08) 0%,
            transparent 45%
        );
    z-index: 0;
}
.hero-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(79, 142, 247, 0.12) 0%,
        transparent 70%
    );
    top: 50%;
    left: 50%;
    transform: translate(-50%, -62%);
    pointer-events: none;
    animation: glow-pulse 8s ease-in-out infinite;
}
.hero-glow-2 {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(34, 211, 238, 0.08) 0%,
        transparent 70%
    );
    bottom: -100px;
    right: -150px;
    pointer-events: none;
    animation: glow-pulse 10s ease-in-out infinite reverse;
}
@keyframes glow-pulse {
    0%,
    100% {
        opacity: 0.8;
        transform: translate(-50%, -62%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -62%) scale(1.08);
    }
}
.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(79, 142, 247, 0.1);
    border: 1px solid rgba(79, 142, 247, 0.25);
    border-radius: 100px;
    padding: 7px 16px;
    font-size: 0.78rem;
    color: var(--cyan);
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.3px;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 16px rgba(79, 142, 247, 0.15);
}
.hero-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    animation: pulse 2s infinite;
    box-shadow: 0 0 8px var(--cyan);
}
@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}
.hero-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}
.hero-title .grad {
    background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-title .gold {
    -webkit-text-fill-color: var(--gold);
}
.hero-sub {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 36px;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.35);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.5);
}
.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1.5px solid var(--border);
    padding: 13px 26px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition:
        border-color 0.2s,
        background 0.2s;
}
.btn-ghost:hover {
    border-color: var(--blue);
    background: rgba(59, 130, 246, 0.07);
}

/* Hero stats */
.hero-stats {
    display: flex;
    gap: 28px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.hero-stat-num {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
}
.hero-stat-num span {
    color: var(--cyan);
}
.hero-stat-label {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 2px;
}

/* Hero card 3D */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-3d {
    width: 340px;
    height: 420px;
    border-radius: 24px;
    background: linear-gradient(
        145deg,
        rgba(var(--edge-rgb), 0.07) 0%,
        rgba(var(--edge-rgb), 0.02) 100%
    );
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(var(--edge-rgb), 0.05) inset;
    padding: 30px;
    transition: transform 0.1s ease;
    position: relative;
    overflow: hidden;
}
.card-3d::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(59, 130, 246, 0.6),
        transparent
    );
}
.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.card-logo-sm {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.card-dots {
    display: flex;
    gap: 5px;
}
.card-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.card-dots span:nth-child(1) {
    background: #ff5f57;
}
.card-dots span:nth-child(2) {
    background: #febc2e;
}
.card-dots span:nth-child(3) {
    background: #28c840;
}
.card-preview {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0d1427 0%, #1a2540 100%);
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}
.code-block {
    font-family: "Consolas", "SFMono-Regular", "Fira Code", monospace;
    font-size: 0.66rem;
    line-height: 1.85;
    padding: 14px 14px 10px;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
}
.code-line {
    color: rgba(255, 255, 255, 0.88);
}
.code-ln {
    display: inline-block;
    width: 15px;
    margin-right: 10px;
    color: rgba(255, 255, 255, 0.22);
    user-select: none;
}
.tk-kw {
    color: #c792ea;
}
.tk-var {
    color: #82aaff;
}
.tk-fn {
    color: #ffcb6b;
}
.tk-str {
    color: #c3e88d;
}
.tk-num {
    color: #ff8b6b;
}
.tk-punct {
    color: #89ddff;
}
.tk-com {
    color: #5c6e7e;
    font-style: italic;
}
.code-terminal-line #codeStatus {
    transition:
        color 0.3s ease,
        opacity 0.2s ease;
}
.code-cursor {
    display: inline-block;
    width: 6px;
    height: 11px;
    background: var(--cyan);
    margin-left: 5px;
    vertical-align: middle;
    animation: codeBlink 0.9s step-start infinite;
}
@keyframes codeBlink {
    50% {
        opacity: 0;
    }
}
.card-metric {
    display: flex;
    justify-content: space-between;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
}
.card-metric-label {
    font-size: 0.75rem;
    color: var(--muted);
}
.card-metric-val {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--cyan);
}
.card-progress {
    margin-top: 16px;
}
.card-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--muted);
    margin-bottom: 6px;
}
.card-progress-bar {
    height: 5px;
    background: rgba(var(--edge-rgb), 0.07);
    border-radius: 99px;
    overflow: hidden;
}
.card-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    border-radius: 99px;
    animation: fill-anim 3s ease-in-out infinite alternate;
}
@keyframes fill-anim {
    from {
        width: 60%;
    }
    to {
        width: 92%;
    }
}
/* floating badges */
.float-badge {
    position: absolute;
    background: rgba(10, 15, 30, 0.9);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    animation: float-y 4s ease-in-out infinite;
}
.float-badge:nth-child(2) {
    animation-delay: 1s;
    top: 10%;
    right: -30px;
}
.float-badge:nth-child(3) {
    animation-delay: 2s;
    bottom: 12%;
    left: -40px;
}
@keyframes float-y {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}
.float-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.float-text {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--white);
}
.float-sub {
    font-size: 0.62rem;
    color: var(--muted);
}

/* ── LIGHT THEME: penyesuaian warna khusus card-3d & float-badge ── */
html[data-theme="light"] .card-3d {
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.92) 0%,
        rgba(237, 242, 255, 0.55) 100%
    );
    box-shadow:
        0 24px 60px rgba(16, 20, 37, 0.12),
        0 0 0 1px rgba(16, 20, 37, 0.04) inset;
}
html[data-theme="light"] .card-3d::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(59, 130, 246, 0.45),
        transparent
    );
}
html[data-theme="light"] .card-preview {
    background: linear-gradient(135deg, #10182c 0%, #1d2a47 100%);
    border: 1px solid rgba(16, 20, 37, 0.08);
    box-shadow: 0 10px 26px rgba(16, 20, 37, 0.14);
}
html[data-theme="light"] .card-metric {
    background: rgba(59, 130, 246, 0.06);
    border-color: rgba(59, 130, 246, 0.18);
}
html[data-theme="light"] .card-progress-bar {
    background: rgba(16, 20, 37, 0.07);
}
html[data-theme="light"] .float-badge {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(16, 20, 37, 0.08);
    box-shadow: 0 10px 30px rgba(16, 20, 37, 0.14);
}

/* ── SECTION BASE ── */
section {
    position: relative;
    z-index: 1;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}
.section-pad {
    padding: 110px 0;
}
.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 14px;
}
.section-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.8px;
    line-height: 1.15;
    margin-bottom: 16px;
}
.section-sub {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 540px;
}
.text-center {
    text-align: center;
}
.text-center .section-sub {
    margin: 0 auto;
}

/* ── MARQUEE ── */
.marquee-wrap {
    padding: 26px 0;
    overflow: hidden;
    border-top: 1px solid rgba(79, 142, 247, 0.12);
    border-bottom: 1px solid rgba(79, 142, 247, 0.12);
    background: rgba(79, 142, 247, 0.025);
}
.marquee-track {
    display: flex;
    gap: 56px;
    white-space: nowrap;
    animation: marquee 22s linear infinite;
    width: max-content;
}
.marquee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 500;
    opacity: 0.65;
    transition: opacity 0.2s;
}
.marquee-item:hover {
    opacity: 1;
}
.marquee-item i {
    color: var(--blue);
}
@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* ── SERVICES ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
}
.service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px;
    transition:
        border-color 0.3s,
        transform 0.3s,
        box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    cursor: default;
}
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(
        600px circle at var(--mx, 50%) var(--my, 50%),
        rgba(59, 130, 246, 0.08),
        transparent 40%
    );
    transition: opacity 0.4s;
}
.service-card:hover::before {
    opacity: 1;
}
.service-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}
.service-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.service-desc {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 20px;
}
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.tag {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 99px;
}
.service-card.featured {
    background: linear-gradient(
        145deg,
        rgba(59, 130, 246, 0.12) 0%,
        rgba(6, 182, 212, 0.05) 100%
    );
    border-color: rgba(59, 130, 246, 0.35);
    grid-row: span 1;
}
.service-card.featured .service-icon {
    background: linear-gradient(135deg, var(--gold), #f97316);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}
.featured-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: linear-gradient(135deg, var(--gold), #f97316);
    color: var(--navy);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px;
    letter-spacing: 0.5px;
}

/* ── PORTFOLIO ── */
.portfolio-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.tab-btn {
    background: rgba(var(--edge-rgb), 0.04);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 8px 18px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.tab-btn.active,
.tab-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--blue);
    color: var(--white);
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.portfolio-item {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
    cursor: pointer;
}
.portfolio-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.portfolio-thumb {
    height: 200px;
    position: relative;
    overflow: hidden;
}
.portfolio-thumb-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 30, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}
.portfolio-overlay-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}
.portfolio-info {
    background: var(--card);
    padding: 18px;
}
.portfolio-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.portfolio-cat {
    font-size: 0.78rem;
    color: var(--cyan);
}

/* ── PROCESS ── */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 60px;
    position: relative;
}
.process-grid::before {
    content: "";
    position: absolute;
    top: 32px;
    left: 60px;
    right: 60px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--border),
        var(--blue),
        var(--border),
        transparent
    );
}
.process-step {
    padding: 0 20px;
    text-align: center;
}
.process-num {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blue);
    position: relative;
    z-index: 1;
    transition:
        background 0.3s,
        border-color 0.3s;
}
.process-step:hover .process-num {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border-color: transparent;
    color: #fff;
}
.process-step-title {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
}
.process-step-desc {
    color: var(--muted);
    font-size: 0.83rem;
    line-height: 1.6;
}

/* ── PRICING ── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
}
.pricing-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 30px;
    position: relative;
    transition:
        transform 0.3s,
        border-color 0.3s;
}
.pricing-card:hover {
    transform: translateY(-4px);
}
.pricing-card.popular {
    background: linear-gradient(
        145deg,
        rgba(59, 130, 246, 0.12),
        rgba(6, 182, 212, 0.05)
    );
    border-color: var(--blue);
    box-shadow: var(--glow);
}
.popular-label {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 99px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.pricing-name {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 8px;
}
.pricing-price {
    font-family: "Space Grotesk", sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 4px;
}
.pricing-price sup {
    font-size: 1.1rem;
    vertical-align: super;
}
.pricing-period {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 28px;
}
.pricing-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 24px;
}
.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}
.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--muted);
    padding: 7px 0;
    border-bottom: 1px solid rgba(var(--edge-rgb), 0.03);
}
.pricing-features li i {
    color: var(--cyan);
    font-size: 0.8rem;
    min-width: 14px;
}
.pricing-features li.na {
    opacity: 0.35;
    text-decoration: line-through;
}
.pricing-btn {
    width: 100%;
    padding: 13px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition:
        opacity 0.2s,
        transform 0.2s;
}
.pricing-btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--white);
}
.pricing-btn-outline:hover {
    border-color: var(--blue);
    color: var(--blue);
}
.pricing-btn-filled {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #fff;
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.4);
}
.pricing-btn-filled:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* ── TESTIMONIALS ── */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
}
.testi-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    transition:
        border-color 0.3s,
        transform 0.3s;
}
.testi-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-3px);
}
.testi-stars {
    color: var(--gold);
    font-size: 0.9rem;
    margin-bottom: 14px;
}
.testi-text {
    color: var(--text-soft);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}
.testi-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testi-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}
.testi-name {
    font-weight: 600;
    font-size: 0.88rem;
}
.testi-role {
    font-size: 0.75rem;
    color: var(--muted);
}

/* ── CTA ── */
.cta-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.cta-inner {
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.15) 0%,
        rgba(6, 182, 212, 0.08) 100%
    );
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 24px;
    padding: 70px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-inner::before {
    content: "";
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(59, 130, 246, 0.15),
        transparent 60%
    );
    pointer-events: none;
}
.cta-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.8px;
    margin-bottom: 16px;
}
.cta-sub {
    color: var(--muted);
    margin-bottom: 36px;
    font-size: 1rem;
}
.cta-form {
    display: flex;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto;
}
.cta-input {
    flex: 1;
    background: rgba(var(--edge-rgb), 0.06);
    border: 1px solid var(--border);
    color: var(--white);
    padding: 13px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}
.cta-input::placeholder {
    color: var(--muted);
}
.cta-input:focus {
    border-color: var(--blue);
}

/* ── FOOTER ── */
footer {
    border-top: 1px solid transparent;
    background:
        linear-gradient(var(--navy2), var(--navy2)) padding-box,
        linear-gradient(
                90deg,
                transparent,
                rgba(79, 142, 247, 0.3),
                rgba(34, 211, 238, 0.2),
                transparent
            )
            border-box;
    padding: 70px 0 36px;
    position: relative;
    overflow: hidden;
}
footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(79, 142, 247, 0.5) 30%,
        rgba(34, 211, 238, 0.4) 60%,
        transparent 100%
    );
}
footer::after {
    content: "";
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(79, 142, 247, 0.05) 0%,
        transparent 70%
    );
    pointer-events: none;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}
.footer-brand-desc {
    color: var(--muted);
    font-size: 0.87rem;
    line-height: 1.75;
    margin-top: 14px;
    max-width: 260px;
}
.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}
.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(var(--edge-rgb), 0.04);
    border: 1px solid rgba(var(--edge-rgb), 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition:
        color 0.25s,
        border-color 0.25s,
        background 0.25s,
        transform 0.2s,
        box-shadow 0.25s;
}
.social-btn:hover {
    color: var(--white);
    border-color: rgba(79, 142, 247, 0.5);
    background: rgba(79, 142, 247, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 142, 247, 0.2);
}
.footer-col-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--white);
    opacity: 0.7;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.footer-links a {
    color: var(--muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition:
        color 0.2s,
        padding-left 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    border-top: 1px solid rgba(var(--edge-rgb), 0.06);
    font-size: 0.8rem;
    color: var(--muted);
    position: relative;
    z-index: 1;
}
.footer-bottom a {
    color: var(--muted);
    text-decoration: none;
}
.footer-bottom a:hover {
    color: var(--white);
}

/* ── SCROLL REVEAL ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 {
    transition-delay: 0.1s;
}
.reveal-delay-2 {
    transition-delay: 0.2s;
}
.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* ── MOBILE NAV ── */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--mobile-menu-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    z-index: 1100;
    flex-direction: column;
    overflow-y: auto;
}
.mobile-menu.open {
    display: flex;
    animation: mobileMenuFade 0.35s ease;
}
@keyframes mobileMenuFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Header: website title + close */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(var(--edge-rgb), 0.08);
}
.mobile-menu-logo {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}
.mobile-menu-logo span {
    -webkit-text-fill-color: var(--gold);
}
.mobile-close {
    background: rgba(var(--edge-rgb), 0.05);
    border: 1px solid rgba(var(--edge-rgb), 0.08);
    color: var(--white);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.2s,
        border-color 0.2s,
        transform 0.2s;
}
.mobile-close:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: #f87171;
    transform: rotate(90deg);
}

/* Links: fills remaining space, centered */
.mobile-menu-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
    padding: 28px 20px;
    min-height: 0;
}
.mobile-menu-links a {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
    font-family: "Space Grotesk", sans-serif;
    padding: 14px 16px;
    border-radius: 12px;
    transition:
        background 0.2s,
        color 0.2s,
        padding-left 0.2s;
}
.mobile-menu-links a i {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--blue);
    flex-shrink: 0;
}
.mobile-menu-links a:hover,
.mobile-menu-links a:active {
    background: rgba(79, 142, 247, 0.08);
    color: var(--cyan);
    padding-left: 20px;
}
.mobile-menu-links a:not(:last-child) {
    border-bottom: 1px solid rgba(var(--edge-rgb), 0.05);
}

/* Footer: CTA + socials + copy */
.mobile-menu-footer {
    flex-shrink: 0;
    padding: 24px 24px 30px;
    border-top: 1px solid rgba(var(--edge-rgb), 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    background: rgba(var(--edge-rgb), 0.015);
}
.mobile-menu-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    text-decoration: none;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 22px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.mobile-menu-wa:active {
    transform: scale(0.97);
}
.mobile-menu-socials {
    display: flex;
    gap: 10px;
}
.mobile-menu-copy {
    font-size: 0.75rem;
    color: var(--muted);
    text-align: center;
    letter-spacing: 0.2px;
}

/* ── FLOATING ACTIONS (WA chat + back to top) ── */
.float-actions {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 950;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

/* WhatsApp floating button */
.wa-float-wrap {
    position: relative;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition:
        opacity 0.4s ease,
        transform 0.4s ease,
        visibility 0.4s;
}
.wa-float-wrap.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.wa-float-wrap.hidden {
    display: none;
}
.wa-float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    font-size: 1.55rem;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35);
    animation: waPulse 2.8s ease-in-out infinite;
}
.wa-float-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 14px 34px rgba(37, 211, 102, 0.5);
}
@keyframes waPulse {
    0%,
    100% {
        box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35);
    }
    50% {
        box-shadow:
            0 10px 28px rgba(37, 211, 102, 0.35),
            0 0 0 9px rgba(37, 211, 102, 0.12);
    }
}
.wa-float-close {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--navy2);
    border: 1px solid rgba(var(--edge-rgb), 0.15);
    color: var(--muted);
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.75);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        color 0.2s,
        border-color 0.2s;
}
.wa-float-wrap:hover .wa-float-close,
.wa-float-close:focus-visible {
    opacity: 1;
    transform: scale(1);
}
.wa-float-close:hover {
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.1);
}

/* Back-to-top: transparent by default, brightens near cursor / on hover */
.back-to-top {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--edge-rgb), 0.05);
    border: 1px solid rgba(var(--edge-rgb), 0.09);
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition:
        opacity 0.4s ease,
        transform 0.4s ease,
        visibility 0.4s,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        color 0.25s ease;
}
.back-to-top.is-visible {
    opacity: 0.32;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.back-to-top.is-visible.is-near,
.back-to-top.is-visible:hover {
    opacity: 1;
    background: rgba(79, 142, 247, 0.16);
    border-color: rgba(79, 142, 247, 0.45);
    box-shadow: 0 8px 26px rgba(79, 142, 247, 0.28);
    color: var(--cyan);
}

@media (max-width: 768px) {
    .float-actions {
        right: 16px;
        bottom: 16px;
        gap: 12px;
    }
    .wa-float-btn {
        width: 50px;
        height: 50px;
        font-size: 1.35rem;
    }
    .back-to-top {
        width: 42px;
        height: 42px;
        font-size: 0.9rem;
    }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .services-grid,
    .testi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .process-grid::before {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 12px 16px;
    }
    nav.scrolled {
        padding: 10px 16px;
    }
    .nav-inner {
        padding: 10px 16px;
        border-radius: 12px;
    }
    .nav-links,
    .nav-cta {
        display: none;
    }
    .nav-hamburger {
        display: block;
    }
    .hero {
        padding: 100px 24px 60px;
    }
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-visual {
        display: none;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-sub {
        margin: 0 auto 36px;
    }
    .container {
        padding: 0 24px;
    }
    .services-grid,
    .testi-grid,
    .portfolio-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .pricing-grid .pricing-card:nth-child(2) {
        order: -1;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .cta-form {
        flex-direction: column;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    body {
        cursor: auto;
    }
    #cursor,
    #cursor-trail {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-badge {
        font-size: 0.72rem;
        padding: 6px 12px;
    }
    .hero-title {
        font-size: clamp(1.9rem, 9vw, 2.4rem) !important;
    }
    .hero-stat-num {
        font-size: 1.5rem !important;
    }
    .nav-logo {
        font-size: 1.2rem;
    }
    section {
        padding-left: 16px;
        padding-right: 16px;
    }
    .container {
        padding: 0 16px;
    }
}
/* ── PROJECT DETAIL OVERLAY ── */
#projectOverlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2100;
    overflow-y: auto;
    background: rgba(4, 7, 15, 0);
    transition: background 0.4s ease;
}
#projectOverlay.open {
    background: var(--overlay-strong);
}
.proj-close-btn {
    position: fixed;
    top: 24px;
    right: 32px;
    z-index: 10;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(var(--edge-rgb), 0.05);
    border: 1px solid rgba(var(--edge-rgb), 0.1);
    color: var(--white);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    transition:
        background 0.2s,
        transform 0.3s,
        border-color 0.2s;
}
.proj-close-btn:hover {
    background: rgba(79, 142, 247, 0.25);
    border-color: var(--blue);
    transform: scale(1.1) rotate(90deg);
}
.proj-detail-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 40px 100px;
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.45s ease 0.1s,
        transform 0.45s ease 0.1s;
}
#projectOverlay.open .proj-detail-wrap {
    opacity: 1;
    transform: translateY(0);
}
.proj-hero {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    height: 440px;
    position: relative;
    margin-bottom: 52px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65);
}
.proj-hero-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.proj-browser-chrome {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 16px;
    background: rgba(8, 12, 24, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.proj-browser-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.proj-browser-bar {
    flex: 1 1 auto;
    min-width: 0; /* kunci: flex item wajib ini supaya boleh menyusut & anaknya bisa truncate */
    height: 22px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    margin: 0 14px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.3);
    font-family: monospace;
    overflow: hidden;
}
.proj-browser-bar a,
.proj-browser-bar > span:last-child {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: inline-block;
    min-width: 0;
}
.proj-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 44px 48px;
    background: linear-gradient(
        to top,
        rgba(6, 10, 20, 0.97) 0%,
        rgba(6, 10, 20, 0.4) 60%,
        transparent 100%
    );
}
.proj-hero-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.proj-hero-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #3861d3 0%, #3f7cff 55%, #2d54d2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mode terang: biru muda elegan */
html[data-theme="light"] .proj-hero-title {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 55%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.proj-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.proj-hero-tag {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.74rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 99px;
    backdrop-filter: blur(8px);
}
.proj-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 52px;
}
.proj-stat-card {
    background: rgba(var(--edge-rgb), 0.03);
    border: 1px solid rgba(var(--edge-rgb), 0.07);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    transition:
        border-color 0.3s,
        background 0.3s,
        transform 0.3s;
}
.proj-stat-card:hover {
    border-color: rgba(79, 142, 247, 0.3);
    background: rgba(79, 142, 247, 0.06);
    transform: translateY(-3px);
}
.proj-stat-icon {
    font-size: 1.6rem;
    margin-bottom: 10px;
}
.proj-stat-num {
    font-family: "Space Grotesk", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}
.proj-stat-label {
    font-size: 0.75rem;
    color: var(--muted);
}
.proj-body {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    margin-bottom: 52px;
    align-items: start;
}
.proj-section-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.proj-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(79, 142, 247, 0.25), transparent);
}
.proj-overview-text {
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.85;
    margin-bottom: 28px;
}
.proj-points {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
}
.proj-point {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 20px;
    background: rgba(var(--edge-rgb), 0.025);
    border: 1px solid rgba(var(--edge-rgb), 0.06);
    border-radius: 14px;
    transition:
        border-color 0.2s,
        background 0.2s;
}
.proj-point:hover {
    border-color: rgba(79, 142, 247, 0.3);
    background: rgba(79, 142, 247, 0.04);
}
.proj-point-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.proj-point-title {
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 4px;
}
.proj-point-text {
    color: var(--muted);
    font-size: 0.81rem;
    line-height: 1.6;
}
.proj-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.proj-info-card {
    background: rgba(var(--edge-rgb), 0.025);
    border: 1px solid rgba(var(--edge-rgb), 0.07);
    border-radius: 18px;
    padding: 24px;
}
.proj-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(var(--edge-rgb), 0.05);
    font-size: 0.83rem;
}
.proj-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.proj-info-label {
    color: var(--muted);
}
.proj-info-val {
    font-weight: 600;
    text-align: right;
    max-width: 58%;
}
.proj-tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.proj-tech-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(79, 142, 247, 0.08);
    border: 1px solid rgba(79, 142, 247, 0.18);
    color: var(--white);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 6px 13px;
    border-radius: 99px;
    transition:
        background 0.2s,
        border-color 0.2s;
}
.proj-tech-badge:hover {
    background: rgba(79, 142, 247, 0.18);
    border-color: rgba(79, 142, 247, 0.4);
}
.proj-tech-badge i {
    color: var(--cyan);
    font-size: 0.72rem;
}
.proj-progress-item {
    margin-bottom: 16px;
}
.proj-progress-head {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 7px;
    color: var(--muted);
}
.proj-progress-head span:last-child {
    color: var(--cyan);
    font-weight: 600;
}
.proj-prog-bar {
    height: 5px;
    background: rgba(var(--edge-rgb), 0.06);
    border-radius: 99px;
    overflow: hidden;
}
.proj-prog-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    width: 0;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.proj-testi {
    background: linear-gradient(
        135deg,
        rgba(79, 142, 247, 0.08) 0%,
        rgba(34, 211, 238, 0.04) 100%
    );
    border: 1px solid rgba(79, 142, 247, 0.2);
    border-radius: 20px;
    padding: 32px;
    position: relative;
    margin-bottom: 40px;
}
.proj-testi::before {
    content: '"';
    position: absolute;
    top: -8px;
    left: 24px;
    font-size: 7rem;
    line-height: 1;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: Georgia, serif;
    opacity: 0.35;
}
.proj-testi-text {
    color: var(--white);
    font-size: 0.97rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 20px;
    margin-top: 28px;
}
.proj-testi-author {
    display: flex;
    align-items: center;
    gap: 14px;
}
.proj-testi-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    flex-shrink: 0;
}
.proj-testi-name {
    font-weight: 600;
    font-size: 0.9rem;
}
.proj-testi-role {
    font-size: 0.77rem;
    color: var(--cyan);
}
.proj-testi-stars {
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.proj-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 48px;
}
.proj-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    height: 130px;
    position: relative;
    border: 1px solid rgba(var(--edge-rgb), 0.06);
    cursor: pointer;
    transition:
        transform 0.3s,
        box-shadow 0.3s,
        border-color 0.3s;
}
.proj-gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(79, 142, 247, 0.3);
}
.proj-gallery-item:first-child {
    grid-column: span 2;
    height: 160px;
}
.proj-cta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: linear-gradient(
        135deg,
        rgba(79, 142, 247, 0.1) 0%,
        rgba(34, 211, 238, 0.05) 100%
    );
    border: 1px solid rgba(79, 142, 247, 0.25);
    border-radius: 20px;
    padding: 28px 36px;
}
.proj-cta-bar-text h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}
.proj-cta-bar-text p {
    color: var(--muted);
    font-size: 0.85rem;
}
.proj-cta-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.btn-ghost-sm {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(var(--edge-rgb), 0.15);
    padding: 11px 22px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.88rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition:
        border-color 0.2s,
        background 0.2s;
}
.btn-ghost-sm:hover {
    border-color: var(--blue);
    background: rgba(79, 142, 247, 0.08);
}
.proj-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(var(--edge-rgb), 0.07);
}
.proj-nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(var(--edge-rgb), 0.03);
    border: 1px solid rgba(var(--edge-rgb), 0.07);
    border-radius: 14px;
    padding: 16px 22px;
    cursor: pointer;
    text-decoration: none;
    color: var(--white);
    transition:
        border-color 0.2s,
        background 0.2s,
        transform 0.2s;
    max-width: 280px;
}
.proj-nav-btn:hover {
    border-color: rgba(79, 142, 247, 0.3);
    background: rgba(79, 142, 247, 0.06);
    transform: translateY(-2px);
}
.proj-nav-btn-icon {
    font-size: 1.4rem;
}
.proj-nav-btn-label {
    font-size: 0.72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}
.proj-nav-btn-name {
    font-weight: 600;
    font-size: 0.9rem;
}
@media (max-width: 768px) {
    .proj-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .proj-body {
        grid-template-columns: 1fr;
    }
    .proj-gallery {
        grid-template-columns: 1fr;
    }
    .proj-gallery-item:first-child {
        grid-column: span 1;
    }
    .proj-cta-bar {
        flex-direction: column;
        text-align: center;
    }
    .proj-cta-btns {
        justify-content: center;
    }
    /* hero jadi 2 blok bertumpuk: gambar lalu teks, tidak absolute lagi */
    .proj-hero {
        height: auto;
        display: flex;
        flex-direction: column;
    }
    .proj-hero-bg {
        position: relative;
        height: 220px;
        flex: 0 0 220px;
    }
    .proj-hero-content {
        position: static;
        background: linear-gradient(160deg, var(--navy2) 0%, var(--navy3) 100%);
        padding: 18px 16px 20px;
        display: block;
    }
    .proj-hero-textbox {
        display: block;
        width: 100%;
        max-width: 100%;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
    }
    .proj-detail-wrap {
        padding: 60px 20px 80px;
    }
    .proj-nav-row {
        flex-direction: column;
    }

    .proj-browser-chrome {
        padding: 0 12px;
        gap: 5px;
    }
    .proj-browser-bar {
        margin: 0 8px;
        font-size: 0.62rem;
    }
    .proj-browser-chrome .fa-share-alt {
        display: none; /* tidak perlu di layar sempit */
    }

    .proj-hero-textbox::after {
        display: none; /* glow radial tidak perlu di atas background solid */
    }
    .proj-hero-eyebrow {
        font-size: 0.62rem;
        letter-spacing: 1.5px;
        margin-bottom: 6px;
    }

    .proj-hero-title {
        font-size: clamp(1.3rem, 6vw, 1.7rem) !important;
        line-height: 1.2;
        margin-bottom: 10px;
        word-break: break-word;
    }

    .proj-hero-tag {
        font-size: 0.66rem;
        padding: 3px 9px;
    }
}

@media (max-width: 480px) {
    /* .proj-hero TIDAK diberi tinggi tetap di sini lagi — biarkan auto mengikuti
       tinggi konten (title + tags + tombol), supaya tombol live demo tidak lagi
       terpotong/hilang saat title-nya panjang di layar kecil. */
    .proj-hero-bg {
        height: 180px;
        flex-basis: 180px;
    }
}
.proj-page-wrap {
    min-height: 100vh;
    padding: 110px 24px 60px;
    background: var(--navy);
    color: var(--white);
    transition:
        background-color 0.4s ease,
        color 0.4s ease;
}
.proj-detail-container {
    max-width: 1100px;
    margin: 0 auto;
}
.proj-page-close {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--edge-rgb), 0.06);
    border: 1px solid rgba(var(--edge-rgb), 0.12);
    color: var(--white);
    font-size: 1.1rem;
    z-index: 50;
    text-decoration: none;
    transition:
        background 0.2s,
        transform 0.2s,
        color 0.4s ease,
        border-color 0.4s ease;
}
.proj-page-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    transform: rotate(90deg);
}

/* ── LIGHT THEME: penyesuaian khusus halaman detail proyek ── */
html[data-theme="light"] .proj-hero {
    box-shadow: 0 30px 80px rgba(16, 20, 37, 0.18);
}
html[data-theme="light"] .proj-gallery-item:hover {
    box-shadow: 0 16px 40px rgba(16, 20, 37, 0.16);
}
html[data-theme="light"] .proj-nav-btn,
html[data-theme="light"] .proj-stat-card,
html[data-theme="light"] .proj-info-card,
html[data-theme="light"] .proj-point {
    background: rgba(16, 20, 37, 0.025);
}
/* Panel gelap di belakang teks hero — menjamin kontras apa pun warna gambarnya */
.proj-hero-textbox {
    display: inline-block;
    max-width: 100%;
    background: rgba(4, 7, 15, 0.55);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 22px;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
}

/* Overlay klik full-area di atas hero agar seluruh preview bisa dibuka ke demo link */
.proj-hero-click-overlay {
    position: absolute;
    inset: 0;
    z-index: 6;
    border-radius: 24px;
    cursor: pointer;
}
.proj-hero:hover .proj-hero-bg {
    filter: brightness(1.06);
}
.proj-hero-bg {
    transition: filter 0.3s ease;
}
.proj-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 11px 22px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #04070f;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(79, 142, 247, 0.4);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}
.proj-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(79, 142, 247, 0.55);
    opacity: 0.95;
}
.proj-hero-cta i {
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .proj-hero-cta {
        width: 100%;
        justify-content: center;
        margin-top: 14px;
        padding: 12px 18px;
    }
}
