:root {
    /* Core Colors */
    --primary-color: #0052cc;
    --primary-dark: #003d99;
    --primary-light: #e6f0ff;
    --secondary-color: #00a3ff;
    --accent-color: #ff6b00;
    
    /* Light Mode Text - HIGH CONTRAST */
    --text-primary: #0f172a;     /* Almost black for main headings */
    --text-secondary: #1e293b;    /* Dark gray for body text */
    --text-tertiary: #334155;     /* Medium gray for less important text */
    --text-light: #475569;        /* For captions and metadata */
    
    /* Light Mode Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --card-bg: #ffffff;
    
    /* Light Mode Borders & Shadows */
    --border-color: #e2e8f0;
    --border-light: #e9edf2;
    --shadow-color: rgba(0,0,0,0.08);
    --shadow-sm: 0 5px 15px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.15);
    --shadow-xl: 0 25px 60px rgba(0,0,0,0.2);
    
    /* Grayscale */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Gradients - Professional Dark Blue & Pink */
    --gradient-hero: linear-gradient(135deg, #ffffff, #e0f2fe, #bae6fd);
    --gradient-primary: linear-gradient(135deg, #0c4a6e, #0284c7, #ec4899);
    --gradient-secondary: linear-gradient(135deg, #0369a1, #0284c7, #f472b6);
    --gradient-premium: linear-gradient(135deg, #0c4a6e, #1e3a8a, #6b21a5, #be185d);
    
    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Font */
    --font-primary: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

/* ===== DARK MODE - HIGH CONTRAST TEXT ===== */
[data-theme="dark"] {
    /* Core Colors - Brighter for dark mode */
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #60a5fa;
    
    /* Dark Mode Text - HIGH CONTRAST (light text on dark bg) */
    --text-primary: #ffffff;       /* Pure white for main headings */
    --text-secondary: #f1f5f9;     /* Almost white for body text */
    --text-tertiary: #e2e8f0;      /* Light gray for less important text */
    --text-light: #cbd5e1;         /* For captions - still very readable */
    
    /* Dark Mode Backgrounds */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --card-bg: #1e293b;
    
    /* Dark Mode Borders & Shadows */
    --border-color: #4a5568;       /* Lighter border for visibility */
    --border-light: #475569;
    --shadow-color: rgba(0,0,0,0.5);
    --shadow-sm: 0 5px 15px rgba(0,0,0,0.3);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.4);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.5);
    --shadow-xl: 0 25px 60px rgba(0,0,0,0.6);
    
    /* Grayscale - Adjusted for dark mode */
    --white: #1e293b;
    --gray-50: #1e2a3a;
    --gray-100: #334155;
    --gray-200: #475569;
    --gray-300: #64748b;
    --gray-400: #94a3b8;
    
    /* Gradients - Adjusted for dark mode */
    --gradient-hero: linear-gradient(135deg, #ffffff, #bae6fd, #7dd3fc);
    --gradient-primary: linear-gradient(135deg, #0284c7, #38bdf8, #f472b6);
    --gradient-secondary: linear-gradient(135deg, #38bdf8, #60a5fa, #f9a8d4);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--bg-primary);
    transition: background 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
h4 { font-size: clamp(1rem, 2.5vw, 1.2rem); }

p, li, span, div {
    color: var(--text-secondary);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    background: var(--gradient-primary) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    font-weight: 800 !important;
}

.section-title span {
    background: var(--gradient-secondary) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
}

.section-subtitle {
    color: var(--text-tertiary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    color: white;
}

.btn-primary {
    background: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo */
.logo-img {
    height: 75px !important;
    width: auto;
    display: block;
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle i {
    margin-left: 8px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: currentColor;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-primary);
    min-width: 220px;
    box-shadow: var(--shadow-md);
    border-radius: 10px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 100;
    list-style: none;
    border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 25px;
    color: var(--text-secondary);
    text-transform: none;
    font-weight: 500;
}

.dropdown-menu li a:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    padding-left: 30px;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* ===== NAV RIGHT BUTTONS ===== */
.nav-right {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

/* Search */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 8px;
}

.search-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.search-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--bg-secondary);
}

.search-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 320px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 9999;
}

.search-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-dropdown input {
    width: 100%;
    padding: 15px 18px;
    border: none;
    border-radius: 12px 12px 0 0;
    outline: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
}

.search-dropdown input::placeholder {
    color: var(--text-light);
}

.search-results {
    max-height: 350px;
    overflow-y: auto;
    padding: 8px 0;
}

.search-result-item {
    padding: 12px 18px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-secondary);
}

.search-result-item.active {
    background: var(--primary-light);
}

.search-result-title {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.search-result-category {
    font-size: 0.7rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.search-result-category i {
    font-size: 0.6rem;
}

.search-no-results {
    padding: 30px 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.search-no-results i {
    font-size: 2rem;
    color: var(--gray-400);
    margin-bottom: 10px;
    display: block;
}

/* Language Selector */
.language-selector {
    position: relative !important;
    display: inline-block !important;
    margin-right: 5px !important;
}

.language-btn {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 15px !important;
    background: transparent !important;
    border: 2px solid var(--border-color) !important;
    border-radius: 50px !important;
    color: var(--text-primary) !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    height: 45px !important;
    transition: all 0.3s ease !important;
}

.language-btn:hover {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.language-btn .flag-icon {
    font-size: 1.2rem !important;
}

.language-dropdown {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    width: 320px !important;
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 15px !important;
    box-shadow: var(--shadow-lg) !important;
    display: none !important;
    z-index: 9999 !important;
    overflow: hidden !important;
}

.language-dropdown.show {
    display: block !important;
    animation: dropdownFadeIn 0.3s ease !important;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.language-search {
    position: relative !important;
    padding: 15px !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.language-search input {
    width: 100% !important;
    padding: 12px 15px 12px 45px !important;
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    color: var(--text-primary) !important;
    font-size: 0.95rem !important;
}

.language-search input:focus {
    outline: none !important;
    border-color: var(--primary-color) !important;
}

.language-search i {
    position: absolute !important;
    left: 30px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--text-light) !important;
    font-size: 1rem !important;
}

.language-list {
    max-height: 350px !important;
    overflow-y: auto !important;
    padding: 10px 0 !important;
}

.language-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 20px !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.language-item:hover {
    background: var(--bg-secondary) !important;
}

.language-item.active {
    background: rgba(0, 82, 204, 0.1) !important;
    border-left: 3px solid var(--primary-color) !important;
}

.language-flag {
    font-size: 1.3rem !important;
    width: 30px !important;
    text-align: center !important;
}

.language-name {
    flex: 1 !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: var(--text-primary) !important;
}

.language-code {
    color: var(--text-light) !important;
    font-size: 0.75rem !important;
    background: var(--bg-tertiary) !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
}

/* Theme Toggle */
.theme-btn {
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    background: transparent !important;
    border: 2px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
    transition: all 0.3s ease !important;
    margin-right: 5px !important;
}

.theme-btn:hover {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    transform: rotate(15deg) !important;
}

/* WhatsApp Button */
.whatsapp-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #25D366 !important;
    color: white !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-size: 1.3rem !important;
    transition: all 0.3s ease !important;
}

.whatsapp-btn:hover {
    background: #128C7E !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2) !important;
}

/* Scrollbar */
.language-list::-webkit-scrollbar,
.search-results::-webkit-scrollbar {
    width: 6px;
}

.language-list::-webkit-scrollbar-track,
.search-results::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.language-list::-webkit-scrollbar-thumb,
.search-results::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

/* ===== HERO SLIDER ===== */
.hero {
    height: 100vh;
    min-height: 800px;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.hero-slider {
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s ease;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    color: white;
    transform: translateY(30px);
    opacity: 0;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.hero-slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.hero-badge {
    display: inline-block;
    background: var(--gradient-premium) !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white !important;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

.hero-slide.active .hero-badge {
    transform: translateY(0);
    opacity: 1;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
    background: var(--gradient-hero) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    font-weight: 800 !important;
}

.hero-slide.active .hero-title {
    transform: translateY(0);
    opacity: 1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: white !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.6s;
}

.hero-slide.active .hero-subtitle {
    transform: translateY(0);
    opacity: 1;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.7s;
}

.hero-slide.active .hero-buttons {
    transform: translateY(0);
    opacity: 1;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 20;
}

.slider-prev,
.slider-next {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    font-size: 1.3rem;
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--gradient-premium);
    border-color: transparent;
    transform: scale(1.15);
}

.slider-dots {
    display: flex;
    gap: 15px;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.dot.active {
    background: white;
    transform: scale(1.3);
    border-color: var(--primary-color);
}

/* ===== STATS SECTION ===== */
.stats-section {
    padding: 80px 0;
    background: var(--gradient-primary);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-card {
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: white;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    color: white;
}

/* ===== ACTION SECTION ===== */
.action-section {
    padding: 50px 0 70px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.action-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.action-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 25px 40px;
    border-radius: 100px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
}

.action-buttons:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.action-btn {
    position: relative;
    min-width: 220px;
    padding: 18px 35px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
}

.action-btn.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.action-btn.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Get Consultation Button */
.btn-secondary[data-key="hero-btn-consult"] {
    background: var(--gradient-primary) !important;
    color: white !important;
    border: none !important;
}

.btn-secondary[data-key="hero-btn-consult"] span,
.btn-secondary[data-key="hero-btn-consult"] i {
    color: white !important;
}

.btn-secondary[data-key="hero-btn-consult"]:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Toggle */
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 30px;
    position: relative;
}

.toggle-pill {
    width: 4px;
    height: 45px;
    background: linear-gradient(to bottom, 
        rgba(0, 82, 204, 0.2), 
        rgba(0, 163, 255, 0.2), 
        rgba(0, 82, 204, 0.2));
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.toggle-slider {
    width: 100%;
    height: 15px;
    background: var(--gradient-primary);
    border-radius: 10px;
    position: absolute;
    top: 0;
    left: 0;
    animation: professionalSlide 2.5s infinite cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

@keyframes professionalSlide {
    0%, 100% { top: 0; }
    40%, 60% { top: calc(100% - 15px); }
}

.action-buttons:hover .toggle-slider {
    animation-play-state: paused;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 100px 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-color);
    padding-left: 25px;
}

.about-highlight {
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.03), rgba(0, 163, 255, 0.03));
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
    position: relative;
}

.about-highlight p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-weight: 500;
    margin: 0;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    background: var(--gradient-primary) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

/* Solutions Grid */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 20px;
}

.solution-item {
    background: var(--card-bg);
    padding: 25px 20px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: left;
}

.solution-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.solution-icon {
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.solution-item:hover .solution-icon {
    transform: scale(1.1) rotate(5deg);
}

.solution-item h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 700;
}

.solution-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* About Image */
.about-image {
    position: relative;
}

.about-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    transition: transform 0.5s ease;
}

.about-img:hover {
    transform: scale(1.02);
}

.about-stats {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background: var(--bg-primary);
    padding: 25px 35px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: 90%;
    border: 1px solid var(--border-color);
}

.about-stat {
    text-align: center;
}

.about-stat .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 5px;
}

.about-stat .stat-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Advantages Section */
.advantages-section {
    margin-top: 100px;
    text-align: center;
}

.advantages-section h3 {
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--text-primary);
    background: var(--gradient-primary) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    display: inline-block;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.advantage-card {
    background: var(--card-bg);
    padding: 35px 25px;
    border-radius: 20px;
    text-align: left;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.advantage-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.advantage-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.1) rotate(5deg);
}

.advantage-card h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 700;
}

.advantage-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

/* Vision Box */
.vision-box {
    background: var(--gradient-primary);
    padding: 50px;
    border-radius: 30px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.vision-box h4 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: white !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

.vision-box p {
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    color: white !important;
    opacity: 0.95;
}

/* ===== FACTORY SECTION ===== */
.factory-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.factory-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.factory-tab {
    padding: 15px 35px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
}

.factory-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.factory-tab.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white !important;
}

.factory-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
    text-align: center;
    background: linear-gradient(145deg, var(--card-bg), var(--bg-secondary));
    padding: 40px 30px;
    border-radius: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.factory-stats .stat-item {
    flex: 1 1 180px;
    min-width: 150px;
    padding: 15px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.factory-stats .stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: 8px;
}

.factory-stats .stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.factory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: 40px 0 20px;
}

.factory-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
}

.factory-item:hover {
    transform: scale(1.08) translateY(-8px);
    box-shadow: 0 25px 40px rgba(0, 82, 204, 0.4);
    z-index: 10;
}

.factory-item img,
.factory-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.factory-item:hover img,
.factory-item:hover video {
    transform: scale(1.15);
}

.factory-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    opacity: 0;
    transition: all 0.3s ease;
}

.factory-item:hover .factory-overlay {
    height: 20%;
    opacity: 1;
}

/* Factory Root Media */
.factory-root-media-section {
    margin: 40px 0 60px;
}

.factory-root-heading {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-primary);
    position: relative;
    padding-left: 20px;
    background: var(--gradient-primary) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
}

.factory-root-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 30px;
    background: var(--gradient-primary);
    border-radius: 5px;
}

