/* ============================
   Delta Pannel - Premium Website
   Design System & Styles
   ============================ */

/* ---- CSS Variables ---- */
:root {
    /* Brand Colors */
    --primary: #C41E2A;
    --primary-dark: #9B1520;
    --primary-light: #E8353F;
    --primary-glow: rgba(196, 30, 42, 0.3);
    
    /* Dark Theme */
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --bg-glass: rgba(22, 22, 31, 0.85);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;
    
    /* Borders */
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #C41E2A 0%, #9B1520 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #111118 100%);
    --gradient-card: linear-gradient(145deg, rgba(196, 30, 42, 0.05) 0%, rgba(22, 22, 31, 0.8) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(196, 30, 42, 0.2);
    
    /* Typography */
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 120px 0;
    --container-padding: 0 40px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-smooth: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ---- Light Theme ---- */
body.light-mode {
    --bg-primary: #f5f5f8;
    --bg-secondary: #eaeaef;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f0f5;
    --bg-glass: rgba(255, 255, 255, 0.92);

    --text-primary: #1a1a2e;
    --text-secondary: #555566;
    --text-muted: #888899;

    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);

    --gradient-dark: linear-gradient(180deg, #f5f5f8 0%, #eaeaef 100%);
    --gradient-card: linear-gradient(145deg, rgba(196, 30, 42, 0.04) 0%, rgba(255, 255, 255, 0.9) 100%);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(196, 30, 42, 0.1);
}

/* ---- Theme Toggle Button ---- */
.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: rgba(196, 30, 42, 0.15);
    color: var(--primary);
    border-color: rgba(196, 30, 42, 0.3);
}

/* ---- Stat Number Row ---- */
.stat-number-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-ar);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.en, body.tr {
    font-family: var(--font-en);
    direction: ltr;
    text-align: left;
}

body:not(.en):not(.tr) {
    direction: rtl;
    text-align: right;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

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

/* ---- 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: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.loader-icon {
    width: 60px;
    height: auto;
    margin: 0 auto 24px;
    animation: pulse 1.5s ease-in-out infinite;
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    animation: loading 1.5s ease-in-out forwards;
}

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

@keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* ---- Navigation ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 40px;
    width: auto;
    transition: var(--transition-normal);
}

.navbar.scrolled .nav-logo img {
    height: 34px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 10px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-dropdown {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
    font-family: var(--font-en);
    -webkit-tap-highlight-color: transparent;
}

.lang-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.lang-arrow {
    font-size: 0.6rem;
    transition: transform var(--transition-normal);
}

.lang-dropdown.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-icon {
    font-size: 1.1rem;
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-normal);
    min-width: 150px;
    z-index: 1002;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
}

body.en .lang-menu,
body.tr .lang-menu {
    right: auto;
    left: 0;
}

.lang-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: var(--font-en);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}

.lang-option:hover {
    background: rgba(196, 30, 42, 0.08);
    color: var(--text-primary);
}

.lang-option.active {
    background: rgba(196, 30, 42, 0.12);
    color: var(--primary-light);
    font-weight: 600;
}

.lang-option span {
    font-size: 1.2rem;
}

/* ---- Turkish LTR support ---- */
body.tr {
    font-family: var(--font-en);
    direction: ltr;
    text-align: left;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Bottom Action Bar */
.mobile-action-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(17, 17, 24, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    z-index: 998;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}

.mobile-action-bar .action-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 12px;
}

.mobile-action-bar .action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
    border-radius: var(--radius-sm);
    min-width: 60px;
}

