:root {
    /* 🎨  New Theme: Deep Navy & Electric Neon */
    --bg-dark: #0B0F1A;
    --bg-card: rgba(255, 255, 255, 0.02);

    /* Brand Colors */
    --primary-purple: #7C3AED;
    --primary-blue: #2563EB;
    --primary-pink: #EC4899;

    --text-main: #FFFFFF;
    --text-muted: #94A3B8;

    /* Gradient */
    --text-gradient: linear-gradient(135deg, #7C3AED 0%, #2563EB 50%, #EC4899 100%);

    /* Glows */
    --glow-primary: 0 0 30px rgba(124, 58, 237, 0.4);

    /* Typography (Fluid Sizing) - Clamp */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;

    --fs-h1: clamp(2.5rem, 5vw + 1rem, 5rem);
    --fs-h2: clamp(2rem, 4vw + 1rem, 3.5rem);
    --fs-h3: clamp(1.5rem, 2vw + 1rem, 2rem);
    --fs-body: clamp(1rem, 1vw + 0.5rem, 1.125rem);

    /* Spacing */
    --section-padding: clamp(60px, 10vw, 50px) 0;
    --container-width: 1280px;
    /* Capped as requested */
}

/* 🛠️ Global Reset & Overflow Fix */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-muted);
    font-family: var(--font-main);
    line-height: 1.6;
    font-size: var(--fs-body);
}

img,
canvas {
    max-width: 100%;
    /* height: auto; */
    height: 85px;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    word-wrap: break-word;
    /* Prevent long text overflow */
}

h1 {
    font-size: var(--fs-h1);
}

h2 {
    font-size: var(--fs-h2);
}

h3 {
    font-size: var(--fs-h3);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* 📦 Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 40px);
}

.text-gradient {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* 💎 Glassmorphism Components */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    /* Safari */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: clamp(1.5rem, 3vw, 3rem);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    will-change: transform;
    backface-visibility: hidden;
    /* Fix rendering glitch */
}

.card-hand {
    cursor: pointer;
}

/* Hover Effect (No hover on touch) */
@media (hover: hover) {
    .glass-card:hover {
        transform: translateY(-8px) scale(1.01);
        box-shadow: var(--glow-primary);
        border-color: rgba(124, 58, 237, 0.4);
    }
}

/* 🔘 Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 35px;
    background: var(--text-gradient);
    background-size: 200% auto;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.5s all;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.btn-primary:hover {
    background-position: right center;
    box-shadow: var(--glow-primary);
    transform: translateY(-2px);
}

/* 🟦 Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: background 0.3s ease, padding 0.3s ease;
}

header.scrolled {
    background: rgba(11, 15, 26, 0.9);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: white;
}

.logo span {
    color: var(--primary-blue);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    font-size: 1.05rem;
    color: #FFFFFF;
    /* Pure White */
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* 📱 Responsive Nav */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100dvh;
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999;
        padding-bottom: 50px;
        /* Safe area */
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-toggle {
        display: block;
        z-index: 1001;
    }
}

/* 🦸 Hero Section */
.hero {
    position: relative;
    min-height: 100dvh;
    /* Dynamic viewport */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
    transition: opacity 1s ease;
}

/* Low Perf Fallback */
body[data-perf-tier="low"] #hero-canvas {
    display: none;
}

body[data-perf-tier="low"] .hero {
    background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.2) 0%, rgba(11, 15, 26, 1) 60%);
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 2rem;
    max-width: 1000px;
}

.hero p {
    font-size: clamp(1.1rem, 1.5vw, 1.5rem);
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 40px;
}

/* 📏 Responsive Grids */
.grid-3 {
    display: grid;
    /* Auto-fit with minmax for fluid columns */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

/* Mobile Tweaks */
@media (max-width: 480px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        /* Stack vertically */
    }
}

/* Hero Buttons - Matches Contact Page Size */
.hero-btn {
    padding: 12px 30px !important;
    font-size: 1rem !important;
}

.hero-micro-copy {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 15px;
    font-weight: 400;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

/* Service Icons */
.service-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
}

/* Product Cards */
.product-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    /* Equal height */
    display: flex;
    flex-direction: column;
}

.product-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--text-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

/* Stats */
.stat-item {
    text-align: center;
}

.stat-number {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
    margin-bottom: 15px;
}

.stat-label {
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* CTA */
.cta-section {
    background: linear-gradient(rgba(11, 15, 26, 0.95), rgba(11, 15, 26, 0.9)), url('../images/cta-bg.jpg') center/cover;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Page Header */
.page-header {
    padding: clamp(120px, 15vw, 200px) 0 80px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.15) 0%, rgba(11, 15, 26, 0) 60%);
}

/* 📥 Forms */
.contact-form-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: clamp(30px, 5vw, 60px);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(124, 58, 237, 0.1);
}

/* 🖼️ Product Preview Sections */
.product-preview-section {
    padding: var(--section-padding);
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.05) 0%, rgba(11, 15, 26, 0) 70%);
}