.factory-root-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.factory-root-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
}

.factory-root-item:hover {
    transform: scale(1.08) translateY(-8px);
    box-shadow: 0 25px 40px rgba(0, 82, 204, 0.4);
    z-index: 10;
}

.factory-root-item img,
.factory-root-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.factory-root-item:hover img,
.factory-root-item:hover video {
    transform: scale(1.15);
}

.factory-root-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    opacity: 0;
    transition: all 0.3s ease;
}

.factory-root-item:hover .factory-root-overlay {
    height: 20%;
    opacity: 1;
}

/* ===== CERTIFICATION SECTION ===== */
.certification-section {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.cert-card {
    background: var(--card-bg);
    padding: 35px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.cert-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-xl);
}

.cert-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.cert-card:hover img {
    transform: scale(1.1);
}

.cert-card h4 {
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
}

.cert-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Certificate Folder */
.certificate-folder {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.folder-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 40px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.folder-icon i {
    font-size: 3rem;
    background: var(--gradient-primary) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    transition: all 0.3s ease;
}

.folder-icon span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.folder-icon:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.folder-icon:hover i {
    transform: scale(1.1);
}

/* Certificate Modal */
.certificate-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.certificate-modal.active {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.certificate-modal-content {
    width: 80%;
    max-width: 750px;
    max-height: 90vh;
    background: var(--bg-primary);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.4s ease;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.certificate-modal-header {
    padding: 20px 30px;
    background: var(--bg-primary);
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.certificate-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-primary) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
}

.certificate-modal-header h3 i {
    color: var(--primary-color);
}

.certificate-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.certificate-modal-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

.certificate-modal-body {
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    justify-items: center;
    align-items: center;
    overflow: hidden;
    max-height: calc(90vh - 70px);
}

/* Certificate Items - WOODEN FRAMES (KEPT EXACTLY AS YOUR ORIGINAL) */
.certificate-item {
    position: relative;
    border-radius: 10px !important;
    overflow: visible !important;
    cursor: pointer;
    width: 100% !important;
    max-width: 160px !important;
    height: auto !important;
    aspect-ratio: 2/3 !important;
    margin: 0 auto !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border: none !important;
    padding: 14px 10px 18px 10px !important;
    background: #8B5A2B !important;
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.4),
        inset 0 -3px 8px rgba(0, 0, 0, 0.35),
        inset 0 3px 8px rgba(255, 215, 140, 0.7) !important;
}

.certificate-item::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: 
        repeating-linear-gradient(
            45deg,
            rgba(90, 50, 15, 0.3) 0px,
            rgba(90, 50, 15, 0.3) 3px,
            rgba(140, 80, 30, 0.2) 3px,
            rgba(140, 80, 30, 0.2) 8px
        ),
        radial-gradient(circle at 30% 30%, rgba(210, 180, 140, 0.5) 0%, transparent 60%) !important;
    border-radius: 8px !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.certificate-item::after {
    content: '' !important;
    position: absolute !important;
    top: 9px !important;
    left: 6px !important;
    right: 6px !important;
    bottom: 9px !important;
    background: #f0ead6 !important;
    border-radius: 5px !important;
    box-shadow: inset 0 0 0 2.5px rgba(160, 120, 80, 0.7) !important;
    z-index: 2 !important;
}

.certificate-item img {
    position: relative !important;
    width: calc(100% - 6px) !important;
    height: calc(100% - 6px) !important;
    object-fit: cover !important;
    border-radius: 3px !important;
    margin: 3px !important;
    z-index: 3 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15) !important;
    transition: transform 0.5s ease !important;
}

.certificate-item .frame-corner {
    position: absolute !important;
    width: 14px !important;
    height: 14px !important;
    border: 2.5px solid #b87c4b !important;
    z-index: 5 !important;
    pointer-events: none !important;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
    border-radius: 2px 0 0 0 !important;
}

.certificate-item .corner-tl {
    top: 4px !important;
    left: 2px !important;
    border-right: none !important;
    border-bottom: none !important;
}

.certificate-item .corner-tr {
    top: 4px !important;
    right: 2px !important;
    border-left: none !important;
    border-bottom: none !important;
}

.certificate-item .corner-bl {
    bottom: 4px !important;
    left: 2px !important;
    border-right: none !important;
    border-top: none !important;
}

.certificate-item .corner-br {
    bottom: 4px !important;
    right: 2px !important;
    border-left: none !important;
    border-top: none !important;
}

.certificate-item-overlay {
    position: absolute !important;
    bottom: 10px !important;
    left: 12px !important;
    right: 12px !important;
    background: rgba(90, 45, 15, 0.98) !important;
    backdrop-filter: blur(3px) !important;
    padding: 7px 8px !important;
    color: #ffdead !important;
    transform: translateY(100%) !important;
    transition: transform 0.3s ease !important;
    z-index: 10 !important;
    border-radius: 6px !important;
    border: 2px solid #c68b5c !important;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.5) !important;
    text-align: center !important;
    pointer-events: none !important;
}

.certificate-item:hover .certificate-item-overlay {
    transform: translateY(0) !important;
}

.certificate-item-title {
    font-weight: 900 !important;
    font-size: 0.65rem !important;
    color: #ffdead !important;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.7) !important;
    letter-spacing: 0.5px !important;
    line-height: 1.2 !important;
}

.certificate-item:hover {
    transform: translateY(-6px) scale(1.02) !important;
    box-shadow: 
        0 18px 28px rgba(0, 0, 0, 0.5),
        inset 0 -3px 6px rgba(0, 0, 0, 0.4),
        inset 0 3px 10px rgba(255, 215, 140, 0.8) !important;
}

.certificate-item:hover img {
    transform: scale(1.03) !important;
}

[data-theme="dark"] .certificate-item {
    background: #5d3a1a !important;
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.6),
        inset 0 -3px 8px rgba(0, 0, 0, 0.5),
        inset 0 3px 8px rgba(210, 180, 140, 0.3) !important;
}

[data-theme="dark"] .certificate-item::after {
    background: #2a2a2a !important;
    box-shadow: inset 0 0 0 2.5px #8b5a2b !important;
}

[data-theme="dark"] .certificate-item-overlay {
    background: rgba(60, 35, 15, 0.98) !important;
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.products-section.alt-bg {
    background: var(--bg-secondary);
}

.products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 30px !important;
    margin-bottom: 40px !important;
    justify-content: start !important;
}

.products-grid.single-product {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.product-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.view-details {
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.product-card:hover .view-details {
    transform: translateY(0);
}

.product-info {
    padding: 25px 20px;  /* Slightly wider padding */
}

.product-info h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--text-primary) !important;
    background: none !important;
}

.product-specs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.spec {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
    gap: 15px;
    width: 100%;
}

.spec span:first-child {
    color: var(--text-tertiary);
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 100px;  /* Added fixed width for labels */
    font-size: 0.95rem;  /* Slightly larger */
}

.spec span:last-child {
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
    word-break: break-word;
    max-width: 60%;
    line-height: 1.4;
    font-size: 0.95rem;  /* Slightly larger */
}

.category-heading {
    font-size: 1.8rem;
    margin: 50px 0 30px;
    color: var(--text-primary);
    position: relative;
    padding-left: 20px;
    background: var(--gradient-primary) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
}

/* Special handling for long text like Environment */
.spec .spec-value-long {
    white-space: normal;
    font-size: 0.9rem;
}