.mobile-action-bar .action-item i {
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.mobile-action-bar .action-item:active {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-action-bar .action-item.whatsapp-action {
    color: #25D366;
}

.mobile-action-bar .action-item.whatsapp-action i {
    font-size: 1.4rem;
}

.mobile-action-bar .action-item.call-action {
    color: var(--primary-light);
}

/* ---- Hero Section ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 15, 0.92) 0%,
        rgba(10, 10, 15, 0.75) 40%,
        rgba(10, 10, 15, 0.85) 100%
    );
}

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

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 8s ease-in-out infinite;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 40px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(196, 30, 42, 0.1);
    border: 1px solid rgba(196, 30, 42, 0.2);
    border-radius: 100px;
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.hero-badge i {
    font-size: 0.8rem;
}

.hero-title {
    margin-bottom: 24px;
}

.hero-title-line {
    display: block;
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.hero-title-accent {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 8px;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.7s;
    opacity: 0;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.9s;
    opacity: 0;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1.1s;
    opacity: 0;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1.3s;
    opacity: 0;
}

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

.stat-item > span:first-child,
.stat-item > .stat-number {
    display: inline;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-en);
    line-height: 1;
}

.stat-plus {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-en);
}

.stat-number-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: fadeIn 1s ease forwards;
    animation-delay: 2s;
    opacity: 0;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; height: 50px; }
    50% { opacity: 1; height: 60px; }
}

.hero-scroll-indicator span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

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

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 30, 42, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-accent {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #20BD5A;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ---- Section Styles ---- */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(196, 30, 42, 0.1);
    border: 1px solid rgba(196, 30, 42, 0.15);
    border-radius: 100px;
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ---- Products Section ---- */
/* ---- Brands Section ---- */
.brands-section {
    padding: var(--section-padding);
    background: var(--bg-secondary);
    position: relative;
}

.brands-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    opacity: 0.3;
}

.brands-tier {
    margin-bottom: 60px;
}

.brands-tier:last-child {
    margin-bottom: 0;
}

.tier-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.brands-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.brands-featured {
    grid-template-columns: repeat(2, 1fr);
}

.brand-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-smooth);
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.brand-card:hover {
    transform: translateY(-8px);
    border-color: rgba(196, 30, 42, 0.3);
    box-shadow: var(--shadow-glow);
}

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

.brand-exclusive {
    border-color: rgba(196, 30, 42, 0.15);
    background: var(--gradient-card);
}

.brand-exclusive::before {
    opacity: 0.5;
}

.brand-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
}

body.en .brand-badge, body.tr .brand-badge {
    right: auto;
    left: 16px;
}

.brand-badge-mfg {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.brand-logo {
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0.9);
    transition: filter var(--transition-normal);
}

.brand-card:hover .brand-logo img {
    filter: brightness(1.1);
}

.brand-logo-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-card);
    border-radius: 16px;
    font-size: 1.5rem;
    color: var(--primary);
}

.brand-card h4 {
    font-size: 1.2rem;
    font-weight: 800;
}

.brand-products {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.brand-origin {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-en);
}

.brand-hover-icon {
    position: absolute;
    bottom: 16px;
    left: 16px;
    opacity: 0;
    transform: translateY(8px);
    transition: all var(--transition-normal);
    color: var(--primary);
    font-size: 0.85rem;
}

body.en .brand-hover-icon, body.tr .brand-hover-icon {
    left: auto;
    right: 16px;
}

.brand-card:hover .brand-hover-icon {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Product Categories Section ---- */
.products-section {
    padding: var(--section-padding);
    background: var(--bg-primary);
    position: relative;
}

.products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    opacity: 0.3;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.product-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(196, 30, 42, 0.2);
    box-shadow: var(--shadow-glow);
}

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

.product-icon-wrap {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196, 30, 42, 0.08);
    border-radius: 16px;
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: var(--primary);
    transition: all var(--transition-normal);
}

.product-card:hover .product-icon-wrap {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1);
}

.product-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.product-source {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    font-family: var(--font-en);
    opacity: 0.8;
}

/* ---- Scroll Animations ---- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ---- About Section ---- */
.about-section {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-content .section-tag {
    margin-bottom: 16px;
}

.about-content .section-title {
    text-align: start;
    margin-bottom: 24px;
}

.about-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 16px;
}

.about-features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196, 30, 42, 0.1);
    border: 1px solid rgba(196, 30, 42, 0.15);
    border-radius: var(--radius-md);
    color: var(--primary);
    font-size: 1.2rem;
}

.feature-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.about-visual {
    position: sticky;
    top: 120px;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 32px;
}

.about-image-wrapper img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-experience-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 28px;
    text-align: center;
}

body.en .about-experience-badge, body.tr .about-experience-badge {
    right: auto;
    left: 20px;
}

.exp-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    font-family: var(--font-en);
    line-height: 1;
}

