/* =====================================================
   MachineTech.lk — Modern Blue/White/Red Theme
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@500;600;700;800&display=swap');

:root {
    /* Brand Colors - Warm Orange & Deep Navy Blue */
    --red:        #f97316;
    --red-dark:   #ea580c;
    --red-light:  #fb923c;
    
    --blue:       #1e3a8a;
    --blue-dark:  #172554;
    --blue-light: #3b82f6;

    /* Clean Warm Backgrounds */
    --bg-page:      #faf9f8;
    --bg-secondary: #f3f2f0;
    --bg-card:      #ffffff;
    --bg-card-2:    #fdfcfb;
    --bg-nav:       #172554;

    /* Text Colors for High Contrast on White */
    --text-heading: #0f172a;
    --text-body:    #334155;
    --text-muted:   #64748b;
    --text-inverse: #ffffff;

    /* Glass / Borders */
    --glass-bg:     rgba(30, 58, 138, 0.03);
    --glass-border: rgba(30, 58, 138, 0.12);

    /* Soft Modern Shadows */
    --shadow-sm:   0 4px 12px rgba(15, 23, 42, 0.04);
    --shadow-md:   0 12px 32px rgba(15, 23, 42, 0.08);
    --shadow-red:  0 8px 32px rgba(249, 115, 22, 0.15); /* Orange shadow */
    --shadow-blue: 0 8px 32px rgba(30, 58, 138, 0.15); /* Navy shadow */

    /* Misc */
    --transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);

    /* Orb colors (Orange & Navy tints) */
    --orb-1: rgba(249, 115, 22, 0.08);
    --orb-2: rgba(30, 58, 138, 0.06);
    --orb-3: rgba(251, 146, 60, 0.07);
    --grid-line: rgba(15, 23, 42, 0.03);
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== UTILITY ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.gradient-text {
    background: linear-gradient(135deg, var(--red-light), var(--blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--red-light);
    background: rgba(225, 29, 72, 0.1);
    border: 1px solid rgba(225, 29, 72, 0.25);
    margin-bottom: 16px;
    transition: var(--transition);
}

/* ===== PAGE LOADER ===== */
#page-loader {
    position: fixed; inset: 0; z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-page);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-bar {
    width: 200px; height: 4px;
    background: var(--glass-border);
    border-radius: 999px; overflow: hidden;
    margin-top: 24px;
}
.loader-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--red-dark), var(--red), var(--blue));
    border-radius: 999px;
    animation: loadFill 1.2s ease forwards;
}
.loader-logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-heading);
}
.loader-logo-text span { color: var(--red); }
@keyframes loadFill { from { width: 0; } to { width: 100%; } }

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
    font-size: 1.1rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.theme-toggle:hover {
    background: rgba(249,115,22,0.1);
    border-color: rgba(249,115,22,0.3);
    color: var(--red-light);
    transform: rotate(20deg);
}
.theme-toggle .icon-sun,
.theme-toggle .icon-moon { position: absolute; transition: all 0.3s ease; }
/* Light mode: show moon (to switch to dark), hide sun */
:root .theme-toggle .icon-sun  { opacity: 0; transform: translateY(10px) rotate(90deg); }
:root .theme-toggle .icon-moon { opacity: 1; transform: translateY(0) rotate(0deg); }
/* Dark mode: show sun (to switch to light), hide moon */
[data-theme="dark"] .theme-toggle .icon-sun  { opacity: 1; transform: translateY(0) rotate(0deg); }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: translateY(10px) rotate(-90deg); }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: var(--transition);
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    border-bottom: 1px solid rgba(255,255,255,0.05);
    box-shadow: var(--shadow-sm);
}
.navbar.scrolled {
    background: rgba(30, 58, 138, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}
/* Light theme: always show bg for readability */
:root .navbar { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); border-bottom: 1px solid rgba(255,255,255,0.1); box-shadow: var(--shadow-sm); }
[data-theme="dark"] .navbar { background: transparent; border-bottom: none; box-shadow: none; }
[data-theme="dark"] .navbar.scrolled { background: var(--bg-nav); border-bottom: 1px solid var(--glass-border); box-shadow: var(--shadow-sm); }

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    gap: 24px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    text-decoration: none;
}
.logo-wordmark {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.03em;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 0;
    transition: var(--transition);
}
.logo-wordmark .logo-machine { color: #ffffff; }
.logo-wordmark .logo-tech {
    color: var(--red-light);
    position: relative;
}
.logo-wordmark .logo-dot { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.logo-wordmark .logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    padding: 2px 7px;
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    vertical-align: middle;
    line-height: 1.5;
    white-space: nowrap;
}
.logo:hover .logo-wordmark { opacity: 0.85; transform: scale(1.01); }

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}
.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    transition: var(--transition);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--red), var(--blue));
    border-radius: 999px;
    transition: width 0.3s ease;
}
.nav-links a:hover { color: #ffffff; }
.nav-links a:hover::after { width: 100%; }

.nav-icons { display: flex; align-items: center; gap: 10px; }

.cart-icon {
    position: relative;
    cursor: pointer;
    color: #ffffff;
    display: flex;
    align-items: center;
    transition: var(--transition);
    padding: 8px;
    border-radius: 10px;
}
.cart-icon:hover { color: #ffffff; background: rgba(255,255,255,0.1); }

.cart-badge {
    position: absolute; top: 0; right: 0;
    background: var(--red);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 999px;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
    animation: pulseBadge 2s infinite;
}
@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.hamburger {
    display: none;
    cursor: pointer;
    color: var(--text-heading);
    padding: 8px;
    border-radius: 10px;
    background: rgba(249,115,22,0.08);
    border: 1.5px solid rgba(249,115,22,0.25);
    transition: var(--transition);
    line-height: 0;
}
.hamburger:hover {
    color: var(--red-light);
    background: rgba(249,115,22,0.15);
    border-color: rgba(249,115,22,0.45);
    transform: scale(1.05);
}

/* Nav Drawer Brand / Footer */
/* Nav drawer header row - hidden on desktop */
.nav-drawer-close-row {
    display: none;
    list-style: none;
    width: 100%;
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 2;
}
.nav-drawer-close {
    width: 100%;
    padding: 16px 20px 16px 28px;
    background: none; border: none; cursor: pointer;
    display: flex; align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.nav-drawer-close-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem; font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.02em;
}
.nav-drawer-close-brand span { color: var(--red-light); }
.nav-drawer-close-x {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: rgba(249,115,22,0.08);
    border: 1px solid rgba(249,115,22,0.2);
    color: var(--text-heading);
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}
.nav-drawer-close:hover .nav-drawer-close-x {
    background: rgba(249,115,22,0.18);
    color: var(--red-light);
}

.nav-drawer-brand {
    border-bottom: 1px solid var(--glass-border) !important;
    padding-bottom: 20px !important;
    margin-bottom: 8px;
    width: 100%;
    list-style: none;
}
.nav-drawer-footer {
    margin-top: auto;
    list-style: none;
    width: 100%;
    border-top: 1px solid var(--glass-border);
}
.nav-drawer-footer a {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #172554 0%, #1e3a8a 100%);
}

.hero-bg {
    position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb-1 { width: 600px; height: 600px; background: var(--orb-1); top: -200px; right: -150px; animation-delay: 0s; }
.hero-orb-2 { width: 500px; height: 500px; background: var(--orb-2); bottom: -150px; left: -100px; animation-delay: 3s; }
.hero-orb-3 { width: 300px; height: 300px; background: var(--orb-3); top: 40%; left: 45%; animation-delay: 5s; }

.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 60px 60px;
}
.hero-line {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249,115,22,0.4), transparent);
}
@keyframes orbFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.hero .container { position: relative; z-index: 1; }
.hero-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 24px;
}
.hero-badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--red);
    animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}

