/* ==========================================================================
   WebPiyasa — Next-Level 3D Cyber-Spatial Homepage Stylesheet
   Scoped strictly to body.home-3d-page so subpages remain untouched
   ========================================================================== */

:root {
    --h3d-bg-deep: #030712;
    --h3d-bg-navy: #070f24;
    --h3d-surface: rgba(12, 22, 48, 0.52);
    --h3d-surface-hover: rgba(18, 34, 72, 0.72);
    --h3d-border: rgba(56, 189, 248, 0.18);
    --h3d-border-bright: rgba(0, 242, 254, 0.55);
    --h3d-blue: #0d6efd;
    --h3d-cyan: #00f2fe;
    --h3d-violet: #7c3aed;
    --h3d-text-primary: #f8fafc;
    --h3d-text-secondary: #94a3b8;
    --h3d-font-display: 'Space Grotesk', 'Inter', sans-serif;
    --h3d-font-body: 'Inter', sans-serif;
}

/* Base Dark Cyber-Space Environment */
body.home-3d-page {
    background-color: var(--h3d-bg-deep);
    background-image: none;
    color: var(--h3d-text-primary);
    font-family: var(--h3d-font-body);
    overflow-x: hidden;
    position: relative;
}

body.home-3d-page h1,
body.home-3d-page h2,
body.home-3d-page h3,
body.home-3d-page h4 {
    font-family: var(--h3d-font-display);
    color: var(--h3d-text-primary);
}

body.home-3d-page main {
    position: relative;
    z-index: 2;
}

/* Custom Dark Scrollbar */
body.home-3d-page::-webkit-scrollbar {
    width: 8px;
}

body.home-3d-page::-webkit-scrollbar-track {
    background: #02050d;
}

body.home-3d-page::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--h3d-blue), var(--h3d-cyan));
    border-radius: 10px;
}

/* ==========================================================================
   Persistent WebGL 3D Canvas
   ========================================================================== */
#webgl-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    display: block;
}

.h3d-ambient-vignette {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 20%, rgba(13, 110, 253, 0.14) 0%, transparent 55%),
        radial-gradient(circle at 85% 75%, rgba(0, 242, 254, 0.09) 0%, transparent 45%),
        radial-gradient(circle at 15% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 45%),
        linear-gradient(180deg, rgba(3, 7, 18, 0.15) 0%, rgba(3, 7, 18, 0.55) 100%);
}

/* ==========================================================================
   Full-Page Cinematic Preloader (All Pages)
   ========================================================================== */
#cyber-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    background: radial-gradient(circle at 50% 45%, #091736 0%, #030712 68%, #01030a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.65s ease;
}

#cyber-preloader.loaded {
    opacity: 0;
    transform: scale(1.06);
    visibility: hidden;
    pointer-events: none;
}

.preloader-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 242, 254, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 254, 0.05) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.85) 0%, transparent 72%);
    -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.85) 0%, transparent 72%);
    pointer-events: none;
}

.preloader-ambient-orb {
    position: absolute;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.28) 0%, rgba(0, 242, 254, 0.1) 42%, transparent 70%);
    filter: blur(24px);
    pointer-events: none;
    animation: h3dPulse 2.8s ease-in-out infinite;
}

.preloader-center {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 20px;
}

.preloader-ring-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 46px;
}

.preloader-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.preloader-ring-outer {
    width: 220px;
    height: 220px;
    border: 1.5px solid transparent;
    border-top-color: var(--h3d-cyan);
    border-right-color: rgba(13, 110, 253, 0.45);
    box-shadow: 0 0 26px rgba(0, 242, 254, 0.2);
    animation: h3dSpinBorder 3s linear infinite;
}

.preloader-ring-inner {
    width: 176px;
    height: 176px;
    border: 1px dashed rgba(167, 139, 250, 0.42);
    animation: h3dSpinReverse 5s linear infinite;
}

.preloader-logo-img {
    position: relative;
    z-index: 2;
    height: 76px;
    width: auto;
    max-width: 82vw;
    display: block;
    filter: drop-shadow(0 0 18px rgba(0, 242, 254, 0.65));
    animation: h3dLogoFloat 2.4s ease-in-out infinite;
}

.preloader-bar-wrap {
    width: min(280px, 72vw);
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.preloader-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--h3d-blue), var(--h3d-cyan), var(--h3d-violet));
    box-shadow: 0 0 18px var(--h3d-cyan);
    border-radius: 999px;
    transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.preloader-sub {
    font-family: var(--h3d-font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.88);
    text-align: center;
}

@keyframes h3dSpinReverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

/* ==========================================================================
   Custom Cursor Dot (Desktop Only)
   ========================================================================== */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    width: 7px;
    height: 7px;
    background: var(--h3d-cyan);
    box-shadow: 0 0 12px var(--h3d-cyan);
    transition: opacity 0.3s ease, transform 0.2s ease;
}

@media (hover: none), (max-width: 991px) {
    .cursor-dot {
        display: none !important;
    }
}

/* ==========================================================================
   Floating Glassmorphic Dark Navbar (Home Only)
   ========================================================================== */
body.home-3d-page .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(3, 7, 18, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: none;
    padding: 16px 0;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1000;
}

body.home-3d-page .navbar.scrolled {
    background: rgba(3, 7, 18, 0.82);
    border-bottom-color: rgba(0, 242, 254, 0.18);
    padding: 11px 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

body.home-3d-page .logo,
body.home-3d-page .footer-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
    transform-style: preserve-3d;
    animation: h3dLogoFloat 4.2s ease-in-out infinite;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

body.home-3d-page .logo:hover,
body.home-3d-page .footer-logo:hover {
    animation-play-state: paused;
    transform: perspective(600px) rotateX(6deg) rotateY(-8deg) translateY(-2px) scale(1.07);
}

body.home-3d-page .logo img {
    height: 50px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.35));
    transition: height 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}

