/* ========== CHINA LUCENT - PROFESSIONAL CSS ========== */
/* Complete version - All issues fixed + Mobile functions + Image controls */

:root {
    /* Core Colors - China Lucent Brand (Professional Purple/Blue/Orange) */
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #eef2ff;
    --secondary-color: #7c3aed;
    --accent-color: #f59e0b;
    
    /* Light Mode Text - HIGH CONTRAST */
    --text-primary: #0f172a;
    --text-secondary: #1e293b;
    --text-tertiary: #334155;
    --text-light: #64748b;
    
    /* 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);
    
    /* Professional Gradients */
    --gradient-primary: linear-gradient(135deg, #4f46e5, #7c3aed, #f59e0b);
    --gradient-secondary: linear-gradient(135deg, #7c3aed, #8b5cf6, #fbbf24);
    --gradient-hero: linear-gradient(135deg, #1e1b4b, #312e81, #4f46e5);
    --gradient-heading: linear-gradient(135deg, #4f46e5, #7c3aed, #f59e0b);
    --gradient-card: linear-gradient(135deg, #4f46e5, #6366f1);
    
    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Font */
    --font-primary: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
    --primary-color: #818cf8;
    --primary-dark: #6366f1;
    --secondary-color: #a78bfa;
    --accent-color: #fbbf24;
    
    --text-primary: #ffffff;
    --text-secondary: #f1f5f9;
    --text-tertiary: #e2e8f0;
    --text-light: #cbd5e1;
    
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --card-bg: #1e293b;
    
    --border-color: #4a5568;
    --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);
    
    --gradient-primary: linear-gradient(135deg, #818cf8, #a78bfa, #fbbf24);
    --gradient-secondary: linear-gradient(135deg, #a78bfa, #c084fc, #f97316);
    --gradient-heading: linear-gradient(135deg, #818cf8, #a78bfa, #fbbf24);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 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);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    background: var(--gradient-heading);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.section-subtitle {
    color: var(--text-tertiary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== LOGO ===== */
.logo-img {
    height: 130px !important;
    width: auto;
    display: block;
    margin-top: -8px;
}

.footer-logo-img {
    height: 120px !important;
    width: auto;
    margin-bottom: 15px;
}

[data-theme="light"] .light-logo {
    display: block !important;
}

[data-theme="light"] .dark-logo {
    display: none !important;
}

[data-theme="dark"] .light-logo {
    display: none !important;
}

[data-theme="dark"] .dark-logo {
    display: block !important;
}

/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
}

/* ===== 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%;
}

.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;
    position: relative;
    padding-right: 20px;
}

.dropdown-toggle::after {
    content: "▼";
    font-size: 10px;
    color: var(--primary-color);
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    font-family: Arial, sans-serif;
}

.dropdown:hover .dropdown-toggle::after {
    transform: translateY(-50%) 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-icon {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* Nav Right */
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Search */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.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-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:hover {
    background: var(--bg-secondary);
}

.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);
}

/* Language Selector */
.language-selector {
    position: relative;
    display: inline-block;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    height: 45px;
    transition: all 0.3s ease;
}

.language-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 9999;
    overflow: hidden;
}

.language-dropdown.show {
    display: block;
    animation: dropdownFadeIn 0.3s ease;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.language-search {
    position: relative;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.language-search input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
}

.language-search i {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.language-list {
    max-height: 350px;
    overflow-y: auto;
    padding: 10px 0;
}

.language-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.language-item:hover {
    background: var(--bg-secondary);
}

.language-flag {
    font-size: 1.3rem;
    width: 30px;
    text-align: center;
}

.language-name {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.language-code {
    color: var(--text-light);
    font-size: 0.75rem;
    background: var(--bg-tertiary);
    padding: 3px 8px;
    border-radius: 4px;
}

/* Theme Toggle */
.theme-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: rotate(15deg);
}

/* WhatsApp Button */
.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-3px);
}

/* Floating WhatsApp */
.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);
}

.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;
    pointer-events: none;
}

.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); }
}