.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 500px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute; inset: 0;
    background: rgba(255,255,255,0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.btn:hover::before { opacity: 1; }

.btn-primary {
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(225, 29, 72, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(225, 29, 72, 0.55); }

.btn-outline {
    background: var(--glass-bg);
    color: var(--text-heading);
    border: 1.5px solid var(--glass-border);
    backdrop-filter: blur(8px);
}
.btn-outline:hover {
    border-color: rgba(249,115,22,0.4);
    color: var(--red-light);
    background: rgba(249,115,22,0.06);
    transform: translateY(-2px);
}

.btn-blue {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(29, 78, 216, 0.4);
}
.btn-blue:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(29, 78, 216, 0.55); }

.btn-secondary {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(29,78,216,0.3);
}
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(29,78,216,0.5); }

/* Hero tags */
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #ffffff;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
}

/* Hero Visual */
.hero-visual { position: relative; animation: heroFloat 6s ease-in-out infinite; }
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.hero-img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md), var(--shadow-red);
}
.hero-img-wrapper img { width: 100%; height: 380px; object-fit: cover; display: block; }
.hero-img-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(249,115,22,0.06), rgba(29,78,216,0.06));
    pointer-events: none;
}
.hero-window-bar {
    position: absolute; top: 0; left: 0; right: 0;
    height: 36px;
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 7px;
    border-bottom: 1px solid var(--glass-border);
    z-index: 5;
}
.win-dot { width: 11px; height: 11px; border-radius: 50%; }
.win-dot-r { background: #ff5f57; }
.win-dot-y { background: #febc2e; }
.win-dot-g { background: #28c840; }
.win-url { margin-left: 12px; font-size: 0.7rem; color: #6b7280; font-family: monospace; }

/* Floating stat cards */
.hero-stat-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-md);
    z-index: 10;
}
.hero-stat-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.hero-stat-icon.red   { background: rgba(249,115,22,0.15); }
.hero-stat-icon.blue  { background: rgba(29,78,216,0.15); }
.hero-stat-icon.green { background: rgba(34,197,94,0.15); }
.stat-label { font-size: 0.68rem; color: var(--text-muted); margin-bottom: 2px; }
.stat-value { font-size: 0.95rem; font-weight: 700; color: var(--text-heading); }

.hero-stat-card.card-1 { top: 14%; right: -28px; animation: floatCard 5s ease-in-out infinite; }
.hero-stat-card.card-2 { bottom: 18%; left: -30px; animation: floatCard 6s ease-in-out infinite; animation-delay: 1.5s; }
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ===== SECTIONS ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-secondary); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.section-head h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}
.section-head p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.75; }