body.home-3d-page .navbar.scrolled .logo img {
    height: 42px;
}

body.home-3d-page .footer-logo {
    margin-bottom: 18px;
}

body.home-3d-page .footer-logo img {
    height: 60px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 12px rgba(0, 242, 254, 0.35));
    transition: transform 0.35s ease, filter 0.35s ease;
}

body.home-3d-page .logo:hover img,
body.home-3d-page .footer-logo:hover img {
    transform: scale(1.04);
    filter: drop-shadow(0 0 18px rgba(0, 242, 254, 0.75));
}

body.home-3d-page .nav-links ul {
    gap: 8px;
}

body.home-3d-page .nav-links a {
    color: rgba(248, 250, 252, 0.88);
    font-weight: 500;
    position: relative;
}

body.home-3d-page .nav-links a:not(.btn) {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    transition: color 0.25s ease, background-color 0.25s ease;
}

body.home-3d-page .nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    left: 16px;
    bottom: 4px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--h3d-blue), var(--h3d-cyan));
    transition: width 0.3s ease;
    border-radius: 2px;
}

body.home-3d-page .nav-links a:not(.btn):hover,
body.home-3d-page .nav-links a.nav-active:not(.btn) {
    color: var(--h3d-cyan);
    background-color: rgba(0, 242, 254, 0.08);
}

body.home-3d-page .nav-links a:not(.btn):hover::after,
body.home-3d-page .nav-links a.nav-active:not(.btn)::after {
    width: calc(100% - 32px);
}

body.home-3d-page .nav-links a.btn-primary {
    background: linear-gradient(135deg, var(--h3d-blue), #00b4d8);
    border: 1px solid rgba(0, 242, 254, 0.4);
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.45);
    color: #ffffff;
}

body.home-3d-page .nav-links a.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.65);
    transform: translateY(-2px);
}

body.home-3d-page .mobile-menu-toggle {
    color: #f8fafc;
}

/* ==========================================================================
   Section 1: Immersive 3D Spatial Hero
   ========================================================================== */
.h3d-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 130px 0 90px;
    overflow: hidden;
}

.h3d-hero-inner {
    position: relative;
    z-index: 5;
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    perspective: 1200px;
}

.h3d-studio-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.14);
    border: 1px solid rgba(0, 242, 254, 0.32);
    backdrop-filter: blur(12px);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--h3d-cyan);
    margin-bottom: 28px;
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.15);
}

.h3d-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--h3d-cyan);
    box-shadow: 0 0 12px var(--h3d-cyan);
    animation: h3dPulse 1.8s ease-in-out infinite;
}

.h3d-hero-title {
    font-size: clamp(2.65rem, 6.4vw, 5.4rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}

.h3d-hero-title .h3d-line {
    display: block;
}

.h3d-holo-text {
    background: linear-gradient(90deg, #60a5fa 0%, #00f2fe 35%, #a78bfa 70%, #60a5fa 100%);
    background-size: 250% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: h3dShimmer 4.5s linear infinite;
    display: inline-block;
}

.h3d-caret {
    display: inline-block;
    width: 3px;
    height: 0.85em;
    background: var(--h3d-cyan);
    margin-left: 4px;
    vertical-align: -0.08em;
    box-shadow: 0 0 14px var(--h3d-cyan);
    animation: h3dBlink 0.9s step-end infinite;
}

.h3d-hero-subtitle {
    max-width: 650px;
    margin: 0 auto 40px;
    font-size: clamp(1.02rem, 1.8vw, 1.24rem);
    line-height: 1.7;
    color: rgba(226, 232, 240, 0.86);
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

/* Futuristic Magnetic CTA Buttons */
.h3d-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 48px;
}

.h3d-btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 34px;
    border-radius: 999px;
    font-family: var(--h3d-font-display);
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--h3d-blue) 0%, #0284c7 50%, #00c6ff 100%);
    background-size: 200% auto;
    border: 1px solid rgba(0, 242, 254, 0.5);
    box-shadow: 0 0 28px rgba(13, 110, 253, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.35);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.h3d-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-25deg);
    transition: left 0.65s ease;
}

.h3d-btn-primary:hover {
    color: #ffffff;
    background-position: right center;
    box-shadow: 0 0 42px rgba(0, 242, 254, 0.7);
    transform: translateY(-3px);
}

.h3d-btn-primary:hover::before {
    left: 140%;
}

.h3d-btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    border-radius: 999px;
    font-family: var(--h3d-font-display);
    font-weight: 600;
    font-size: 1rem;
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.h3d-btn-glass:hover {
    color: var(--h3d-cyan);
    border-color: var(--h3d-cyan);
    background: rgba(0, 242, 254, 0.1);
    box-shadow: 0 0 28px rgba(0, 242, 254, 0.25);
    transform: translateY(-3px);
}

/* Floating 3D HUD Telemetry Cards */
.h3d-hud-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.h3d-hud-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 16px;
    background: rgba(10, 18, 40, 0.55);
    border: 1px solid rgba(56, 189, 248, 0.2);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    transition: transform 0.35s ease, border-color 0.35s ease;
}

.h3d-hud-pill:hover {
    transform: translateY(-4px);
    border-color: var(--h3d-cyan);
}

.h3d-hud-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.25), rgba(0, 242, 254, 0.18));
    border: 1px solid rgba(0, 242, 254, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--h3d-cyan);
    flex-shrink: 0;
}

.h3d-hud-meta {
    text-align: left;
}

.h3d-hud-value {
    display: block;
    font-family: var(--h3d-font-display);
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.2;
}

