/* ═════════════════════════════════════════════════════════════════════════
   NEXTGEN WEBWORKS — AWWWARDS-GRADE ULTRA LUXURY 3D DESIGN SYSTEM (2026)
   ═════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700;900&family=Syne:wght@700;800&display=swap');

/* ── Global Custom Properties ────────────────────────────────────────── */
:root {
    /* Color System - Deep Cosmic Luxury */
    --bg-main: #06070B;
    --bg-surface-1: #0A0C14;
    --bg-surface-2: #101422;
    --bg-surface-3: #161B2E;
    
    --glass-bg: rgba(13, 16, 27, 0.65);
    --glass-bg-hover: rgba(22, 27, 46, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-glow: rgba(139, 92, 246, 0.4);
    
    /* Neon Accents */
    --accent-purple: #8B5CF6;
    --accent-violet: #A855F7;
    --accent-cyan: #06B6D4;
    --accent-blue: #3B82F6;
    --accent-pink: #EC4899;
    --accent-emerald: #10B981;
    --accent-gold: #F59E0B;

    /* Gradients */
    --grad-cosmic: linear-gradient(135deg, #8B5CF6 0%, #06B6D4 50%, #EC4899 100%);
    --grad-cyber: linear-gradient(135deg, #06B6D4 0%, #3B82F6 100%);
    --grad-sunset: linear-gradient(135deg, #EC4899 0%, #8B5CF6 100%);
    --grad-gold: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    --grad-dark-glass: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 100%);
    
    /* Text */
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    
    /* Shadows & Glows */
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-glow-purple: 0 0 40px rgba(139, 92, 246, 0.25);
    --shadow-glow-cyan: 0 0 40px rgba(6, 182, 212, 0.25);
    --shadow-glow-pink: 0 0 40px rgba(236, 72, 153, 0.25);

    /* Radii */
    --radius-full: 9999px;
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;

    /* Animations */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset & Baseline ────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

/* ── Dynamic Mouse Cursor Spotlight ──────────────────────────────────── */
#cursor-spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    margin-top: -300px;
    margin-left: -300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(6, 182, 212, 0.05) 40%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transition: transform 0.1s linear, opacity 0.3s ease;
    will-change: transform;
}

@media (max-width: 768px) {
    #cursor-spotlight { display: none; } /* Disable spotlight on touch devices for mobile performance */
}

/* ── Animated Tech Background Grid ───────────────────────────────────── */
.bg-tech-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at 50% 30%, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 80%);
}

.bg-ambient-orbs {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    animation: orbPulse 18s ease-in-out infinite alternate;
}

.orb-purple {
    width: 600px;
    height: 600px;
    background: var(--accent-purple);
    top: -200px;
    left: -100px;
}

.orb-cyan {
    width: 500px;
    height: 500px;
    background: var(--accent-cyan);
    top: 40%;
    right: -150px;
    animation-delay: -6s;
}

.orb-pink {
    width: 450px;
    height: 450px;
    background: var(--accent-pink);
    bottom: -100px;
    left: 20%;
    animation-delay: -12s;
}

@keyframes orbPulse {
    0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    50% { transform: translate(60px, 40px) scale(1.15); opacity: 0.65; }
    100% { transform: translate(-40px, 80px) scale(0.9); opacity: 0.4; }
}

/* ── Global Container & Utilities ────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.text-gradient {
    background: var(--grad-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-cyan {
    background: var(--grad-cyber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-gold {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Modern Header & Glass Navbar ────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease-out-expo);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(6, 7, 11, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    z-index: 1100;
}

.logo-img {
    height: 44px;
    width: auto;
    border-radius: var(--radius-md);
    transition: transform 0.4s var(--ease-spring);
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.4));
}

.nav-logo:hover .logo-img {
    transform: scale(1.1) rotate(-5deg);
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 8px 24px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(12px);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-cosmic);
    border-radius: var(--radius-full);
    transition: width 0.3s var(--ease-out-expo);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1100;
}

/* Hamburger Icon styling with transformation to X when active */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    z-index: 1150;
    transition: all 0.3s ease;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out-expo);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--accent-pink);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--accent-pink);
}

