/* ============================================
   ACETERNITY UI INSPIRED - Digital Vertex
   Dark, Premium, Glowing Design System
   ============================================ */

/* ============ DESIGN TOKENS ============ */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    --bg-white: #ffffff;
    --bg-dark: #0a0a0f;
    --bg-dark-card: #111118;
    --bg-dark-elevated: #16161f;
    --bg-gray-50: #f9fafb;
    --bg-gray-100: #f3f4f6;

    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;

    --border-color: #e5e7eb;
    --border-dark: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.4);

    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.25);

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Poppins', var(--font-primary);

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ RESET ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Offset for fixed navbar - increased for better spacing */
}

/* Fallback for browsers that don't support scroll-padding-top */
@supports not (scroll-padding-top: 100px) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: var(--font-primary);
    background: var(--bg-dark);
    color: #f1f5f9;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Products Page Styles */
.products-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.products-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.products-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.products-hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.products-hero-description {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-xl);
    opacity: 0.85;
    color: #c7d2fe;
}

.products-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    max-width: 600px;
    margin: 0 auto;
}

.stat-item {
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(165, 180, 252, 0.2);
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #a5b4fc, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item p {
    font-size: 0.875rem;
    opacity: 0.8;
    color: #c7d2fe;
}

.products-section {
    padding: var(--spacing-2xl) 0;
    background: #0a0a0f;
}

@media (max-width: 768px) {
    .products-hero {
        padding: 120px 0 40px;
    }

    .products-hero-title {
        font-size: 2.25rem;
    }

    .products-hero-description {
        font-size: 1rem;
    }

    .products-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}


/* ============ NAVBAR - Aceternity Style ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem 0;
    transition: var(--transition-base);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition-fast);
}

.logo:hover {
    opacity: 0.85;
}

.logo-text {
    color: #ffffff;
}

.logo-accent {
    background: linear-gradient(135deg, #a5b4fc 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #818cf8, #a5b4fc);
    transition: var(--transition-base);
    border-radius: var(--radius-full);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.cart-button {
    position: relative;
    padding: 0.625rem 0.875rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
}

.cart-button:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.cart-button svg {
    width: 20px;
    height: 20px;
    color: white;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #6366f1;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0a0a0f;
}

/* ============ HERO - Aceternity Dark ============ */
.hero {
    padding: 160px 0 100px;
    background: #0a0a0f;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Animated grid background */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.06) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* Glow orb */
.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 50%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

/* ============ BUTTONS ============ */
.btn {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

/* ---- Touch Ripple Effect ---- */
.btn .ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: rippleEffect 0.55s linear;
    pointer-events: none;
    z-index: 10;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Tactile press feedback on mobile */
@media (hover: none) and (pointer: coarse) {
    .btn:active {
        transform: scale(0.96) !important;
        transition: transform 0.1s ease !important;
    }

    .btn-primary:active,
    .product-buttons .btn-primary:active {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.5) !important;
    }

    .product-buttons .btn-secondary:active {
        background: rgba(99, 102, 241, 0.15) !important;
        border-color: rgba(99, 102, 241, 0.5) !important;
    }
}

.btn-primary {
    background: #111827;
    color: white;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-primary:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-glow {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    border: 1px solid rgba(165, 180, 252, 0.3);
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.6);
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* ============ SECTIONS ============ */
section {
    padding: var(--spacing-2xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-label {
    display: inline-block;
    color: #6366f1;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============ PRODUCTS SECTION ============ */
.products {
    background: #0d0d14;
    position: relative;
    overflow: hidden;
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
}

.products .section-title {
    color: #ffffff;
}

.products .section-description {
    color: rgba(255, 255, 255, 0.5);
}

.products .section-label {
    color: #818cf8;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* ============ PRODUCT CARDS - Aceternity Style ============ */
.product-card {
    background: #111118;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

/* Glow border on hover */
.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(135deg, transparent, rgba(99, 102, 241, 0), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: var(--transition-base);
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.2),
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(99, 102, 241, 0.1);
}

.product-card:hover::before {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(139, 92, 246, 0.3), transparent);
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

.product-image {
    position: relative;
    height: 260px;
    background: #0d0d14;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    opacity: 0.9;
}

.product-card:hover .product-image img {
    opacity: 1;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(8px);
    color: #a5b4fc;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    z-index: 10;
}

.product-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-category {
    color: #818cf8;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.product-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8125rem;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.product-features li {
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: var(--transition-fast);
}

.product-features li:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.5);
}

.product-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price-current {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
}

.price-original {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: line-through;
}

.product-buttons {
    display: flex;
    gap: 0.5rem;
}

.product-buttons .btn {
    flex: 1;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
}

.product-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.product-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.product-buttons .btn-primary {
    background: #6366f1;
    color: white;
    border: 1px solid rgba(165, 180, 252, 0.3);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.product-buttons .btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.5);
}

/* ============ ABOUT SECTION ============ */
.about {
    background: #f9fafb;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.feature-card {
    padding: var(--spacing-lg);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    transform: scaleX(0);
    transition: var(--transition-base);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.12);
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    display: block;
}

.feature-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ============ CONTACT ============ */
.contact {
    background: white;
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.contact-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.3);
}

.contact-item svg {
    width: 20px;
    height: 20px;
    color: #6366f1;
}

.contact-item span {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
}

/* ============ FOOTER ============ */
.footer {
    background: #0a0a0f;
    color: white;
    padding: var(--spacing-xl) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
}

.footer-logo .logo-text {
    color: white;
}

.footer-logo .logo-accent {
    background: linear-gradient(135deg, #a5b4fc, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.6) !important;
}

.footer a:hover {
    color: #a5b4fc !important;
}

/* ============ CART MODAL ============ */
/* ============ CART MODAL ============ */
.cart-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    pointer-events: none;
}

.cart-modal.active {
    display: block;
    pointer-events: all;
}

.cart-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cart-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 460px;
    background: linear-gradient(180deg, #13131f 0%, #0e0e1a 100%);
    border-left: 1px solid rgba(99, 102, 241, 0.15);
    display: flex;
    flex-direction: column;
    animation: cartSlideIn 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
}

@keyframes cartSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0.5;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.75rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.08) 100%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
}

