/* Global Styles */
:root {
    /* Main color palette - Enhanced with more vibrant colors */
    --primary-color: #4338ca;
    --primary-color-rgb: 67, 56, 202; /* RGB values for primary color */
    --primary-dark: #312e81;
    --primary-light: #a5b4fc;
    --secondary-color: #e11d48;
    --secondary-color-rgb: 225, 29, 72; /* RGB values for secondary color */
    --secondary-light: #fda4af;
    --accent-color: #7c3aed;
    --accent-color-rgb: 124, 58, 237; /* RGB values for accent color */
    --accent-light: #c4b5fd;
    --success-color: #059669;
    --success-color-rgb: 5, 150, 105;
    --warning-color: #d97706;
    --warning-color-rgb: 217, 119, 6;
    --info-color: #0284c7;
    --info-color-rgb: 2, 132, 199;
    --dark-color: #0f172a;
    --dark-secondary: #1e293b;
    --light-color: #f8fafc;
    --light-secondary: #f1f5f9;

    /* Additional functional colors */
    --success-light: #a7f3d0;
    --warning-light: #fde68a;
    --danger-light: #fecaca;

    /* Theme colors (light mode default) */
    --bg-color: #ffffff;
    --bg-secondary: #f3f4f6;
    --text-color: var(--dark-color);
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --card-bg: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.9);

    /* Modern design variables */
    --card-border-radius: 16px;
    --button-border-radius: 12px;
    --box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    --box-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 20px 40px -5px rgba(0, 0, 0, 0.15);
    --box-shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--warning-color));
    --gradient-dark: linear-gradient(135deg, var(--dark-color), var(--dark-secondary));

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-bounce: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    --theme-transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;

    /* Layout */
    --container-width: 1280px;
    --container-padding: 2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Account for fixed header */
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 100% 0%, rgba(79, 70, 229, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 0% 80%, rgba(244, 63, 94, 0.03) 0%, transparent 25%);
    background-attachment: fixed;
}

::selection {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

a {
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
    position: relative;
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    padding: 14px 32px;
    border-radius: var(--button-border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-bounce);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.5px;
    box-shadow: var(--box-shadow-colored);
    font-size: 1rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-secondary);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn:hover {
    box-shadow: 0 15px 25px -5px rgba(79, 70, 229, 0.3);
    transform: translateY(-3px) scale(1.02);
}

.btn:active {
    transform: translateY(-1px) scale(0.99);
    box-shadow: 0 8px 15px -3px rgba(79, 70, 229, 0.3);
}

.btn:hover::before {
    width: 100%;
}

.btn-secondary {
    background: var(--gradient-secondary);
}

.btn-secondary::before {
    background: var(--gradient-primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.btn-outline:hover {
    color: white;
    border-color: transparent;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.75rem;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.section-title h2::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.1;
    transform: translateY(5px) scale(1.05);
    filter: blur(8px);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--gradient-primary);
    border-radius: 5px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 1.5rem auto 0;
    line-height: 1.7;
}

/* Header & Navigation */
header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    position: relative;
    z-index: 2;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: var(--transition);
    letter-spacing: -0.5px;
    position: relative;
}

.logo h1::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 50%;
    bottom: 5px;
    right: -10px;
}

.logo span {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 2.5rem;
}

.nav-menu a {
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    transition: var(--transition-bounce);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width 0.3s cubic-bezier(0.58, 0.3, 0.005, 1);
    border-radius: 3px;
}

.nav-menu > li > a:hover {
    transform: translateY(-2px);
}

.nav-menu > li > a:hover::after,
.nav-menu > li > a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--primary-color);
}

/* Dropdown Menu Styles */
.dropdown-icon {
    font-size: 0.75rem;
    margin-left: 3px;
    transition: transform 0.3s ease;
}

.has-dropdown {
    position: relative;
}

.has-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    border-radius: var(--card-border-radius);
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 100;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    padding: 0.7rem 1.5rem;
    display: block;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.dropdown-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, var(--primary-light), transparent);
    opacity: 0.1;
    transition: width 0.3s ease;
    z-index: -1;
}

.dropdown-menu a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
    background: rgba(var(--primary-color-rgb), 0.03);
}

.dropdown-menu a:hover::before {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search {
    position: relative;
    margin-right: 1rem;
}

.search input {
    padding: 0.8rem 2.8rem 0.8rem 1.4rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.95rem;
    width: 220px;
    transition: var(--transition-bounce);
    background-color: var(--light-secondary);
}

.search input:focus {
    outline: none;
    border-color: var(--primary-light);
    width: 260px;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background-color: white;
}

.search button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.search button:hover {
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

/* Header buttons styling */
.header-btn {
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.header-btn a,
.header-btn i {
    color: var(--dark-color);
    font-size: 1.3rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.header-btn:hover a,
.header-btn:hover i {
    color: var(--primary-color);
}

/* Cart button specific styling */
.cart-btn a {
    position: relative;
}

.cart-btn span {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--gradient-secondary);
    color: white;
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(244, 63, 94, 0.3);
}

/* Menu toggle button */
.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle i {
    font-size: 1.4rem;
}

/* Enhanced Hero Section */
.hero {
    background: var(--gradient-dark);
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 14rem 1rem 12rem;
    position: relative;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="white" fill-opacity="0.05" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.6;
    animation: wave 15s linear infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(var(--primary-color-rgb), 0.4) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(var(--secondary-color-rgb), 0.4) 0%, transparent 50%);
    opacity: 0.8;
}

.hero-shape-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
}

.hero-shape-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.hero-shape-divider .shape-fill {
    fill: #FFFFFF;
}

@keyframes wave {
    0% {
        background-position: 0 bottom;
    }
    100% {
        background-position: 1440px bottom;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-content .animated-heading {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease;
    background: linear-gradient(to right, white, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    line-height: 1.1;
    letter-spacing: -1px;
    position: relative;
}

.hero-content .animated-heading::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: linear-gradient(to right, white, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.1;
    transform: translateY(5px) scale(1.05);
    filter: blur(10px);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    animation: fadeIn 1.5s ease;
}

.hero-buttons .btn {
    padding: 16px 32px;
    font-size: 1.15rem;
    position: relative;
    overflow: visible;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 15px 30px rgba(var(--primary-color-rgb), 0.3);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    z-index: -1;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    animation: fadeInUp 1.5s ease;
    animation-delay: 0.5s;
    animation-fill-mode: both;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-stat span {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(to right, white, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-stat p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.5);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Categories Section */
.categories {
    padding: 5rem 1rem;
    background-color: white;
}

.category-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background-color: white;
    border-radius: var(--card-border-radius);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.03);
    isolation: isolate;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(244, 63, 94, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.category-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: var(--box-shadow-lg);
}

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

.category-card:hover::after {
    height: 100%;
    opacity: 0.1;
}

.category-icon {
    width: 90px;
    height: 90px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 2rem;
    font-size: 2.2rem;
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.3);
    transition: var(--transition-bounce);
    position: relative;
    transform: rotate(-5deg);
}

.category-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--gradient-primary);
    border-radius: inherit;
    opacity: 0.3;
    filter: blur(6px);
    transition: opacity 0.4s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.4);
}

.category-card:hover .category-icon::before {
    opacity: 0.6;
}

.category-card:nth-child(2) .category-icon {
    background: var(--gradient-secondary);
    box-shadow: 0 15px 30px rgba(244, 63, 94, 0.3);
}

.category-card:nth-child(2) .category-icon::before {
    background: var(--gradient-secondary);
}

.category-card:nth-child(2):hover .category-icon {
    box-shadow: 0 20px 40px rgba(244, 63, 94, 0.4);
}

.category-card:nth-child(3) .category-icon {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.3);
}