/* Mobile Navigation Overlay Drawer */
@media (max-width: 991px) {
    .hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 24px;
        padding: 100px 40px 40px;
        background: rgba(6, 7, 11, 0.98);
        backdrop-filter: blur(25px) saturate(200%);
        border-left: 1px solid var(--glass-border);
        border-radius: 0;
        transition: right 0.4s var(--ease-out-expo);
        box-shadow: -20px 0 50px rgba(0, 0, 0, 0.8);
        z-index: 1080;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        font-weight: 600;
        width: 100%;
    }
}

/* ── Buttons System ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.4s var(--ease-out-expo);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: none;
    outline: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--grad-cosmic);
    color: #FFFFFF;
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.7);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.btn-glow {
    position: relative;
}

.btn-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--grad-cosmic);
    border-radius: var(--radius-full);
    z-index: -1;
    filter: blur(10px);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.btn-glow:hover::after {
    opacity: 1;
    filter: blur(15px);
}

/* ── Hero Section with Interactive 3D Canvas / Elements ────────────── */
.hero-section {
    min-height: 100vh;
    padding: 160px 0 80px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #C084FC;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-emerald);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.12rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

/* ── 3D Interactive Hero Canvas & Floating Cards Container ─────────── */
.hero-visual-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

/* 3D Holographic Cube Visual */
.hero-3d-stage {
    width: 300px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    animation: stageRotate 25s infinite linear;
}

.stage-cube {
    width: 180px;
    height: 180px;
    position: absolute;
    top: 60px;
    left: 60px;
    transform-style: preserve-3d;
    animation: cubeSpin 15s infinite linear;
}

.cube-side {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 1.5px solid rgba(139, 92, 246, 0.4);
    background: rgba(15, 18, 30, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    box-shadow: inset 0 0 30px rgba(139, 92, 246, 0.2);
}

.side-front  { transform: translateZ(90px); }
.side-back   { transform: rotateY(180deg) translateZ(90px); }
.side-right  { transform: rotateY(90deg) translateZ(90px); border-color: rgba(6, 182, 212, 0.5); }
.side-left   { transform: rotateY(-90deg) translateZ(90px); border-color: rgba(236, 72, 153, 0.5); }
.side-top    { transform: rotateX(90deg) translateZ(90px); border-color: rgba(245, 158, 11, 0.5); }
.side-bottom { transform: rotateX(-90deg) translateZ(90px); }

@keyframes stageRotate {
    0% { transform: rotateX(15deg) rotateY(0deg); }
    100% { transform: rotateX(15deg) rotateY(360deg); }
}

@keyframes cubeSpin {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(180deg); }
}

/* Floating Glass Widgets overlaying the 3D visual */
.floating-widget {
    position: absolute;
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    background: rgba(16, 20, 34, 0.85);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    animation: widgetFloat 6s ease-in-out infinite alternate;
}

.widget-1 {
    top: 20px;
    left: -10px;
    animation-delay: 0s;
}

.widget-2 {
    bottom: 40px;
    right: -10px;
    animation-delay: -3s;
}

.widget-3 {
    bottom: 10px;
    left: 10px;
    animation-delay: -4.5s;
}

.widget-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--grad-cosmic);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.widget-text h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.widget-text p {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

@keyframes widgetFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-16px) rotate(2deg); }
}

/* ── 3D Tilt Cards Component ────────────────────────────────────────── */
.tilt-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 32px;
    backdrop-filter: blur(16px);
    transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.tilt-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(139,92,246,0.4), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tilt-card:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(139, 92, 246, 0.2);
}

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

.tilt-content {
    transform: translateZ(30px);
    transition: transform 0.3s ease;
}