.category-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 30px;
    background: var(--gradient-primary);
    border-radius: 5px;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--bg-primary);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-info {
    padding: 50px;
    background: linear-gradient(135deg, #0f172a, #1e40af, #0c4a6e) !important;
    color: white !important;
}

.contact-brand h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    background: white !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
}

.contact-brand .tagline,
.contact-brand .description {
    color: white !important;
    opacity: 0.95;
}

/* Contact Cards */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-card.whatsapp:hover { border-color: #25D366; }
.contact-card.email:hover { border-color: #EA4335; }
.contact-card.wechat:hover { border-color: #07C160; }
.contact-card.address:hover { border-color: var(--primary-color); }

.card-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
}

.contact-card.whatsapp .card-icon { background: linear-gradient(135deg, #25D366, #128C7E); }
.contact-card.email .card-icon { background: linear-gradient(135deg, #EA4335, #D14836); }
.contact-card.wechat .card-icon { background: linear-gradient(135deg, #07C160, #05954E); }
.contact-card.address .card-icon { background: var(--gradient-primary); }

.card-content {
    flex: 1;
}

.card-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.card-value {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 5px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.card-status {
    font-size: 0.8rem;
    display: inline-block;
}

.card-status.online { color: #10b981; }
.card-status.response { color: var(--primary-color); }
.card-status.click { color: var(--primary-color); }

/* Contact Social */
.contact-social {
    margin-top: 30px;
}

.contact-social h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: white !important;
    background: none !important;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-3px);
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: white;
}

.social-link.facebook:hover { background: #1877F2; color: white; }
.social-link.youtube:hover { background: #FF0000; color: white; }
.social-link.linkedin:hover { background: #0077B5; color: white; }

/* Contact Form */
.contact-form {
    padding: 50px;
    background: var(--bg-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.contact-form select {
    width: 100%;
    padding: 15px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form select {
    height: 54px;
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Form Notification */
.form-notification {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.4s ease;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.form-notification.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-left: 4px solid #28a745;
}

.form-notification.error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-theme="dark"] .form-notification.success {
    background: linear-gradient(135deg, #1e3a2a, #1e4a2a);
    color: #a3d9a5;
    border-left-color: #4caf50;
}

[data-theme="dark"] .form-notification.error {
    background: linear-gradient(135deg, #3a1e1e, #4a1e1e);
    color: #f5a3a3;
    border-left-color: #f44336;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
}

.faq-question {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-secondary);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px 25px;
    display: none;
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    display: block;
}

/* ===== POLICY SECTIONS (WARRANTY & REFUND) ===== */
.policy-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.policy-section.alt-bg {
    background: var(--bg-secondary);
}

.policy-content {
    max-width: 1000px;
    margin: 0 auto;
}

.policy-card {
    text-align: center;
    background: var(--card-bg);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 50px;
    border: 1px solid var(--border-color);
}

.policy-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 30px;
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.policy-item {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.policy-item h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--text-primary);
    background: var(--gradient-primary) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
}

.policy-item h4 i {
    color: var(--primary-color);
}

.policy-item ul {
    list-style: none;
    padding: 0;
}

.policy-item ul li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-secondary);
    border-bottom: 1px dashed var(--border-color);
}

.policy-item ul li:last-child {
    border-bottom: none;
}

.policy-item ul li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.policy-process {
    background: var(--gradient-primary);
    padding: 40px;
    border-radius: 15px;
    color: white;
}

.policy-process h4 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
    color: white !important;
    background: none !important;
}

.policy-process ol,
.policy-process ul {
    list-style-position: inside;
    margin-bottom: 20px;
}

.policy-process li {
    padding: 10px 0;
    font-size: 1.1rem;
    color: white !important;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.policy-process li:last-child {
    border-bottom: none;
}

/* Refusal Grid */
.refusal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.refusal-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.refusal-item h5 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: white;
    font-weight: 600;
}

.refusal-item ul li {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 80px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo-img {
    height: 65px !important;
    width: auto;
    margin-bottom: 15px;
    filter: brightness(1);
    transition: filter 0.3s ease;
}

[data-theme="dark"] .footer-logo-img {
    filter: brightness(1.2);
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--text-primary);
    font-weight: 700;
    background: var(--gradient-primary) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section p i {
    color: var(--primary-color);
    width: 20px;
    font-size: 1.1rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* ===== VIEW ALL DETAILS FOLDER ===== */
.viewall-folder-container {
    margin: 60px 0 40px;
    text-align: center;
}

.viewall-main-folder {
    display: inline-block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.viewall-main-folder:hover {
    transform: translateY(-10px);
}

.viewall-folder-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 25px 60px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.viewall-folder-icon i {
    font-size: 3.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.3s ease;
}

.viewall-folder-icon span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.viewall-folder-icon:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.viewall-folder-icon:hover i {
    transform: scale(1.1);
    color: var(--secondary-color);
}

/* ===== WECHAT MODAL ===== */
.wechat-modal-content {
    max-width: 400px;
    text-align: center;
}

.wechat-modal-body {
    padding: 40px 30px;
}

.qr-container {
    margin-bottom: 25px;
}

.qr-container img {
    width: 200px;
    height: 200px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.wechat-id {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 15px 0 20px;
}

.btn-copy {
    padding: 12px 30px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== FLOATING WHATSAPP BUTTON ===== */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.2rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    border: 3px solid white;
    animation: whatsapp-pulse 2s infinite;
    text-decoration: none;
}

.floating-whatsapp:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp-tooltip {
    position: absolute;
    left: 80px;
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    pointer-events: none;
}

.floating-whatsapp-tooltip::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 8px 8px 0;
    border-style: solid;
    border-color: transparent var(--primary-color) transparent transparent;
}

.floating-whatsapp:hover .floating-whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    left: 90px;
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== MOBILE CATEGORY NAVIGATION ===== */
.mobile-category-nav {
    display: none;
    background: var(--bg-primary);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .mobile-category-nav {
        display: block;
        top: 70px;
    }
}

@media (max-width: 480px) {
    .mobile-category-nav {
        top: 60px;
        padding: 10px 0;
    }
}

.category-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 5px 0;
    -webkit-overflow-scrolling: touch;
}

.category-slider::-webkit-scrollbar {
    display: none;
}

.category-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.category-chip i {
    font-size: 1rem;
    color: var(--primary-color);
}

.category-chip.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.category-chip.active i {
    color: white;
}

/* ===== THUMBNAIL PLAY ICON ===== */
.thumbnail-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    pointer-events: none;
    z-index: 5;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

*:hover > .thumbnail-play-icon {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .factory-grid,
    .factory-root-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .nav-center {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-primary);
        padding: 30px;
        box-shadow: var(--shadow-md);
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-center.active {
        display: block;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 10px 0 10px 20px;
        display: none;
        border: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .factory-stats .stat-item:not(:last-child)::after {
        display: none;
    }
    
    .nav-right {
        gap: 8px !important;
    }
    
    .whatsapp-btn span,
    .language-btn span:not(.flag-icon) {
        display: none !important;
    }
    
    .whatsapp-btn {
        padding: 8px 12px !important;
        font-size: 1.2rem !important;
    }
    
    .language-btn {
        padding: 8px 10px !important;
    }
    
    .language-dropdown {
        position: fixed !important;
        top: 90px !important;
        right: 20px !important;
        width: 300px !important;
        max-width: calc(100vw - 40px) !important;
    }
    
    .certificate-modal-body {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 500px;
        margin-top: 70px;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .factory-tabs {
        flex-direction: column;
        gap: 10px;
    }
    
    .factory-tab {
        width: 100%;
        text-align: center;
    }
    
    .factory-stats {
        flex-direction: column;
        padding: 30px 20px;
    }
    
    .factory-stats .stat-item {
        width: 100%;
    }
    
    .factory-grid,
    .factory-root-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    .certificate-modal-body {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .policy-grid {
        grid-template-columns: 1fr;
    }
    
    .refusal-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .about-stats {
        position: relative;
        bottom: 0;
        margin-top: 30px;
    }
    
    .contact-form,
    .contact-info {
        padding: 30px;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .slider-controls {
        bottom: 20px;
        gap: 15px;
    }
    
    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .floating-whatsapp {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
        bottom: 20px;
        left: 20px;
    }
    
    .category-heading {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 400px;
        margin-top: 60px;
    }
    
    .hero-title {
        font-size: 1.6rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr !important;
    }
    
    .factory-grid,
    .factory-root-grid {
        grid-template-columns: 1fr;
    }
    
    .certificate-modal-body {
        grid-template-columns: 1fr;
    }
    
    .logo-img {
        height: 45px !important;
    }
    
    .footer-logo-img {
        height: 40px !important;
    }
    
    .floating-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
        bottom: 15px;
        left: 15px;
    }
    
    .category-chip {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .contact-info {
        padding: 25px 20px;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.4rem !important;
    }
    
    .products-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ===== LANDSCAPE MODE FIXES ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 300px;
        height: 100vh;
    }
    
    .hero-content {
        padding: 20px 0;
    }
    
    .hero-title {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 4px 12px;
        margin-bottom: 8px;
    }
    
    .slider-controls {
        bottom: 10px;
    }
}

/* ===== PRODUCT SECTIONS FOR MOBILE ===== */
@media (max-width: 768px) {
    .products-section {
        display: none;
    }
    
    .products-section.active-section {
        display: block;
    }
}

/* ===== KEYBOARD NAVIGATION ===== */
.fa-spinner {
    animation: spin 1s linear infinite;
}

/* ========== SEARCH HIGHLIGHT EFFECTS ========== */
.search-highlight {
    animation: searchPulse 2s ease;
    box-shadow: 0 0 0 3px var(--primary-color) !important;
    transform: scale(1.02);
    transition: all 0.3s ease;
    z-index: 100;
}

.search-highlight-section {
    animation: sectionPulse 2s ease;
    position: relative;
}

.search-highlight-section::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, rgba(0,82,204,0.2) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    animation: glowPulse 2s ease;
}

@keyframes searchPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 var(--primary-color);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0,82,204,0.3);
        transform: scale(1.02);
    }
}

@keyframes sectionPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.9;
        background: rgba(0,82,204,0.05);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}
/* ========== FIX REFUSAL SECTION TEXT IN LIGHT MODE ========== */

/* Refusal items in light mode - FIX TEXT COLOR */
[data-theme="light"] .refusal-item {
    background: #f8fafc !important;  /* Light background */
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .refusal-item h5 {
    color: #0f172a !important;  /* Dark text for headings */
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

[data-theme="light"] .refusal-item ul li {
    color: #1e293b !important;  /* Dark text for list items */
    border-bottom: 1px dashed #cbd5e1 !important;
}

[data-theme="light"] .refusal-item ul li::before {
    color: #0052cc !important;  /* Blue bullets */
}

/* Policy process list items in light mode */
[data-theme="light"] .policy-process ul li {
    color: #1e293b !important;
}

/* Return conditions list in light mode */
[data-theme="light"] .policy-process ul li {
    color: #1e293b !important;
}

/* Ensure the parent containers have proper background in light mode */
[data-theme="light"] .policy-section.alt-bg {
    background: #f8fafc !important;
}

[data-theme="light"] .policy-item.full-width {
    background: #ffffff !important;
}
/* ===== CSS PSEUDO-ELEMENT ARROWS - 100% GUARANTEED ===== */
.dropdown-toggle {
    position: relative !important;
    padding-right: 25px !important;
}

.dropdown-toggle::after {
    content: "▼" !important;
    font-size: 10px !important;
    color: #0052cc !important;
    position: absolute !important;
    right: 5px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    transition: transform 0.3s ease !important;
    font-family: Arial, sans-serif !important;
}

.dropdown:hover .dropdown-toggle::after {
    transform: translateY(-50%) rotate(180deg) !important;
}

[data-theme="dark"] .dropdown-toggle::after {
    color: #3b82f6 !important;
}

/* Remove the old Font Awesome icons if they're causing issues */
.dropdown-toggle i.fas.fa-chevron-down,
.dropdown-toggle .fa-chevron-down {
    display: none !important;
}


/* WeChat Modal Styles */
.wechat-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.wechat-modal-content {
    background: white;
    border-radius: 30px;
    width: 90%;
    max-width: 380px;
    position: relative;
    animation: wechatFadeIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

[data-theme="dark"] .wechat-modal-content {
    background: #1e293b;
    color: #f1f5f9;
}

@keyframes wechatFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wechat-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

[data-theme="dark"] .wechat-modal-header {
    border-bottom-color: #334155;
}

.wechat-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #0052cc;
    display: flex;
    align-items: center;
    gap: 10px;
}

[data-theme="dark"] .wechat-modal-header h3 {
    color: #60a5fa;
}

.wechat-modal-header h3 i {
    font-size: 1.5rem;
}

.wechat-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #64748b;
    transition: color 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.wechat-modal-close:hover {
    color: #0052cc;
    background: #f1f5f9;
}

[data-theme="dark"] .wechat-modal-close:hover {
    background: #334155;
    color: #60a5fa;
}

.wechat-modal-body {
    padding: 30px 25px;
    text-align: center;
}

.qr-code-container {
    margin-bottom: 25px;
}

.qr-code-container img {
    width: 220px;
    height: 220px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 5px solid white;
}

[data-theme="dark"] .qr-code-container img {
    border-color: #334155;
}

.wechat-id-text {
    font-size: 1.1rem;
    margin: 15px 0 20px;
    color: #334155;
}

[data-theme="dark"] .wechat-id-text {
    color: #cbd5e1;
}

.wechat-id-text strong {
    color: #0052cc;
    font-size: 1.2rem;
}

[data-theme="dark"] .wechat-id-text strong {
    color: #60a5fa;
}

.wechat-copy-btn {
    background: linear-gradient(135deg, #0052cc, #00a3ff);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
}

.wechat-copy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,82,204,0.4);
}

.wechat-copy-btn i {
    font-size: 1.2rem;
}

/* Contact Card WeChat styling */
.contact-card.wechat {
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-card.wechat:hover {
    transform: translateY(-5px);
    border-color: #07C160;
    box-shadow: 0 10px 25px rgba(7,193,96,0.2);
}

.contact-card.wechat .card-icon {
    background: #07C160;
}


/* Responsive */
@media (max-width: 480px) {
    .wechat-modal-content {
        width: 95%;
    }
    
    .qr-code-container img {
        width: 180px;
        height: 180px;
    }
    
    .wechat-copy-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

/* Smooth loading effect */
.product-image img {
    transition: opacity 0.2s ease;
}

.product-image img[data-src] {
    opacity: 0;
}

.product-image img.loaded,
.product-image img:not([data-src]) {
    opacity: 1;
}

/* Prevent layout shift */
.product-image {
    background: #f5f5f5;
    min-height: 200px;
}

/* Force WhatsApp button to stay on screen */
.floating-whatsapp {
    position: fixed !important;
    bottom: 30px !important;
    left: 30px !important;
    z-index: 999999 !important;
}

/* For mobile screens, adjust spacing */
@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 20px !important;
        left: 20px !important;
        width: 55px !important;
        height: 55px !important;
        font-size: 1.8rem !important;
    }
}







/* ========== WESTAN POWER GALLERY STYLES ========== */
/* Add to your westan-style.css */

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.gallery-modal-content {
    width: 95%;
    max-width: 1400px;
    height: 90vh;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.gallery-modal-header {
    padding: 20px 30px;
    background: var(--white);
    border-bottom: 2px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.gallery-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    color: var(--text-dark);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-modal-close:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg);
}

.gallery-modal-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Thumbnails Sidebar */
.gallery-thumbnails {
    width: 120px;
    background: var(--gray-100);
    padding: 20px 10px;
    overflow-y: auto;
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gallery-thumbnail {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.gallery-thumbnail:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-thumbnail.active {
    border-color: var(--primary-color);
    transform: scale(0.98);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-thumbnail:hover img {
    transform: scale(1.1);
}

/* Main Gallery Area */
.gallery-main {
    flex: 1;
    position: relative;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    overflow: hidden;
}

.gallery-main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-main-image:hover {
    transform: scale(1.05);
}

/* Navigation Buttons */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gray-200);
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-nav-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 30px;
}

.gallery-next {
    right: 30px;
}

/* Gallery Counter */
.gallery-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    color: var(--text-dark);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
    z-index: 10;
}

/* Gallery Loading */
.gallery-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.gallery-loading i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* No Media Message */
.no-media-message {
    text-align: center;
    color: var(--text-light);
    padding: 40px;
}

.no-media-message i {
    font-size: 4rem;
    color: var(--gray-400);
    margin-bottom: 20px;
}

.no-media-message h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .gallery-modal-body {
        flex-direction: column;
    }
    
    .gallery-thumbnails {
        width: 100%;
        height: 100px;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 10px;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .gallery-thumbnail {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }
    
    .gallery-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .gallery-prev {
        left: 15px;
    }
    
    .gallery-next {
        right: 15px;
    }
}

@media (max-width: 576px) {
    .gallery-modal-header {
        padding: 15px 20px;
    }
    
    .gallery-modal-title {
        font-size: 1.1rem;
    }
    
    .gallery-main {
        padding: 15px;
    }
    
    .gallery-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .gallery-counter {
        padding: 5px 15px;
        font-size: 0.8rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .gallery-thumbnail:hover {
        transform: none;
    }
    
    .gallery-thumbnail:hover img {
        transform: none;
    }
    
    .gallery-main-image:hover {
        transform: none;
    }
}

/* Animation for image change */
.gallery-main-image {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scrollbar Styling */
.gallery-thumbnails::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: var(--gray-200);
    border-radius: 10px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ========== VIDEO SUPPORT FOR GALLERY ========== */

.gallery-media-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
}

.gallery-main-video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Thumbnail video styling */
.gallery-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-thumbnail:hover video {
    transform: scale(1.1);
}

.thumbnail-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 5;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.gallery-thumbnail:hover .thumbnail-play-icon {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.15);
    border-color: transparent;
}

/* Factory root video support */
.factory-root-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.factory-root-item:hover video {
    transform: scale(1.15);
}
/* ========== THUMBNAILS ON TOP - HORIZONTAL SCROLL ========== */

.gallery-modal-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.gallery-thumbnails-top {
    display: flex;
    flex-direction: row;
    gap: 12px;
    padding: 15px 20px;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: thin;
    flex-shrink: 0;
    min-height: 100px;
}

[data-theme="dark"] .gallery-thumbnails-top {
    background: var(--bg-dark);
    border-bottom-color: var(--border-dark);
}

.gallery-thumbnail-top {
    flex: 0 0 auto;
    width: 90px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.gallery-thumbnail-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gallery-thumbnail-top.active {
    border-color: var(--primary-color);
    transform: scale(0.98);
}

.gallery-thumbnail-top img,
.gallery-thumbnail-top video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== EQUAL SIZE MAIN DISPLAY ========== */

.gallery-main-equal {
    flex: 1;
    position: relative;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    min-height: 0;
}

.gallery-media-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-equal-wrapper {
    width: 100%;
    height: 100%;
    max-width: 800px;
    max-height: 600px;
    aspect-ratio: 4/3; /* FIXED EQUAL ASPECT RATIO */
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: var(--white);
}

.gallery-equal-media {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Keeps proportions while filling box */
    background: var(--gray-100);
}

[data-theme="dark"] .gallery-equal-media {
    background: var(--bg-dark);
}

/* ========== LIGHTBOX EQUAL SIZE ========== */

.lightbox-equal-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-equal-wrapper {
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16/9; /* Widescreen for lightbox */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    background: #111;
}

.lightbox-equal-media {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Scrollbar styling */
.gallery-thumbnails-top::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails-top::-webkit-scrollbar-track {
    background: var(--gray-200);
    border-radius: 10px;
}

.gallery-thumbnails-top::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-thumbnail-top {
        width: 70px;
        height: 70px;
    }
    
    .gallery-equal-wrapper {
        max-width: 100%;
        aspect-ratio: 1/1; /* Square on mobile */
    }
}  




/* ========== VIEW ALL GALLERY - PROFESSIONAL STYLES ========== */

/* ===== PROFESSIONAL 3 FOLDER LAYOUT ===== */
.viewall-category-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.viewall-category-modal.active {
    display: flex !important;
}

.viewall-category-content {
    width: 90%;
    max-width: 1300px;
    background: var(--bg-primary, #ffffff);
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color, #e2e8f0);
}

[data-theme="dark"] .viewall-category-content {
    background: var(--bg-dark, #0f172a);
    border-color: var(--border-dark, #334155);
}

.viewall-category-header {
    padding: 25px 35px;
    background: linear-gradient(135deg, #0052cc, #00a3ff);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.viewall-category-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
    color: white;
}

.viewall-category-header h3 i {
    font-size: 2.2rem;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
}

.viewall-category-close {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.viewall-category-close:hover {
    background: white;
    color: #0052cc;
    transform: rotate(90deg);
}

/* ===== PROFESSIONAL 3 FOLDER GRID ===== */
.viewall-category-body {
    padding: 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    background: var(--bg-secondary, #f8fafc);
}

[data-theme="dark"] .viewall-category-body {
    background: var(--bg-dark, #0f172a);
}

/* FOLDER CARDS - PROFESSIONAL DESIGN */
.viewall-category-folder {
    background: var(--card-bg, #ffffff);
    border: 2px solid var(--border-color, #e2e8f0);
    border-radius: 30px;
    padding: 45px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    min-height: 350px;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .viewall-category-folder {
    background: var(--card-dark, #1e293b);
    border-color: var(--border-dark, #334155);
}

/* Background glow effect */
.viewall-category-folder::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,82,204,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.viewall-category-folder:hover::before {
    opacity: 1;
}

/* Icon container */
.viewall-category-folder i {
    font-size: 4.5rem;
    background: linear-gradient(135deg, #0052cc, #00a3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s ease;
    filter: drop-shadow(0 10px 15px rgba(0,82,204,0.2));
}

.viewall-category-folder:hover i {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 15px 25px rgba(0,82,204,0.4));
}

/* Folder title - WORKS IN BOTH MODES */
.viewall-category-folder h4 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 2;
}

[data-theme="dark"] .viewall-category-folder h4 {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Description text - WORKS IN BOTH MODES */
.viewall-category-folder p {
    color: var(--text-secondary, #475569);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    max-width: 280px;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

[data-theme="dark"] .viewall-category-folder p {
    color: var(--text-light, #94a3b8);
}

/* Decorative line under title */
.viewall-category-folder::after {
    content: '';
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #0052cc, #00a3ff);
    border-radius: 3px;
    margin-top: 5px;
    transition: width 0.3s ease;
}

.viewall-category-folder:hover::after {
    width: 80px;
}

/* Hover effects */
.viewall-category-folder:hover {
    transform: translateY(-15px);
    border-color: #0052cc;
    box-shadow: 0 30px 50px rgba(0, 82, 204, 0.25);
}

[data-theme="dark"] .viewall-category-folder:hover {
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.5);
    border-color: #3b82f6;
}

/* Responsive */
@media (max-width: 992px) {
    .viewall-category-body {
        grid-template-columns: repeat(2, 1fr);
        padding: 30px;
        gap: 25px;
    }
    
    .viewall-category-folder {
        min-height: 320px;
        padding: 35px 25px;
    }
    
    .viewall-category-folder h4 {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .viewall-category-body {
        grid-template-columns: 1fr;
        padding: 25px;
        gap: 20px;
    }
    
    .viewall-category-header h3 {
        font-size: 1.5rem;
    }
    
    .viewall-category-folder {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .viewall-category-body {
        padding: 20px;
    }
    
    .viewall-category-folder {
        padding: 30px 20px;
        min-height: 280px;
    }
    
    .viewall-category-folder i {
        font-size: 3.5rem;
    }
    
    .viewall-category-folder h4 {
        font-size: 1.3rem;
    }
}

/* Gallery Modal - IMAGES WILL FILL WIDTH */
.viewall-gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 999998;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.viewall-gallery-modal.active {
    display: flex !important;
}

.viewall-gallery-content {
    width: 98% !important;
    max-width: 1800px !important;
    height: 90vh;
    background: #ffffff;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

.viewall-gallery-header {
    padding: 20px 30px;
    background: linear-gradient(135deg, #0052cc, #00a3ff);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    flex-shrink: 0;
}

.viewall-gallery-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.viewall-gallery-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.viewall-gallery-back {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.viewall-gallery-back:hover {
    background: white;
    color: #0052cc;
    transform: translateX(-5px);
}

.viewall-gallery-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.viewall-gallery-close:hover {
    background: white;
    color: #0052cc;
    transform: rotate(90deg);
}

/* ===== CRITICAL FIX - GALLERY BODY ===== */
.viewall-gallery-body {
    flex: 1;
    padding: 30px !important;
    overflow-y: auto;
    width: 100% !important;
    background: #f8fafc;
    box-sizing: border-box;
}

/* ===== GRID CONTAINER - FILLS WIDTH ===== */
.viewall-gallery-body > div {
    width: 100% !important;
    margin: 0 auto !important;
}

/* ===== IMAGE GRID ===== */
.viewall-gallery-body .image-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ===== IMAGE ITEMS ===== */
.viewall-gallery-item {
    position: relative;
    width: 100% !important;
    aspect-ratio: 4/3 !important;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin: 0 !important;
}

.viewall-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 82, 204, 0.3);
    border-color: #0052cc;
}

.viewall-gallery-item img,
.viewall-gallery-item video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

/* Play Icon */
.thumbnail-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    z-index: 5;
    border: 2px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

.viewall-gallery-item:hover .thumbnail-play-icon {
    background: #0052cc;
    transform: translate(-50%, -50%) scale(1.15);
}

/* Overlay */
.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    padding: 20px 15px 12px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.viewall-gallery-item:hover .item-overlay {
    transform: translateY(0);
}

.item-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

.item-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Loading States */
.viewall-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: #64748b;
    background: #f8fafc;
    border-radius: 20px;
}

.viewall-loading i {
    font-size: 2.5rem;
    color: #0052cc;
    margin-bottom: 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.viewall-no-files {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px;
    color: #64748b;
    background: #f8fafc;
    border-radius: 30px;
}

.viewall-no-files i {
    font-size: 4rem;
    color: #94a3b8;
    margin-bottom: 20px;
}

.viewall-no-files h4 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 10px;
}

/* Lightbox */
.viewall-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.viewall-lightbox.active {
    display: flex !important;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-media-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-media-wrapper {
    width: 95%;
    max-width: 1400px;
    height: 80vh;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    background: #111;
    margin: 0 auto;
}

.lightbox-media {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000000;
}

.lightbox-close:hover {
    background: #0052cc;
    border-color: transparent;
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000000;
}

.lightbox-nav:hover {
    background: #0052cc;
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
    z-index: 1000000;
}

/* Responsive */
@media (max-width: 1200px) {
    .viewall-gallery-body .image-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .viewall-category-body {
        grid-template-columns: 1fr;
    }
    
    .viewall-gallery-body .image-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    
    .viewall-gallery-body {
        padding: 20px !important;
    }
}

@media (max-width: 480px) {
    .viewall-gallery-body .image-grid {
        grid-template-columns: 1fr !important;
    }
}







/* ============================================
   PRODUCT IMAGE CONTROL - CONTAIN MODE (SHOW FULL IMAGE)
   Westan Power - All images fully visible, you adjust size
   ============================================ */

   /* MOVE UP 
margin-top: -10px;

/* MOVE DOWN 
margin-top: 10px;

/* MOVE LEFT 
margin-left: -10px;

/* MOVE RIGHT 
margin-left: 10px;

/* ===== BASE IMAGE CONTAINER ===== */
.product-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
/* ============================================
   FORCE WHITE BACKGROUND FOR ALL PRODUCTS - BOTH MODES
   ============================================ */
.product-image {
    background: white !important;
}

.product-image img {
    background: white !important;
}

[data-theme="dark"] .product-image {
    background: white !important;
}

[data-theme="dark"] .product-image img {
    background: white !important;
}
/* ===== ALL IMAGES - SHOW ENTIRE IMAGE WITH CONTAIN ===== */
.product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;  /* Shows ENTIRE image, adds background if needed */
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* ============================================
   SIZE CLASSES - USE THESE TO ADJUST
   ============================================ */
.img-size-80 { max-width: 80% !important; max-height: 80% !important; }
.img-size-82 { max-width: 82% !important; max-height: 82% !important; }
.img-size-85 { max-width: 85% !important; max-height: 85% !important; }
.img-size-87 { max-width: 87% !important; max-height: 87% !important; }
.img-size-90 { max-width: 90% !important; max-height: 90% !important; }
.img-size-92 { max-width: 92% !important; max-height: 92% !important; }
.img-size-95 { max-width: 95% !important; max-height: 95% !important; }
.img-size-98 { max-width: 98% !important; max-height: 98% !important; }

/* ===== POSITION CLASSES ===== */
.img-pos-top { object-position: top !important; }
.img-pos-bottom { object-position: bottom !important; }
.img-pos-left { object-position: left !important; }
.img-pos-right { object-position: right !important; }
.img-pos-center { object-position: center !important; }

/* ============================================
   PER-PRODUCT ADJUSTMENTS - ALL EMPTY FOR YOU TO FILL
   Uncomment and adjust each product as needed
   ============================================ */

/* ============================================
   FPV DRONE MOTORS (7 PRODUCTS)
   ============================================ */

/* 2810-1500kv - ADJUST HERE */
.product-card[data-product="2810-1500kv"] img {
    max-width: 400px;
    max-height: 420px;
}


/* 3115-900kv - ADJUST HERE 
.product-card[data-product="3115-900kv"] img {
    max-width: 90%;
    max-height: 90%;
}
*/

/* 4312-380kv - ADJUST HERE */
.product-card[data-product="4312-380kv"] img {
    max-width: 450px;
    max-height: 450px;
    margin-bottom: -50px;
}


/* 4315-510kv - ADJUST HERE */
.product-card[data-product="4315-510kv"] img {
    max-width: 300px;
    max-height: 300px;
    margin-top: -20px;
}


/* 4320-350kv - ADJUST HERE */
.product-card[data-product="4320-350kv"] img {
    max-width: 300px;
    max-height: 300px;
    margin-bottom: -20px;
}


/* 5215A-420kv - ADJUST HERE */
.product-card[data-product="5215A-420kv"] img {
    max-width: 350px;
    max-height: 350px;
}


/* 5315A-420kv - ADJUST HERE */
.product-card[data-product="5315A-420kv"] img {
     max-width: 350px;
    max-height: 350px;
    margin-bottom: -20px;
}


/* ============================================
   AGRICULTURAL MOTORS (1 PRODUCT)
   ============================================ */

/* 5008-300kv - ADJUST HERE 
.product-card[data-product="5008-300kv"] img {
    max-width: 85%;
    max-height: 85%;
}
*/

/* ============================================
   UNDERWATER MOTORS (6 PRODUCTS)
   ============================================ */

/* 3638 - ADJUST HERE */
.product-card[data-product="underwater-3638"] img {
    max-width: 350px;
    max-height: 400px;
    margin-left: -10px;
    
}


/* 5463 - ADJUST HERE */
.product-card[data-product="underwater-5463"] img {
    max-width: 350px;
    max-height: 350px;
    margin-top: -20px;
}


/* 5465 - ADJUST HERE 
.product-card[data-product="underwater-5465"] img {
    max-width: 82%;
    max-height: 82%;
}
*/

/* 6367 - ADJUST HERE */
.product-card[data-product="underwater-6367"] img {
    max-width: 320px;
    max-height: 320px;
    margin-top: -10px;
}


/* 7787 - ADJUST HERE 
.product-card[data-product="underwater-7787"] img {
    max-width: 78%;
    max-height: 78%;
}
*/

/* 7793 - ADJUST HERE 
.product-card[data-product="underwater-7793"] img {
    max-width: 78%;
    max-height: 78%;
}
*/
/* ============================================
   REMOVE WHITE LOGOS FROM UNDERWATER MOTORS
   ============================================ */

/* For ALL underwater motors at once */
.product-card[data-product^="underwater-"] .product-image {
    background: white !important;  /* White background helps blend */
}

.product-card[data-product^="underwater-"] .product-image img {
    mix-blend-mode: darken;  /* Makes white disappear */
}

/* Keep white background in dark mode too */
[data-theme="dark"] .product-card[data-product^="underwater-"] .product-image {
    background: white !important;
}

[data-theme="dark"] .product-card[data-product^="underwater-"] .product-image img {
    mix-blend-mode: darken;
}
/* ============================================
   UNDERWATER SCOOTERS (5 PRODUCTS)
   ============================================ */

/* U1 - ADJUST HERE */
.product-card[data-product="u1-scooter"] img {
    max-width: 400px;
    max-height: 400px;
    margin-top: -30px;
}


/* Manta 2 - ADJUST HERE */
.product-card[data-product="manta2"] img {
    max-width: 400px;
    max-height: 400px;
}


/* Manta - ADJUST HERE 
.product-card[data-product="manta"] img {
    max-width: 95%;
    max-height: 95%;
}
*/

/* Mako - ADJUST HERE 
.product-card[data-product="mako"] img {
    max-width: 95%;
    max-height: 95%;
}
*/

/* RC-01 - ADJUST HERE 
.product-card[data-product="rc01"] img {
    max-width: 92%;
    max-height: 92%;
}
*/

/* ============================================
   THRUSTERS (4 PRODUCTS)
   ============================================ */

/* WY01 - ADJUST HERE 
.product-card[data-product="wy01"] img {
    max-width: 85%;
    max-height: 85%;
}
*/

/* WY01-K - ADJUST HERE 
.product-card[data-product="wy01k"] img {
    max-width: 85%;
    max-height: 85%;
}
*/

/* WY02 - ADJUST HERE */
.product-card[data-product="wy02"] img {
    max-width: 350px;
    max-height: 350px;
    margin-top: -60px
}


/* WY02-K - ADJUST HERE 
.product-card[data-product="wy02k"] img {
    max-width: 85%;
    max-height: 85%;
}
*/

/* ============================================
   BATTERIES (3 PRODUCTS)
   ============================================ */

/* B1 - ADJUST HERE 
.product-card[data-product="b1-battery"] img {
    max-width: 95%;
    max-height: 95%;
}
*/

/* B2 - ADJUST HERE */
.product-card[data-product="b2-battery"] img {
    max-width: 450px;
    max-height: 450px;
}


/* B75 - ADJUST HERE */
.product-card[data-product="b75-battery"] img {
    max-width: 400px;
    max-height: 400px;
}


/* ============================================
   ACCESSORIES (2 PRODUCTS)
   ============================================ */

/* S01 Bracket - ADJUST HERE 
.product-card[data-product="s01-bracket"] img {
    max-width: 98%;
    max-height: 98%;
}
*/

/* S02 Steering - ADJUST HERE 
.product-card[data-product="s02-steering"] img {
    max-width: 98%;
    max-height: 98%;
}
*/

/* ============================================
   HOLOGRAPHIC FANS (15 PRODUCTS)
   ============================================ */

/* WLS-18 - ADJUST HERE */
.product-card[data-product="wls-18"] img {
    max-width: 430px;
    max-height: 430px;
    margin-right: -30px
}


/* WLS-360A - ADJUST HERE */
.product-card[data-product="wls-360a"] img {
    max-width: 280px;
    max-height: 280px;
 
}


/* WLS-20W - ADJUST HERE */
.product-card[data-product="wls-20w"] img {
    max-width: 450px;
    max-height: 450px;
    margin-top: -50px;
    margin-left: -20px
}


/* WLS-30F - ADJUST HERE */
.product-card[data-product="wls-30f"] img {
    max-width: 270px;
    max-height: 270px;
    margin-top: -10px;
}


/* WLS-12K - ADJUST HERE 
.product-card[data-product="wls-12k"] img {
    max-width: 92%;
    max-height: 92%;
}
*/

/* WLS-20K - ADJUST HERE */
.product-card[data-product="wls-20k"] img {
    max-width: 400px;
    max-height: 400px;
}


/* WLS-20A - ADJUST HERE 
.product-card[data-product="wls-20a"] img {
    max-width: 95%;
    max-height: 95%;
}
*/

/* WLS-20B - ADJUST HERE 
.product-card[data-product="wls-20b"] img {
    max-width: 95%;
    max-height: 95%;
}
*/

/* WLS-30B - ADJUST HERE 
.product-card[data-product="wls-30b"] img {
    max-width: 95%;
    max-height: 95%;
}
*/

/* WLU-52 - ADJUST HERE 
.product-card[data-product="wlu-52"] img {
    max-width: 95%;
    max-height: 95%;
}
*/

/* WLU-56 - ADJUST HERE 
.product-card[data-product="wlu-56"] img {
    max-width: 95%;
    max-height: 95%;
}
*/

/* WLU-60 - ADJUST HERE 
.product-card[data-product="wlu-60"] img {
    max-width: 95%;
    max-height: 95%;
}
*/

/* WLU-65 - ADJUST HERE 
.product-card[data-product="wlu-65"] img {
    max-width: 95%;
    max-height: 95%;
}
*/

/* WLS-60×3 Vertical - ADJUST HERE */
.product-card[data-product="wls-60x3-vertical"] img {
   max-width: 270px;
    max-height: 270px;
}


/* WLS-60×3 Cylinder - ADJUST HERE */
.product-card[data-product="wls-60x3-cylinder"] img {
    max-width: 350px;
    max-height: 350px;
    margin-top: -10px;
}


/* ============================================
   DARK MODE ADJUSTMENTS
   ============================================ */
[data-theme="dark"] .product-image {
    background: var(--bg-tertiary);
}



/* ============================================
   RESPONSIVE BASE
   ============================================ */
@media (max-width: 768px) {
    /* All images stay in contain mode */
}

@media (max-width: 480px) {
    /* All images stay in contain mode */
}







/* ========== WESTAN POWER MOBILE - COMPLETE FIXED VERSION ========== */
/* Version: 4.0 - All Issues Resolved */
/* Optimized for screens 768px and below */

@media screen and (max-width: 768px) {

/* ===== RESET & BASE ===== */
* {
    box-sizing: border-box !important;
    -webkit-tap-highlight-color: transparent;
    max-width: 100vw !important;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

body {
    padding-top: 70px;
    background: var(--bg-primary);
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.container {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    margin: 0 auto;
    max-width: 100%;
}

/* ===== HEADER - PERFECT AS YOU SAID ===== */
.navbar .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    padding-left: 12px;
    padding-right: 12px;
    gap: 8px;
}

.menu-toggle {
    order: 1;
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.nav-left {
    order: 2;
    margin-right: auto;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-right {
    order: 3;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.search-toggle,
.language-btn,
.theme-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.1rem;
    margin: 0;
    padding: 0;
}

.nav-right .whatsapp-btn {
    display: none !important;
}

.language-btn span:not(.flag-icon),
.language-btn i.fa-chevron-down {
    display: none !important;
}

.language-btn .flag-icon {
    font-size: 1.3rem;
    margin: 0;
}

/* ===== FIX: DROPDOWN MENUS WORKING ===== */
.nav-center {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: calc(100vh - 70px);
    background: var(--bg-primary);
    box-shadow: 5px 0 25px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    overflow-y: auto;
    z-index: 999;
    padding: 20px 0;
    border-right: 1px solid var(--border-color);
}

.nav-center.active {
    left: 0;
}

.nav-links {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links > li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
}

.nav-links > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    width: 100%;
    cursor: pointer;
}

.nav-links > li > a i {
    pointer-events: none;
}

.dropdown-menu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--bg-secondary);
    width: 100%;
}

.dropdown.active .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    width: 100%;
    border-top: 1px solid var(--border-color);
}

.dropdown-menu li a {
    display: block;
    padding: 14px 24px 14px 40px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    width: 100%;
}

/* ===== HERO - SMALLER LIKE BEFORE ===== */
.hero {
    min-height: 160px;
    height: 160px;
    margin-top: 70px;
}

.hero-content {
    padding: 0 16px;
    text-align: center;
}

.hero-badge {
    font-size: 0.6rem;
    padding: 4px 10px;
    margin-bottom: 5px;
    display: inline-block;
    background: rgba(0,82,204,0.9);
    color: white;
    border-radius: 20px;
}

.hero-title {
    font-size: 1rem !important;
    line-height: 1.3;
    margin-bottom: 4px;
}

.hero-subtitle {
    font-size: 0.65rem;
    margin-bottom: 5px;
}

.slider-controls {
    bottom: 8px;
    gap: 10px;
}

.slider-prev, .slider-next {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
}

/* ===== STATS - SMALLER TEXTS ===== */
.stats-section {
    padding: 10px 0;
}

.stats-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
}

.stat-card {
    flex: 1;
    padding: 8px 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    text-align: center;
}

.stat-number {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.5rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    white-space: nowrap;
}

/* ===== FIX: SEARCH BAR INSIDE SCREEN ===== */
.search-wrapper {
    position: relative;
}

.search-dropdown {
    position: fixed;
    top: 70px;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: calc(100% - 20px);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1000;
}

.search-dropdown input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 16px 16px 0 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
    padding: 8px 0;
}

/* ===== HORIZONTAL SCROLL FOR ALL IMAGES ===== */
/* Factory Images */
.factory-root-grid,
.factory-grid {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 4px 16px 16px 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.factory-root-item,
.factory-item {
    flex: 0 0 200px;
    width: 200px;
    height: 150px;
    scroll-snap-align: center;
    border-radius: 12px;
    overflow: hidden;
}

/* Certificate Images */
.certificate-modal-body {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 20px;
    scroll-snap-type: x mandatory;
}

.certificate-item {
    flex: 0 0 140px;
    width: 140px;
    height: 200px;
    scroll-snap-align: center;
}

/* Product Images in View All */
.viewall-gallery-body .image-grid {
    display: flex !important;
    overflow-x: auto !important;
    gap: 15px !important;
    padding: 10px 16px 20px !important;
    scroll-snap-type: x mandatory !important;
    grid-template-columns: none !important;
}

.viewall-gallery-item {
    flex: 0 0 200px !important;
    width: 200px !important;
    height: 150px !important;
    scroll-snap-align: center !important;
}

/* Products Grid */
.products-grid {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 4px 16px 20px 16px;
    scroll-snap-type: x mandatory;
}

.product-card {
    flex: 0 0 260px;
    width: 260px;
    scroll-snap-align: center;
}

/* View All Categories Modal */
.viewall-category-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
}

/* ===== CLICK ON IMAGE SHOW IN CENTER ===== */
/* Gallery Modal */
.gallery-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.gallery-modal-content {
    width: 95%;
    max-width: 400px;
    height: auto;
    max-height: 80vh;
    border-radius: 20px;
}

.gallery-thumbnails-top {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 10px;
}

.gallery-thumbnail-top {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
}

.gallery-main-equal {
    padding: 10px;
}

.gallery-equal-wrapper {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

/* View All Lightbox */
.viewall-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.lightbox-media-wrapper {
    width: 100%;
    max-width: 350px;
    height: auto;
    max-height: 60vh;
}

/* ===== ACTION BUTTONS - COMPACT ===== */
.action-section {
    padding: 10px 16px 15px;
}

.action-buttons {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
}

.action-btn {
    padding: 12px 6px;
    font-size: 0.7rem;
}

.action-btn i {
    font-size: 0.8rem;
    margin-right: 4px;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.4rem !important;
    margin-bottom: 4px;
}

.section-subtitle {
    font-size: 0.8rem;
    padding: 0 12px;
}

/* ===== PRODUCT INFO TEXT FIX ===== */
.product-info {
    padding: 12px;
}

.product-info h3 {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.product-specs {
    gap: 6px;
}

.spec {
    padding: 4px 0;
}

.spec span:first-child {
    font-size: 0.6rem;
}

.spec span:last-child {
    font-size: 0.7rem;
    word-break: break-word;
}

/* ===== CATEGORY NAVIGATION ===== */
.mobile-category-nav {
    top: 70px;
    padding: 8px 12px;
}

.category-chip {
    padding: 8px 14px;
    font-size: 0.75rem;
}

/* ===== FAQ SECTION ===== */
.faq-question {
    padding: 15px;
}

.faq-question h3 {
    font-size: 0.9rem;
}

.faq-answer {
    font-size: 0.85rem;
}

/* ===== FOOTER ===== */
.footer {
    padding: 30px 16px 15px;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.footer-section p,
.footer-section li a {
    font-size: 0.8rem;
}

.footer-bottom p,
.footer-links a {
    font-size: 0.7rem;
}

/* ===== EXTRA SMALL DEVICES ===== */
@media (max-width: 380px) {
    .hero-title {
        font-size: 0.9rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.6rem;
    }
    
    .stat-number {
        font-size: 0.9rem;
    }
    
    .stat-label {
        font-size: 0.45rem;
    }
    
    .product-card {
        flex: 0 0 220px;
        width: 220px;
    }
    
    .factory-root-item {
        flex: 0 0 160px;
        width: 160px;
        height: 120px;
    }
    
    .category-chip {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
}

}












/* ===== URGENT FIX: MAKE ALL BUTTONS CLICKABLE ===== */
.nav-links > li > a,
.dropdown-toggle,
.dropdown-menu li a,
.menu-toggle,
.search-toggle,
.language-btn,
.theme-btn,
.category-chip,
.product-card,
.view-details,
.action-btn,
.btn-submit,
.faq-question,
.footer-section ul li a,
.floating-whatsapp {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 999 !important;
    position: relative;
}

/* Fix for dropdown menu links */
.dropdown-menu li a {
    pointer-events: auto !important;
    cursor: pointer !important;
    display: block !important;
}

/* Fix for any overlays blocking clicks */
.product-overlay,
.factory-overlay,
.item-overlay {
    pointer-events: none !important;
}

/* Ensure the actual buttons are above overlays */
.view-details {
    pointer-events: auto !important;
    z-index: 10 !important;
}

/* Fix for mobile menu toggle */
.menu-toggle {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Fix for search */
.search-toggle {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Fix for language selector */
.language-btn {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Fix for theme toggle */
.theme-btn {
    pointer-events: auto !important;
    cursor: pointer !important;
}









/* ===== CENTER ICONS IN SOLUTIONS & ADVANTAGES ===== */
@media screen and (max-width: 768px) {
    .solution-item,
    .advantage-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px 20px;
    }
    
    .solution-icon,
    .advantage-icon {
        margin: 0 auto 20px auto !important;
    }
    
    .solution-item h4,
    .advantage-card h4 {
        text-align: center;
        width: 100%;
    }
    
    .solution-item p,
    .advantage-card p {
        text-align: center;
        width: 100%;
    }
}









/* ===== FACTORY STATS - FORCE ONE ROW, NO WRAPPING ===== */
@media screen and (max-width: 768px) {
    .factory-stats {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;  /* CRITICAL: Prevents wrapping */
        justify-content: space-between !important;
        align-items: center !important;
        gap: 5px !important;
        padding: 10px 8px !important;
        margin: 15px 0 !important;
        background: var(--card-bg);
        border-radius: 20px;
        border: 1px solid var(--border-color);
        width: 100%;
        overflow-x: visible !important;  /* Remove scroll */
        box-sizing: border-box;
    }
    
    .factory-stats .stat-item {
        flex: 1 1 0 !important;  /* Equal width for all items */
        min-width: 0 !important;  /* Allows items to shrink */
        max-width: none !important;
        padding: 8px 2px !important;
        /* CHANGE THIS GRADIENT COLOR ↓↓↓ */
        background: linear-gradient(135deg, #0052cc, #24073f);
        border-radius: 12px;
        text-align: center;
        box-shadow: 0 2px 5px rgba(24, 75, 152, 0.2);
        margin: 0 !important;
        white-space: nowrap;
    }
    
    .factory-stats .stat-number {
        font-size: 0.9rem !important;
        font-weight: 800;
        color: white;
        line-height: 1.2;
        margin-bottom: 2px;
        white-space: nowrap;
    }
    
    .factory-stats .stat-label {
        font-size: 0.5rem !important;
        color: white;
        white-space: nowrap;
        font-weight: 500;
        letter-spacing: 0.2px;
        opacity: 0.95;
        text-transform: uppercase;
    }
}

/* Even smaller screens */
@media screen and (max-width: 480px) {
    .factory-stats {
        gap: 3px !important;
        padding: 8px 5px !important;
    }
    
    .factory-stats .stat-item {
        padding: 6px 1px !important;
    }
    
    .factory-stats .stat-number {
        font-size: 0.8rem !important;
    }
    
    .factory-stats .stat-label {
        font-size: 0.45rem !important;
    }
}

/* Absolute minimum screens */
@media screen and (max-width: 360px) {
    .factory-stats .stat-number {
        font-size: 0.7rem !important;
    }
    
    .factory-stats .stat-label {
        font-size: 0.4rem !important;
    }
}







/* ===== DECREASE BANNER TOP PADDING ===== */
@media screen and (max-width: 768px) {
    .hero {
        margin-top: 13px !important;  /* Reduced from 70px */
        min-height: 150px;
        height: 220px;
    }
    
    .hero-content {
        padding-top: 5px !important;
    }
}









/* ===== ACTION BUTTONS - ONE ROW ===== */
@media screen and (max-width: 768px) {
    .action-section {
        padding: 8px 16px 12px;
    }
    
    .action-container {
        max-width: 100%;
    }
    
    .action-buttons {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 10px !important;
        background: transparent;
        padding: 0;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }
    
    .action-btn {
        flex: 1 !important;
        min-width: 0 !important;
        padding: 12px 8px !important;
        font-size: 0.75rem !important;
        white-space: nowrap;
        border-radius: 40px;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: white;
        border: none;
    }
    
    .action-btn i {
        font-size: 0.8rem;
        margin-right: 4px;
    }
    
    .action-btn.btn-primary,
    .action-btn.btn-secondary {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    }
    
    .action-btn span {
        display: inline-block;
    }
    
    /* Hide the toggle container completely */
    .toggle-container {
        display: none !important;
    }
}










/* ===== VIEW ALL FOLDER - 3 SUB FOLDERS HORIZONTAL SCROLL ===== */
@media screen and (max-width: 768px) {
    /* Main folder button */
    .viewall-folder-container {
        margin: 20px 0;
    }
    
    .viewall-main-folder {
        width: 60%;
    }
    
    .viewall-folder-icon {
        padding: 15px 20px;
        background: var(--card-bg);
        border: 2px solid var(--border-color);
        border-radius: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }
    
    .viewall-folder-icon i {
        font-size: 3rem;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
    
    .viewall-folder-icon span {
        font-size: 1rem;
        font-weight: 600;
    }
    
    /* Category Modal - 3 folders horizontal scroll */
    .viewall-category-modal.active {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
    }
    
    .viewall-category-content {
        width: 95%;
        max-width: 400px;
        background: var(--bg-primary);
        border-radius: 30px;
        overflow: hidden;
    }
    
    .viewall-category-header {
        padding: 15px 20px;
    }
    
    .viewall-category-header h3 {
        font-size: 1.2rem;
    }
    
    .viewall-category-body {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        gap: 15px !important;
        padding: 20px !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }
    
    .viewall-category-body::-webkit-scrollbar {
        display: none !important;
    }
    
    /* 3 folder cards - horizontal scroll */
    .viewall-category-folder {
        flex: 0 0 220px !important;
        min-width: 200px !important;
        padding: 25px 15px !important;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 24px;
        scroll-snap-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    
    .viewall-category-folder i {
        font-size: 2.5rem;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
    
    .viewall-category-folder h4 {
        font-size: 1rem;
        font-weight: 700;
    }
    
    .viewall-category-folder p {
        font-size: 0.8rem;
        color: var(--text-secondary);
        margin: 0;
    }
    
    /* ===== FIXED: SUBFOLDER IMAGES DISPLAY - SAME SIZE AS MAIN ===== */
    .viewall-gallery-modal.active {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
    }
    
    .viewall-gallery-content {
        width: 95%;
        height: auto;
        max-width: 380px;  /* Slightly smaller for better mobile fit */
        background: var(--bg-primary);
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    }
    
    .viewall-gallery-header {
        padding: 12px 16px;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    }
    
    .viewall-gallery-header h3 {
        font-size: 1rem;
        color: white;
        margin: 0;
    }
    
    .viewall-gallery-header-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .viewall-gallery-back {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: rgba(255,255,255,0.2);
        border: none;
        color: white;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .viewall-gallery-close {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: rgba(255,255,255,0.2);
        border: none;
        color: white;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Image grid container */
    .viewall-gallery-body {
        padding: 15px !important;
        background: var(--bg-secondary);
        max-height: 60vh;
        overflow-y: auto;
    }
    
    /* Horizontal scroll for images */
    .viewall-gallery-body .image-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        gap: 12px !important;
        padding: 5px 5px 15px !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Image cards - consistent size */
    .viewall-gallery-item {
        flex: 0 0 160px !important;
        width: 200px !important;
        height: 160px !important;
        scroll-snap-align: center;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        border: 2px solid transparent;
        transition: all 0.2s ease;
    }
    
    .viewall-gallery-item:active {
        transform: scale(0.98);
        border-color: var(--primary-color);
    }
    
    .viewall-gallery-item img,
    .viewall-gallery-item video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Video play icon */
    .thumbnail-play-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Loading state */
    .viewall-loading {
        padding: 40px 20px;
        text-align: center;
    }
    
    .viewall-loading i {
        font-size: 2rem;
    }
    
    /* No files state */
    .viewall-no-files {
        padding: 40px 20px;
        text-align: center;
    }
    
    .viewall-no-files i {
        font-size: 3rem;
    }
    
    .viewall-no-files h4 {
        font-size: 1.1rem;
        margin: 10px 0 5px;
    }
    
    .viewall-no-files p {
        font-size: 0.85rem;
    }
    
    /* Scroll hint */
    .scroll-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        margin: 5px 0 0;
        font-size: 0.65rem;
        color: var(--primary-color);
        opacity: 0.7;
    }
    
    .scroll-hint i {
        animation: scrollRight 1.5s infinite;
    }
    
    @keyframes scrollRight {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(5px); }
    }
}










/* ===== FIX SPECS LAYOUT - HORIZONTAL ROW ===== */
@media screen and (max-width: 768px) {
    
    /* Products grid - horizontal scroll */
    .products-grid {
        display: flex !important;
        overflow-x: auto !important;
        gap: 20px !important;
        padding: 10px 16px 20px 16px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }
    
    .products-grid::-webkit-scrollbar {
        display: none !important;
    }
    
    /* Product cards */
    .product-card {
        flex: 0 0 280px !important;
        width: 280px !important;
    }
    
    /* ===== FIX SPECS TO HORIZONTAL LAYOUT ===== */
    .product-specs {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;  /* Force 2 columns */
        gap: 8px 12px !important;
        width: 100% !important;
    }
    
    .spec {
        display: flex !important;
        flex-direction: column !important;
        padding: 4px 0 !important;
        border-bottom: 1px dashed var(--border-color) !important;
    }
    
    .spec span:first-child {
        font-size: 0.7rem !important;
        color: var(--text-tertiary) !important;
        font-weight: 500 !important;
        margin-bottom: 2px !important;
        white-space: nowrap !important;
    }
    
    .spec span:last-child {
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        color: var(--primary-color) !important;
        line-height: 1.3 !important;
        word-break: break-word !important;
    }
}


/* ===== FIX LONG SPECS ON MOBILE ===== */
@media screen and (max-width: 768px) {
    .product-card {
        flex: 0 0 380px !important;
        width: 380px !important;
    }
}
    
    /* Fix Environment and Installation - allow wrap but keep aligned */
    .spec {
        display: flex !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    
    .spec span:first-child {
        min-width: 90px !important;
        flex-shrink: 0 !important;
        font-size: 0.7rem !important;
    }
    
    .spec span:last-child {
        text-align: left !important;
        flex: 1 !important;
        word-break: break-word !important;
        white-space: normal !important;
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
    }
    
    /* RC-01 specific - ensure left alignment */
    .product-card[data-product="rc01"] .spec span:last-child {
        text-align: left !important;
    }


/* ===== HEADER ALWAYS ON TOP - FIX Z-INDEX ===== */
@media screen and (max-width: 768px) {
    
    /* Navbar - highest z-index */
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 999999 !important;  /* Maximum z-index */
        background: var(--bg-primary);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    /* Mobile category nav - below header */
    .mobile-category-nav {
        position: sticky !important;
        top: 70px !important;
        z-index: 99999 !important;  /* High but below header */
    }
    
    /* Ensure no other elements overlap header */
    .hero,
    .stats-section,
    .products-section,
    section {
        position: relative;
        z-index: 1;
    }
    
    /* Mobile menu - below header but above everything else */
    .nav-center {
        z-index: 99999 !important;
        top: 70px !important;
    }
    
    /* Dropdown menus - high z-index */
    .dropdown-menu {
        z-index: 999999 !important;
    }
    
    /* Modals - below header? Actually modals should be above */
    .gallery-modal.active,
    .viewall-category-modal.active,
    .viewall-gallery-modal.active,
    .certificate-modal.active {
        z-index: 999999 !important;  /* Above header */
    }
    
    /* But make sure header is above when modal not active */
    .navbar {
        z-index: 999999 !important;
    }
}








/* ===== STICKY CATEGORY NAV - PROFESSIONAL WITH ACCORDION DROPDOWNS ===== */
@media screen and (max-width: 768px) {
    
    /* Hero section - normal */
    .hero {
        margin-bottom: 0;
        position: relative;
        z-index: 1;
    }
    
    /* Category navigation - STICKY with proper z-index */
    .mobile-category-nav {
        position: sticky !important;
        top: 10px !important;
        z-index: 100 !important;
        background: var(--bg-primary);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 10px 16px;
        border-bottom: 1px solid var(--border-color);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        width: 100%;
    }
    
    /* Mobile menu styling */
    .nav-center {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: calc(100vh - 70px);
        background: var(--bg-primary);
        box-shadow: 5px 0 25px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 9999;
        padding: 20px 0;
        border-right: 1px solid var(--border-color);
    }
    
    .nav-center.active {
        left: 0;
    }
    
    /* Navigation links container */
    .nav-links {
        display: flex;
        flex-direction: column;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    /* Each menu item */
    .nav-links > li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        position: relative;
    }
    
    /* Main menu links (HOME, COMPANY, PRODUCTS, etc.) */
    .nav-links > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-primary);
        text-decoration: none;
        width: 100%;
        cursor: pointer;
        background: var(--bg-primary);
        transition: background 0.2s ease;
    }
    
    .nav-links > li > a:hover {
        background: var(--bg-secondary);
    }
    
    /* Dropdown menu (hidden by default) */
    .dropdown-menu {
        display: none;
        list-style: none;
        padding: 0;
        margin: 0;
        background: var(--bg-secondary);
        width: 100%;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    /* Active dropdown - shown */
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    /* Dropdown menu items */
    .dropdown-menu li {
        width: 100%;
        border-top: 1px solid var(--border-color);
    }
    
    .dropdown-menu li:first-child {
        border-top: none;
    }
    
    .dropdown-menu li a {
        display: block;
        padding: 14px 24px 14px 40px;
        font-size: 0.9rem;
        color: var(--text-secondary);
        text-decoration: none;
        width: 100%;
        transition: all 0.2s ease;
    }
    
    .dropdown-menu li a:hover {
        background: var(--bg-tertiary);
        color: var(--primary-color);
        padding-left: 45px;
    }
    
    /* Arrow icon for dropdowns */
    .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    .dropdown-toggle i {
        transition: transform 0.3s ease;
        font-size: 0.8rem;
        color: var(--text-light);
    }
    
    .dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
    }
    
    /* Ensure dropdown menus appear properly */
    .dropdown-menu {
        z-index: 10000;
    }
    
    /* Fix for category nav not blocking dropdowns */
    .mobile-category-nav {
        pointer-events: auto !important;
    }
    
    /* Ensure body/html allow proper scrolling */
    html, body {
        overflow-x: hidden;
        overflow-y: auto;
        height: 100%;
    }
    
    /* Container shouldn't block */
    .container {
        overflow: visible;
    }
    
    /* First element after nav - push content */
    .stats-section {
        margin-top: 0;
    }
}

/* Gallery modal header buttons */
.gallery-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-modal-header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.gallery-modal-copy {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-modal-copy:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

[data-theme="dark"] .gallery-modal-copy {
    background: var(--bg-tertiary);
    border-color: var(--border-dark);
    color: var(--text-light);
}

[data-theme="dark"] .gallery-modal-copy:hover {
    background: var(--primary-color);
    color: white;
}