.exp-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.about-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-right: 24px;
}

body.en .about-timeline, body.tr .about-timeline {
    padding-right: 0;
    padding-left: 24px;
}

.about-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: var(--border-color);
    border-radius: 10px;
}

body.en .about-timeline::before, body.tr .about-timeline::before {
    right: auto;
    left: 0;
}

.timeline-item {
    position: relative;
    padding: 16px 20px;
    padding-right: 0;
    border-right: none;
}

body.en .timeline-item, body.tr .timeline-item {
    padding-right: 20px;
    padding-left: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 24px;
    right: -24px;
    width: 10px;
    height: 10px;
    background: var(--bg-card);
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    transform: translateX(50%);
}

body.en .timeline-item::before, body.tr .timeline-item::before {
    right: auto;
    left: -24px;
    transform: translateX(-50%);
}

.timeline-item.active::before {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.timeline-year {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-en);
}

.timeline-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ---- Partners Section ---- */
.partners-section {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.partners-category {
    margin-bottom: 48px;
}

.partners-category:last-child {
    margin-bottom: 0;
}

.partners-category-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.partners-featured {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.partner-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 24px 24px;
    text-align: center;
    transition: all var(--transition-smooth);
    text-decoration: none;
    color: inherit;
    display: block;
}

.partner-card:hover {
    border-color: rgba(196, 30, 42, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

/* Featured partner cards (agencies) */
.partner-featured {
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, var(--bg-card) 100%);
    padding: 48px 24px 24px;
}

.partner-featured:hover {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.15);
}

.partner-featured .partner-icon {
    background: rgba(212, 175, 55, 0.12);
    color: #d4af37;
}

/* Partner badge */
.partner-badge {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.partner-featured .partner-badge {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
}

.partner-badge-mfg {
    background: linear-gradient(135deg, #2d7dd2 0%, #1b5da0 100%) !important;
}

.partner-icon {
    width: 60px;
    height: 60px;
    margin: 8px auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196, 30, 42, 0.1);
    border-radius: var(--radius-md);
    color: var(--primary);
    font-size: 1.5rem;
}

.partner-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    font-family: var(--font-en);
}

.partner-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.partner-origin {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-en);
    opacity: 0.7;
}

/* ---- CTA Section ---- */
.cta-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.95) 0%, rgba(196, 30, 42, 0.2) 100%);
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---- Contact Section ---- */
.contact-section {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.contact-card:hover {
    border-color: rgba(196, 30, 42, 0.2);
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196, 30, 42, 0.1);
    border-radius: var(--radius-md);
    color: var(--primary);
    font-size: 1.1rem;
}

.contact-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-card a,
.contact-card p {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    direction: ltr;
    text-align: left;
}

body:not(.en):not(.tr) .contact-card a,
body:not(.en):not(.tr) .contact-card p {
    text-align: right;
}

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

.contact-social {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.contact-social h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196, 30, 42, 0.1);
    border: 1px solid rgba(196, 30, 42, 0.15);
    border-radius: var(--radius-md);
    color: var(--primary);
    font-size: 1.1rem;
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    padding-top: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-normal);
    outline: none;
}

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(196, 30, 42, 0.1);
}

.form-group label {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-normal);
}

body.en .form-group label, body.tr .form-group label {
    right: auto;
    left: 20px;
}

.form-group textarea ~ label {
    top: 24px;
    transform: none;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: 8px;
    transform: none;
    font-size: 0.7rem;
    color: var(--primary);
}

.form-message {
    text-align: center;
    font-size: 0.9rem;
    padding: 12px;
    border-radius: var(--radius-sm);
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.form-message.error {
    display: block;
    background: rgba(196, 30, 42, 0.1);
    color: var(--primary-light);
    border: 1px solid rgba(196, 30, 42, 0.2);
}

/* Map */
.contact-map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.contact-map iframe {
    display: block;
}

/* ---- Branches Section ---- */
.branches-section {
    margin-top: 60px;
    margin-bottom: 40px;
}

.branches-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
    color: var(--text-primary);
}

.branches-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.branch-region-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.branch-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    transition: all var(--transition-fast);
}