/* ── Section Title Header System ────────────────────────────────────── */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--accent-cyan);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* ── Services Section ───────────────────────────────────────────────── */
.services-section {
    padding: 100px 0;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-icon-box {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-lg);
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--accent-purple);
    transition: transform 0.4s var(--ease-spring);
}

.service-card:hover .service-icon-box {
    transform: scale(1.15) rotate(6deg);
    background: var(--grad-cosmic);
    color: white;
}

.service-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: gap 0.3s ease, color 0.3s ease;
}

.service-link:hover {
    gap: 14px;
    color: var(--accent-purple);
}

/* ── Interactive Live Demo Websites & Browser Mockups Styling ───────── */
.demo-showcase-section {
    padding: 100px 0;
    position: relative;
}

.demo-filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-tab-btn {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab-btn:hover,
.filter-tab-btn.active {
    background: var(--grad-cosmic);
    color: white;
    border-color: transparent;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.demo-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.demo-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform 0.4s var(--ease-out-expo), border-color 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.demo-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(139, 92, 246, 0.25);
}

a.demo-card {
    color: inherit;
    text-decoration: none;
}

/* Browser Mockup Header Frame */
.browser-frame {
    background: #0E121E;
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.dot-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.browser-url-bar {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Demo Mockup Display Area */
.demo-preview-viewport {
    height: 200px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: top center;
    transition: background-position 4s ease;
}

.demo-card:hover .demo-preview-viewport {
    background-position: bottom center;
}

.demo-tag-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(6, 7, 11, 0.85);
    border: 1px solid var(--glass-border);
    color: var(--accent-cyan);
    font-size: 0.78rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.demo-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.demo-card-body h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.demo-card-body p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 18px;
    line-height: 1.6;
}

.demo-features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.demo-feature-pill {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.demo-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

/* Modal Live Preview Styles */
.demo-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(4, 5, 8, 0.92);
    backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.demo-modal-window {
    width: 100%;
    max-width: 1100px;
    height: 85vh;
    background: #0B0E17;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.8), 0 0 50px rgba(139, 92, 246, 0.3);
}

.modal-header {
    background: #101422;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--glass-border);
}

.modal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}
.modal-close-btn:hover { color: var(--accent-pink); }

.modal-iframe-container {
    flex-grow: 1;
    width: 100%;
    height: 100%;
    border: none;
}

/* ── Interactive Project Cost Estimator ─────────────────────────────── */
.calculator-section {
    padding: 100px 0;
    position: relative;
}

.calculator-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 40px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm), var(--shadow-glow-purple);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}

.calc-options h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.option-group {
    margin-bottom: 24px;
}

.option-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.chips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}

.calc-chip {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    user-select: none;
}

.calc-chip:hover {
    border-color: rgba(139, 92, 246, 0.4);
    color: var(--text-primary);
}

.calc-chip.active {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--accent-purple);
    color: white;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.calc-summary {
    background: rgba(10, 12, 20, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.estimate-price-box {
    text-align: center;
    margin: 16px 0;
    padding: 20px;
    background: rgba(139, 92, 246, 0.08);
    border-radius: var(--radius-md);
    border: 1px dashed rgba(139, 92, 246, 0.3);
}

.estimate-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.estimate-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-cyan);
}

/* ── "Why We Outperform" Comparison Table ───────────────────────────── */
.comparison-section {
    padding: 100px 0;
}

.comp-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-xl);
}

.comp-table {
    width: 100%;
    min-width: 600px;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.comp-table th,
.comp-table td {
    padding: 18px 22px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.92rem;
}

.comp-table th {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    background: rgba(16, 20, 34, 0.9);
}

.comp-table th.highlight-col {
    background: rgba(139, 92, 246, 0.15);
    color: #C084FC;
    border-bottom: 2px solid var(--accent-purple);
}

.comp-table td.highlight-col {
    background: rgba(139, 92, 246, 0.06);
    font-weight: 600;
    color: var(--text-primary);
}

/* ── How We Work Step Timeline Section ──────────────────────────────── */
.process-section {
    padding: 100px 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}

.process-card {
    position: relative;
}

.step-num-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--grad-cosmic);
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.process-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.process-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