.cart-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.cart-header h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.3px;
}

.cart-header-sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.close-cart {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.6);
}

.close-cart:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
    transform: rotate(90deg);
}

.close-cart svg {
    width: 18px;
    height: 18px;
}

/* Scrollable items area */
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}

.cart-items::-webkit-scrollbar {
    width: 4px;
}

.cart-items::-webkit-scrollbar-track {
    background: transparent;
}

.cart-items::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 4px;
}

/* Cart item card */
.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.125rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    margin-bottom: 0.75rem;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    animation: cartItemIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cartItemIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item:hover {
    background: rgba(99, 102, 241, 0.07);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateX(-2px);
}

.cart-item-image {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-category {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #818cf8;
    margin-bottom: 0.2rem;
}

.cart-item-title {
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    color: #a5b4fc;
    font-weight: 800;
    font-size: 1rem;
}

.remove-item {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 8px;
    color: rgba(239, 68, 68, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.remove-item:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
    transform: scale(1.1);
}

.remove-item svg {
    width: 15px;
    height: 15px;
}

/* Empty cart state */
.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    height: 100%;
}

.empty-cart-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
    filter: grayscale(1);
}

.empty-cart p {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.empty-cart small {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

/* Cart footer */
.cart-footer {
    border-top: 1px solid rgba(99, 102, 241, 0.12);
    padding: 1.5rem 1.75rem;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    background: rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cart-total-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.total-price {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.cart-savings {
    font-size: 0.75rem;
    color: #34d399;
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.checkout-button {
    width: 100%;
    padding: 1rem 1.5rem;
    min-height: 56px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    letter-spacing: 0.2px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.checkout-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.55);
}

.checkout-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.checkout-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.continue-shopping {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.875rem;
    min-height: 50px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.continue-shopping:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.3);
}

.continue-shopping:active {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(0.98);
}

/* ============ CART MODAL — MOBILE ============ */
@media (max-width: 768px) {

    /* On mobile: slide up from bottom, full width */
    .cart-content {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        border-left: none;
        border-top: 1px solid rgba(99, 102, 241, 0.2);
        border-radius: 24px 24px 0 0;
        animation: cartSlideUp 0.38s cubic-bezier(0.22, 1, 0.36, 1);
        box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6);
    }

    @keyframes cartSlideUp {
        from {
            transform: translateY(100%);
            opacity: 0.5;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    /* Drag handle indicator */
    .cart-header::before {
        content: '';
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 2px;
    }

    .cart-header {
        position: relative;
        padding-top: 1.75rem;
    }

    .cart-items {
        padding: 1rem 1.25rem;
        max-height: calc(90vh - 220px);
    }

    .cart-footer {
        padding: 1.25rem 1.25rem;
        padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 16px));
    }

    .checkout-button {
        min-height: 60px;
        font-size: 1.0625rem;
        border-radius: 16px;
        box-shadow: 0 4px 24px rgba(99, 102, 241, 0.45);
    }

    .continue-shopping {
        min-height: 52px;
        font-size: 0.9375rem;
        margin-top: 0.625rem;
        border-radius: 14px;
        color: rgba(255, 255, 255, 0.7);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .total-price {
        font-size: 1.5rem;
    }
}

/* ============ SUCCESS TOAST ============ */
.success-modal {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    left: auto;
    top: auto;
    inset: auto;
    z-index: 3000;
    display: none;
    pointer-events: none;
}

.success-modal.active {
    display: block;
    pointer-events: all;
    animation: toastIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.success-content {
    background: #1a1a2e;
    border: 1px solid rgba(52, 211, 153, 0.3);
    padding: 1.25rem 1.5rem;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    max-width: 380px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(52, 211, 153, 0.1);
}

/* Mobile: center the toast at bottom */
@media (max-width: 480px) {
    .success-modal {
        right: 1rem;
        left: 1rem;
        bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    }

    .success-content {
        min-width: unset;
        max-width: 100%;
        width: 100%;
    }
}

.success-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #059669, #34d399);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(52, 211, 153, 0.3);
    animation: checkPop 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

@keyframes checkPop {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.success-text {
    flex: 1;
}

.success-content h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.15rem;
}

.success-content p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
    line-height: 1.4;
}

.close-success {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
}

.close-success:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

@media (max-width: 480px) {
    .success-modal {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .success-content {
        min-width: unset;
    }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 130px 0 70px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-description {
        font-size: 0.9375rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 220px;
    }

    .product-buttons {
        flex-direction: column;
    }

    .product-buttons .btn {
        width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }

    .cart-content {
        max-width: 100%;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 48px;
    }

    .product-card:hover {
        transform: none;
    }

    .product-card:active {
        transform: scale(0.98);
    }
}

/* ============ PARTICLE CANVAS ============ */
#heroParticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

/* ============ NAV RIGHT GROUP ============ */
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ============ HAMBURGER BUTTON ============ */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, border-color 0.3s;
    position: relative;
    z-index: 1001;
}

.hamburger:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
}

.ham-line {
    display: block;
    width: 22px;
    height: 2px;
    background: #e2e8f0;
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
        opacity 0.3s ease,
        width 0.3s ease;
    transform-origin: center;
}

/* Hamburger → X animation */
.hamburger.open .ham-top {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open .ham-mid {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open .ham-bot {
    transform: translateY(-7px) rotate(-45deg);
}

.hamburger.open {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
}

/* ============ MOBILE MENU DRAWER ============ */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background: rgba(10, 10, 20, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid rgba(99, 102, 241, 0.2);
    z-index: 1000;
    flex-direction: column;
    padding: 100px 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 1.25rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 1.0625rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    letter-spacing: 0.2px;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    color: #ffffff;
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateX(4px);
}

/* Staggered animation for mobile links */
.mobile-menu.open .mobile-nav-links li {
    animation: slideInRight 0.4s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.mobile-menu.open .mobile-nav-links li:nth-child(1) {
    animation-delay: 0.05s;
}

.mobile-menu.open .mobile-nav-links li:nth-child(2) {
    animation-delay: 0.1s;
}

.mobile-menu.open .mobile-nav-links li:nth-child(3) {
    animation-delay: 0.15s;
}

.mobile-menu.open .mobile-nav-links li:nth-child(4) {
    animation-delay: 0.2s;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-menu-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    text-align: center;
}

/* ============ MOBILE BACKDROP ============ */
.mobile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-backdrop.open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

/* ============ SMOOTH SCROLL ============ */
html {
    scroll-behavior: smooth;
}

/* ============ FULL RESPONSIVE BREAKPOINTS ============ */

/* Tablet: 1024px */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 768px — show hamburger, hide desktop nav */
@media (max-width: 768px) {

    /* Show hamburger */
    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .mobile-backdrop {
        display: block;
        pointer-events: none;
        /* Only active when .open class is added */
        visibility: hidden;
    }

    /* Hide desktop nav links */
    .nav-links {
        display: none !important;
    }

    /* Navbar */
    .nav-container {
        padding: 0 1rem;
    }

    /* Hero */
    .hero {
        padding: 120px 0 70px;
    }

    .hero-title {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* About story grid → stack */
    #about [style*="grid-template-columns:1fr 1fr"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
    }

    /* About stats grid → 2 cols */
    #about [style*="grid-template-columns:1fr 1fr"]:last-of-type {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Features grid → 1 col */
    .features-grid {
        grid-template-columns: 1fr !important;
    }

    /* Products grid → 1 col */
    .products-grid {
        grid-template-columns: 1fr !important;
    }

    /* Contact cards → stack */
    .contact-info {
        flex-direction: column !important;
        align-items: center !important;
    }

    .contact-item {
        width: 100% !important;
        max-width: 340px !important;
    }

    /* Section titles */
    .section-title {
        font-size: 1.75rem !important;
    }

    .section-description {
        font-size: 0.9375rem !important;
    }

    /* Footer */
    .footer-content {
        flex-direction: column !important;
        gap: 2rem !important;
        text-align: center !important;
    }

    .footer-links {
        flex-direction: column !important;
        gap: 0.75rem !important;
        align-items: center !important;
    }

    /* Featured section view-more button */
    .featured-section .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Cart modal */
    .cart-content {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 20px 20px 0 0 !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        max-height: 85vh !important;
    }

    /* Products page hero */
    .products-hero-title {
        font-size: 2rem;
    }

    .products-hero-description {
        font-size: 0.9375rem;
    }

    .products-stats {
        grid-template-columns: 1fr !important;
    }
}

/* Small mobile: 480px */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem;
    }

    .hero-badge {
        font-size: 0.75rem;
    }

    .container {
        padding: 0 1rem;
    }

    .btn-large {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.9375rem !important;
    }

    /* About stats → 1 col on very small */
    #about [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr 1fr !important;
    }

    .section-title {
        font-size: 1.5rem !important;
    }

    /* Product card */
    .product-image {
        height: 180px !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 48px;
    }

    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .product-card:hover {
        transform: none;
    }

    .product-card:active {
        transform: scale(0.98);
    }

    .feature-card:hover {
        transform: none;
    }
}

/* ============ SCROLL-REVEAL ANIMATIONS ============ */

/* Base hidden state for reveal elements */
[data-reveal] {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

[data-reveal="up"] {
    transform: translateY(40px);
}

[data-reveal="left"] {
    transform: translateX(-40px);
}

[data-reveal="right"] {
    transform: translateX(40px);
}

[data-reveal="scale"] {
    transform: scale(0.92);
}

[data-reveal="fade"] {
    transform: none;
}

/* Revealed state */
[data-reveal].revealed {
    opacity: 1;
    transform: none !important;
}

/* Stagger delays for child groups */
[data-reveal-group]>*:nth-child(1) {
    transition-delay: 0s;
}

[data-reveal-group]>*:nth-child(2) {
    transition-delay: 0.1s;
}

[data-reveal-group]>*:nth-child(3) {
    transition-delay: 0.2s;
}

[data-reveal-group]>*:nth-child(4) {
    transition-delay: 0.3s;
}

[data-reveal-group]>*:nth-child(5) {
    transition-delay: 0.4s;
}

[data-reveal-group]>*:nth-child(6) {
    transition-delay: 0.5s;
}

/* ============ NAVBAR SCROLL SHRINK ============ */
.navbar {
    transition: padding 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.navbar.scrolled {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    background: rgba(10, 10, 20, 0.98) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* ============ HERO BADGE FLOAT ============ */
.hero-badge {
    animation: floatBadge 3s ease-in-out infinite;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* ============ GRADIENT TEXT SHIMMER ============ */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.hero-title {
    background-size: 200% auto;
    animation: shimmer 5s linear infinite;
}

/* ============ BUTTON PULSE GLOW ============ */
.btn-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(99, 102, 241, 0.3), 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.6), 0 4px 20px rgba(0, 0, 0, 0.4);
    }
}

/* ============ PRODUCT / FEATURE CARD LIFT ============ */
.product-card {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease !important;
}

.product-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.15), 0 8px 20px rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(99, 102, 241, 0.35) !important;
}

.feature-card {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease !important;
}

.feature-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.12) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
}