/* ===== HERO SLIDER ===== */
.hero {
    height: 100vh;
    min-height: 600px;
    max-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;
    background-repeat: no-repeat;
    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.75) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.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-primary);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
}

.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);
    color: white;
    font-weight: 800;
}

.hero-title .title-gradient {
    background: linear-gradient(135deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #f97316, #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: white;
    font-weight: 500;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

/* 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-primary);
    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;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.dot.active {
    background: white;
    transform: scale(1.3);
}

/* ===== STATS SECTION ===== */
.stats-section {
    padding: 60px 0;
    background: var(--gradient-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-card {
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: white;
}

.stat-label {
    font-size: 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;
}

.action-container {
    max-width: 900px;
    margin: 0 auto;
}

.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);
}

.action-btn {
    position: relative;
    min-width: 220px;
    padding: 18px 35px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
}

.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);
}

.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 30px;
}

.toggle-pill {
    width: 4px;
    height: 45px;
    background: linear-gradient(to bottom, rgba(79,70,229,0.2), rgba(124,58,237,0.2), rgba(79,70,229,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); }
}

/* ===== HOLOGRAM SHOWCASE ===== */
.hologram-showcase {
    padding: 100px 0;
    background: var(--bg-primary);
}

.hologram-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hologram-content {
    padding-right: 30px;
}

.section-tag {
    margin-bottom: 25px;
}

.tag-line {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.hologram-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.hologram-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.hologram-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.feature-point {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-point i {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-top: 2px;
}

.hologram-stats {
    display: flex;
    gap: 25px;
    margin-top: 40px;
}

.hologram-stats .stat-item {
    flex: 1;
    text-align: center;
    background: var(--bg-secondary);
    padding: 25px 15px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.hologram-stats .stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.hologram-stats .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 5px;
}

.hologram-stats .stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.hologram-media {
    position: relative;
}

.main-image {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
}

.hologram-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.main-image:hover .hologram-img {
    transform: scale(1.05);
}

.tech-tags {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tech-tag {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    color: white;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

.image-previews {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.preview-item {
    width: 80px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.preview-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    margin: 60px 0;
}

.about-text {
    padding-right: 30px;
}

.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: rgba(79, 70, 229, 0.05);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 40px;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.about-highlight p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-weight: 500;
}

.about-text h3 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    background: var(--gradient-heading);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 50px 0;
}

.feature-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 1.8rem;
    color: white;
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== ABOUT IMAGE ===== */
.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
}

.image-container {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

.about-stats-grid {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    border-radius: 15px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    z-index: 2;
}

.image-container:hover .about-stats-grid {
    opacity: 0.3;
    transform: translateY(5px);
}

.image-container:hover img {
    transform: scale(1.08);
}

.stat-box {
    text-align: center;
}

.stat-box .stat-number {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
}

.stat-box .stat-label {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-timeline {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 30px;
    margin-top: 30px;
}

.about-timeline h4 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--text-primary);
    text-align: center;
    background: var(--gradient-heading);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.timeline-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.timeline-item {
    text-align: center;
    padding: 15px;
    background: var(--bg-tertiary);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-3px);
    background: var(--primary-color);
}

.timeline-item:hover .year,
.timeline-item:hover .desc {
    color: white;
}

.timeline-item .year {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.timeline-item .desc {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== WHY CHOOSE US ===== */
.why-choose-us {
    margin: 100px 0 60px;
}

.why-choose-us h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-primary);
    background: var(--gradient-heading);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.reason-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.reason-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.reason-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.reason-icon i {
    font-size: 2.5rem;
    color: white;
}

.reason-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.reason-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== PRODUCTS SECTION - FIXED IMAGES ===== */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 12px 28px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.category-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-tab.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

/* FIXED: Product Media - White background for images */
.product-media {
    position: relative;
    aspect-ratio: 1;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
    background: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    min-height: 200px;  /* ADD THIS LINE */
}

[data-theme="dark"] .product-media {
    background: white !important;
}

.product-media img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.product-card:hover .product-media img {
    transform: scale(1.05);
}

.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;
    border-radius: 15px;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay-btn {
    padding: 12px 25px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.product-card:hover .product-overlay-btn {
    transform: translateY(0);
}

.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    text-align: center;
}

.product-specs {
    list-style: none;
    margin-top: 15px;
}

.product-specs li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.product-specs li:last-child {
    border-bottom: none;
}

.product-specs li span:first-child {
    color: var(--text-tertiary);
    font-weight: 500;
}

.product-specs li span:last-child {
    font-weight: 600;
    color: var(--primary-color);
}

.category-label {
    font-size: 1.8rem;
    margin: 50px 0 30px;
    color: var(--text-primary);
    position: relative;
    padding-left: 20px;
    background: var(--gradient-heading);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.category-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 30px;
    background: var(--gradient-primary);
    border-radius: 5px;
}

/* ===== FACTORY SECTION ===== */
.factory-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.factory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 60px 0;
}

.factory-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    aspect-ratio: 4/3;
    background: var(--bg-tertiary);
}

.factory-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.factory-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.factory-item:hover img {
    transform: scale(1.1);
}

.factory-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 80px;
}