.category-card:nth-child(3) .category-icon::before {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
}

.category-card:nth-child(3):hover .category-icon {
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.4);
}

.category-card:nth-child(4) .category-icon {
    background: linear-gradient(135deg, var(--success-color), var(--success-light));
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.3);
}

.category-card:nth-child(4) .category-icon::before {
    background: linear-gradient(135deg, var(--success-color), var(--success-light));
}

.category-card:nth-child(4):hover .category-icon {
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.4);
}

.category-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    transition: var(--transition);
    position: relative;
    display: inline-block;
}

.category-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.category-card:hover h3 {
    color: var(--primary-color);
}

.category-card:hover h3::after {
    width: 100%;
}

.category-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.category-link {
    color: white;
    font-weight: 600;
    position: relative;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition-bounce);
    display: inline-flex;
    align-items: center;
    background: var(--gradient-primary);
    box-shadow: 0 8px 15px rgba(79, 70, 229, 0.3);
    overflow: hidden;
    z-index: 1;
}

.category-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-secondary);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.category-link::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.category-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(79, 70, 229, 0.4);
}

.category-link:hover::before {
    width: 100%;
}

.category-link:hover::after {
    transform: translateX(5px);
}

/* Products Section */
.products {
    padding: 5rem 1rem;
    background-color: #f3f4f6;
}

.filter-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    gap: 0.8rem;
    position: relative;
}

.filter-options::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
    opacity: 0.3;
}

.filter-btn {
    background: white;
    border: 2px solid var(--border-light);
    padding: 0.9rem 1.8rem;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-light);
    transition: var(--transition-bounce);
    border-radius: 50px;
    box-shadow: var(--box-shadow-sm);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-size: 0.95rem;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.filter-btn.active,
.filter-btn:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
}

.filter-btn.active::before,
.filter-btn:hover::before {
    width: 100%;
}

.filter-btn.active {
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
    transform: translateY(-5px);
}

.filter-btn:not(.active):hover {
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.2);
}

.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background-color: white;
    border-radius: var(--card-border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow-sm);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
    isolation: isolate;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.product-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: var(--box-shadow-lg);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.05) 0%, rgba(var(--secondary-color-rgb), 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    pointer-events: none;
}

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

.product-image {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.1) rotate(1deg);
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(var(--primary-color-rgb), 0.2), rgba(var(--secondary-color-rgb), 0.2));
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.product-card:hover .product-image::after {
    opacity: 1;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent 70%);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 1.8rem;
    opacity: 0;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: all 0.5s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.view-details {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--dark-color);
    padding: 0.9rem 1.8rem;
    border-radius: var(--button-border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.view-details i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.product-card:hover .view-details {
    transform: translateY(0);
    opacity: 1;
}

.view-details:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-5px);
    border-color: transparent;
}

.view-details:hover i {
    transform: translateX(5px);
}

.product-info {
    padding: 2.2rem;
    position: relative;
    background-color: white;
    transition: all 0.4s ease;
    z-index: 1;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.product-card:hover .product-info {
    transform: translateY(-5px);
}

.product-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: -1;
}

.product-info h3 {
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
    transition: var(--transition);
    line-height: 1.4;
    position: relative;
    display: inline-block;
}

.product-info h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.4s ease;
}

.product-card:hover .product-info h3 {
    color: var(--primary-color);
}

.product-card:hover .product-info h3::after {
    width: 100%;
}

.product-category {
    display: inline-block;
    color: var(--text-light);
    font-size: 0.75rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    background-color: var(--light-secondary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-card:hover .product-category {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.15);
}

.product-price {
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.6rem;
    margin-bottom: 1.8rem;
    display: inline-block;
    position: relative;
}

.product-price::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, rgba(var(--primary-color-rgb), 0.2), rgba(var(--accent-color-rgb), 0.2));
    z-index: -1;
    border-radius: 3px;
    transform: scaleX(0.7);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.product-card:hover .product-price::before {
    transform: scaleX(1);
}

.add-to-cart {
    width: 100%;
    padding: 1.1rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--button-border-radius);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(var(--primary-color-rgb), 0.3);
    font-size: 1rem;
}

.add-to-cart i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.add-to-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-secondary);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.add-to-cart:hover::before {
    width: 100%;
}

.add-to-cart:hover {
    box-shadow: 0 15px 25px rgba(var(--secondary-color-rgb), 0.4);
    transform: translateY(-5px);
}

.add-to-cart:hover i {
    transform: translateX(5px);
}

.add-to-cart::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .add-to-cart::after {
    opacity: 1;
}

.load-more {
    text-align: center;
    margin-top: 3rem;
}

/* CTA Section */
.cta {
    background: var(--gradient-dark);
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 9rem 1rem;
    position: relative;
    overflow: hidden;
    margin: 6rem 0;
    border-radius: 0;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="white" fill-opacity="0.05" d="M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,202.7C672,203,768,181,864,186.7C960,192,1056,224,1152,218.7C1248,213,1344,171,1392,149.3L1440,128L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>');
    background-size: cover;
    background-position: top;
    opacity: 0.4;
}

.cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(244, 63, 94, 0.4) 0%, transparent 50%);
    opacity: 0.8;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 4rem;
    border-radius: var(--card-border-radius);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.8rem;
    font-weight: 800;
    background: linear-gradient(to right, white, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
    letter-spacing: -1px;
    position: relative;
}