.h3d-hud-label {
    display: block;
    font-size: 0.74rem;
    color: var(--h3d-text-secondary);
}

/* Scroll Indicator */
.h3d-scroll-cue {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(148, 163, 184, 0.85);
    font-size: 0.7rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    z-index: 5;
}

.h3d-mouse-shell {
    width: 24px;
    height: 38px;
    border-radius: 14px;
    border: 1.5px solid rgba(0, 242, 254, 0.5);
    display: flex;
    justify-content: center;
    padding-top: 7px;
}

.h3d-mouse-wheel {
    width: 3px;
    height: 8px;
    border-radius: 3px;
    background: var(--h3d-cyan);
    box-shadow: 0 0 8px var(--h3d-cyan);
    animation: h3dWheel 1.6s ease-in-out infinite;
}

/* ==========================================================================
   Shared Section Header Styles
   ========================================================================== */
.h3d-section {
    position: relative;
    padding: 110px 0;
    z-index: 2;
}

.h3d-section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.h3d-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--h3d-cyan);
    margin-bottom: 14px;
}

.h3d-eyebrow::before,
.h3d-eyebrow::after {
    content: '';
    width: 22px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--h3d-cyan));
}

.h3d-eyebrow::after {
    background: linear-gradient(90deg, var(--h3d-cyan), transparent);
}

.h3d-section-title {
    font-size: clamp(2rem, 4.2vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.h3d-section-desc {
    font-size: 1.05rem;
    color: var(--h3d-text-secondary);
    line-height: 1.7;
}

/* ==========================================================================
   Section 2: 3D Tilt Capabilities Deck
   ========================================================================== */
.h3d-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    perspective: 1400px;
}

.h3d-tilt-card {
    position: relative;
    border-radius: 22px;
    background: var(--h3d-surface);
    border: 1px solid var(--h3d-border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 34px 26px;
    transform-style: preserve-3d;
    will-change: transform;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
    overflow: hidden;
}

.h3d-tilt-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        380px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(0, 242, 254, 0.16),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.h3d-tilt-card:hover {
    border-color: var(--h3d-border-bright);
    background: var(--h3d-surface-hover);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 242, 254, 0.14);
}

.h3d-tilt-card:hover::before {
    opacity: 1;
}

.h3d-card-depth {
    transform: translateZ(32px);
    position: relative;
    z-index: 2;
}

.h3d-service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.25), rgba(0, 242, 254, 0.12));
    border: 1px solid rgba(0, 242, 254, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--h3d-cyan);
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0, 242, 254, 0.16);
    transform: translateZ(45px);
}

.h3d-tilt-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #ffffff;
}

.h3d-tilt-card p {
    font-size: 0.94rem;
    color: var(--h3d-text-secondary);
    line-height: 1.65;
    margin-bottom: 20px;
}

.h3d-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--h3d-cyan);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ==========================================================================
   Section 3: 3D Spatial Portfolio Showcase
   ========================================================================== */
.h3d-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    perspective: 1600px;
}

.h3d-project-card {
    position: relative;
    border-radius: 22px;
    background: rgba(9, 17, 38, 0.68);
    border: 1px solid rgba(56, 189, 248, 0.2);
    backdrop-filter: blur(18px);
    padding: 16px 16px 22px;
    transform-style: preserve-3d;
    will-change: transform;
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
}

.h3d-project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        420px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(13, 110, 253, 0.22),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 3;
}

.h3d-project-card:hover {
    border-color: var(--h3d-border-bright);
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.65), 0 0 38px rgba(0, 242, 254, 0.18);
}

.h3d-project-card:hover::before {
    opacity: 1;
}

.h3d-frame-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px 12px;
    transform: translateZ(20px);
}

.h3d-frame-dots {
    display: flex;
    gap: 6px;
}

.h3d-frame-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.35);
}

.h3d-frame-dots span:nth-child(1) { background: #ef4444; }
.h3d-frame-dots span:nth-child(2) { background: #f59e0b; }
.h3d-frame-dots span:nth-child(3) { background: #10b981; }

.h3d-project-badge {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 242, 254, 0.12);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: var(--h3d-cyan);
}

.h3d-project-viewport {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #020612;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateZ(30px);
}

.h3d-project-viewport img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 0%;
    transition: object-position 2.2s cubic-bezier(0.22, 1, 0.36, 1);
    display: block;
    will-change: object-position;
}

.h3d-project-card:hover .h3d-project-viewport img {
    object-position: 50% 100%;
    transition: object-position 8.5s linear;
}

.h3d-project-glare {
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.16) 0%, transparent 45%);
    pointer-events: none;
}

.h3d-project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 6px 0;
    transform: translateZ(36px);
}

.h3d-project-meta h3 {
    font-size: 1.15rem;
    margin: 0;
    color: #ffffff;
}

.h3d-project-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--h3d-cyan);
    transition: all 0.3s ease;
}

.h3d-project-card:hover .h3d-project-arrow {
    background: var(--h3d-cyan);
    color: #030712;
    transform: translateX(3px) rotate(-45deg);
}

/* ==========================================================================
   Section 4: 3D Interactive Process Timeline
   ========================================================================== */
.h3d-process-wrap {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.h3d-process-beam {
    position: absolute;
    top: 38px;
    left: 6%;
    right: 6%;
    height: 2px;
    background: rgba(148, 163, 184, 0.18);
    z-index: 0;
    overflow: hidden;
}

.h3d-process-beam-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--h3d-blue), var(--h3d-cyan), var(--h3d-violet));
    transform-origin: left center;
    transform: scaleX(0);
    box-shadow: 0 0 18px var(--h3d-cyan);
}