.preview-container {
    max-width: 1000px;
    margin: 40px auto 20px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease;
}

.preview-container:hover {
    transform: translateY(-5px);
}

.preview-image {
    width: 100%;
    height: auto;
    display: block;
}

.preview-caption {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 20px;
    font-style: italic;
    opacity: 0.8;
}

/* 🖼️ Product Card Images */
.product-card-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    background: rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.product-card-img {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* ✨ Product Showcase Layout (Desktop) */
@media (min-width: 992px) {
    .glass-card.product-showcase {
        padding: 30px !important;
        /* Restore padding for card */
    }

    .product-showcase {
        display: grid;
        /* grid-template-columns: 0.8fr 1.2fr; */
        grid-template-columns: 1fr 1fr;
        /* 40/60 split */
        align-items: center;
        gap: 40px;
        /* Separated layout */
    }

    .product-showcase .product-card-image-container {
        height: auto;
        padding-bottom: 0.25%;
        /* Restore 16:9 Aspect Ratio */
        min-height: 0;
        /* Remove fixed height */
        border-bottom: none;
        border: 1px solid rgba(255, 255, 255, 0.05);
        /* Restore border */
        border-radius: 16px !important;
        /* Restore radius */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        /* Add shadow */
    }

    .product-showcase.reverse .product-card-image-container {
        border-right: 1px solid rgba(255, 255, 255, 0.05);
        /* Keep consistent border */
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        order: 2;
    }

    .product-showcase.reverse .product-content {
        order: 1;
    }

    .product-content {
        padding: 10px !important;
        /* Reduced padding since we have gap */
    }
}

.glass-card:hover .product-card-img {
    transform: scale(1.03);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    padding: 18px 25px;
    color: white;
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-control:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.3);
    background: rgba(0, 0, 0, 0.6);
    outline: none;
    transform: translateY(-2px);
    width: 100%;
    /* Full width button on mobile */
    padding: 16px;
}

input,
textarea {
    font-size: 16px;
    /* Prevent zoom on iOS */
}

.error-message {
    color: #ff0080;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.success-message {
    color: #00e5ff;
    text-align: center;
    margin-top: 20px;
    display: none;
    font-weight: 600;
    padding: 15px;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 8px;
}

/* ⚡ reduce motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .glass-card:hover {
        transform: none;
    }
}

/* JS Animation Utilities */
.hidden-tile {
    opacity: 0 !important;
    transform: translateY(20px);
    pointer-events: none !important;
    /* Safeguard */
    visibility: hidden;
}

.fade-in {
    opacity: 1 !important;
    transform: translateY(0);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

/* Floating Buttons */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
}

.floating-btn.visible {
    opacity: 1;
    visibility: visible;
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.1);
}

/* Scroll Top - Gradient Neon */
.scroll-top {
    background: var(--text-gradient);
    background-size: 200% auto;
    bottom: 100px;
    /* Stacked above WhatsApp */
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.scroll-top:hover {
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.6);
    background-position: right center;
}

/* WhatsApp - Green */
.whatsapp-btn {
    background: #25D366;
    bottom: 30px;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
    opacity: 1;
    /* Always visible */
    visibility: visible;
}

.whatsapp-btn:hover {
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.6);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .floating-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.5rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        opacity: 0;
        visibility: hidden;
        cursor: pointer;
    }

    .floating-btn.visible {
        opacity: 1;
        visibility: visible;
    }

    .floating-btn:hover {
        transform: translateY(-5px) scale(1.1);
    }

    /* Scroll Top - Gradient Neon */
    .scroll-top {
        background: var(--text-gradient);
        background-size: 200% auto;
        bottom: 100px;
        /* Stacked above WhatsApp */
        box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
    }

    .scroll-top:hover {
        box-shadow: 0 0 30px rgba(124, 58, 237, 0.6);
        background-position: right center;
    }

    /* WhatsApp - Green */
    .whatsapp-btn {
        background: #25D366;
        bottom: 30px;
        box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
        opacity: 1;
        /* Always visible */
        visibility: visible;
    }

    .whatsapp-btn:hover {
        box-shadow: 0 0 30px rgba(37, 211, 102, 0.6);
    }

    /* Mobile Adjustments */
    @media (max-width: 768px) {
        .floating-btn {
            width: 50px;
            height: 50px;
            right: 20px;
            font-size: 1.3rem;
        }

        .scroll-top {
            bottom: 90px;
        }

        .whatsapp-btn {
            bottom: 25px;
        }
    }

    /* 🚪 Page Transitions */
    body {
        opacity: 1;
        transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    }

    body.page-exit {
        opacity: 0;
        transform: scale(0.98);
        pointer-events: none;
    }
}

/* customized */

.section-title p {
    margin-top: 10px;
    margin-bottom: 30px;
}

.process-step p {
    margin-top: 10px;
}

/* customized */