.factory-stats .stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.factory-stats .stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.factory-stats .stat-card i {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 15px;
}

.factory-stats .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.factory-stats .stat-label {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== CERTIFICATION SECTION ===== */
.certification-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.certificate-folder {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.folder-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px 60px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-sm);
}

.folder-icon i {
    font-size: 4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.3s ease;
}

.folder-icon span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.folder-icon:hover {
    transform: translateY(-10px);
    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: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: var(--bg-secondary);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.certificate-modal-header {
    padding: 20px 30px;
    background: var(--bg-tertiary);
    border-bottom: 1px 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;
}

.certificate-modal-header h3 i {
    color: var(--primary-color);
}

.certificate-modal-close {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    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);
    border-color: transparent;
}

.certificate-modal-body {
    padding: 30px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* Wooden Frame Certificates */
.certificate-item {
    position: relative;
    border-radius: 12px;
    overflow: visible;
    cursor: pointer;
    aspect-ratio: 1/1.4;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    padding: 18px 15px 25px 15px;
    background: #8B5A2B;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3), inset 0 -3px 8px rgba(0, 0, 0, 0.3), inset 0 3px 8px rgba(255, 215, 140, 0.5);
}

.certificate-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(45deg, rgba(110, 60, 20, 0.25) 0px, rgba(110, 60, 20, 0.25) 2px, rgba(160, 100, 40, 0.15) 2px, rgba(160, 100, 40, 0.15) 8px), radial-gradient(circle at 30% 30%, rgba(210, 180, 140, 0.3) 0%, transparent 60%);
    border-radius: 8px;
    pointer-events: none;
    z-index: 1;
}

.certificate-item::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 8px;
    right: 8px;
    bottom: 10px;
    background: #f5f0e0;
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px rgba(210, 180, 140, 0.6);
    z-index: 2;
}

.certificate-item img {
    position: relative;
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    object-fit: cover;
    border-radius: 4px;
    margin: 3px;
    z-index: 3;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease;
}

.frame-corner {
    position: absolute;
    width: 25px;
    height: 25px;
    border: 3px solid #c69c6d;
    z-index: 5;
    pointer-events: none;
}

.corner-tl { top: 5px; left: 3px; border-right: none; border-bottom: none; }
.corner-tr { top: 5px; right: 3px; border-left: none; border-bottom: none; }
.corner-bl { bottom: 5px; left: 3px; border-right: none; border-top: none; }
.corner-br { bottom: 5px; right: 3px; border-left: none; border-top: none; }

.certificate-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 35px rgba(0, 0, 0, 0.4), inset 0 -3px 8px rgba(0, 0, 0, 0.3), inset 0 3px 12px rgba(255, 215, 140, 0.7);
}

.certificate-item:hover img {
    transform: scale(1.05);
}

