/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* Primary Palette - Deep Teal & Gold */
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #2dd4bf;
    --primary-glow: rgba(13, 148, 136, 0.25);

    /* Accent - Warm Gold */
    --accent: #d4a853;
    --accent-light: #f0d78c;
    --accent-dark: #b8922e;
    --accent-glow: rgba(212, 168, 83, 0.25);

    /* Neutrals */
    --bg: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(255, 255, 255, 0.9);
    --surface: #e2e8f0;
    --surface-light: #cbd5e1;

    /* Text */
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #475569;

    /* Borders */
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-light));
    --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-light));
    --gradient-hero: linear-gradient(160deg, #f8fafc 0%, #ffffff 40%, #f1f5f9 70%, #f8fafc 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 100%);
    --gradient-glow: radial-gradient(circle, var(--primary-glow), transparent 70%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--primary-glow);

    /* Typography */
    --font-en: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-ar: 'Tajawal', 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 100px 8%;
    --container-max: 1200px;

    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-en);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Arabic Mode */
body.ar {
    font-family: var(--font-ar);
    direction: rtl;
    text-align: right;
}

body.ar * {
    font-family: var(--font-ar);
}

/* Reset letter-spacing for Arabic text */
body.ar h1,
body.ar h2,
body.ar h3,
body.ar h4,
body.ar .section-label,
body.ar .hero-badge {
    letter-spacing: 0 !important;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 5%;
    transition: var(--transition);
    background: transparent;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 5%;
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}

.logo-img {
    height: 46px;
    width: auto;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.logo:hover .logo-img {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .en-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.logo-text .ar-text {
    font-size: 0.75rem;
    color: var(--primary-light);
    font-weight: 500;
    line-height: 1.2;
}

body.ar .logo-text .en-text {
    display: none;
}

body.ar .logo-text .ar-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Navigation */
nav ul {
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a {
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    transition: var(--transition);
    position: relative;
}

nav a:hover,
nav a.active {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
}

nav a.active {
    color: var(--primary-light);
    background: var(--primary-glow);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}

.lang-toggle {
    padding: 8px 18px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-ar);
}

.lang-toggle:hover {
    background: var(--primary-glow);
    border-color: var(--primary);
    color: var(--primary-light);
}

body.ar .lang-toggle .lang-label {
    font-family: var(--font-en);
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 5% 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

/* Hero Particles */
.hero-particles {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.15;
    animation: particleFloat 20s infinite ease-in-out;
}

.particle:nth-child(1) {
    width: 4px; height: 4px;
    top: 20%; left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.particle:nth-child(2) {
    width: 6px; height: 6px;
    top: 60%; left: 80%;
    animation-delay: -5s;
    animation-duration: 20s;
    background: var(--accent);
}

.particle:nth-child(3) {
    width: 3px; height: 3px;
    top: 30%; left: 60%;
    animation-delay: -10s;
    animation-duration: 22s;
}

.particle:nth-child(4) {
    width: 5px; height: 5px;
    top: 70%; left: 30%;
    animation-delay: -7s;
    animation-duration: 18s;
    background: var(--accent);
}

.particle:nth-child(5) {
    width: 4px; height: 4px;
    top: 40%; left: 90%;
    animation-delay: -3s;
    animation-duration: 23s;
}

.particle:nth-child(6) {
    width: 3px; height: 3px;
    top: 80%; left: 50%;
    animation-delay: -12s;
    animation-duration: 19s;
    background: var(--accent);
}

@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.15; }
    25% { transform: translate(30px, -50px) scale(1.5); opacity: 0.3; }
    50% { transform: translate(-20px, 30px) scale(0.8); opacity: 0.1; }
    75% { transform: translate(50px, 20px) scale(1.2); opacity: 0.25; }
}

/* Hero Shapes */
.hero-shapes {
    position: absolute;
    inset: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -15%;
    right: -10%;
    animation: shapeMove1 30s infinite ease-in-out;
}

.shape-2 {
    width: 350px;
    height: 350px;
    background: var(--accent);
    bottom: -10%;
    left: -5%;
    animation: shapeMove2 25s infinite ease-in-out;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--primary-light);
    top: 40%;
    left: 50%;
    animation: shapeMove3 20s infinite ease-in-out;
}

@keyframes shapeMove1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-40px, 30px) rotate(120deg); }
    66% { transform: translate(30px, -20px) rotate(240deg); }
}