/* ── Tech Stack Grid ─────────────────────────────────────────────────── */
.tech-section {
    padding: 80px 0;
}

.tech-badges-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.tech-badge {
    padding: 12px 22px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s var(--ease-spring);
}

.tech-badge:hover {
    transform: translateY(-4px) scale(1.04);
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--accent-purple);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.tech-badge i {
    font-size: 1.2rem;
    color: var(--accent-cyan);
}

/* ── Contact Section & Glass Form ───────────────────────────────────── */
.contact-section {
    padding: 100px 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 36px;
    backdrop-filter: blur(20px);
}

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

.form-group label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: rgba(6, 8, 14, 0.8);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    background: rgba(10, 14, 24, 0.95);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card-item {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.info-card-item:hover {
    border-color: var(--accent-cyan);
    transform: translateX(6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer {
    padding: 80px 0 30px;
    background: #040508;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.3fr;
    gap: 48px;
    margin-bottom: 50px;
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 14px;
    max-width: 360px;
    line-height: 1.6;
}

.footer-logo-img,
.logo-img {
    height: 38px !important;
    max-height: 38px !important;
    width: auto !important;
    max-width: 180px !important;
    object-fit: contain !important;
    vertical-align: middle;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-col h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 22px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--grad-cosmic);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li {
    margin: 0;
    padding: 0;
}

.footer-links a,
.footer-col > a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 4px 8px 4px 0;
    border-radius: 6px;
    margin-bottom: 4px;
}

/* Footer Contact List with App Open Links */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    word-break: break-word;
}

.footer-contact-item a:hover {
    color: #FFFFFF;
    transform: translateX(4px);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.footer-contact-icon {
    font-size: 1rem;
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
    color: var(--accent-cyan);
}

.footer-links a::before,
.footer-col > a::before {
    content: '›';
    color: var(--accent-cyan);
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1;
    margin-right: 8px;
    transition: transform 0.25s ease, color 0.25s ease;
}

.footer-links a:hover,
.footer-col > a:hover {
    color: #ffffff;
    transform: translateX(6px);
    background: rgba(255, 255, 255, 0.04);
    padding-left: 8px;
}

.footer-links a:hover::before,
.footer-col > a:hover::before {
    transform: translateX(4px);
    color: var(--accent-purple);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ── Floating WhatsApp Action Button ─────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: transform 0.3s var(--ease-spring);
}

.whatsapp-float:hover {
    transform: scale(1.12) rotate(10deg);
}

/* ═════════════════════════════════════════════════════════════════════
   COMPREHENSIVE MOBILE RESPONSIVE SUITE (320px to 1100px)
   ═════════════════════════════════════════════════════════════════════ */

/* Global Mobile Fixes & Safe Touch Targets */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
    width: 100%;
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
}

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

img, svg, video, iframe {
    max-width: 100%;
    height: auto;
}

/* iOS Safari Auto-Zoom Prevention */
input, select, textarea {
    font-size: 16px !important;
}

/* Mobile Navigation Backdrop Overlay */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

@media (hover: none) {
    /* Disable 3D tilt translations on touch screens to prevent scrolling jitter */
    .tilt-card {
        transform: none !important;
    }
    .tilt-content {
        transform: none !important;
    }
}

@media (max-width: 1100px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-metrics { max-width: 600px; margin: 0 auto; }
    .hero-visual-container { height: 380px; }
    .calc-grid { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 40px; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
    .hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(85vw, 320px);
        height: 100vh;
        height: 100dvh;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 12px;
        padding: 90px 22px 30px;
        background: rgba(8, 10, 18, 0.98);
        backdrop-filter: blur(25px) saturate(200%);
        border-left: 1px solid var(--glass-border);
        border-radius: 0;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -15px 0 40px rgba(0, 0, 0, 0.8);
        z-index: 1080;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.05rem;
        font-weight: 600;
        width: 100%;
        padding: 12px 16px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .nav-link.active,
    .nav-link:hover {
        background: rgba(139, 92, 246, 0.15);
        border-color: rgba(139, 92, 246, 0.4);
        color: #ffffff;
    }

    .nav-link::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    
    .hero-section { padding: 110px 0 50px; min-height: auto; text-align: center; }
    .hero-title { font-size: clamp(1.85rem, 6vw, 2.5rem); margin-bottom: 16px; line-height: 1.15; }
    .hero-description { font-size: 0.96rem; margin-bottom: 24px; line-height: 1.65; }
    
    .hero-visual-container { height: 280px; perspective: none; }
    .hero-3d-stage { width: 190px; height: 190px; }
    .stage-cube { width: 110px; height: 110px; top: 40px; left: 40px; }
    .cube-side { width: 110px; height: 110px; font-size: 1.8rem; }
    .side-front  { transform: translateZ(55px); }
    .side-back   { transform: rotateY(180deg) translateZ(55px); }
    .side-right  { transform: rotateY(90deg) translateZ(55px); }
    .side-left   { transform: rotateY(-90deg) translateZ(55px); }
    .side-top    { transform: rotateX(90deg) translateZ(55px); }
    .side-bottom { transform: rotateX(-90deg) translateZ(55px); }
    
    .floating-widget { padding: 8px 12px; font-size: 0.8rem; }
    .widget-1 { top: 5px; left: 0; }
    .widget-2 { bottom: 10px; right: 0; }
    .widget-3 { display: none; }

    .hero-metrics { grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 20px; }
    .metric-value { font-size: 1.3rem; }
    .metric-label { font-size: 0.72rem; }

    .section-header { margin-bottom: 36px; }
    .section-title { font-size: clamp(1.7rem, 5vw, 2.2rem); }
    .section-subtitle { font-size: 0.92rem; }

    .services-grid { grid-template-columns: 1fr; gap: 18px; }
    .demo-cards-grid { grid-template-columns: 1fr; gap: 20px; }
    .process-grid { grid-template-columns: 1fr; gap: 16px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    
    .calculator-box { padding: 20px 16px; border-radius: 18px; }
    .chips-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .calc-chip { padding: 10px 8px; font-size: 0.8rem; }
    .calc-summary { padding: 18px 14px; border-radius: 16px; }
    .estimate-amount { font-size: 1.9rem; }

    .contact-form-card { padding: 22px 16px; border-radius: 18px; }
    .form-row { grid-template-columns: 1fr; gap: 14px; }
    
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

    .btn { padding: 12px 20px; font-size: 0.88rem; }

    .whatsapp-float { bottom: 18px; right: 16px; width: 48px; height: 48px; font-size: 1.45rem; }

    .demo-modal-window {
        width: 100% !important;
        max-width: 95vw !important;
        max-height: 88vh !important;
        max-height: 88dvh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        padding: 24px 16px !important;
        border-radius: 18px !important;
    }
}

@media (max-width: 640px) {
    .nav-cta .btn { display: none; }
    .logo-text { font-size: 1.25rem; }
    .logo-img { height: 38px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .hero-metrics { grid-template-columns: 1fr 1fr 1fr; text-align: center; gap: 8px; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    
    .calc-chip { padding: 9px 6px; font-size: 0.76rem; }
    .chips-grid { grid-template-columns: 1fr 1fr; gap: 6px; }

    .comp-table th, .comp-table td { padding: 10px 12px; font-size: 0.78rem; }
    
    .demo-card-actions { flex-direction: column; gap: 8px; }
    .demo-card-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 360px) {
    .logo-text { font-size: 1.12rem; }
    .hero-title { font-size: 1.6rem; }
    .chips-grid { grid-template-columns: 1fr; }
    .hero-metrics { grid-template-columns: 1fr; gap: 12px; }
}