.certificate-item-overlay {
    position: absolute;
    bottom: 18px;
    left: 18px;
    right: 18px;
    background: rgba(100, 60, 20, 0.95);
    backdrop-filter: blur(2px);
    padding: 15px 10px;
    color: #f5e6d3;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    z-index: 10;
    border-radius: 8px;
    border: 1px solid #d4a373;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.certificate-item:hover .certificate-item-overlay {
    transform: translateY(0);
}

.certificate-item-title {
    font-weight: 700;
    font-size: 1rem;
    color: #ffdead;
    margin-bottom: 5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ===== 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, #4f46e5, #7c3aed);
    color: white;
}

.contact-brand h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
}

.contact-brand .tagline,
.contact-brand .description {
    color: white;
    opacity: 0.95;
}

.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 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;
}

.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 {
    margin-top: 30px;
}

.contact-social h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: white;
}

.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.tiktok:hover { background: #000000; color: white; }
.social-link.facebook:hover { background: #1877F2; color: white; }
.social-link.instagram:hover { background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D); color: white; }

.contact-form-container {
    padding: 50px;
    background: var(--bg-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn-submit {
    padding: 18px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-tertiary);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px 25px;
    display: none;
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    background: var(--gradient-heading);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-description {
    margin: 20px 0;
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-certifications {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.footer-contact i {
    color: var(--primary-color);
    width: 20px;
}

.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-legal {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.legal-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--primary-color);
}

.back-to-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-box.center {
    width: 90%;
    max-width: 500px;
    text-align: center;
    background: var(--bg-secondary);
    border-radius: 25px;
    padding: 40px;
    position: relative;
}

.qr-container {
    margin-bottom: 30px;
}

.qr-container img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 15px;
}

.copy-btn-large {
    padding: 15px 40px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.copy-btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.success-modal-content {
    width: 90%;
    max-width: 400px;
    text-align: center;
    padding: 50px 40px;
}

.success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 20px;
}

.btn-success {
    padding: 15px 40px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* ===== 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: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gallery-modal.active {
    display: flex;
}

.gallery-modal-content {
    width: 95%;
    max-width: 1400px;
    height: 90vh;
    background: var(--bg-primary);
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.gallery-modal-header {
    padding: 20px 30px;
    background: var(--gradient-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.gallery-modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.gallery-modal-close {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-modal-close:hover {
    background: white;
    color: var(--primary-color);
    transform: rotate(90deg);
}

.gallery-modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gallery-thumbnails-top {
    display: flex;
    gap: 12px;
    padding: 15px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    flex-shrink: 0;
    min-height: 100px;
}

.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);
}

.gallery-thumbnail-top img,
.gallery-thumbnail-top video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    pointer-events: none;
}

.gallery-main-equal {
    flex: 1;
    position: relative;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    overflow: hidden;
}

.gallery-media-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-equal-wrapper {
    width: 100%;
    height: 100%;
    max-width: 900px;
    max-height: 600px;
    aspect-ratio: 4/3;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: #000;
}

.gallery-equal-media {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-nav-btn:hover {
    background: var(--primary-color);
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 30px;
}

.gallery-next {
    right: 30px;
}

.gallery-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10;
}

.gallery-loading {
    text-align: center;
    color: var(--text-secondary);
}

.gallery-loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.no-media-message {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px;
}

.no-media-message i {
    font-size: 4rem;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

/* ===== WECHAT MODAL ===== */
.wechat-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.wechat-modal-content {
    width: 90%;
    max-width: 400px;
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    animation: wechatFadeIn 0.3s ease;
}

.wechat-modal-header {
    padding: 20px;
    background: var(--gradient-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wechat-modal-header h3 {
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wechat-modal-close {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.wechat-modal-body {
    padding: 30px;
    text-align: center;
}

.qr-code-container {
    margin-bottom: 20px;
}

.qr-code-container img {
    width: 200px;
    height: 200px;
    border-radius: 15px;
}

.wechat-id-text {
    margin: 15px 0;
    font-size: 1rem;
}

.wechat-copy-btn {
    padding: 12px 25px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@keyframes wechatFadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 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;
}

.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;
}

[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;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 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(79,70,229,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(79,70,229,0.3); transform: scale(1.02); }
}

@keyframes sectionPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; background: rgba(79,70,229,0.05); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* ===== 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;
}

/* ===== 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);
}

/* ===== VIEW ALL GALLERY - CATEGORY MODAL ===== */
.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);
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .viewall-category-content {
    background: var(--bg-dark);
    border-color: var(--border-dark);
}

.viewall-category-header {
    padding: 25px 35px;
    background: var(--gradient-primary);
    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;
}

.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;
}

.viewall-category-close:hover {
    background: white;
    color: var(--primary-color);
    transform: rotate(90deg);
}

.viewall-category-body {
    padding: 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    background: var(--bg-secondary);
}

[data-theme="dark"] .viewall-category-body {
    background: var(--bg-dark);
}

.viewall-category-folder {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    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);
    border-color: var(--border-dark);
}

.viewall-category-folder i {
    font-size: 4.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s ease;
}

.viewall-category-folder:hover i {
    transform: scale(1.15) rotate(5deg);
}

.viewall-category-folder h4 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-primary);
}

.viewall-category-folder p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    max-width: 280px;
}

.viewall-category-folder:hover {
    transform: translateY(-15px);
    border-color: var(--primary-color);
    box-shadow: 0 30px 50px rgba(79, 70, 229, 0.25);
}

/* ===== VIEW ALL GALLERY - GALLERY MODAL ===== */
.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%;
    max-width: 1800px;
    height: 90vh;
    background: var(--bg-primary);
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.viewall-gallery-header {
    padding: 20px 30px;
    background: var(--gradient-primary);
    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: var(--primary-color);
    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: var(--primary-color);
    transform: rotate(90deg);
}

.viewall-gallery-body {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: var(--bg-secondary);
}

.viewall-gallery-body .image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    width: 100%;
}

.viewall-gallery-item {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.viewall-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.3);
    border-color: var(--primary-color);
}