/* ============ SECTION HEADER UNDERLINE ANIMATE ============ */
.section-label {
    position: relative;
    display: inline-block;
}

.section-label::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #14b8a6);
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 2px;
}

.section-label.revealed::after {
    width: 100%;
}

/* ============ STAT CARD COUNT-UP GLOW ============ */
@keyframes statPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    60% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.stat-card.revealed {
    animation: statPop 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ============ FOOTER LINK HOVER ============ */
.footer a {
    transition: color 0.2s ease, letter-spacing 0.2s ease;
}

.footer a:hover {
    letter-spacing: 0.3px;
}

/* ============================================================
   ABOUT SECTION — MOBILE-FRIENDLY CLASSES
   ============================================================ */
.about-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-story-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.about-story-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.875rem;
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1.3;
    margin-bottom: 1.25rem;
}

.about-story-text {
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.85;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.about-story-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.about-stat-card {
    background: #111118;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.about-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.1);
}

.about-stat-num {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.about-stat-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile: stack about section */
@media (max-width: 768px) {
    .about-story-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2.5rem;
        text-align: center;
    }

    /* Wrap the text content in a flex column for centering */
    .about-story-grid>div:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-story-title {
        font-size: 1.5rem;
    }

    .about-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .about-stat-card {
        padding: 1.25rem 1rem;
    }

    .about-stat-num {
        font-size: 1.875rem;
    }

    .about-story-actions {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }

    .about-story-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}


@media (max-width: 480px) {
    .about-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-stat-card {
        padding: 1rem 0.75rem;
    }

    .about-stat-num {
        font-size: 1.5rem;
    }
}

/* ============================================================
   PREMIUM FOOTER
   ============================================================ */
.site-footer {
    background: #080810;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-top {
    padding: 4rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1.375rem;
    font-weight: 800;
    margin-bottom: 1rem;
    gap: 0;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    max-width: 280px;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
}

.footer-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: all 0.25s ease;
}