.h3d-process-step {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 28px 22px;
    border-radius: 20px;
    background: rgba(10, 18, 40, 0.55);
    border: 1px solid rgba(56, 189, 248, 0.16);
    backdrop-filter: blur(14px);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.h3d-process-step:hover {
    transform: translateY(-8px);
    border-color: var(--h3d-border-bright);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 242, 254, 0.14);
}

.h3d-step-num {
    width: 54px;
    height: 54px;
    margin: 0 auto 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0d6efd, #00f2fe);
    color: #030712;
    font-family: var(--h3d-font-display);
    font-weight: 700;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.4);
}

.h3d-process-step h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.h3d-process-step p {
    font-size: 0.9rem;
    color: var(--h3d-text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   Section 5: Holographic Metrics / Counters
   ========================================================================== */
.h3d-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.h3d-metric-pod {
    position: relative;
    padding: 38px 24px;
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(13, 27, 62, 0.65), rgba(6, 12, 28, 0.8));
    border: 1px solid rgba(0, 242, 254, 0.22);
    backdrop-filter: blur(18px);
    text-align: center;
    overflow: hidden;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.h3d-metric-pod:hover {
    transform: translateY(-6px);
    border-color: var(--h3d-cyan);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 28px rgba(0, 242, 254, 0.2);
}

.h3d-metric-value {
    font-family: var(--h3d-font-display);
    font-size: clamp(2.6rem, 4vw, 3.7rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffffff 0%, var(--h3d-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.h3d-metric-label {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--h3d-text-secondary);
    letter-spacing: 0.04em;
}

/* ==========================================================================
   Section 6: 3D Holographic CTA Portal
   ========================================================================== */
.h3d-cta-portal {
    position: relative;
    border-radius: 30px;
    padding: 2px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(13, 110, 253, 0.2);
}

.h3d-cta-portal::before {
    content: '';
    position: absolute;
    inset: -60%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        var(--h3d-blue) 70deg,
        var(--h3d-cyan) 140deg,
        transparent 210deg,
        var(--h3d-violet) 290deg,
        transparent 360deg
    );
    animation: h3dSpinBorder 6s linear infinite;
    z-index: 0;
}

.h3d-cta-inner {
    position: relative;
    z-index: 1;
    border-radius: 28px;
    background: radial-gradient(circle at top center, rgba(15, 37, 87, 0.9), rgba(4, 9, 22, 0.97));
    backdrop-filter: blur(24px);
    padding: 72px 36px;
    text-align: center;
}

.h3d-cta-inner h2 {
    font-size: clamp(2rem, 4.4vw, 3.3rem);
    margin-bottom: 18px;
}

.h3d-cta-inner p {
    max-width: 600px;
    margin: 0 auto 36px;
    font-size: 1.08rem;
    color: rgba(226, 232, 240, 0.85);
}

/* ==========================================================================
   Dark Glassmorphic Footer Override (Home Only)
   ========================================================================== */
body.home-3d-page .footer {
    position: relative;
    z-index: 2;
    background: rgba(3, 7, 18, 0.88);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(56, 189, 248, 0.16);
    color: var(--h3d-text-secondary);
}

body.home-3d-page .footer-logo {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 18px;
}

body.home-3d-page .footer-logo img {
    height: 60px;
    width: auto;
}

body.home-3d-page .footer h4 {
    color: #ffffff;
}

body.home-3d-page .footer a {
    color: var(--h3d-text-secondary);
}

body.home-3d-page .footer a:hover {
    color: var(--h3d-cyan);
}

body.home-3d-page .footer-links li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--h3d-text-secondary);
}

body.home-3d-page .footer-links svg {
    color: var(--h3d-cyan);
    flex-shrink: 0;
}

body.home-3d-page .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(148, 163, 184, 0.7);
}

/* ==========================================================================
   Keyframes
   ========================================================================== */
@keyframes h3dShimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 250% 50%; }
}

@keyframes h3dPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.45); opacity: 0.55; }
}

@keyframes h3dBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes h3dWheel {
    0% { transform: translateY(0); opacity: 1; }
    80% { transform: translateY(12px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

@keyframes h3dSpinBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes h3dLogoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

@keyframes h3dLogoGlow {
    0%, 100% { filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.85)) drop-shadow(0 0 10px rgba(0, 242, 254, 0.45)); }
    50% { filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 20px rgba(0, 242, 254, 0.85)); }
}

@keyframes h3dLogoSweep {
    0%, 62% { left: -130%; opacity: 0; }
    68% { opacity: 1; }
    100% { left: 150%; opacity: 0; }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1100px) {
    .h3d-services-grid,
    .h3d-process-wrap,
    .h3d-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .h3d-portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .h3d-process-beam {
        display: none;
    }
}

@media (max-width: 768px) {
    body.home-3d-page .nav-links {
        background: rgba(3, 7, 18, 0.96);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(0, 242, 254, 0.18);
    }

    .h3d-hero {
        padding: 115px 0 85px;
    }

    .h3d-section {
        padding: 76px 0;
    }

    .h3d-services-grid,
    .h3d-portfolio-grid,
    .h3d-process-wrap,
    .h3d-metrics-grid {
        grid-template-columns: 1fr;
    }

    .h3d-cta-inner {
        padding: 48px 22px;
    }

    .h3d-scroll-cue {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .h3d-cta-portal::before,
    .h3d-holo-text,
    .h3d-pulse-dot,
    .h3d-mouse-wheel,
    body.home-3d-page .logo,
    body.home-3d-page .footer-logo,
    body.home-3d-page .logo::after,
    body.home-3d-page .footer-logo::after {
        animation: none !important;
    }
}

/* ==========================================================================
   Active Nav Link & Subpage 3D Hero / Layouts
   ========================================================================== */
body.home-3d-page .nav-links a.nav-active {
    color: var(--h3d-cyan);
    font-weight: 600;
    text-shadow: 0 0 14px rgba(0, 242, 254, 0.55);
}

body.home-3d-page .nav-links a.nav-active::after {
    width: calc(100% - 32px);
    box-shadow: 0 0 10px var(--h3d-cyan);
}

/* Subpage 3D Spatial Hero */
.h3d-sub-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 0 70px;
    text-align: center;
    overflow: hidden;
}