.viewall-gallery-item img,
.viewall-gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.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;
}

.viewall-loading {
    text-align: center;
    padding: 60px;
    color: var(--text-secondary);
}

.viewall-loading i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    animation: spin 1s linear infinite;
}

.viewall-no-files {
    text-align: center;
    padding: 80px;
    color: var(--text-secondary);
}

.viewall-no-files i {
    font-size: 4rem;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

/* ===== 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-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;
}

.lightbox-media {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.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: var(--primary-color);
    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: var(--primary-color);
    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;
}

/* ============================================
   PRODUCT IMAGE SIZE ADJUSTMENT CLASSES
   ============================================ */
.product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.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; }

.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; }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .factory-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .reasons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    .viewall-gallery-body .image-grid {
        grid-template-columns: repeat(3, 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: 0 20px 30px var(--shadow-color);
        border-bottom: 1px solid var(--border-color);
        z-index: 1000;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .nav-center.active {
        display: block;
    }
    
    .menu-icon {
        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;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .hologram-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .factory-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .certificate-modal-body {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .viewall-category-body {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 500px;
        margin-top: 70px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .factory-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .reasons-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-items {
        grid-template-columns: repeat(2, 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;
    }
    
    .action-buttons {
        flex-direction: column;
        padding: 20px;
        border-radius: 30px;
    }
    
    .toggle-container {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .legal-links {
        justify-content: center;
    }
    
    .viewall-category-body {
        grid-template-columns: 1fr;
    }
    
    .viewall-gallery-body .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 400px;
        margin-top: 60px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .factory-grid {
        grid-template-columns: 1fr;
    }
    
    .factory-stats {
        grid-template-columns: 1fr;
    }
    
    .timeline-items {
        grid-template-columns: 1fr;
    }
    
    .certificate-modal-body {
        grid-template-columns: 1fr;
    }
    
    .logo-img {
        height: 45px;
    }
    
    .footer-logo-img {
        height: 40px;
    }
    
    .floating-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
        bottom: 15px;
        left: 15px;
    }
    
    .contact-info,
    .contact-form-container {
        padding: 25px 20px;
    }
    
    .viewall-gallery-body .image-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 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;
}

@media (max-width: 768px) {
    .mobile-category-nav {
        display: block;
        top: 70px;
    }
}

.category-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 5px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.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;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
}

.category-chip.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* ===== FIX: MENU ICON SHOULD NOT SPIN ===== */
.menu-icon i,
.menu-icon i.fa-times,
.menu-icon i.fa-bars {
    transition: none !important;
    transform: none !important;
}

.menu-icon:hover i {
    transform: none !important;
    transition: none !important;
}

/* Ensure only gallery close button spins */
.gallery-modal-close:hover {
    transform: rotate(90deg);
}

/* Menu icon close button should NOT spin */
.menu-icon i.fa-times:hover,
.menu-icon i.fa-bars:hover {
    transform: none !important;
    transition: none !important;
}











/* ========== CHINA LUCENT MOBILE - COMPLETE FIXED VERSION ========== */

@media screen and (max-width: 768px) {

/* ===== RESET ===== */
* {
    box-sizing: border-box !important;
    max-width: 100vw !important;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    padding-top: 70px;
    font-size: 14px;
}

.container {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
}

/* ===== HEADER ===== */
.navbar .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    padding-left: 12px;
    padding-right: 12px;
    gap: 8px;
}

.menu-icon {
    order: 1;
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1.5px solid var(--border-color);
    margin: 0;
    padding: 0;
}

.logo {
    order: 2;
    margin-right: auto;
}

.logo-img {
    height: 40px !important;
    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);
    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;
}

/* ===== MOBILE MENU ===== */
.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;
    display: block !important;
}

.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%;
}

.dropdown-toggle i {
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
}

.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 a {
    display: block;
    padding: 14px 24px 14px 40px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
}

/* ===== STICKY CATEGORY NAV - FIXED AT TOP ===== */
.mobile-category-nav {
    position: sticky !important;
    top: 70px !important;
    z-index: 1000 !important;
    background: var(--bg-primary);
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    margin: 0 !important;
    width: 100%;
}

.mobile-category-nav .category-tabs {
    display: flex !important;
    overflow-x: auto !important;
    gap: 10px !important;
    padding: 0 !important;
    -webkit-overflow-scrolling: touch !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    scrollbar-width: none;
}

.mobile-category-nav .category-tabs::-webkit-scrollbar {
    display: none;
}

.mobile-category-nav .category-tab {
    white-space: nowrap;
    padding: 8px 16px;
    font-size: 0.75rem;
    flex-shrink: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-primary);
}