@keyframes shapeMove2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, -40px) scale(1.1); }
}

@keyframes shapeMove3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 30px); }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 22px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px var(--primary-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-hover);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: var(--primary-glow);
    transform: translateY(-3px);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.88rem;
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 1;
}

.scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-muted);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    opacity: 0.5;
    animation: scrollFade 3s infinite;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-light);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(12px); }
}

@keyframes scrollFade {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.2; }
}

/* ===== SECTIONS COMMON ===== */
section {
    padding: var(--section-padding);
    position: relative;
    overflow-x: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-light);
    padding: 6px 16px;
    background: var(--primary-glow);
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: var(--bg-secondary);
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: var(--gradient-glow);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-content {
    padding: 10px 0;
}

.about-icon-wrapper {
    margin-bottom: 24px;
}

.about-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-glow);
}

.about-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.about-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 14px;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.value-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.value-card:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.value-icon {
    font-size: 1.8rem;
    margin-bottom: 14px;
}

.value-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.value-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.services-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: var(--accent-glow);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.service-card {
    padding: 36px 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.5s ease;
    transform-origin: left;
}

body.ar .service-card::before {
    transform-origin: right;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.service-icon-wrapper {
    width: 64px;
    height: 64px;
    background: var(--primary-glow);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon-wrapper {
    background: var(--gradient-primary);
    transform: scale(1.05);
}

.service-icon {
    font-size: 1.8rem;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.service-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
    background: var(--bg-secondary);
    position: relative;
}

.products-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100px;
    width: 300px;
    height: 300px;
    background: var(--primary-glow);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: default;
}

.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}

.product-visual {
    position: relative;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.08), rgba(212, 168, 83, 0.05));
    overflow: hidden;
}

.product-emoji {
    font-size: 3.5rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.product-card:hover .product-emoji {
    transform: scale(1.2);
}

.product-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--gradient-glow);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition-slow);
}

.product-card:hover .product-glow {
    opacity: 1;
    transform: scale(1.5);
}

.product-info {
    padding: 24px;
}

.product-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.product-info p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== LOCATION SECTION ===== */
.location-section {
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.location-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: stretch;
}

.location-info {
    display: flex;
    align-items: stretch;
}

.location-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    backdrop-filter: blur(10px);
}

.location-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.location-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.location-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.location-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    min-height: 400px;
}

.location-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: var(--bg-secondary);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: 50%;
    width: 300px;
    height: 300px;
    background: var(--accent-glow);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.contact-card {
    padding: 40px 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.contact-link {
    display: block;
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 4px 0;
    transition: var(--transition-fast);
}

a.contact-link:hover {
    color: var(--primary-light);
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 5% 30px;
}

.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.footer-logo .logo-img {
    height: 42px;
    width: auto;
}

.footer-logo-text h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.footer-logo-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-links h4,
.footer-contact-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 6px;
}