.footer-social-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
    transform: translateY(-2px);
}

/* Footer columns */
.footer-col-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    display: inline-block;
    padding: 0.15rem 0;
}

.footer-links li a:hover {
    color: #a5b4fc;
}

/* WhatsApp CTA in footer */
.footer-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.625rem 1rem;
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.2);
    border-radius: 10px;
    color: #4ade80;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.footer-whatsapp-btn:hover {
    background: rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.4);
    transform: translateY(-1px);
}

/* Footer bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.25rem 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.8125rem;
}

.footer-made {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8125rem;
}

/* Footer responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-brand-col {
        grid-column: 1 / -1;
    }

    .footer-tagline {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .footer-top {
        padding: 2.5rem 0 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand-col {
        grid-column: 1 / -1;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

@media (max-width: 400px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   MOBILE BUTTON FIXES — BUY NOW / ADD TO CART
   ============================================================ */

/* Ensure all product buttons have large enough touch targets */
.product-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.product-buttons .btn {
    flex: 1;
    min-height: 48px;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(99, 102, 241, 0.2);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

/* Touch device: bigger tap targets */
@media (hover: none) and (pointer: coarse) {
    .product-buttons .btn {
        min-height: 52px;
        font-size: 0.9375rem;
        padding: 0.875rem 1rem;
    }

    .btn-glow,
    .btn-primary,
    .btn-secondary {
        min-height: 52px;
    }

    /* Fix: pointer-events on SVG inside buttons causing missed taps */
    .product-buttons .btn svg,
    .btn svg {
        pointer-events: none;
    }

    /* Cart button bigger on mobile */
    .cart-button {
        min-width: 52px;
        min-height: 52px;
    }

    /* Checkout button */
    .checkout-button {
        min-height: 56px;
        font-size: 1rem;
    }
}

/* Stack product buttons on very small screens */
@media (max-width: 380px) {
    .product-buttons {
        flex-direction: column;
    }

    .product-buttons .btn {
        width: 100%;
    }
}

/* ============================================================
   ✦ POLISH LAYER — smoother motion + richer visuals (v2)
   Appended last so it cleanly refines the design above.
   ============================================================ */

/* ---- Global feel: selection, smooth fonts, nicer scrollbar ---- */
::selection {
    background: rgba(99, 102, 241, 0.35);
    color: #ffffff;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html {
    /* Reserve the scrollbar's space at all times so opening the cart/menu
       (which sets body overflow:hidden) no longer removes the scrollbar and
       shoves the whole page — including the fixed navbar — sideways. This kills
       the "sudden distortion / jump" on click. */
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.45) rgba(255, 255, 255, 0.04);
}