.mobile-category-nav .category-tab.active {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-color: transparent;
    color: white;
}

/* Hide original category tabs */
main .category-tabs {
    display: none !important;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 160px;
    height: 200px;
    margin-top: 0;
}

.hero-content {
    padding: 0 16px;
    text-align: center;
}

.hero-badge {
    font-size: 0.6rem;
    padding: 4px 10px;
}

.hero-title {
    font-size: 1rem !important;
}

.hero-subtitle {
    font-size: 0.65rem;
}

.slider-controls {
    bottom: 8px;
    gap: 10px;
}

.slider-prev, .slider-next {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
}

/* ===== STATS - ONE ROW ===== */
.stats-section {
    padding: 15px 0;
}

.stats-grid {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    padding: 0 12px !important;
}

.stat-card {
    flex: 1 !important;
    padding: 8px 4px !important;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 12px;
    text-align: center;
}

.stat-number {
    font-size: 1rem !important;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.5rem !important;
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
}

/* ===== FACTORY STATS ===== */
.factory-stats {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    padding: 10px 8px !important;
}

.factory-stats .stat-card {
    flex: 1 !important;
    padding: 8px 2px !important;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.factory-stats .stat-number {
    font-size: 0.85rem !important;
    color: white;
}

.factory-stats .stat-label {
    font-size: 0.45rem !important;
    color: white;
}

/* ===== PRODUCTS - HORIZONTAL SCROLL ===== */
.product-grid {
    display: flex !important;
    overflow-x: auto !important;
    gap: 16px !important;
    padding: 4px 16px 20px 16px !important;
    scroll-snap-type: x mandatory !important;
    grid-template-columns: none !important;
}

.product-card {
    flex: 0 0 280px !important;
    width: 280px !important;
    scroll-snap-align: center;
}

.product-specs {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px 12px !important;
}

.product-specs li {
    display: flex !important;
    flex-direction: column !important;
}

.product-specs li span:first-child {
    font-size: 0.65rem !important;
}

.product-specs li span:last-child {
    font-size: 0.75rem !important;
    font-weight: 700;
    color: var(--primary-color);
}

/* ===== FACTORY IMAGES ===== */
.factory-grid {
    display: flex !important;
    overflow-x: auto !important;
    gap: 12px !important;
    padding: 4px 16px 16px 16px !important;
    scroll-snap-type: x mandatory !important;
    grid-template-columns: none !important;
}

.factory-item {
    flex: 0 0 200px !important;
    width: 200px !important;
    height: 150px !important;
    scroll-snap-align: center;
    border-radius: 12px;
    overflow: hidden;
}

/* ===== CERTIFICATES ===== */
.certificate-modal-body {
    display: flex !important;
    overflow-x: auto !important;
    gap: 15px !important;
    padding: 20px !important;
    scroll-snap-type: x mandatory !important;
    grid-template-columns: none !important;
}

.certificate-item {
    flex: 0 0 140px !important;
    width: 140px !important;
    scroll-snap-align: center;
}

/* ===== ACTION BUTTONS ===== */
.action-section {
    padding: 15px 16px !important;
}

.action-buttons {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    padding: 0 !important;
    background: transparent !important;
}

.action-btn {
    flex: 1 !important;
    padding: 12px 8px !important;
    font-size: 0.75rem !important;
    white-space: nowrap;
    border-radius: 40px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    text-align: center;
}

.toggle-container {
    display: none !important;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.4rem !important;
}

.section-subtitle {
    font-size: 0.8rem;
    padding: 0 12px;
}

/* ===== FEATURES GRID (VISION SECTION) ===== */
.features-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
}