.section-title {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

/* ===== FEATURED CATEGORIES ===== */
.featured-section {
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}
.featured-section::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249,115,22,0.3), rgba(29,78,216,0.3), transparent);
}

/* Product Slider */
.product-slider {
    display: flex;
    overflow-x: auto;
    gap: 24px;
    padding: 12px 4px 24px;
    scrollbar-width: none;
    cursor: grab;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}
.product-slider:active { cursor: grabbing; }
.product-slider.active { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }
.product-slider.active * { pointer-events: none; user-select: none; }
.product-slider::-webkit-scrollbar { display: none; }

/* Product Card */
.product-card {
    min-width: 320px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    background: linear-gradient(145deg, #ffffff 0%, #e0e7ff 100%);
    border: 1px solid rgba(30, 58, 138, 0.15);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}
.product-card::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--blue));
    opacity: 0.85;
    z-index: 5;
}
.product-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(249,115,22,0.06), rgba(29,78,216,0.06));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}
.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--blue-light);
    box-shadow: 0 16px 32px rgba(30, 58, 138, 0.15), 0 8px 16px rgba(225, 29, 72, 0.1);
}
.product-card:hover::before { opacity: 1; }
.product-card img { width: 100%; height: 240px; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover img { transform: scale(1.05); }
.product-card-body { padding: 24px; position: relative; z-index: 2; }
.product-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 10px;
}
.product-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; line-height: 1.6; }
.product-card .btn { padding: 10px 22px; font-size: 0.85rem; }

/* ===== ABOUT SECTION ===== */
.about-section { padding: 90px 0; position: relative; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.about-image-wrapper { position: relative; }
.about-image-wrapper::before {
    content: '';
    position: absolute; inset: -20px;
    background: rgba(249,115,22,0.07);
    border-radius: 30px;
    filter: blur(30px);
    z-index: 0;
}
.about-img-box {
    position: relative; z-index: 1;
    border-radius: 20px; overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
}
.about-img-box img { width: 100%; height: 420px; object-fit: cover; display: block; }
.about-img-placeholder {
    width: 100%; height: 420px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 4rem; gap: 16px;
}
.about-img-placeholder p { font-size: 1rem; font-weight: 600; color: var(--text-body); }

.about-badge-row {
    display: flex; gap: 16px; margin-top: 24px;
    position: absolute; bottom: -20px; left: 20px; right: 20px; z-index: 5;
}
.about-mini-card {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 14px; padding: 16px; text-align: center;
    box-shadow: var(--shadow-sm);
}
.about-mini-card strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem; font-weight: 800;
    color: var(--red-light);
}
.about-mini-card span { font-size: 0.78rem; color: var(--text-muted); }

.about-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.about-content p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.8; margin-bottom: 32px; }

.about-features { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }
.about-feature {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 16px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px; transition: var(--transition);
}
.about-feature:hover { border-color: rgba(249,115,22,0.25); background: rgba(249,115,22,0.04); }
.about-feature-icon {
    width: 42px; height: 42px; border-radius: 12px;
    background: rgba(249,115,22,0.1);
    border: 1px solid rgba(249,115,22,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
}
.about-feature-text h4 { font-size: 0.95rem; font-weight: 600; color: var(--text-heading); margin-bottom: 4px; }
.about-feature-text p { font-size: 0.85rem; color: var(--text-muted); }

/* ===== WHY CHOOSE US ===== */
.why-choose-us { padding: 90px 0; position: relative; overflow: hidden; }
.why-choose-us::before {
    content: '';
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 600px; height: 400px;
    background: radial-gradient(ellipse, rgba(29,78,216,0.05) 0%, transparent 70%);
    pointer-events: none;
}
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
    padding: 36px 28px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: var(--transition);
    position: relative; overflow: hidden; text-align: left;
    box-shadow: var(--shadow-sm);
}
.feature-card::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--blue));
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s ease;
}
.feature-card:hover { transform: translateY(-8px); border-color: rgba(249,115,22,0.2); box-shadow: var(--shadow-md); }
.feature-card:hover::after { transform: scaleX(1); }