body.ar .footer-links a:hover {
    padding-left: 0;
    padding-right: 6px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-contact-item span {
    font-size: 1.1rem;
}

.footer-contact-item a {
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.footer-contact-item a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

body.ar .back-to-top {
    right: auto;
    left: 30px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 35px var(--primary-glow);
}

/* ============================================================ */
/* =================== MEDIA QUERIES ========================== */
/* ============================================================ */

/* ===== TABLETS & SMALL LAPTOPS (≤1024px) ===== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 6%;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .location-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* ===== TABLETS (≤768px) ===== */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }

    header {
        padding: 12px 4%;
    }

    .menu-toggle {
        display: flex;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 30px 5%;
        gap: 8px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border);
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        text-align: center;
    }

    nav ul.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    nav a {
        font-size: 1.05rem;
        padding: 12px 0;
        display: block;
    }

    .hero {
        min-height: 90vh;
        padding: 100px 5% 60px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    body.ar .footer-content {
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-contact-item {
        justify-content: center;
    }

    .footer-links a:hover {
        padding-left: 0;
    }

    body.ar .footer-links a:hover {
        padding-right: 0;
    }

    /* Fix hero section overflow in RTL */
    .hero {
        overflow: hidden;
    }

    .hero-content {
        padding: 0 10px;
    }

    .shape-1 { width: 300px; height: 300px; }
    .shape-2 { width: 200px; height: 200px; }
    .shape-3 { width: 150px; height: 150px; }
}

/* ===== LARGE PHONES (≤600px) ===== */
@media (max-width: 600px) {
    :root {
        --section-padding: 60px 5%;
    }

    header {
        padding: 10px 4%;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .logo-text .en-text {
        font-size: 0.95rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-badge {
        font-size: 0.78rem;
        padding: 6px 16px;
    }

    .hero-description {
        font-size: 0.92rem;
    }

    .section-label {
        font-size: 0.72rem;
    }

    .section-title h2 {
        font-size: 1.7rem;
    }

    .service-card {
        padding: 28px 22px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-visual {
        height: 130px;
    }

    .product-emoji {
        font-size: 2.8rem;
    }

    .location-card {
        padding: 28px;
    }

    .location-map {
        min-height: 300px;
    }

    .location-map iframe {
        min-height: 300px;
    }

    .about-icon {
        width: 60px;
        height: 60px;
        font-size: 1.7rem;
    }

    .about-content h3 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 12px 26px;
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* ===== STANDARD PHONES (≤480px) ===== */
@media (max-width: 480px) {
    html {
        scroll-padding-top: 60px;
    }

    body {
        overflow-x: hidden;
    }

    header {
        padding: 8px 3%;
    }

    .logo-text {
        display: none;
    }

    .hero {
        overflow: hidden;
    }

    .hero-content {
        padding: 0 5px;
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 1.55rem;
        line-height: 1.4;
        word-break: break-word;
    }

    .hero-badge {
        font-size: 0.72rem;
        padding: 5px 14px;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 0.85rem;
        margin-bottom: 28px;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .about-content h3 {
        font-size: 1.35rem;
    }

    .about-content p {
        font-size: 0.9rem;
    }

    .value-card {
        padding: 22px;
    }

    .value-card h4 {
        font-size: 1rem;
    }

    .value-card p {
        font-size: 0.85rem;
    }

    .service-card {
        padding: 24px 18px;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.85rem;
    }

    .service-icon-wrapper {
        width: 54px;
        height: 54px;
    }

    .product-info {
        padding: 18px;
    }

    .product-info h3 {
        font-size: 1rem;
    }

    .product-info p {
        font-size: 0.82rem;
    }

    .contact-card {
        padding: 30px 22px;
    }

    .contact-icon {
        font-size: 2rem;
    }

    .contact-card h3 {
        font-size: 1.1rem;
    }

    .contact-link {
        font-size: 0.88rem;
    }

    footer {
        padding: 40px 4% 20px;
    }

    .footer-content {
        gap: 25px;
        padding-bottom: 30px;
        margin-bottom: 20px;
    }

    .footer-logo-text h3 {
        font-size: 1.05rem;
    }

    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
    }

    body.ar .back-to-top {
        right: auto;
        left: 20px;
    }

    /* Ensure sections don't overflow in RTL */
    section {
        overflow-x: hidden;
    }

    .shape-1 { width: 200px; height: 200px; }
    .shape-2 { width: 150px; height: 150px; }
    .shape-3 { width: 100px; height: 100px; }
}

/* ===== SMALL PHONES (≤375px) ===== */
@media (max-width: 375px) {
    :root {
        --section-padding: 50px 3%;
    }

    header {
        padding: 6px 3%;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .hero-content h1 {
        font-size: 1.35rem;
    }

    .hero-description {
        font-size: 0.8rem;
    }

    .section-title h2 {
        font-size: 1.3rem;
    }

    .about-content h3 {
        font-size: 1.2rem;
    }

    .about-content p {
        font-size: 0.85rem;
    }

    .value-card {
        padding: 18px;
    }

    .service-card {
        padding: 20px 15px;
    }

    .service-icon-wrapper {
        width: 48px;
        height: 48px;
    }

    .service-icon {
        font-size: 1.5rem;
    }

    .product-visual {
        height: 110px;
    }

    .product-emoji {
        font-size: 2.3rem;
    }

    .product-info {
        padding: 15px;
    }

    .location-card {
        padding: 22px;
    }

    .location-card h3 {
        font-size: 1.2rem;
    }

    .contact-card {
        padding: 24px 18px;
    }

    .footer-logo .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .footer-logo-text h3 {
        font-size: 1rem;
    }

    .footer-bottom p {
        font-size: 0.72rem;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 16px;
        right: 16px;
    }

    body.ar .back-to-top {
        right: auto;
        left: 16px;
    }
}