.h3d-sub-hero-inner {
    position: relative;
    z-index: 5;
    max-width: 840px;
    margin: 0 auto;
}

.h3d-sub-title {
    font-size: clamp(2.4rem, 5.4vw, 4.4rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}

.h3d-sub-desc {
    max-width: 640px;
    margin: 0 auto;
    font-size: clamp(1rem, 1.7vw, 1.18rem);
    color: rgba(226, 232, 240, 0.86);
    line-height: 1.7;
}

/* About Page Grids */
.h3d-about-split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 60px;
    perspective: 1400px;
}

.h3d-about-story {
    max-width: 880px;
    margin: 0 auto 64px;
    padding: 46px 40px;
    border-radius: 26px;
    background: var(--h3d-surface);
    border: 1px solid var(--h3d-border);
    backdrop-filter: blur(20px);
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.h3d-about-story h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    margin-bottom: 18px;
}

.h3d-about-story p {
    font-size: 1.06rem;
    color: rgba(226, 232, 240, 0.85);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* Services 3-Column Grid */
.h3d-services-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    perspective: 1400px;
}

/* Portfolio Filter Bar */
.h3d-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.h3d-filter-btn {
    padding: 10px 22px;
    border-radius: 999px;
    background: rgba(12, 22, 48, 0.55);
    border: 1px solid rgba(56, 189, 248, 0.22);
    color: rgba(226, 232, 240, 0.85);
    font-family: var(--h3d-font-display);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.h3d-filter-btn:hover,
.h3d-filter-btn.active {
    background: linear-gradient(135deg, var(--h3d-blue), #00c6ff);
    border-color: var(--h3d-cyan);
    color: #ffffff;
    box-shadow: 0 0 24px rgba(0, 242, 254, 0.4);
    transform: translateY(-2px);
}

.h3d-project-card.is-hidden {
    display: none;
}

/* Contact Page Grid & Glassmorphic Form */
.h3d-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 32px;
    align-items: start;
    perspective: 1400px;
}

.h3d-contact-panel {
    border-radius: 24px;
    background: var(--h3d-surface);
    border: 1px solid var(--h3d-border);
    backdrop-filter: blur(20px);
    padding: 40px 34px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.h3d-contact-panel h2,
.h3d-contact-panel h3 {
    font-size: 1.65rem;
    margin-bottom: 12px;
}

.h3d-contact-panel > p {
    color: var(--h3d-text-secondary);
    margin-bottom: 30px;
    line-height: 1.65;
}

.h3d-contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.h3d-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(6, 13, 30, 0.55);
    border: 1px solid rgba(56, 189, 248, 0.14);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.h3d-contact-row:hover {
    border-color: var(--h3d-border-bright);
    transform: translateX(4px);
}

.h3d-contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.25), rgba(0, 242, 254, 0.15));
    border: 1px solid rgba(0, 242, 254, 0.32);
    color: var(--h3d-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.h3d-contact-label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--h3d-cyan);
    margin-bottom: 4px;
}

.h3d-contact-val {
    display: block;
    font-size: 0.98rem;
    font-weight: 500;
    color: #f8fafc;
    line-height: 1.5;
}

.h3d-form-group {
    margin-bottom: 20px;
}

.h3d-form-group label {
    display: block;
    font-size: 0.86rem;
    font-weight: 500;
    color: rgba(226, 232, 240, 0.9);
    margin-bottom: 8px;
}

.h3d-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(4, 10, 24, 0.72);
    border: 1px solid rgba(56, 189, 248, 0.24);
    color: #f8fafc;
    font-family: var(--h3d-font-body);
    font-size: 0.96rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.h3d-input::placeholder {
    color: rgba(148, 163, 184, 0.55);
}

.h3d-input:focus {
    border-color: var(--h3d-cyan);
    background: rgba(6, 16, 38, 0.9);
    box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.16);
}

.h3d-btn-whatsapp,
a.h3d-btn-whatsapp {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 14px;
    border: 1px solid rgba(74, 222, 128, 0.45);
    background: linear-gradient(135deg, #16a34a, #25d366);
    color: #ffffff !important;
    font-family: var(--h3d-font-display);
    font-size: 1.02rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.32);
    transition: all 0.3s ease;
}

.h3d-btn-whatsapp:hover,
a.h3d-btn-whatsapp:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(37, 211, 102, 0.5);
}

.h3d-btn-whatsapp.h3d-btn-static,
.h3d-btn-whatsapp.h3d-btn-static:hover {
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

@media (max-width: 992px) {
    .h3d-services-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .h3d-contact-grid,
    .h3d-about-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .h3d-sub-hero {
        min-height: 48vh;
        padding: 120px 0 55px;
    }

    .h3d-services-grid-3 {
        grid-template-columns: 1fr;
    }

    .h3d-about-story,
    .h3d-contact-panel {
        padding: 28px 20px;
    }
}

/* ==========================================================================
   Next-Level Futuristic 3D Glassmorphic Footer
   ========================================================================== */
body.home-3d-page .h3d-footer {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 76px 0 28px;
    background: linear-gradient(180deg, rgba(4, 10, 26, 0.82) 0%, rgba(2, 5, 14, 0.98) 100%);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-top: none;
    overflow: hidden;
}

body.home-3d-page .h3d-footer .container {
    width: 100%;
    max-width: 100%;
    padding-left: clamp(24px, 5vw, 80px);
    padding-right: clamp(24px, 5vw, 80px);
}

.h3d-footer-glow-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--h3d-blue) 25%, var(--h3d-cyan) 50%, var(--h3d-violet) 75%, transparent 100%);
    box-shadow: 0 0 24px rgba(0, 242, 254, 0.55);
}