.feature-icon {
    width: 56px; height: 56px; border-radius: 16px;
    background: rgba(249,115,22,0.1);
    border: 1px solid rgba(249,115,22,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; margin-bottom: 20px; transition: var(--transition);
}
.feature-card:hover .feature-icon { background: rgba(249,115,22,0.18); transform: scale(1.05); }
.feature-card h3 { font-family: 'Poppins', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--text-heading); margin-bottom: 10px; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* ===== STATS SECTION ===== */
.stats-section {
    padding: 70px 0; position: relative; overflow: hidden;
    background: var(--bg-secondary);
}
.stats-section::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(249,115,22,0.06) 0%, rgba(29,78,216,0.06) 50%, rgba(249,115,22,0.06) 100%);
    pointer-events: none;
}
.stats-section::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249,115,22,0.4), rgba(29,78,216,0.4), transparent);
}
.stats-border-bottom {
    position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(29,78,216,0.4), rgba(249,115,22,0.4), transparent);
}
.stats-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0; position: relative; z-index: 1;
}
.stat-item { text-align: center; padding: 30px 20px; position: relative; }
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute; top: 20%; right: 0; bottom: 20%;
    width: 1px; background: var(--glass-border);
}
.stat-item h3 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 900;
    background: linear-gradient(135deg, var(--red-light), var(--blue-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 8px; letter-spacing: -0.02em;
}
.stat-item p { font-size: 1rem; font-weight: 500; color: var(--text-muted); }

/* ===== BRANDS SECTION ===== */
.brands-section { padding: 80px 0; background: var(--bg-secondary); position: relative; overflow: hidden; }
.brands-grid {
    display: flex; justify-content: center; align-items: center;
    gap: 48px; flex-wrap: wrap; margin-top: 48px;
}
.brands-grid img {
    max-height: 70px; max-width: 180px; object-fit: contain;
    filter: grayscale(100%) opacity(0.5);
    transition: var(--transition);
}
[data-theme="dark"] .brands-grid img { filter: grayscale(100%) brightness(0.5) opacity(0.6); }
.brands-grid img:hover { filter: grayscale(0%) opacity(1); transform: scale(1.08); }
[data-theme="dark"] .brands-grid img:hover { filter: grayscale(0%) brightness(1) opacity(1); }

/* ===== TESTIMONIALS ===== */
.testimonials-section { padding: 90px 0; position: relative; }
.testimonials-slider {
    display: flex; overflow-x: auto; gap: 24px;
    padding: 12px 4px 24px;
    scrollbar-width: none; cursor: grab;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}
.testimonials-slider:active { cursor: grabbing; }
.testimonials-slider.active { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }
.testimonials-slider.active * { pointer-events: none; user-select: none; }
.testimonials-slider::-webkit-scrollbar { display: none; }

.testimonial-card {
    min-width: 340px; flex: 1;
    scroll-snap-align: start;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px; padding: 32px 28px;
    transition: var(--transition); position: relative;
    box-shadow: var(--shadow-sm);
}
.testimonial-card::before {
    content: '"';
    position: absolute; top: 16px; left: 24px;
    font-family: 'Poppins', sans-serif; font-size: 5rem; font-weight: 900;
    color: rgba(249,115,22,0.08); line-height: 1;
}
.testimonial-card:hover {
    border-color: rgba(249,115,22,0.25);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.stars { color: #f59e0b; font-size: 1rem; letter-spacing: 2px; margin-bottom: 16px; }
.testimonial-card > p {
    font-style: italic;
    color: var(--text-body);
    margin-bottom: 20px; line-height: 1.7; font-size: 0.95rem; position: relative; z-index: 1;
}
.testimonial-author-row { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: linear-gradient(135deg, var(--red-dark), var(--blue-dark));
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem; color: #ffffff; flex-shrink: 0;
}
.testimonial-author { font-weight: 700; font-size: 0.9rem; color: var(--text-heading); }
.testimonial-role { font-size: 0.78rem; color: var(--text-muted); }

/* ===== FOOTER ===== */
footer {
    background: #0f172a;
    border-top: none;
    padding: 64px 0 32px;
    position: relative; overflow: hidden;
}
footer::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--red), var(--blue), transparent);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo-footer {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem; font-weight: 800; color: #ffffff; margin-bottom: 12px;
}
.footer-brand .logo-footer span { color: var(--red-light); }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 20px; }