.cta-content h2::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: linear-gradient(to right, white, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.1;
    transform: translateY(5px) scale(1.05);
    filter: blur(10px);
}

.cta-content p {
    max-width: 650px;
    margin: 0 auto 3rem;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    font-weight: 300;
}

.cta-content .btn {
    padding: 16px 38px;
    font-size: 1.15rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background: white;
    color: var(--primary-color);
    border-radius: 50px;
    position: relative;
    overflow: visible;
}

.cta-content .btn::before {
    background: var(--gradient-primary);
}

.cta-content .btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    z-index: -1;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.cta-content .btn:hover {
    color: white;
    transform: translateY(-5px);
}

/* About Section */
.about {
    padding: 5rem 1rem;
    background-color: white;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.about-text p {
    margin-bottom: 1rem;
    color: #4b5563;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 100px;
}

.stat-item h4 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 1rem;
    background-color: #f3f4f6;
}

.testimonial-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.testimonial-text {
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-text::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

.author-info h4 {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.author-info p {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 5rem 1rem;
    background-color: white;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    width: 30px;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: #f3f4f6;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--dark-color);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    gap: 4rem;
}

.footer-logo {
    flex: 2;
    min-width: 300px;
}

.footer-logo h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, white, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.footer-logo span {
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 300px;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-links {
    flex: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.footer-column {
    flex: 1;
    min-width: 150px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1.8rem;
    position: relative;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.footer-column ul li {
    margin-bottom: 1rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    position: relative;
    padding-left: 0;
    display: inline-block;
}

.footer-column ul li a::before {
    content: '›';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: white;
    padding-left: 15px;
}

.footer-column ul li a:hover::before {
    opacity: 1;
    left: 0;
}

.footer-newsletter {
    flex: 2;
    min-width: 300px;
}

.footer-newsletter h3 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.8rem;
    line-height: 1.7;
}

.footer-newsletter form {
    display: flex;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: var(--button-border-radius);
    overflow: hidden;
}

.footer-newsletter input {
    flex: 1;
    padding: 1rem 1.2rem;
    border: none;
    font-family: inherit;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: var(--button-border-radius) 0 0 var(--button-border-radius);
}

.footer-newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
}

.footer-newsletter button {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0 1.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.footer-newsletter button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.footer-newsletter button:hover::before {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    width: 100%;
}

/* Advanced Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Reveal animations for scroll effects */
.product-card, .category-card, .testimonial-card, .about-content, .contact-container {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card.revealed, .category-card.revealed, .testimonial-card.revealed, .about-content.revealed, .contact-container.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for cards */
.product-card:nth-child(1), .category-card:nth-child(1), .testimonial-card:nth-child(1) {
    transition-delay: 0.1s;
}
.product-card:nth-child(2), .category-card:nth-child(2), .testimonial-card:nth-child(2) {
    transition-delay: 0.2s;
}
.product-card:nth-child(3), .category-card:nth-child(3), .testimonial-card:nth-child(3) {
    transition-delay: 0.3s;
}
.product-card:nth-child(4), .category-card:nth-child(4) {
    transition-delay: 0.4s;
}
.product-card:nth-child(5) {
    transition-delay: 0.5s;
}
.product-card:nth-child(6) {
    transition-delay: 0.6s;
}

/* Parallax background effect */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: -1;
    background: inherit;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    transform: translateY(0);
    will-change: transform;
}

/* Glass morphism effect */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
/* Base styles for all devices */
:root {
    --vh: 1vh; /* Custom viewport height variable for mobile browsers */
    --container-width: 1400px; /* Standard container width */
    --container-padding: 5%; /* Container padding on smaller screens */
}

html {
    -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape on iOS */
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    touch-action: manipulation; /* Prevents double-tap to zoom on touch devices */
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Container class for consistent layout */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Fix layout issues */
.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.category-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Mobile-specific styles */
.mobile-device .btn:active,
.mobile-device .filter-btn:active,
.mobile-device .add-to-cart:active,
.mobile-device .view-details:active,
.mobile-device .nav-menu a:active,
.touch-active {
    transform: scale(0.97) !important;
    transition: transform 0.1s ease !important;
}

/* iOS-specific fixes */
.ios-device input,
.ios-device textarea,
.ios-device select {
    font-size: 16px; /* Prevents zoom on input focus */
}

/* Fix for 100vh in mobile browsers */
.nav-menu.active {
    height: 100vh;
}

/* Ensure all interactive elements have proper touch targets */
button,
a,
input[type="button"],
input[type="submit"],
.filter-btn,
.add-to-cart,
.view-details,
.nav-menu a {
    min-height: 44px; /* Minimum touch target size for accessibility */
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Large Desktop (1400px and up) */
@media (min-width: 1400px) {
    :root {
        --container-padding: 0; /* No padding needed at large sizes */
    }

    .container,
    .navbar,
    .footer-content,
    .about-content,
    .testimonial-container,
    .contact-container,
    .product-container,
    .category-container {
        max-width: var(--container-width);
        margin: 0 auto;
        padding: 0;
    }

    .hero-content h1 {
        font-size: 4.8rem;
    }

    .hero-content p {
        font-size: 1.5rem;
        max-width: 700px;
    }

    .section-title h2 {
        font-size: 3rem;
    }
}

/* Desktop (992px to 1399px) */
@media (max-width: 1399px) {
    .navbar {
        padding: 1rem 3%;
    }

    .hero-content h1 {
        font-size: 4rem;
    }
}

/* Tablet Landscape and Small Desktop (992px to 1199px) */
@media (max-width: 1199px) {
    .navbar {
        padding: 1rem 2%;
    }

    .search input {
        width: 150px;
    }

    .search input:focus {
        width: 170px;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .product-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .cta-content {
        padding: 3rem;
    }
}

/* Tablet Portrait (768px to 991px) */
@media (max-width: 991px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        padding: 6rem 0;
        z-index: 1000;
        justify-content: flex-start;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1.2rem 0;
        position: relative;
    }

    .nav-menu > li > a {
        font-size: 1.2rem;
        justify-content: center;
    }

    /* Mobile dropdown styles */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        border: none;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height 0.4s ease, padding 0.4s ease;
        width: 100%;
        margin: 0 auto;
        border-radius: 0;
    }

    .dropdown-menu.active {
        max-height: 500px;
        padding: 0.5rem 0;
        margin-top: 0.5rem;
        background-color: rgba(var(--primary-color-rgb), 0.05);
        border-radius: var(--card-border-radius);
    }

    .dropdown-menu a {
        padding: 0.6rem 1rem;
        font-size: 1rem;
    }

    .dropdown-menu a:hover {
        transform: none;
    }

    .has-dropdown {
        position: relative;
    }

    .has-dropdown > a > .dropdown-icon {
        transition: transform 0.3s ease;
    }

    .has-dropdown.active > a > .dropdown-icon {
        transform: rotate(180deg);
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .menu-toggle i {
        transition: transform 0.3s ease;
    }

    .menu-toggle.active i {
        transform: rotate(90deg);
    }

    .hero-content h1 {
        font-size: 3.2rem;
    }

    .hero {
        padding: 8rem 1rem;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }

    .product-container {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .cta-content h2 {
        font-size: 2.8rem;
    }
}

/* Mobile Landscape (576px to 767px) */
@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .hero {
        padding: 7rem 1rem;
    }

    .about-content {
        flex-direction: column;
    }

    .about-image {
        margin-bottom: 2rem;
    }

    .stats {
        justify-content: center;
        gap: 2rem;
    }

    .filter-options {
        /* overflow-x: auto; Remove horizontal scroll */
        padding-bottom: 1rem;
        justify-content: center; /* Center the buttons */
        flex-wrap: wrap; /* Allow buttons to wrap */
        gap: 0.8rem; /* Add gap between wrapped buttons */
    }

    .filter-btn {
        flex-shrink: 0; /* Prevent shrinking */
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .product-container {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .cta-content {
        padding: 2.5rem 1.5rem;
    }

    .cta-content h2 {
        font-size: 2.5rem;
    }

    .testimonial-container {
        flex-direction: column;
        align-items: center;
    }

    .testimonial-card {
        width: 100%;
        max-width: 450px;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-form, .contact-info {
        width: 100%;
    }
}

/* Mobile Portrait (320px to 575px) */
@media (max-width: 575px) {
    :root {
        --container-padding: 15px; /* Tighter padding on mobile */
    }

    .search {
        display: none;
    }

    .logo h1 {
        font-size: 1.6rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-content .btn {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .hero {
        padding: 6rem 1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .section-title h2::after {
        width: 60px;
    }

    .section-title p {
        font-size: 1rem;
    }

    /* Fix product grid on mobile */
    .product-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Fix category grid on mobile */
    .category-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .category-card {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }

    .category-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .category-card h3 {
        font-size: 1.3rem;
    }

    /* Fix footer layout */
    .footer-content {
        flex-direction: column;
        gap: 3rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 2.5rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1.1rem;
    }

    .cta-content {
        padding: 2rem 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.7rem;
    }

    /* Fix newsletter form on mobile */
    .footer-newsletter form {
        flex-direction: column;
    }

    .footer-newsletter input {
        border-radius: var(--button-border-radius);
        margin-bottom: 1rem;
        width: 100%;
    }

    .footer-newsletter button {
        border-radius: var(--button-border-radius);
        padding: 0.8rem;
        width: 100%;
    }

    /* Fix testimonials on mobile */
    .testimonial-container {
        display: flex;
        flex-direction: column;
    }

    .testimonial-card {
        width: 100%;
    }
}

/* Small Mobile (320px to 374px) */
@media (max-width: 374px) {
    .logo h1 {
        font-size: 1.4rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .product-card {
        min-width: 250px;
    }

    .product-info {
        padding: 1.5rem;
    }

    .product-info h3 {
        font-size: 1.1rem;
    }

    .product-price {
        font-size: 1.2rem;
    }
}

/* Smartwatches and Small Devices (below 320px) */
@media (max-width: 320px) {
    :root {
        --container-padding: 10px; /* Even tighter padding for tiny screens */
    }

    body {
        font-size: 14px;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        width: 100%; /* Full width buttons on tiny screens */
        max-width: 250px;
        margin: 0 auto;
    }

    .product-card {
        width: 100%;
        min-width: unset;
    }

    .product-info {
        padding: 1.2rem;
    }

    .footer-logo h2 {
        font-size: 1.6rem;
    }

    /* Simplify layout for tiny screens */
    .hero {
        padding: 4rem 0.5rem;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    /* Stack all grid items */
    .category-container,
    .product-container,
    .testimonial-container {
        display: block;
    }

    .category-card,
    .product-card,
    .testimonial-card {
        margin-bottom: 1.5rem;
    }

    /* Simplify navigation */
    .nav-menu.active {
        padding: 4rem 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    /* Simplify footer */
    .footer-content {
        padding: 0 0.5rem;
    }
}

/* Print styles for better printing */
@media print {
    header,
    footer,
    .cta,
    .hero,
    .contact-form,
    .social-links,
    .btn {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }

    .product-card,
    .category-card,
    .testimonial-card {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd;
    }

    a {
        text-decoration: none;
        color: #000;
    }

    .product-price {
        color: #000 !important;
        -webkit-text-fill-color: #000;
    }
}

/* Orientation changes */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .hero {
        padding: 4rem 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-menu.active {
        padding: 4rem 0;
        overflow-y: auto;
    }

    .nav-menu li {
        margin: 1rem 0;
    }
}

/* High-contrast mode for accessibility */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000FF;
        --secondary-color: #FF0000;
        --accent-color: #8000FF;
        --dark-color: #000000;
        --light-color: #FFFFFF;
        --text-color: #000000;
        --border-color: #000000;
    }

    body {
        background: white;
        color: black;
    }

    a, button, .btn {
        text-decoration: underline;
    }
}

/* Dark Mode Styles */
.dark-mode {
    /* Optimized dark mode colors for maximum compatibility and visibility */
    --bg-color: #0a0f1e; /* Deep background for strong contrast */
    --bg-secondary: #1a2234; /* Secondary background with better distinction */
    --text-color: #f8fafc; /* Slightly off-white for reduced eye strain */
    --text-light: #e2e8f0; /* Light text for secondary content */
    --text-muted: #94a3b8; /* Muted text for tertiary content */
    --border-color: #334155; /* Border color for clear separation */
    --border-light: #475569; /* Lighter border for subtle separation */
    --card-bg: #1e293b; /* Card background with better contrast from main bg */
    --header-bg: rgba(10, 15, 30, 0.98); /* More opaque header for better readability */

    /* Optimized accent colors for dark mode */
    --primary-color: #6366f1; /* Adjusted primary for better contrast */
    --primary-color-rgb: 99, 102, 241; /* Updated RGB values */
    --primary-light: #a5b4fc; /* Lighter primary that works well on dark backgrounds */
    --primary-dark: #4f46e5; /* Darker primary for hover states */
    --secondary-color: #f43f5e; /* Vibrant secondary color */
    --secondary-color-rgb: 244, 63, 94; /* Updated RGB values */
    --secondary-light: #fda4af; /* Lighter secondary for better visibility */
    --accent-color: #8b5cf6; /* Vibrant accent color */
    --accent-color-rgb: 139, 92, 246; /* Updated RGB values */
    --accent-light: #d8b4fe; /* Lighter accent for better visibility */

    /* Success, warning and info colors optimized for dark mode */
    --success-color: #10b981; /* Brighter success color for dark backgrounds */
    --success-color-rgb: 16, 185, 129;
    --success-light: #6ee7b7; /* Lighter success for better visibility */
    --warning-color: #f59e0b; /* Brighter warning color */
    --warning-color-rgb: 245, 158, 11;
    --warning-light: #fcd34d; /* Lighter warning for better visibility */
    --info-color: #0ea5e9; /* Brighter info color */
    --info-color-rgb: 14, 165, 233;
    --info-light: #7dd3fc; /* Lighter info for better visibility */

    /* Enhanced gradients for dark mode */
    --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6);
    --gradient-secondary: linear-gradient(135deg, #f43f5e, #fb7185);
    --gradient-dark: linear-gradient(135deg, #0a0f1e, #1a2234);
    --gradient-success: linear-gradient(135deg, #059669, #10b981);

    /* Improved shadows for dark mode */
    --box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.7);
    --box-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --box-shadow-lg: 0 20px 40px -5px rgba(0, 0, 0, 0.8);
    --glass-bg: rgba(30, 41, 59, 0.95);
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);

    /* Glow effects for interactive elements */
    --glow-primary: 0 0 15px rgba(99, 102, 241, 0.5);
    --glow-secondary: 0 0 15px rgba(244, 63, 94, 0.5);
    --glow-accent: 0 0 15px rgba(139, 92, 246, 0.5);
    --glow-success: 0 0 15px rgba(16, 185, 129, 0.5);
}

/* Enhanced image and media styles for dark mode */
.dark-mode img:not([src*=".svg"]) {
    filter: brightness(0.9) contrast(1.1);
}

.dark-mode img[src*=".svg"] {
    filter: brightness(1.2);
}

.dark-mode video,
.dark-mode iframe {
    filter: brightness(0.85) contrast(1.1);
    border-color: var(--border-color);
}

.dark-mode .logo img,
.dark-mode .profile-img img,
.dark-mode .whatsapp-header img {
    filter: none; /* Don't apply filters to these specific images */
}

/* Apply transitions to elements for smooth theme switching */
body, header, footer, .card, .btn, input, textarea, .product-card,
.category-card, .testimonial-card, .about-feature, .contact-form,
.contact-info, .footer-content, .whatsapp-popup, .dropdown-menu,
.hero, .cta, .section-title h2, .section-title p, .nav-menu a,
.logo h1, .logo span, .search input, .search button, .header-btn a,
.header-btn i, .product-info h3, .product-category, .product-price,
.add-to-cart, .view-details, .testimonial-content, .testimonial-author,
.about-content h2, .about-content p, .about-feature h3, .about-feature p,
.footer-links a, .footer-social a, .footer-newsletter input, .footer-newsletter button,
.whatsapp-message, .theme-toggle, img, video, iframe {
    transition: var(--theme-transition);
}

/* Dark mode body styles */
.dark-mode {
    color-scheme: dark;
}

.dark-mode body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Selection color in dark mode */
.dark-mode ::selection {
    background-color: rgba(var(--primary-color-rgb), 0.7);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Focus styles for dark mode */
.dark-mode *:focus {
    outline-color: var(--primary-color);
}

.dark-mode a:focus,
.dark-mode button:focus,
.dark-mode [tabindex]:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Enhanced scrollbar in dark mode */
.dark-mode::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}

.dark-mode::-webkit-scrollbar-track {
    background-color: var(--bg-secondary);
    border-radius: 10px;
}

.dark-mode::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border: 3px solid var(--bg-secondary);
    border-radius: 10px;
    background-image: linear-gradient(
        45deg,
        rgba(var(--primary-color-rgb), 0.1) 25%,
        transparent 25%,
        transparent 50%,
        rgba(var(--primary-color-rgb), 0.1) 50%,
        rgba(var(--primary-color-rgb), 0.1) 75%,
        transparent 75%
    );
}

.dark-mode::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-dark);
    border-color: var(--bg-secondary);
}

.dark-mode::-webkit-scrollbar-corner {
    background-color: var(--bg-secondary);
}

.dark-mode header {
    background-color: var(--header-bg);
    border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dark-mode header.scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    background-color: rgba(10, 15, 30, 0.98);
}

.dark-mode .logo h1 {
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.dark-mode .logo span {
    color: var(--primary-light);
    text-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.5);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
}

.dark-mode .nav-menu a {
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.dark-mode .nav-menu > li > a::after {
    background: var(--gradient-primary);
    height: 2px;
    box-shadow: var(--glow-primary);
}

.dark-mode .nav-menu a:hover,
.dark-mode .nav-menu a.active {
    color: var(--primary-light);
}

.dark-mode .nav-menu a:hover {
    transform: translateY(-3px);
}

.dark-mode .header-btn a,
.dark-mode .header-btn i {
    color: var(--text-color);
}

.dark-mode .header-btn:hover a,
.dark-mode .header-btn:hover i {
    color: var(--primary-light);
}

.dark-mode .search input {
    background-color: rgba(var(--bg-secondary), 0.8);
    border-color: var(--border-color);
    color: var(--text-color);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.dark-mode .search input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: rgba(var(--primary-color-rgb), 0.05);
    outline: none;
}

.dark-mode .search input::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

.dark-mode .search button {
    color: var(--primary-light);
    transition: all 0.3s ease;
}

.dark-mode .search button:hover {
    color: var(--primary-light);
    transform: translateX(3px);
}

.dark-mode .cart-btn span {
    background: var(--gradient-secondary);
    color: white;
}

/* Mobile menu in dark mode */
.dark-mode .menu-toggle i {
    color: var(--text-color);
}

.dark-mode .nav-menu.active {
    background-color: rgba(15, 23, 42, 0.98);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

@media (max-width: 991px) {
    .dark-mode .dropdown-menu.active {
        background-color: rgba(var(--primary-color-rgb), 0.1);
    }
}

.dark-mode .product-card,
.dark-mode .category-card,
.dark-mode .testimonial-card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.dark-mode .product-card::after,
.dark-mode .category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
        rgba(91, 94, 244, 0.03) 0%,
        rgba(139, 92, 246, 0.03) 50%,
        rgba(244, 63, 94, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.dark-mode .product-card:hover,
.dark-mode .category-card:hover {
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.7), var(--glow-primary);
    border-color: rgba(var(--primary-color-rgb), 0.3);
    transform: translateY(-15px) scale(1.02);
}

.dark-mode .product-card:hover::after,
.dark-mode .category-card:hover::after {
    opacity: 1;
}

.dark-mode .product-info {
    background-color: var(--card-bg);
}

.dark-mode .product-info h3,
.dark-mode .category-card h3 {
    color: var(--text-color);
}

.dark-mode .product-category {
    background-color: rgba(var(--primary-color-rgb), 0.15);
    color: var(--primary-light);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.dark-mode .product-price {
    text-shadow: 0 2px 10px rgba(var(--primary-color-rgb), 0.3);
}

.dark-mode .add-to-cart {
    box-shadow: 0 8px 20px rgba(var(--primary-color-rgb), 0.4);
    border: 1px solid rgba(var(--primary-color-rgb), 0.2);
    position: relative;
    overflow: hidden;
}

.dark-mode .add-to-cart::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
    z-index: 1;
}

.dark-mode .add-to-cart:hover {
    box-shadow: 0 15px 30px rgba(var(--primary-color-rgb), 0.6), var(--glow-primary);
    transform: translateY(-5px);
}

.dark-mode .add-to-cart:hover::after {
    animation: shine 1.5s ease infinite;
    opacity: 1;
}

@keyframes shine {
    0% {
        left: -100%;
        opacity: 0;
    }
    20% {
        opacity: 0.1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

.dark-mode .view-details {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.dark-mode .view-details:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: var(--glow-primary);
    transform: translateY(-5px);
}

.dark-mode .section-title h2 {
    color: var(--text-color);
}

.dark-mode .section-title p {
    color: var(--text-light);
}

/* Dark mode for about section */
.dark-mode .about {
    background-color: var(--bg-color);
}

.dark-mode .about-image {
    border-color: var(--border-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.dark-mode .about-image::before {
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.dark-mode .about-content h2 {
    color: var(--text-color);
}

.dark-mode .about-content p {
    color: var(--text-light);
}

.dark-mode .about-feature {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
}

.dark-mode .about-feature:hover {
    border-color: rgba(var(--primary-color-rgb), 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.dark-mode .about-feature i {
    color: var(--primary-color);
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.dark-mode .about-feature h3 {
    color: var(--text-color);
}

.dark-mode .about-feature p {
    color: var(--text-light);
}

/* Dark mode for contact section */
.dark-mode .contact {
    background-color: var(--bg-color);
}

.dark-mode .contact-info {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
}

.dark-mode .contact-info-item i {
    color: var(--primary-color);
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.dark-mode .contact-form {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
}

/* Enhanced form elements for dark mode */
.dark-mode input,
.dark-mode textarea,
.dark-mode select {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.dark-mode input:focus,
.dark-mode textarea:focus,
.dark-mode select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
    background-color: rgba(var(--primary-color-rgb), 0.05);
}

.dark-mode input::placeholder,
.dark-mode textarea::placeholder {
    color: var(--text-muted);
}

.dark-mode input[type="checkbox"],
.dark-mode input[type="radio"] {
    accent-color: var(--primary-color);
}

.dark-mode input[type="date"],
.dark-mode input[type="time"],
.dark-mode input[type="datetime-local"] {
    color-scheme: dark;
}

.dark-mode .contact-form input,
.dark-mode .contact-form textarea {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-color);
}

.dark-mode .contact-form input:focus,
.dark-mode .contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
}

.dark-mode .contact-form input::placeholder,
.dark-mode .contact-form textarea::placeholder {
    color: var(--text-muted);
}

.dark-mode .contact-form button {
    background: var(--gradient-primary);
    box-shadow: 0 8px 20px rgba(var(--primary-color-rgb), 0.4);
}

.dark-mode .contact-form button:hover {
    box-shadow: 0 15px 25px rgba(var(--primary-color-rgb), 0.5);
}

/* Dark mode for footer */
.dark-mode .footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.dark-mode .footer-content h3 {
    color: var(--text-color);
}

.dark-mode .footer-content p {
    color: var(--text-light);
}

.dark-mode .footer-links a {
    color: var(--text-light);
}

.dark-mode .footer-links a:hover {
    color: var(--primary-light);
}

.dark-mode .footer-social a {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-light);
}

.dark-mode .footer-social a:hover {
    background-color: var(--primary-color);
    color: white;
}

.dark-mode .footer-newsletter input {
    background-color: var(--bg-color);
    border-color: var(--border-color);
    color: var(--text-color);
}

.dark-mode .footer-newsletter input:focus {
    border-color: var(--primary-color);
}

.dark-mode .footer-newsletter button {
    background-color: var(--primary-color);
}

.dark-mode .footer-bottom {
    border-top: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text-light);
}

/* Enhanced sticky buttons for better visibility */
.theme-toggle, .whatsapp-btn .whatsapp-icon {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.theme-toggle:hover, .whatsapp-btn .whatsapp-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.dark-mode .whatsapp-btn .whatsapp-icon {
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4), 0 0 15px rgba(37, 211, 102, 0.2);
    border: 1px solid rgba(37, 211, 102, 0.3);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.dark-mode .whatsapp-btn .whatsapp-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.dark-mode .whatsapp-btn .whatsapp-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(37, 211, 102, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dark-mode .whatsapp-btn .whatsapp-icon:hover {
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6), 0 0 20px rgba(37, 211, 102, 0.5);
    transform: translateY(-7px) scale(1.05);
}

.dark-mode .whatsapp-btn .whatsapp-icon:hover::before {
    animation: shine 1.5s ease infinite;
    opacity: 1;
}

.dark-mode .whatsapp-btn .whatsapp-icon:hover::after {
    opacity: 1;
}

.dark-mode .whatsapp-btn .whatsapp-icon i {
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.7));
    font-size: 32px;
}

.dark-mode .whatsapp-popup {
    background-color: var(--card-bg);
    border: 1px solid rgba(37, 211, 102, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(37, 211, 102, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation-name: popupGlow;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

@keyframes popupGlow {
    0% {
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(37, 211, 102, 0.5);
    }
    100% {
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(37, 211, 102, 0.3);
    }
}

.dark-mode .whatsapp-header {
    background: linear-gradient(135deg, #1a9e5c, #25D366);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.dark-mode .whatsapp-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0) 50%,
        rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
}

.dark-mode .whatsapp-header-text h3 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.dark-mode .whatsapp-header-text p {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.dark-mode .whatsapp-message {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--text-color);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(37, 211, 102, 0.15);
    border-radius: 12px;
}

.dark-mode .whatsapp-message::before {
    border-right-color: rgba(var(--primary-color-rgb), 0.1);
}

.dark-mode .whatsapp-footer a {
    background: linear-gradient(135deg, #1a9e5c, #25D366);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3), 0 0 10px rgba(37, 211, 102, 0.2);
    border: 1px solid rgba(37, 211, 102, 0.3);
    position: relative;
    overflow: hidden;
    color: white;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.dark-mode .whatsapp-footer a::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
    z-index: 1;
}

.dark-mode .whatsapp-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.dark-mode .whatsapp-footer a:hover {
    background: linear-gradient(135deg, #25D366, #1a9e5c);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5), 0 0 20px rgba(37, 211, 102, 0.4);
    transform: translateY(-3px) scale(1.02);
}

.dark-mode .whatsapp-footer a:hover::before {
    animation: shine 1.5s ease infinite;
    opacity: 1;
}

.dark-mode .whatsapp-footer a:hover::after {
    opacity: 0.6;
}

.dark-mode .whatsapp-footer a i {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.7));
    margin-right: 5px;
    font-size: 16px;
}

.dark-mode .whatsapp-close {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    top: 8px;
    right: 8px;
}

.dark-mode .whatsapp-close:hover {
    background: rgba(255, 0, 0, 0.2);
    transform: rotate(90deg) scale(1.1);
    color: white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.dark-mode .btn {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.dark-mode .btn:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.dark-mode .btn-primary {
    background: var(--gradient-primary);
    box-shadow: 0 10px 25px rgba(var(--primary-color-rgb), 0.3);
}

.dark-mode .btn-primary:hover {
    box-shadow: 0 15px 35px rgba(var(--primary-color-rgb), 0.4);
}

.dark-mode .btn-secondary {
    background: var(--gradient-secondary);
    box-shadow: 0 10px 25px rgba(var(--secondary-color-rgb), 0.3);
}

.dark-mode .btn-secondary:hover {
    box-shadow: 0 15px 35px rgba(var(--secondary-color-rgb), 0.4);
}

.dark-mode .btn-outline {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-color);
}

.dark-mode .btn-outline:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    border-color: var(--primary-color);
    color: var(--primary-light);
}

.dark-mode .theme-toggle {
    color: var(--text-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #4338ca, #7c3aed);
    border: 1px solid rgba(var(--primary-color-rgb), 0.3);
    overflow: hidden;
    position: fixed; /* Ensure it stays fixed in dark mode */
    bottom: 30px; /* Match light mode position */
    left: 30px;
}

.dark-mode .theme-toggle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.dark-mode .theme-toggle:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), var(--glow-primary);
    transform: translateY(-7px);
}

/* Adjust dark mode theme toggle position for different screen sizes */
@media (max-width: 768px) {
    .dark-mode .theme-toggle {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .dark-mode .theme-toggle {
        bottom: 15px;
        left: 15px;
        width: 40px;
        height: 40px;
    }

    .dark-mode .theme-toggle i {
        font-size: 1.2rem;
    }
}

@media (max-width: 360px) {
    .dark-mode .theme-toggle {
        width: 35px;
        height: 35px;
    }

    .dark-mode .theme-toggle i {
        font-size: 1rem;
    }
}

.dark-mode .theme-toggle:hover::before {
    animation: shine 1.5s ease infinite;
    opacity: 1;
}

.dark-mode .theme-toggle i {
    color: white;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}

.dark-mode .theme-toggle.animate {
    animation: pulse 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), glow 1s ease;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(var(--primary-color-rgb), 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.8), 0 0 30px rgba(var(--primary-color-rgb), 0.6);
    }
    100% {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    }
}

/* Enhanced table styles for dark mode */
.dark-mode table {
    border-color: var(--border-color);
    color: var(--text-color);
    background-color: var(--card-bg);
}

.dark-mode th {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-light);
    border-color: var(--border-color);
}

.dark-mode td {
    border-color: var(--border-color);
}

.dark-mode tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.03);
}

.dark-mode tr:hover {
    background-color: rgba(var(--primary-color-rgb), 0.05);
}

/* Dark mode scroll-to-top button styles removed */

.dark-mode .hero {
    background: var(--gradient-dark);
    position: relative;
}

.dark-mode .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="white" fill-opacity="0.03" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.6;
    animation: wave 20s linear infinite;
    z-index: 1;
}

.dark-mode .hero::after {
    opacity: 0.9;
    background: radial-gradient(circle at 20% 30%, rgba(var(--primary-color-rgb), 0.6) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(var(--secondary-color-rgb), 0.6) 0%, transparent 50%);
    z-index: 0;
}

.dark-mode .hero-particles {
    z-index: 2;
}

.dark-mode .hero-content {
    z-index: 3;
    position: relative;
}

.dark-mode .hero-content h1 {
    color: white;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), var(--glow-primary);
    background: linear-gradient(to right, #ffffff, var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dark-mode .hero-content p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.dark-mode .hero-buttons .btn-primary {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), var(--glow-primary);
    border: 1px solid rgba(var(--primary-color-rgb), 0.3);
}

.dark-mode .hero-buttons .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.dark-mode .hero-buttons .btn-outline:hover {
    background: rgba(var(--primary-color-rgb), 0.2);
    border-color: rgba(var(--primary-color-rgb), 0.4);
    box-shadow: var(--glow-primary);
}

.dark-mode .hero-stat {
    background: rgba(0, 0, 0, 0.1);
    padding: 1rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.dark-mode .hero-stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-primary);
    background: rgba(var(--primary-color-rgb), 0.1);
}

.dark-mode .hero-stat span {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
}

.dark-mode .hero-stat p {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.dark-mode .hero-shape-divider {
    z-index: 2;
}

.dark-mode .hero-shape-divider .shape-fill {
    fill: var(--bg-color);
}

.dark-mode .dropdown-menu {
    background-color: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), var(--glow-primary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dark-mode .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 20px;
    width: 10px;
    height: 10px;
    background-color: rgba(30, 41, 59, 0.95);
    transform: rotate(45deg);
    border-top: 1px solid rgba(var(--primary-color-rgb), 0.1);
    border-left: 1px solid rgba(var(--primary-color-rgb), 0.1);
    z-index: -1;
}

.dark-mode .dropdown-menu a {
    color: var(--text-color);
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
}

.dark-mode .dropdown-menu a:hover {
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-light);
    border-left: 2px solid var(--primary-color);
    padding-left: 2rem;
}

.dark-mode .dropdown-icon {
    color: var(--primary-light);
}

.dark-mode .search input {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

/* Dark mode for testimonials */
.dark-mode .testimonial-card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

.dark-mode .testimonial-card::before {
    color: rgba(var(--primary-color-rgb), 0.15);
}

.dark-mode .testimonial-content {
    color: var(--text-color);
}

.dark-mode .testimonial-author {
    color: var(--text-light);
}

.dark-mode .testimonial-rating i {
    color: #fbbf24;
}

.dark-mode .testimonial-card:hover {
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.7);
    border-color: rgba(var(--primary-color-rgb), 0.3);
}

/* Dark mode for CTA section */
.dark-mode .cta {
    background: var(--gradient-dark);
}

.dark-mode .cta::before {
    opacity: 0.7;
}

.dark-mode .cta-content h2 {
    color: white;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dark-mode .cta-content p {
    color: rgba(255, 255, 255, 0.9);
}

.dark-mode .cta .btn {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Theme Toggle Button - Fixed position */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: var(--box-shadow);
    transition: var(--transition-bounce);
    /* Ensure it stays visible on all devices */
    opacity: 0.95;
    /* Add a subtle border for better visibility */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Adjust position for different screen sizes */
@media (max-width: 768px) {
    .theme-toggle {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .theme-toggle {
        bottom: 15px;
        left: 15px;
        width: 40px;
        height: 40px;
    }

    .theme-toggle i {
        font-size: 1.2rem;
    }
}

/* Ensure buttons don't overlap on very small screens */
@media (max-width: 360px) {
    .theme-toggle {
        bottom: 15px;
        left: 15px;
        width: 35px;
        height: 35px;
    }

    .theme-toggle i {
        font-size: 1rem;
    }
}

.theme-toggle:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.theme-toggle i {
    font-size: 1.5rem;
    color: white;
    transition: transform 0.5s ease;
}

.dark-mode .theme-toggle i {
    transform: rotate(360deg);
}

.theme-toggle.animate {
    animation: pulse 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Scroll to Top Button removed */

/* Custom cursor styles removed - using default cursor */

/* System preference detection for color scheme */
@media (prefers-color-scheme: dark) {
    /* This only applies if the user hasn't manually set a preference */
    :root:not(.light-mode):not(.dark-mode) {
        /* Use the same variables as dark-mode */
        --bg-color: #0a0f1e;
        --bg-secondary: #1a2234;
        --text-color: #f8fafc;
        --text-light: #e2e8f0;
        --text-muted: #94a3b8;
        --border-color: #334155;
        --border-light: #475569;
        --card-bg: #1e293b;
        --header-bg: rgba(10, 15, 30, 0.98);

        /* Accent colors */
        --primary-color: #6366f1;
        --primary-color-rgb: 99, 102, 241;
        --primary-light: #a5b4fc;
        --primary-dark: #4f46e5;

        /* Apply dark mode to the root element */
        color-scheme: dark;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* WhatsApp Button Styles - Fixed position at same height as theme toggle */
.whatsapp-btn {
    position: fixed;
    bottom: 30px; /* Same height as theme toggle */
    right: 30px;
    z-index: 999;
}

/* Adjust position for different screen sizes - matching theme toggle */
@media (max-width: 768px) {
    .whatsapp-btn {
        bottom: 20px; /* Same as theme toggle */
        right: 20px;
    }
}

@media (max-width: 480px) {
    .whatsapp-btn {
        bottom: 15px; /* Same as theme toggle */
        right: 15px;
    }
}

.whatsapp-btn .whatsapp-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.whatsapp-btn .whatsapp-icon i {
    font-size: 30px;
    color: white;
}

.whatsapp-btn .whatsapp-icon:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-popup {
    position: absolute;
    bottom: 70px; /* Adjusted for new button position */
    right: 0;
    width: 300px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.whatsapp-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Enhanced popup animation */
.whatsapp-popup.active {
    animation: popupAppear 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes popupAppear {
    0% {
        opacity: 0;
        visibility: visible;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }
}

.whatsapp-header {
    background-color: #25D366;
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
}

.whatsapp-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.whatsapp-header-text h3 {
    font-size: 16px;
    margin-bottom: 2px;
    font-weight: 600;
}

.whatsapp-header-text p {
    font-size: 12px;
    opacity: 0.8;
    margin: 0;
}

.whatsapp-body {
    padding: 15px 20px;
}

.whatsapp-message {
    background-color: #f0f0f0;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative;
    font-size: 14px;
    line-height: 1.5;
}

.whatsapp-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-right: 10px solid #f0f0f0;
    border-bottom: 8px solid transparent;
}

.whatsapp-footer {
    padding: 10px 20px 15px;
    text-align: center;
}

.whatsapp-footer a {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
}

.whatsapp-footer a:hover {
    background-color: #1da851;
    transform: translateY(-2px);
}

.whatsapp-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.whatsapp-close:hover {
    color: white;
    transform: rotate(90deg);
}

/* Mobile styles for WhatsApp button - Updated for better compatibility */
@media (max-width: 768px) {
    .whatsapp-btn .whatsapp-icon {
        width: 50px;
        height: 50px;
    }

    .whatsapp-btn .whatsapp-icon i {
        font-size: 26px;
    }

    .whatsapp-popup {
        width: 290px;
        right: 0;
        bottom: 60px; /* Adjusted for new button position */
    }
}

@media (max-width: 480px) {
    .whatsapp-btn .whatsapp-icon {
        width: 45px;
        height: 45px;
    }

    .whatsapp-btn .whatsapp-icon i {
        font-size: 22px;
    }

    .whatsapp-popup {
        width: 260px;
        right: 0;
        bottom: 55px; /* Adjusted for new button position */
    }
}

/* Small screens */
@media (max-width: 360px) {
    .whatsapp-popup {
        width: 240px;
    }

    .whatsapp-header-text h3 {
        font-size: 14px;
    }

    .whatsapp-header-text p {
        font-size: 10px;
    }
}