::-webkit-scrollbar {
    width: 11px;
    height: 11px;
}

::-webkit-scrollbar-track {
    background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6366f1, #8b5cf6);
    border-radius: 10px;
    border: 2px solid #0a0a0f;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #818cf8, #a78bfa);
}

/* Visible keyboard focus for accessibility + polish */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
[data-action]:focus-visible {
    outline: 2px solid #818cf8;
    outline-offset: 3px;
    border-radius: 10px;
}

/* ---- Scroll progress bar (top of page) ---- */
#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6 50%, #14b8a6);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
    z-index: 1100;
    pointer-events: none;
    will-change: transform;
}

/* ---- Particle canvas fades in gently on load ---- */
#heroParticles {
    opacity: 0;
    transition: opacity 1.2s ease;
}

html.is-loaded #heroParticles {
    opacity: 1;
}

/* ---- Living hero: drifting aurora orb + slowly panning grid ---- */
.hero::after {
    animation: heroAuroraFloat 17s ease-in-out infinite;
    will-change: transform, opacity;
}

@keyframes heroAuroraFloat {

    0%,
    100% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) translateY(36px) scale(1.14);
        opacity: 0.78;
    }
}

.hero::before {
    animation: heroGridPan 32s linear infinite;
}

@keyframes heroGridPan {
    from {
        background-position: 0 0, 0 0;
    }

    to {
        background-position: 50px 50px, 50px 50px;
    }
}