.footer-social { display: flex; gap: 10px; }
.social-btn {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.8); font-size: 0.9rem;
    transition: var(--transition); text-decoration: none;
}
.social-btn:hover { background: rgba(249,115,22,0.2); border-color: rgba(249,115,22,0.4); color: #ffffff; }

.footer-section h4 {
    font-family: 'Poppins', sans-serif; font-size: 0.95rem; font-weight: 700;
    color: #ffffff; margin-bottom: 20px;
    position: relative; padding-bottom: 10px;
}
.footer-section h4::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 28px; height: 2px;
    background: linear-gradient(90deg, var(--red), var(--blue));
    border-radius: 999px;
}
.footer-section p, .footer-section a {
    font-size: 0.88rem; color: rgba(255,255,255,0.7); margin-bottom: 10px; display: block; transition: var(--transition);
}
.footer-section a:hover { color: #ffffff; padding-left: 4px; }

.footer-contact-item { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: rgba(255,255,255,0.7); margin-bottom: 12px; }
.footer-contact-icon {
    width: 34px; height: 34px; border-radius: 9px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: #ffffff;
    font-size: 0.9rem; flex-shrink: 0;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 28px;
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 8px;
}
.footer-bottom p { font-size: 0.83rem; color: rgba(255,255,255,0.5); text-align: center; }
.footer-bottom a { color: var(--red-light); font-weight: 600; transition: var(--transition); }
.footer-bottom a:hover { color: #ffffff; }

/* ===== CART DRAWER ===== */
.cart-overlay {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 10000; opacity: 0; visibility: hidden; transition: var(--transition);
}
.cart-overlay.active { opacity: 1; visibility: visible; }

.cart-drawer {
    position: fixed; top: 0; right: -420px;
    width: 420px; max-width: 100%; height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--glass-border);
    z-index: 10001;
    box-shadow: -20px 0 60px rgba(0,0,0,0.2);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
}
.cart-drawer.active { right: 0; }
.cart-header {
    padding: 24px 20px; border-bottom: 1px solid var(--glass-border);
    display: flex; justify-content: space-between; align-items: center;
}
.cart-header h2 {
    font-family: 'Poppins', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--text-heading);
}
#close-cart {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    font-size: 1.4rem; cursor: pointer; color: var(--text-muted);
    width: 36px; height: 36px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
#close-cart:hover { background: rgba(249,115,22,0.1); color: var(--red-light); border-color: rgba(249,115,22,0.3); }
.cart-items { padding: 20px; flex: 1; overflow-y: auto; }
.cart-item {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--glass-border); padding-bottom: 16px; margin-bottom: 16px;
}
.cart-item h4 { color: var(--text-body); font-size: 0.95rem; margin-bottom: 4px; }
.cart-item p { color: var(--red-light); font-weight: 700; }
.remove-item { color: var(--text-muted); cursor: pointer; font-size: 1.2rem; transition: var(--transition); }
.remove-item:hover { color: var(--red); }
.empty-cart { text-align: center; color: var(--text-muted); margin-top: 60px; font-size: 0.95rem; }
.cart-footer { padding: 20px; border-top: 1px solid var(--glass-border); background: var(--bg-secondary); }
.cart-footer h3 { display: flex; justify-content: space-between; color: var(--text-heading); font-size: 1.1rem; font-family: 'Poppins', sans-serif; }

/* ===== PRODUCT / SHOP SHARED ===== */
.shop-layout { display: flex; gap: 30px; margin-top: 40px; }
.shop-sidebar { width: 250px; flex-shrink: 0; }
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px; padding-bottom: 60px;
}
.product-grid .product-card, .shop-layout .product-card { min-width: unset; text-align: center; }

/* Product detail */
.product-details-container { display: flex; flex-wrap: wrap; gap: 40px; padding: 60px 0; }
.product-image-wrapper { flex: 1 1 400px; position: relative; }
.img-zoom-container {
    position: relative; border: 1px solid var(--glass-border);
    border-radius: 16px; background: var(--bg-card); cursor: crosshair;
}
.img-zoom-container img { width: 100%; height: auto; display: block; border-radius: 16px; }
.img-zoom-lens { position: absolute; border: 1px solid rgba(249,115,22,0.4); width: 150px; height: 150px; background-color: rgba(249,115,22,0.05); pointer-events: none; }
.img-zoom-result {
    border: 1px solid var(--glass-border); border-radius: 16px;
    width: 100%; height: 400px; position: absolute; top: 0; left: 105%;
    background-color: var(--bg-card); box-shadow: var(--shadow-md);
    display: none; z-index: 10;
}
.product-info-wrapper { flex: 1 1 500px; }
.product-title { font-size: 2.2rem; color: var(--text-heading); margin-bottom: 10px; font-family: 'Poppins', sans-serif; font-weight: 800; }
.product-price { font-size: 2rem; color: var(--red-light); font-weight: 800; margin-bottom: 30px; }
.product-description { margin-bottom: 40px; color: var(--text-muted); }
.product-description h3 { margin-bottom: 15px; color: var(--text-body); }
.product-description ul { list-style: disc; margin-left: 20px; margin-top: 15px; }
.product-actions { background: var(--bg-card); border: 1px solid var(--glass-border); padding: 25px; border-radius: 16px; }
.qty-selector { margin-bottom: 25px; display: flex; align-items: center; gap: 15px; }
.qty-selector label { font-weight: 600; font-size: 1rem; color: var(--text-body); }
.qty-selector input {
    width: 80px; padding: 10px; font-size: 1rem;
    border: 1px solid var(--glass-border); border-radius: 8px; text-align: center;
    background: var(--bg-page); color: var(--text-heading);
}
.action-buttons { display: flex; flex-wrap: wrap; gap: 15px; }