.feature-item {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 25px 20px !important;
}

.feature-icon {
    margin: 0 auto 20px auto !important;
}

/* ===== FOOTER LEFT ALIGN ===== */
.footer-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
}

.footer-section {
    text-align: left !important;
    width: 100%;
}

.footer-section h4 {
    text-align: left !important;
}

.footer-contact p {
    justify-content: flex-start !important;
}

.footer-bottom {
    flex-direction: column;
    text-align: left !important;
    align-items: flex-start !important;
}

.legal-links {
    justify-content: flex-start !important;
}

/* ===== HIDE SCROLLBARS ===== */
.product-grid::-webkit-scrollbar,
.factory-grid::-webkit-scrollbar,
.mobile-category-nav .category-tabs::-webkit-scrollbar {
    display: none;
}

/* ===== BUTTONS CLICKABLE ===== */
.menu-icon, .search-toggle, .language-btn, .theme-btn,
.category-tab, .product-card, .faq-question, .back-to-top,
.floating-whatsapp, .action-btn, .btn-submit,
.dropdown-toggle, .dropdown-menu li a, .nav-links > li > a {
    cursor: pointer !important;
    pointer-events: auto !important;
}

}

/* Extra small devices */
@media screen and (max-width: 480px) {
    .product-card {
        flex: 0 0 240px !important;
        width: 240px !important;
    }
    .factory-item {
        flex: 0 0 160px !important;
        width: 160px !important;
        height: 120px !important;
    }
}
/* ===== FORCE FIX FOR STICKY CATEGORY NAV ===== */
@media screen and (max-width: 768px) {
    .mobile-category-nav {
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
        background: var(--bg-primary) !important;
        padding: 10px 16px !important;
        border-bottom: 1px solid var(--border-color) !important;
        border-top: 1px solid var(--border-color) !important;
        margin: 0 !important;
        width: 100% !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
    }
    
    /* Add padding to the next element so content doesn't hide under fixed nav */
    .action-section {
        margin-top: 60px !important;
    }
}