.h3d-footer-orb {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 560px;
    height: 220px;
    background: radial-gradient(ellipse at center, rgba(13, 110, 253, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.h3d-footer-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.45fr 0.85fr 0.95fr 1.25fr;
    gap: 42px;
    padding-bottom: 48px;
}

.h3d-footer-col h4 {
    font-family: var(--h3d-font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.h3d-footer-col h4::after {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    margin-top: 7px;
    background: linear-gradient(90deg, var(--h3d-cyan), transparent);
}

.h3d-footer-tagline {
    font-size: 0.94rem;
    line-height: 1.7;
    color: var(--h3d-text-secondary);
    margin-bottom: 20px;
    max-width: 320px;
}

.h3d-footer-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.28);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--h3d-cyan);
}

.h3d-footer-nav li {
    margin-bottom: 11px;
}

.h3d-footer-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.93rem;
    color: var(--h3d-text-secondary);
    transition: color 0.25s ease, transform 0.25s ease;
}

.h3d-footer-nav a::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(0, 242, 254, 0.45);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.h3d-footer-nav a:hover {
    color: var(--h3d-cyan);
    transform: translateX(5px);
}

.h3d-footer-nav a:hover::before {
    background: var(--h3d-cyan);
    box-shadow: 0 0 8px var(--h3d-cyan);
}

.h3d-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 13px;
    font-size: 0.92rem;
    color: var(--h3d-text-secondary);
    line-height: 1.5;
}

.h3d-fc-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(13, 110, 253, 0.16);
    border: 1px solid rgba(0, 242, 254, 0.24);
    color: var(--h3d-cyan);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.h3d-footer-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(56, 189, 248, 0.14);
}

.h3d-footer-bottom p {
    font-size: 0.88rem;
    color: rgba(148, 163, 184, 0.78);
    margin: 0;
}

.h3d-back-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(12, 22, 48, 0.65);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: #f8fafc;
    font-family: var(--h3d-font-display);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.h3d-back-top:hover {
    color: var(--h3d-cyan);
    border-color: var(--h3d-cyan);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
    transform: translateY(-2px);
}

/* Futuristic Glow on WhatsApp Floating Button */
body.home-3d-page .h3d-wa-float {
    box-shadow: 0 0 24px rgba(37, 211, 102, 0.55);
    border: 1px solid rgba(74, 222, 128, 0.5);
}

body.home-3d-page .h3d-wa-float:hover {
    box-shadow: 0 0 36px rgba(37, 211, 102, 0.85);
}

@media (max-width: 992px) {
    .h3d-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .h3d-footer-grid {
        grid-template-columns: 1fr;
    }

    .h3d-footer-bottom {
        justify-content: center;
        text-align: center;
    }
}

/* ==========================================================================
   Technology Stack Infinite Glowing Marquee
   ========================================================================== */
.h3d-marquee-section {
    position: relative;
    z-index: 2;
    padding: 36px 0;
    border-top: 1px solid rgba(56, 189, 248, 0.12);
    border-bottom: 1px solid rgba(56, 189, 248, 0.12);
    background: rgba(5, 11, 28, 0.55);
    backdrop-filter: blur(14px);
    overflow: hidden;
}

.h3d-marquee-mask {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.h3d-marquee-track {
    display: flex;
    align-items: center;
    gap: 18px;
    width: max-content;
    animation: h3dMarquee 28s linear infinite;
}

.h3d-marquee-track:hover {
    animation-play-state: paused;
}

.h3d-tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: 999px;
    background: rgba(12, 22, 48, 0.65);
    border: 1px solid rgba(56, 189, 248, 0.22);
    color: #e2e8f0;
    font-family: var(--h3d-font-display);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.h3d-tech-pill:hover {
    border-color: var(--h3d-cyan);
    color: var(--h3d-cyan);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.25);
}

.h3d-tech-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--h3d-cyan);
    box-shadow: 0 0 8px var(--h3d-cyan);
}

@keyframes h3dMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Client Testimonials 3D Grid
   ========================================================================== */
.h3d-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    perspective: 1400px;
}

.h3d-review-card {
    position: relative;
    border-radius: 22px;
    background: var(--h3d-surface);
    border: 1px solid var(--h3d-border);
    backdrop-filter: blur(18px);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform-style: preserve-3d;
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.h3d-review-card:hover {
    border-color: var(--h3d-border-bright);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5), 0 0 28px rgba(0, 242, 254, 0.14);
}

.h3d-stars {
    display: flex;
    gap: 4px;
    color: #fbbf24;
    margin-bottom: 18px;
}

.h3d-review-quote {
    font-size: 0.98rem;
    line-height: 1.75;
    color: rgba(226, 232, 240, 0.9);
    margin-bottom: 24px;
}

.h3d-reviewer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.h3d-reviewer-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--h3d-blue), var(--h3d-cyan));
    color: #030712;
    font-family: var(--h3d-font-display);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.h3d-reviewer-name {
    display: block;
    font-family: var(--h3d-font-display);
    font-weight: 700;
    font-size: 0.96rem;
    color: #ffffff;
}

.h3d-reviewer-role {
    display: block;
    font-size: 0.8rem;
    color: var(--h3d-cyan);
}

/* ==========================================================================
   Interactive FAQ Accordion
   ========================================================================== */