/* Checkout */
.checkout-container { padding: 80px 0; }
.checkout-title { color: var(--text-heading); font-family: 'Poppins', sans-serif; font-size: 2rem; font-weight: 800; margin-bottom: 30px; }
.checkout-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.form-group-section { background: var(--bg-card); border: 1px solid var(--glass-border); padding: 28px; border-radius: 16px; margin-bottom: 24px; }
.form-group-section h3 { margin-bottom: 20px; color: var(--red-light); border-bottom: 1px solid var(--glass-border); padding-bottom: 12px; font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 700; }
.input-group { margin-bottom: 16px; }
.input-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.88rem; color: var(--text-body); }
.input-group input, .input-group textarea, .input-group select {
    width: 100%; padding: 11px 14px; border: 1px solid var(--glass-border);
    border-radius: 9px; font-family: 'Inter', sans-serif;
    background: var(--bg-page); color: var(--text-heading); font-size: 0.9rem; transition: var(--transition);
}
.input-group input:focus, .input-group textarea:focus { outline: none; border-color: rgba(249,115,22,0.5); box-shadow: 0 0 0 3px rgba(249,115,22,0.1); }
.input-row { display: flex; gap: 15px; }
.input-row .input-group { flex: 1; }
.payment-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.payment-option {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    border: 1px solid var(--glass-border); border-radius: 10px; cursor: pointer;
    background: var(--bg-page); color: var(--text-body); font-size: 0.9rem; transition: var(--transition);
}
.payment-option:hover { border-color: rgba(249,115,22,0.3); color: var(--text-heading); }
.payment-option input[type="radio"] { accent-color: var(--red); }
.order-summary-section { background: var(--bg-card); border: 1px solid var(--glass-border); padding: 28px; border-radius: 16px; height: fit-content; position: sticky; top: 100px; }
.order-summary-section h3 { color: var(--text-heading); margin-bottom: 20px; font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 700; }
.summary-item { display: flex; justify-content: space-between; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--glass-border); font-size: 0.88rem; }
.summary-item p { color: var(--text-muted); }
.summary-total p, .summary-total h3 { display: flex; justify-content: space-between; color: var(--text-heading); }