.branch-card:hover {
    border-color: rgba(196, 30, 42, 0.3);
    transform: translateX(4px);
}

body.en .branch-card:hover,
body.tr .branch-card:hover {
    transform: translateX(-4px);
}

.branch-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196, 30, 42, 0.1);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 1rem;
}

.branch-info h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.branch-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.branch-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-family: var(--font-en);
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.branch-phone:hover {
    color: var(--primary);
}

.branch-phone i {
    font-size: 0.7rem;
}

/* ---- Footer ---- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border-color);
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
}

.footer-about p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-about .social-links {
    gap: 10px;
}

.footer-about .social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.footer-about .social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.footer-links-col h4,
.footer-contact h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links-col ul li,
.footer-contact ul li {
    margin-bottom: 10px;
}

.footer-links-col a,
.footer-contact a,
.footer-contact span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.footer-links-col a:hover,
.footer-contact a:hover {
    color: var(--primary);
    padding-right: 8px;
}

body.en .footer-links-col a:hover, body.tr .footer-links-col a:hover,
body.en .footer-contact a:hover, body.tr .footer-contact a:hover {
    padding-right: 0;
    padding-left: 8px;
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact ul li i {
    color: var(--primary);
    font-size: 0.85rem;
    min-width: 16px;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-credit {
    font-size: 0.75rem !important;
    margin-top: 8px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.footer-credit:hover {
    opacity: 1;
}

.footer-credit a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-credit a:hover {
    color: #E8353F;
    text-decoration: underline;
}

/* ---- WhatsApp Float ---- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition-normal);
    animation: whatsappPulse 2s ease-in-out infinite;
    -webkit-tap-highlight-color: transparent;
}

body.en .whatsapp-float, body.tr .whatsapp-float {
    right: auto;
    left: 30px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
}

/* ---- Back to Top ---- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
}

body.en .back-to-top, body.tr .back-to-top {
    left: auto;
    right: 30px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

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

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

/* ---- Responsive Design ---- */
/* ---- Light Mode Overrides ---- */
body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-mode .navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

body.light-mode .hero-overlay {
    background: linear-gradient(
        180deg,
        rgba(245, 245, 248, 0.3) 0%,
        rgba(245, 245, 248, 0.6) 30%,
        rgba(245, 245, 248, 0.85) 60%,
        rgba(245, 245, 248, 0.95) 100%
    ) !important;
}

body.light-mode .hero-badge {
    background: rgba(196, 30, 42, 0.08);
    border-color: rgba(196, 30, 42, 0.15);
}

body.light-mode .products-section,
body.light-mode .brands-section,
body.light-mode .about-section,
body.light-mode .contact-section {
    background: var(--bg-primary);
}

body.light-mode .cta-overlay {
    background: linear-gradient(
        180deg,
        rgba(245, 245, 248, 0.4) 0%,
        rgba(245, 245, 248, 0.9) 100%
    ) !important;
}

body.light-mode .partner-card,
body.light-mode .brand-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

body.light-mode .brand-exclusive {
    background: rgba(196, 30, 42, 0.02);
}

body.light-mode .brand-logo img {
    filter: brightness(1);
}

body.light-mode .product-card {
    background: var(--bg-card);
}

body.light-mode .product-icon-wrap {
    background: rgba(196, 30, 42, 0.06);
}

body.light-mode .contact-card {
    background: var(--bg-card);
}

body.light-mode .branch-card {
    background: var(--bg-card);
}

body.light-mode .branch-icon {
    background: rgba(196, 30, 42, 0.06);
}

body.light-mode .timeline-item::before {
    background: var(--bg-card);
    border-color: var(--border-color);
}

body.light-mode .footer {
    background: #1a1a2e;
    color: #ffffff;
}

body.light-mode .footer .footer-about p,
body.light-mode .footer h4,
body.light-mode .footer a,
body.light-mode .footer span,
body.light-mode .footer li {
    color: #c0c0d0;
}

body.light-mode .footer-bottom p {
    color: #888899;
}