.h3d-faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.h3d-faq-item {
    border-radius: 18px;
    background: var(--h3d-surface);
    border: 1px solid var(--h3d-border);
    backdrop-filter: blur(16px);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.h3d-faq-item.open {
    border-color: var(--h3d-border-bright);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4), 0 0 22px rgba(0, 242, 254, 0.12);
}

.h3d-faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: transparent;
    border: none;
    color: #f8fafc;
    font-family: var(--h3d-font-display);
    font-size: 1.04rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.h3d-faq-chevron {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.28);
    color: var(--h3d-cyan);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.35s ease, background 0.3s ease;
}

.h3d-faq-item.open .h3d-faq-chevron {
    transform: rotate(180deg);
    background: var(--h3d-cyan);
    color: #030712;
}

.h3d-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.h3d-faq-a-inner {
    padding: 0 24px 22px;
    font-size: 0.95rem;
    line-height: 1.72;
    color: var(--h3d-text-secondary);
}

/* ==========================================================================
   3D Packages / Custom Quote Cards (pricing.php)
   ========================================================================== */
.h3d-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
    perspective: 1400px;
}

.h3d-price-card {
    position: relative;
    border-radius: 24px;
    background: var(--h3d-surface);
    border: 1px solid var(--h3d-border);
    backdrop-filter: blur(20px);
    padding: 38px 30px;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.h3d-price-card.featured {
    background: linear-gradient(165deg, rgba(13, 35, 82, 0.8), rgba(6, 14, 34, 0.92));
    border-color: var(--h3d-cyan);
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.55), 0 0 40px rgba(0, 242, 254, 0.18);
}

.h3d-popular-pill {
    position: absolute;
    top: -13px;
    right: 26px;
    padding: 5px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--h3d-blue), var(--h3d-cyan));
    color: #030712;
    font-family: var(--h3d-font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 0 18px rgba(0, 242, 254, 0.5);
}

.h3d-price-tier {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--h3d-cyan);
    margin-bottom: 10px;
}

.h3d-price-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.h3d-price-tag {
    font-family: var(--h3d-font-display);
    font-size: 1.95rem;
    font-weight: 700;
    background: linear-gradient(90deg, #ffffff 0%, var(--h3d-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 14px 0 8px;
}

.h3d-price-sub {
    font-size: 0.88rem;
    color: var(--h3d-text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.h3d-price-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    flex-grow: 1;
}

.h3d-price-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: rgba(226, 232, 240, 0.9);
}

.h3d-price-list svg {
    color: var(--h3d-cyan);
    flex-shrink: 0;
}

/* ==========================================================================
   Interactive Project Quote & Scope Builder (pricing.php)
   ========================================================================== */
.h3d-estimator-wrap {
    display: grid;
    grid-template-columns: 1.35fr 0.95fr;
    gap: 28px;
    align-items: start;
}

.h3d-est-panel {
    border-radius: 24px;
    background: var(--h3d-surface);
    border: 1px solid var(--h3d-border);
    backdrop-filter: blur(20px);
    padding: 36px 32px;
}

.h3d-est-group {
    margin-bottom: 28px;
}

.h3d-est-group:last-child {
    margin-bottom: 0;
}

.h3d-est-label {
    display: block;
    font-family: var(--h3d-font-display);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--h3d-cyan);
    margin-bottom: 14px;
}

.h3d-est-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.h3d-est-chip {
    padding: 11px 18px;
    border-radius: 12px;
    background: rgba(6, 13, 30, 0.65);
    border: 1px solid rgba(56, 189, 248, 0.22);
    color: rgba(226, 232, 240, 0.88);
    font-family: var(--h3d-font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.h3d-est-chip:hover {
    border-color: var(--h3d-cyan);
    color: #ffffff;
}

.h3d-est-chip.selected {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.38), rgba(0, 242, 254, 0.22));
    border-color: var(--h3d-cyan);
    color: #ffffff;
    box-shadow: 0 0 18px rgba(0, 242, 254, 0.28);
}

.h3d-est-summary {
    border-radius: 24px;
    background: linear-gradient(165deg, rgba(13, 30, 72, 0.78), rgba(4, 10, 26, 0.94));
    border: 1px solid var(--h3d-border-bright);
    backdrop-filter: blur(22px);
    padding: 36px 30px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.h3d-est-metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.94rem;
}

.h3d-est-metric-row strong {
    color: var(--h3d-cyan);
    font-family: var(--h3d-font-display);
    font-size: 1.02rem;
}