/* ===== THE PROCESS SECTION ===== */
.process-section { padding: 90px 0; background: var(--bg-page); position: relative; }
.process-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    margin-top: 48px;
}
.process-step {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px; padding: 32px 24px;
    text-align: center; position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.process-step:hover {
    transform: translateY(-8px);
    border-color: rgba(249,115,22,0.25);
    box-shadow: var(--shadow-md);
}
.process-icon {
    width: 64px; height: 64px; border-radius: 16px;
    background: rgba(249,115,22,0.1); border: 1px solid rgba(249,115,22,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin: 0 auto 20px;
    transition: var(--transition);
}
.process-step:hover .process-icon { background: rgba(249,115,22,0.18); transform: scale(1.05); }
.process-num {
    position: absolute; top: -14px; right: 24px;
    font-family: 'Poppins', sans-serif; font-size: 3rem; font-weight: 900;
    color: rgba(249,115,22,0.06); line-height: 1; pointer-events: none;
}
.process-step h3 {
    font-family: 'Poppins', sans-serif; font-size: 1.1rem; font-weight: 700;
    color: var(--text-heading); margin-bottom: 12px;
}
.process-step p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ===== PARALLAX BANNER ===== */
.parallax-banner {
    position: relative; padding: 120px 0;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center; overflow: hidden;
}
.parallax-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.7) 100%);
    backdrop-filter: blur(2px);
}
.parallax-content {
    position: relative; z-index: 2; max-width: 680px; margin: 0 auto;
}
.parallax-content h2 {
    font-family: 'Poppins', sans-serif; font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800; color: #ffffff; margin-bottom: 16px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.parallax-content p {
    font-size: 1.1rem; color: #e5e7eb; margin-bottom: 32px; line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-up.visible { opacity: 1; transform: translateY(0); }
.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Stagger Helpers */
.stagger-children > *:nth-child(1) { transition-delay: 0s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-grid-layout { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { max-width: 600px; margin: 0 auto; }
    .about-grid { grid-template-columns: 1fr; }
    .about-image-wrapper { order: -1; }
    .about-badge-row { position: static; margin-top: 12px; }
    .about-img-box img { height: 340px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* NAV DRAWER — slides in from left */
    .nav-links {
        display: flex; flex-direction: column;
        position: fixed; top: 0; left: -300px;
        width: 280px; max-width: 80vw; height: 100vh;
        background: var(--bg-card);
        border-right: 1px solid var(--glass-border);
        z-index: 999;                          /* ABOVE overlay */
        justify-content: flex-start; align-items: flex-start;
        gap: 0; padding: 0;
        transition: left 0.38s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 8px 0 40px rgba(0,0,0,0.45);
        overflow-y: auto;
        pointer-events: auto;                  /* Always clickable */
    }
    .nav-links li { width: 100%; list-style: none; }
    .nav-links li a {
        display: block;
        font-size: 1rem; font-weight: 600;
        width: 100%; padding: 16px 28px;
        border-bottom: 1px solid var(--glass-border);
        white-space: nowrap;
        color: var(--text-body);
        text-decoration: none;
        transition: background 0.2s, color 0.2s;
        pointer-events: auto;                  /* Ensure clicks work */
        position: relative; z-index: 1;
    }
    .nav-links li a:hover { background: rgba(249,115,22,0.07); color: var(--red-light); }
    .nav-links li a::after { display: none; }
    .nav-links.active { left: 0; }

    /* Dark overlay — BEHIND drawer */
    .nav-overlay {
        position: fixed; inset: 0;
        background: rgba(0,0,0,0.55);
        z-index: 998;                          /* BELOW drawer */
        opacity: 0; pointer-events: none;
        transition: opacity 0.3s ease;
    }
    .nav-overlay.active { opacity: 1; pointer-events: auto; }

    /* Phone footer */
    .nav-drawer-footer { margin-top: auto !important; }
    .nav-drawer-footer a {
        white-space: nowrap !important;
        padding: 16px 28px !important;
        font-size: 0.88rem !important;
        color: var(--text-muted) !important;
        display: flex !important; align-items: center; gap: 8px;
        border-bottom: none !important;
        border-top: 1px solid var(--glass-border);
        pointer-events: auto;
    }

    .hamburger { display: flex; align-items: center; justify-content: center; z-index: 1000; position: relative; }
    .logo-wordmark { font-size: 1.05rem; }
    .logo-badge { display: none; }
    .navbar .container { padding: 10px 16px; }
    .nav-drawer-close-row { display: block; }

    .hero { padding: 110px 0 60px; }
    .hero p { font-size: 1rem; }
    .hero-cta { flex-direction: column; }
    .hero-stat-card { display: none; }

    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .stat-item h3 { font-size: 2rem; }
    .stat-item p { font-size: 0.85rem; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .shop-layout { flex-direction: column; }
    .shop-sidebar { width: 100%; }
    .img-zoom-result { display: none !important; }
    .action-buttons { flex-direction: column; }
    .action-buttons .btn { width: 100%; }
    .checkout-grid { grid-template-columns: 1fr; }
    .product-slider .product-card { min-width: 280px; }
    .testimonial-card { min-width: 290px; }
    .process-grid { grid-template-columns: 1fr; }
    .parallax-banner { padding: 80px 20px; background-attachment: scroll; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stat-item:not(:last-child)::after { display: none; }
    .hero h1 { font-size: 1.9rem; }
}

/* ===== VIDEO SECTION ===== */
.video-section { background: var(--bg-secondary); }

.video-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

/* ---- Left info ---- */
.video-info {}

.video-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.video-fact {
    display: flex; align-items: center; gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 16px;
    transition: var(--transition);
}
.video-fact:hover { transform: translateY(-3px); border-color: rgba(249,115,22,0.25); }
.video-fact-icon {
    font-size: 1.4rem;
    width: 42px; height: 42px; border-radius: 10px;
    background: rgba(249,115,22,0.08);
    border: 1px solid rgba(249,115,22,0.15);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.video-fact strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem; font-weight: 800;
    color: var(--text-heading);
}
.video-fact span { font-size: 0.78rem; color: var(--text-muted); }

/* ---- Right video player ---- */
.video-player-wrap {
    position: relative;
    display: flex; flex-direction: column;
    align-items: center;
}

/* Animated glow rings */
.video-glow-ring {
    position: absolute; border-radius: 24px; pointer-events: none;
}
.video-glow-ring-1 {
    inset: -8px; border-radius: 28px;
    background: linear-gradient(135deg, rgba(249,115,22,0.25), rgba(29,78,216,0.2));
    animation: ringPulse 3s ease-in-out infinite;
    z-index: 0;
}
.video-glow-ring-2 {
    inset: -16px; border-radius: 32px;
    background: linear-gradient(135deg, rgba(249,115,22,0.1), rgba(29,78,216,0.08));
    animation: ringPulse 3s ease-in-out infinite 1.5s;
    z-index: 0;
}
@keyframes ringPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.012); }
}

/* Card */
.video-player-card {
    position: relative; z-index: 1;
    border-radius: 20px; overflow: hidden;
    width: 100%;
    background: #000;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
    aspect-ratio: 16 / 9;
}

/* Thumbnail overlay */
.video-thumbnail {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(10,10,18,0.92) 0%, rgba(20,10,30,0.85) 100%);
    cursor: pointer;
    transition: opacity 0.3s ease;
    z-index: 2;
}
.video-thumbnail::before {
    content: '';
    position: absolute; inset: 0;
    background: url('../images/parallax_banner.png') center/cover no-repeat;
    opacity: 0.25;
    filter: blur(2px);
}

/* Play button */
.video-play-btn {
    position: relative; z-index: 1;
    width: 76px; height: 76px; border-radius: 50%;
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 32px rgba(249,115,22,0.6);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    padding-left: 4px; /* optical offset for play triangle */
}
.video-play-btn:hover { transform: scale(1.1); box-shadow: 0 12px 48px rgba(249,115,22,0.75); }
.video-play-btn:active { transform: scale(0.97); }

/* Ripple ring around play button */
.video-play-ripple {
    position: absolute; inset: -8px; border-radius: 50%;
    border: 2px solid rgba(249,115,22,0.45);
    animation: playRipple 2s ease-out infinite;
}
@keyframes playRipple {
    0%   { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.55); opacity: 0; }
}