/* ---- Smoother, springier hover lifts across interactive cards ---- */
.product-card,
.feature-card,
.about-stat-card,
.contact-item,
.footer-social-btn,
.cart-button,
.btn {
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Cursor-follow spotlight on cards (set via --mx/--my in JS) ---- */
.product-card,
.feature-card,
.about-stat-card,
.contact-item {
    position: relative;
}

.about-stat-card,
.contact-item {
    overflow: hidden;
}

.product-card::after,
.feature-card::after,
.about-stat-card::after,
.contact-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%),
            rgba(129, 140, 248, 0.13), transparent 65%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.product-card.spotlight-on::after,
.feature-card.spotlight-on::after,
.about-stat-card.spotlight-on::after,
.contact-item.spotlight-on::after {
    opacity: 1;
}

/* ---- Glossy sheen sweep on primary CTAs ---- */
.btn-glow::after,
.product-buttons .btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -160%;
    width: 70%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.35),
            transparent);
    transform: skewX(-20deg);
    transition: left 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 1;
}

.btn-glow:hover::after,
.product-buttons .btn-primary:hover::after {
    left: 160%;
}

/* Keep button label/icon above the sheen */
.btn-glow>*,
.product-buttons .btn-primary>* {
    position: relative;
    z-index: 2;
}

/* ---- Nav links: smoother color + lift ---- */
.nav-link {
    transition: color 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover {
    transform: translateY(-1px);
}

/* ============================================================
   ♿ MOTION SAFETY — honor users who prefer reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    #heroParticles {
        display: none !important;
    }
}