.h3d-est-selected-list {
    margin: 18px 0 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.h3d-est-tag {
    font-size: 0.76rem;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(0, 242, 254, 0.12);
    border: 1px solid rgba(0, 242, 254, 0.28);
    color: #e0f2fe;
}

/* ==========================================================================
   Portfolio Interactive Case-Study Preview Modal (portfolio.php)
   ========================================================================== */
.h3d-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99990;
    background: rgba(2, 6, 18, 0.85);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.h3d-modal-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.h3d-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 920px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 26px;
    background: linear-gradient(165deg, rgba(11, 24, 56, 0.96), rgba(4, 10, 24, 0.98));
    border: 1px solid var(--h3d-border-bright);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75), 0 0 50px rgba(0, 242, 254, 0.2);
    padding: 28px;
    transform: translateY(24px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.h3d-modal-backdrop.open .h3d-modal-dialog {
    transform: translateY(0) scale(1);
}

.h3d-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.h3d-modal-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.h3d-modal-close:hover {
    background: var(--h3d-cyan);
    color: #030712;
}

.h3d-modal-preview {
    width: 100%;
    max-height: 460px;
    overflow-y: auto;
    border-radius: 16px;
    border: 1px solid rgba(56, 189, 248, 0.22);
    background: #020612;
    margin-bottom: 22px;
}

.h3d-modal-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.h3d-modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.h3d-modal-desc {
    color: var(--h3d-text-secondary);
    font-size: 0.95rem;
    max-width: 520px;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .h3d-reviews-grid,
    .h3d-pricing-grid,
    .h3d-estimator-wrap {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .h3d-marquee-track {
        animation: none !important;
    }
}

/* ==========================================================================
   Customer Trust: Guarantees, Milestones, Brands Strip, Founder & Legal
   ========================================================================== */
.h3d-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    perspective: 1400px;
}

.h3d-guarantee-card {
    position: relative;
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(12, 24, 54, 0.72), rgba(5, 11, 26, 0.88));
    border: 1px solid rgba(0, 242, 254, 0.2);
    backdrop-filter: blur(18px);
    padding: 28px 22px;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.h3d-guarantee-card:hover {
    transform: translateY(-6px);
    border-color: var(--h3d-cyan);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 26px rgba(0, 242, 254, 0.16);
}

.h3d-guarantee-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(0, 242, 254, 0.14));
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: #34d399;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.h3d-guarantee-card h3 {
    font-size: 1.12rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.h3d-guarantee-card p {
    font-size: 0.9rem;
    color: var(--h3d-text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* Trusted Local Brands Strip */
.h3d-brands-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 52px;
}

.h3d-brand-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(12, 22, 48, 0.55);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: #e2e8f0;
    font-family: var(--h3d-font-display);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.h3d-brand-chip svg {
    color: #34d399;
    flex-shrink: 0;
}

/* Milestone Payment Breakdown (3 Columns) */
.h3d-milestone-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.h3d-milestone-card {
    position: relative;
    border-radius: 22px;
    background: var(--h3d-surface);
    border: 1px solid var(--h3d-border);
    backdrop-filter: blur(18px);
    padding: 34px 28px;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.h3d-milestone-card:hover {
    transform: translateY(-6px);
    border-color: var(--h3d-border-bright);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5), 0 0 28px rgba(0, 242, 254, 0.14);
}

.h3d-milestone-step {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(0, 242, 254, 0.12);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: var(--h3d-cyan);
    font-family: var(--h3d-font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.h3d-milestone-card h3 {
    font-size: 1.24rem;
    margin-bottom: 10px;
}

.h3d-milestone-card p {
    font-size: 0.93rem;
    color: var(--h3d-text-secondary);
    line-height: 1.68;
    margin: 0;
}

/* Founder / Studio Lead Card (about.php) */
.h3d-founder-card {
    max-width: 820px;
    margin: 0 auto 64px;
    padding: 38px 36px;
    border-radius: 24px;
    background: linear-gradient(155deg, rgba(13, 30, 72, 0.72), rgba(5, 11, 28, 0.88));
    border: 1px solid var(--h3d-border-bright);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    gap: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 32px rgba(0, 242, 254, 0.12);
}

.h3d-founder-avatar {
    width: 110px;
    height: 110px;
    border-radius: 24px;
    padding: 3px;
    background: linear-gradient(135deg, var(--h3d-blue), var(--h3d-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.38);
}

.h3d-founder-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 21px;
    display: block;
}

.h3d-founder-info h3 {
    font-size: 1.48rem;
    margin-bottom: 4px;
}

.h3d-founder-role {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--h3d-cyan);
    margin-bottom: 12px;
}

.h3d-founder-info p {
    font-size: 0.96rem;
    color: rgba(226, 232, 240, 0.86);
    line-height: 1.7;
    margin: 0;
}

/* Portfolio Verified Live Badge & Link */
.h3d-verified-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    color: #34d399;
    margin-top: 6px;
}

.h3d-live-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(0, 242, 254, 0.12);
    border: 1px solid rgba(0, 242, 254, 0.35);
    color: var(--h3d-cyan);
    font-family: var(--h3d-font-display);
    font-size: 0.78rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.h3d-live-link:hover {
    background: var(--h3d-cyan);
    color: #030712;
    box-shadow: 0 0 18px rgba(0, 242, 254, 0.45);
}

/* Contact Map & Hours Card */
.h3d-map-card {
    margin-top: 32px;
    border-radius: 24px;
    background: var(--h3d-surface);
    border: 1px solid var(--h3d-border);
    backdrop-filter: blur(20px);
    padding: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.h3d-map-frame {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 16px;
    filter: invert(90%) hue-rotate(180deg) brightness(0.92) contrast(0.9);
}

/* Legal Document Pages (privacy-policy.php & terms.php) */
.h3d-legal-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 46px 42px;
    border-radius: 24px;
    background: var(--h3d-surface);
    border: 1px solid var(--h3d-border);
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.h3d-legal-card h2 {
    font-size: 1.35rem;
    color: var(--h3d-cyan);
    margin: 28px 0 10px;
}

.h3d-legal-card h2:first-child {
    margin-top: 0;
}

.h3d-legal-card p,
.h3d-legal-card li {
    font-size: 0.96rem;
    color: rgba(226, 232, 240, 0.86);
    line-height: 1.75;
    margin-bottom: 10px;
}

.h3d-legal-card ul {
    padding-left: 20px;
    list-style: disc;
    margin-bottom: 16px;
}

.h3d-footer-legal {
    display: flex;
    align-items: center;
    gap: 18px;
}

.h3d-footer-legal a {
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.82);
}

.h3d-footer-legal a:hover {
    color: var(--h3d-cyan);
}

@media (max-width: 1100px) {
    .h3d-trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .h3d-milestone-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .h3d-trust-grid {
        grid-template-columns: 1fr;
    }

    .h3d-founder-card {
        flex-direction: column;
        text-align: center;
        padding: 28px 22px;
    }

    .h3d-legal-card {
        padding: 28px 20px;
    }
}