body.light-mode .mobile-action-bar {
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-mode .mobile-action-bar .action-item {
    color: var(--text-secondary);
}

body.light-mode .mobile-action-bar .whatsapp-action {
    color: #25D366;
}

body.light-mode .mobile-action-bar .call-action {
    color: var(--primary);
}

body.light-mode .nav-links {
    background: rgba(255, 255, 255, 0.98) !important;
}

body.light-mode .nav-link {
    color: var(--text-primary) !important;
    border-bottom-color: var(--border-color) !important;
}

body.light-mode .theme-toggle {
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .whatsapp-float {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

body.light-mode .preloader {
    background: #f5f5f8;
}

body.light-mode .lang-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
}

body.light-mode .lang-menu {
    background: var(--bg-card);
    border-color: var(--border-color);
    box-shadow: var(--shadow-md);
}

body.light-mode .section-tag {
    background: rgba(196, 30, 42, 0.06);
    border-color: rgba(196, 30, 42, 0.12);
}

@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
    .footer-contact {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 0;
        --container-padding: 0 24px;
    }

    .nav-container {
        padding: 0 24px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-visual {
        position: static;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
        --container-padding: 0 16px;
    }

    .brands-grid,
    .brands-featured,
    .brands-grid-4 {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .brand-card {
        padding: 24px 16px;
    }

    .nav-container {
        padding: 0 16px;
    }

    /* --- Animated Mobile Menu --- */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: rgba(10, 10, 15, 0.97);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 100px 32px 40px;
        gap: 8px;
        z-index: 999;
        transition: right 0.45s cubic-bezier(0.23, 1, 0.32, 1);
        border-left: 1px solid var(--border-color);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.en .nav-links, body.tr .nav-links {
        right: auto;
        left: -100%;
        border-left: none;
        border-right: 1px solid var(--border-color);
        transition: left 0.45s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .nav-links.active {
        right: 0;
    }

    body.en .nav-links.active, body.tr .nav-links.active {
        left: 0;
    }

    /* Mobile menu backdrop */
    .nav-links::before {
        content: '';
        position: fixed;
        top: 0;
        left: -100vw;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .nav-links.active::before {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 14px 20px;
        border-radius: var(--radius-md);
        min-height: 48px;
        display: flex;
        align-items: center;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-link:active {
        background: rgba(196, 30, 42, 0.1);
    }

    .nav-link.active {
        background: rgba(196, 30, 42, 0.08);
        color: var(--primary-light);
    }

    .nav-link.active::after {
        display: none;
    }

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

    /* --- Hero Mobile --- */
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-content {
        padding: 0 16px;
        padding-top: 10px;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 5px 12px;
        margin-bottom: 16px;
    }

    .hero-title-line {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .hero-title-accent {
        font-size: clamp(1.1rem, 4vw, 1.6rem);
    }

    .hero-title {
        margin-bottom: 14px;
    }

    .hero-description {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 24px;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.95rem;
        min-height: 46px;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .hero-scroll-indicator {
        display: none;
    }

    /* --- Brands Mobile --- */
    .brands-grid,
    .brands-featured {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .brands-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .brand-card {
        padding: 20px 16px;
        gap: 8px;
    }

    .brand-logo {
        width: 90px;
        height: 60px;
    }

    .brand-card h4 {
        font-size: 1rem;
    }

    .brand-products {
        font-size: 0.75rem;
    }

    .brand-badge {
        font-size: 0.6rem;
        padding: 3px 8px;
        top: 10px;
        right: 10px;
    }

    body.en .brand-badge, body.tr .brand-badge {
        right: auto;
        left: 10px;
    }

    .tier-title {
        font-size: 1rem;
    }

    /* --- Products Mobile --- */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-card {
        padding: 24px 20px;
    }

    .product-icon-wrap {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
        margin-bottom: 16px;
    }

    .product-card h3 {
        font-size: 1rem;
    }

    .product-card p {
        font-size: 0.82rem;
    }

    /* --- About Mobile --- */
    .about-text {
        font-size: 0.9rem;
        line-height: 1.8;
    }

    .feature-item {
        padding: 16px;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
    }

    .about-image-wrapper img {
        height: 280px;
    }

    .about-timeline {
        padding-right: 20px;
    }

    body.en .about-timeline, body.tr .about-timeline {
        padding-right: 0;
        padding-left: 20px;
    }

    /* --- Partners Mobile --- */
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .partner-card {
        padding: 24px 16px;
    }

    .partner-card h4 {
        font-size: 0.9rem;
    }

    /* --- CTA Mobile --- */
    .cta-section {
        padding: 60px 0;
    }

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

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

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
        min-height: 52px;
    }

    /* --- Contact Mobile --- */
    .contact-form-wrapper {
        padding: 20px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents iOS zoom */
        padding: 18px 16px;
        padding-top: 26px;
        min-height: 56px;
    }

    .form-group label {
        right: 16px;
    }

    body.en .form-group label, body.tr .form-group label {
        right: auto;
        left: 16px;
    }

    .contact-form .btn {
        min-height: 56px;
        font-size: 1rem;
    }

    .contact-card {
        padding: 18px;
    }

    .contact-card a,
    .contact-card p {
        font-size: 0.85rem;
    }

    .contact-map iframe {
        height: 280px;
    }

    .branches-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .branches-title {
        font-size: 1.2rem;
    }

    /* --- Section Headers Mobile --- */
    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .section-tag {
        font-size: 0.75rem;
        padding: 5px 14px;
    }

    /* --- Footer Mobile --- */
    .footer {
        padding-top: 50px;
        padding-bottom: 80px; /* Space for action bar */
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-container {
        padding: 0 16px;
    }

    .footer-links-col h4,
    .footer-contact h4 {
        font-size: 0.95rem;
        margin-bottom: 14px;
    }

    .footer-bottom {
        padding: 16px 0;
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }

    /* --- Floating Elements Mobile --- */
    .whatsapp-float {
        display: none; /* Hidden - replaced by action bar */
    }

    .back-to-top {
        bottom: 80px; /* Above action bar */
        left: 16px;
        width: 42px;
        height: 42px;
    }

    body.en .back-to-top, body.tr .back-to-top {
        left: auto;
        right: 16px;
    }

    /* Show mobile action bar */
    .mobile-action-bar {
        display: block;
    }

    /* --- Mobile Menu Light Mode Fix --- */
    body.light-mode .nav-links {
        background: rgba(255, 255, 255, 0.97);
    }

    body.light-mode .nav-link:active {
        background: rgba(196, 30, 42, 0.06);
    }

    /* --- Global Mobile Touch Improvements --- */
    a, button {
        -webkit-tap-highlight-color: transparent;
    }

    .btn {
        min-height: 48px;
    }

    /* Smooth scrolling improvement for iOS */
    .nav-links {
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .hero-title-line {
        font-size: 2rem;
    }

    .hero-title-accent {
        font-size: 1.1rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }

    .stat-item {
        min-width: 80px;
    }

    .stat-divider {
        display: none;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    /* Brands - single column on small phones */
    .brands-grid-4 {
        grid-template-columns: 1fr;
    }

    .brand-card {
        padding: 18px 14px;
    }

    .partners-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .partner-card {
        padding: 20px 12px;
    }

    .partner-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .about-grid {
        gap: 40px;
    }

    .about-content .section-title {
        font-size: 1.4rem;
    }

    .contact-grid {
        gap: 24px;
    }
}

@media (max-width: 360px) {
    .hero-title-line {
        font-size: 1.8rem;
    }

    .hero-badge {
        font-size: 0.7rem;
    }

    .hero-description {
        font-size: 0.85rem;
    }

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

    .section-title {
        font-size: 1.3rem;
    }
}

/* ---- Safe area for notched devices ---- */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mobile-action-bar {
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }
}

/* ---- Landscape Mobile ---- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-stats {
        gap: 30px;
    }

    .hero-cta {
        flex-direction: row;
        margin-bottom: 30px;
    }

    .hero-cta .btn {
        width: auto;
    }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-bg-img {
        animation: none;
        transform: scale(1.05);
    }
}

/* LTR specific adjustments */
body.en .btn-icon-rtl, body.tr .btn-icon-rtl { display: none !important; }
body.en .btn-icon-ltr, body.tr .btn-icon-ltr { display: inline !important; }
body:not(.en):not(.tr) .btn-icon-ltr { display: none !important; }
body:not(.en):not(.tr) .btn-icon-rtl { display: inline !important; }