.video-overlay-text {
    position: absolute; z-index: 1;
    bottom: 20px; left: 0; right: 0;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.75);
}
.video-duration-badge {
    background: rgba(249,115,22,0.85);
    color: #fff; font-size: 0.72rem; font-weight: 700;
    padding: 3px 9px; border-radius: 6px;
    letter-spacing: 0.04em;
}

/* Native video */
.intro-video {
    width: 100%; height: 100%;
    display: block;
    object-fit: cover;
    background: #000;
}

/* Caption */
.video-caption {
    margin-top: 14px;
    display: flex; align-items: center; gap: 7px;
    font-size: 0.8rem; color: var(--text-muted);
}

/* Unmute hint badge */
.video-unmute-hint {
    position: absolute;
    bottom: 14px; left: 14px;
    z-index: 10;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 0.78rem; font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    display: flex; align-items: center; gap: 6px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.15);
    animation: fadeSlideUp 0.4s ease;
    transition: opacity 0.3s;
}
.video-unmute-hint:hover { opacity: 0.85; }
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 900px) {
    .video-layout { grid-template-columns: 1fr; gap: 40px; }
    .video-player-wrap { order: -1; max-width: 580px; width: 100%; }
}
@media (max-width: 540px) {
    .video-facts { grid-template-columns: 1fr 1fr; gap: 10px; }
    .video-play-btn { width: 60px; height: 60px; }
    .video-glow-ring-1, .video-glow-ring-2 { display: none; }
}


/* ===================================================
   HERO VIDEO PLAYER — cinematic device frame
   =================================================== */

/* Outer wrapper */
.hero-vid-device {
    position: relative;
    border-radius: 20px;
    filter: drop-shadow(0 0 32px rgba(249,115,22,0.18));
}

/* Animated glow rings */
.hero-vid-ring {
    position: absolute; pointer-events: none; border-radius: 24px;
}
.hero-vid-ring-1 {
    inset: -8px; border-radius: 28px;
    background: linear-gradient(135deg, rgba(249,115,22,0.28), rgba(29,78,216,0.18));
    animation: heroRingPulse 3s ease-in-out infinite;
    z-index: 0;
}
.hero-vid-ring-2 {
    inset: -18px; border-radius: 34px;
    background: linear-gradient(135deg, rgba(249,115,22,0.1), rgba(29,78,216,0.07));
    animation: heroRingPulse 3s ease-in-out infinite 1.5s;
    z-index: 0;
}
@keyframes heroRingPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.015); }
}

/* Browser chrome bar with extra items */
.hero-vid-device .hero-window-bar {
    position: relative; z-index: 2;
    border-radius: 20px 20px 0 0;
    display: flex; align-items: center; gap: 7px;
}

/* Live badge */
.hero-vid-live {
    margin-left: auto;
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(249,115,22,0.85);
    color: #fff; font-size: 0.6rem; font-weight: 800;
    padding: 2px 7px; border-radius: 4px; letter-spacing: 0.08em;
}
.hero-vid-live-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #fff;
    animation: liveDotBlink 1.2s ease-in-out infinite;
}
@keyframes liveDotBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* The actual video card */
.hero-vid-card {
    position: relative; z-index: 1;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.06);
}


/* HUD bar at bottom of video */
.hero-vid-hud {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 4;
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
    font-size: 0.7rem; color: rgba(255,255,255,0.75);
}
.hero-vid-hd {
    background: rgba(249,115,22,0.9);
    color: #fff; font-size: 0.6rem; font-weight: 800;
    padding: 2px 6px; border-radius: 4px; letter-spacing: 0.05em;
    flex-shrink: 0;
}
.hero-vid-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-vid-dot-pulse {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--red-light);
    animation: pulseDot 2s infinite;
    flex-shrink: 0;
}

/* Unmute hint inside the video card */
.hero-vid-unmute {
    position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 10;
    background: rgba(0,0,0,0.75); color: #fff;
    font-size: 0.75rem; font-weight: 600;
    padding: 5px 12px; border-radius: 999px;
    display: flex; align-items: center; gap: 6px;
    cursor: pointer; backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.15);
    animation: fadeSlideUp 0.4s ease;
    white-space: nowrap;
}
.hero-vid-unmute:hover { opacity: 0.85; }

/* The video element */
.hero-vid {
    width: 100%; height: 100%;
    display: block; object-fit: cover; background: #000;
}

/* Caption below the device */
.hero-vid-caption {
    margin-top: 12px;
    display: flex; align-items: center; gap: 6px;
    font-size: 0.75rem; color: var(--text-muted);
    position: relative; z-index: 2;
    padding-left: 4px;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-vid-device { max-width: 540px; margin: 0 auto; }
}
@media (max-width: 540px) {
    .hero-vid-ring-1, .hero-vid-ring-2 { display: none; }
}
