/* =============================================
   ABDULRAHMAN SECURITY SYSTEMS - STYLESHEET
   Professional Security Website CSS
   ============================================= */

/* ===== CSS VARIABLES / DESIGN TOKENS ===== */
:root {
    /* Colors - Matching Logo (Blue & Orange/Red) */
    --primary: #1b5bb6;          /* Logo Shield Blue */
    --primary-dark: #0f3c7e;     /* Deep Navy Blue */
    --primary-light: #2563eb;    /* Bright Royal Blue */
    --secondary: #e03e1c;        /* Logo Shield Orange/Red */
    --secondary-light: #f97316;  /* Warm Orange */
    --accent: #1b5bb6;           /* Brand Primary Accent */
    --accent-glow: rgba(27, 91, 182, 0.15);
    --gold: #d97706;             /* Warm Gold */

    /* Light Theme Neutrals */
    --dark: #f8fafc;             /* Light Page Background */
    --dark-2: #ffffff;           /* White Card Background */
    --dark-3: #f1f5f9;           /* Soft Slate Section Background */
    --gray: #64748b;             /* Slate 500 Muted Text */
    --gray-light: #334155;       /* Slate 700 Dark Text */
    --white: #0f172a;            /* Slate 900 Dark Headings Text */
    --off-white: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1b5bb6 0%, #0f3c7e 100%);
    --gradient-accent: linear-gradient(135deg, #1b5bb6 0%, #e03e1c 100%);
    --gradient-dark: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    --gradient-hero: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(241, 245, 249, 0.88) 100%);

    /* Typography */
    --font-ar: 'Tajawal', sans-serif;
    --font-en: 'Roboto', sans-serif;

    /* Spacing */
    --container-max: 1280px;
    --section-pad: 100px 0;

    /* Animations */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 4px 20px rgba(27, 91, 182, 0.15);

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --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;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-ar);
    background-color: var(--dark);
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

body.rtl {
    direction: rtl;
    text-align: right;
}

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

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

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-2); }
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: var(--radius-full);
}

/* ===== CONTAINER ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== SECTION PADDING ===== */
.section-padding {
    padding: var(--section-pad);
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 180, 216, 0.1);
    color: var(--accent);
    border: 1px solid rgba(0, 180, 216, 0.3);
    padding: 6px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.3;
    color: var(--white);
    margin-bottom: 20px;
}

.section-title .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 16px;
    color: var(--gray-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-accent);
    color: var(--white);
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 16px;
    font-family: var(--font-ar);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 180, 216, 0.6);
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff !important;
    color: #0f172a !important;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 16px;
    font-family: var(--font-ar);
    border: 2px solid #ffffff;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.btn-secondary:hover {
    background: #f1f5f9 !important;
    color: #1b5bb6 !important;
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.35);
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--dark);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.preloader-inner {
    text-align: center;
}

.preloader-logo {
    font-size: 60px;
    color: var(--accent);
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}

.preloader-bar {
    width: 200px;
    height: 4px;
    background: var(--dark-3);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0 auto;
}

.preloader-progress {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    animation: preloaderAnim 1.5s ease forwards;
}

@keyframes preloaderAnim {
    from { width: 0; }
    to { width: 100%; }
}

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

/* ===== LANGUAGE TOGGLE ===== */
.lang-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
}

#lang-btn {
    background: rgba(0, 180, 216, 0.15);
    color: var(--accent);
    border: 1px solid rgba(0, 180, 216, 0.4);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    font-family: var(--font-ar);
}

#lang-btn:hover {
    background: var(--accent);
    color: var(--white);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10000;
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(27, 91, 182, 0.12);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 6px 25px rgba(15, 23, 42, 0.08);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.navbar-logo-img {
    height: 44px;
    width: 44px;
    object-fit: contain;
    border-radius: 6px;
}

.logo-main {
    font-size: 15px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
}

.logo-mada {
    color: #1b5bb6;
}

.logo-ruyah {
    color: #e03e1c;
}

.logo-sub {
    font-size: 10px;
    color: #000000;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    color: #334155;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 16px;
    left: 16px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: var(--radius-full);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* Nav CTA */
.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: var(--white);
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 14px;
    font-family: var(--font-ar);
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* Hamburger (Hidden on desktop, shown on mobile ≤768px) */
.hamburger {
    display: none !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(0, 180, 216, 0.12);
    border: 1px solid rgba(0, 180, 216, 0.35);
    color: var(--white);
    font-size: 18px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    box-sizing: border-box;
    transition: var(--transition);
    position: relative;
    z-index: 1001;
}

.hamburger:hover {
    background: rgba(0, 180, 216, 0.25);
    border-color: var(--accent);
}

.hamburger:active {
    transform: scale(0.95);
}

.hamburger.active {
    background: rgba(230, 57, 70, 0.2);
    border-color: rgba(230, 57, 70, 0.5);
}

.hamburger i {
    font-size: 18px;
    color: var(--white);
    transition: var(--transition);
}

.hamburger.active i {
    color: #ff6b6b;
}

/* Header Actions Container */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* EN | AR Pill Button (Visible on Desktop & Mobile) */
.nav-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-full);
    padding: 6px 16px;
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    font-family: var(--font-en);
    flex-shrink: 0;
}

.nav-lang-btn:hover {
    background: rgba(0, 180, 216, 0.2);
    border-color: var(--accent);
}

.nav-lang-btn .sep {
    opacity: 0.4;
    font-weight: 300;
    margin: 0 1px;
}

.nav-lang-btn .lang-badge-en,
.nav-lang-btn .lang-badge-ar {
    opacity: 0.8;
}

/* Highlight active language in button */
html[lang="ar"] .nav-lang-btn .lang-badge-ar {
    color: var(--accent);
    opacity: 1;
    font-weight: 800;
}

html[lang="en"] .nav-lang-btn .lang-badge-en {
    color: var(--accent);
    opacity: 1;
    font-weight: 800;
}

/* Mobile Menu (Full Overlay) */
.mobile-menu {
    position: fixed;
    top: 60px;
    right: 0;
    left: 0;
    bottom: 0;
    height: calc(100vh - 60px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid rgba(27, 91, 182, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    overflow-y: auto;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    max-width: 450px;
    margin: 0 auto;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li {
    position: relative;
}

.mobile-nav-links li a {
    display: block;
    padding: 10px 14px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.03);
    border-right: 3px solid transparent;
    transition: var(--transition);
    text-decoration: none;
}

.mobile-nav-links li a:hover,
.mobile-nav-links li a.active {
    background: rgba(27, 91, 182, 0.1);
    border-right-color: var(--primary);
    color: var(--primary);
    padding-right: 18px;
}

/* Mobile Menu Bottom CTA */
.mobile-menu-bottom {
    margin-top: 20px;
}

.mobile-menu-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #1d5b97, #0077b6);
    color: var(--white) !important;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.35);
    transition: var(--transition);
    text-decoration: none;
}

.mobile-menu-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 119, 182, 0.5);
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transform: scale(1.05);
    transition: transform 6s ease;
}

.hero-bg.loaded {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.82) 0%, rgba(15, 36, 78, 0.82) 60%, rgba(224, 62, 28, 0.35) 100%);
}

/* Animated Particles */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #38bdf8;
    border-radius: 50%;
    animation: floatParticle linear infinite;
    opacity: 0;
}

@keyframes floatParticle {
    0% { transform: translateY(100vh) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 0.5; }
    100% { transform: translateY(-100px) translateX(50px); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 100px 0 40px;
    max-width: 750px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(244, 196, 48, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(244, 196, 48, 0.5);
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    animation: fadeInDown 0.8s ease forwards;
}

.hero-title {
    font-size: clamp(28px, 4.5vw, 54px);
    font-weight: 900;
    line-height: 1.25;
    color: #ffffff !important;
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title .highlight {
    color: #38bdf8;
    background: linear-gradient(135deg, #38bdf8 0%, #fb923c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: clamp(14px, 1.8vw, 17px);
    color: #f1f5f9 !important;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.4s both;
    max-width: 650px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease 0.5s both;
    flex-wrap: wrap;
}

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

.stat-num {
    font-size: 32px;
    font-weight: 900;
    color: #38bdf8 !important;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: #e2e8f0 !important;
    margin-top: 4px;
    text-align: center;
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.25);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
    margin: 0 auto;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: var(--radius-full);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-6px); }
}

/* ===== TICKER ===== */
.ticker-wrapper {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-top: 1px solid rgba(0, 180, 216, 0.3);
    border-bottom: 1px solid rgba(0, 180, 216, 0.3);
    overflow: hidden;
    padding: 14px 0;
    position: relative;
    z-index: 10;
    /* Force LTR so animation runs leftwards smoothly without gaps */
    direction: ltr;
    mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.ticker-track {
    display: flex;
    flex-direction: row;
    gap: 0;
    animation: tickerSlide 25s linear infinite;
    width: max-content;
    will-change: transform;
}

.ticker-wrapper:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-track span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 600;
    margin-left: 45px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--transition);
}

.ticker-track span:hover {
    color: var(--accent);
    transform: scale(1.05);
}

.ticker-track span i {
    color: var(--accent);
    font-size: 16px;
}

@keyframes tickerSlide {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: var(--dark-2);
}

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

.about-image-area {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.about-img-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-img-main:hover img {
    transform: scale(1.05);
}

.about-img-secondary {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--dark-2);
    z-index: 2;
}

.about-img-secondary img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.about-badge-float {
    position: absolute;
    top: 30px;
    left: -20px;
    background: var(--gradient-accent);
    color: var(--white);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-glow);
    z-index: 3;
    animation: float 3s ease-in-out infinite;
}

.about-badge-float i {
    font-size: 28px;
    color: var(--gold);
}

.about-badge-float strong {
    display: block;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.about-badge-float span {
    font-size: 12px;
    opacity: 0.9;
}

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

.about-content {
    padding-bottom: 40px;
}

.about-text {
    color: var(--gray-light);
    line-height: 1.9;
    margin-bottom: 32px;
    font-size: 16px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 36px;
}

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

.feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 180, 216, 0.1);
    border: 1px solid rgba(0, 180, 216, 0.3);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
    font-size: 18px;
}

.about-feature-item strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.about-feature-item p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.5;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    cursor: default;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(27, 91, 182, 0.35);
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.1);
}

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

.service-icon-wrap {
    margin-bottom: 24px;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.15), rgba(10, 36, 99, 0.3));
    border: 1px solid rgba(0, 180, 216, 0.3);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--accent);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gradient-accent);
    color: var(--white);
    transform: rotate(5deg) scale(1.1);
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

.service-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--gray-light);
}

.service-features li i {
    color: var(--accent);
    font-size: 12px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.service-link:hover {
    gap: 12px;
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
    background: var(--dark-2);
}

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

.product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-slow);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(27, 91, 182, 0.35);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.1);
}

.product-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 36, 99, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.product-btn {
    background: var(--gradient-accent);
    color: var(--white);
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 14px;
    transform: translateY(10px);
    transition: var(--transition);
    font-family: var(--font-ar);
}

.product-card:hover .product-btn {
    transform: translateY(0);
}

.product-info {
    padding: 20px;
}

.product-cat {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(0, 180, 216, 0.1);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 10px;
    border: 1px solid rgba(0, 180, 216, 0.2);
}

.product-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-rating {
    color: var(--gold);
    font-size: 14px;
    display: flex;
    gap: 2px;
}

/* ===== WHY US SECTION ===== */
.why-section {
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.why-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(10, 36, 99, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

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

.why-content p {
    color: var(--gray-light);
    line-height: 1.8;
    margin-bottom: 40px;
}

.why-points {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.why-point {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.why-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.15), rgba(10, 36, 99, 0.3));
    border: 1px solid rgba(0, 180, 216, 0.3);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 20px;
    flex-shrink: 0;
    transition: var(--transition);
}

.why-point:hover .why-icon {
    background: var(--gradient-accent);
    color: var(--white);
    border-color: transparent;
    transform: scale(1.1);
}

.why-point h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.why-point p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Why Numbers */
.why-numbers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.why-number-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.why-number-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.why-number-card:hover {
    transform: translateY(-6px);
    border-color: rgba(27, 91, 182, 0.35);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.1);
}

.why-number-card:hover::before {
    transform: scaleX(1);
}

.why-number-card.highlight-card {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    box-shadow: 0 4px 20px rgba(27, 91, 182, 0.08);
}

.why-number-card.highlight-card .why-num {
    color: #1b5bb6 !important;
}

.why-number-card.highlight-card p {
    color: #0f172a !important;
    font-weight: 700;
}

.why-num {
    display: block;
    font-size: 52px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.why-number-card p {
    font-size: 14px;
    color: var(--gray-light);
    margin: 0;
}

/* ===== BRANDS SECTION ===== */
.brands-section {
    background: var(--dark-2);
    overflow: hidden;
}

.brands-track-wrapper {
    overflow: hidden;
    margin-top: 48px;
    /* Force LTR so animation runs LEFT regardless of page direction */
    direction: ltr;
    mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.brands-track {
    display: flex;
    flex-direction: row;
    gap: 0;
    animation: brandsScroll 28s linear infinite;
    width: max-content;
    will-change: transform;
}

/* Pause on hover */
.brands-track-wrapper:hover .brands-track {
    animation-play-state: paused;
}

.brand-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 14px 24px;
    margin-left: 20px;
    white-space: nowrap;
    transition: var(--transition);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.15);
}

.brand-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.brand-item:hover::before {
    opacity: 0.15;
}

.brand-item:hover {
    border-color: #38bdf8;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.25);
}

.brand-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
    border-radius: 6px;
    background: #ffffff;
    padding: 4px 8px;
    transition: var(--transition);
}

.brand-item:hover .brand-logo-img {
    transform: scale(1.08);
}

.brand-item i {
    font-size: 24px;
    color: #38bdf8;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.brand-item:hover i {
    transform: scale(1.2);
}

.brand-item span {
    font-size: 15px;
    font-weight: 700;
    color: #38bdf8 !important;
    position: relative;
    z-index: 1;
}

/* Seamless infinite scroll — must use translateX with negative value (LTR forced) */
@keyframes brandsScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
    background: var(--dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-6px);
    border-color: rgba(27, 91, 182, 0.35);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.1);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 24px;
    font-size: 80px;
    color: rgba(0, 180, 216, 0.15);
    font-family: serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 180, 216, 0.3);
    box-shadow: var(--shadow-md);
}

.testimonial-stars {
    color: var(--gold);
    font-size: 16px;
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.testimonial-card p {
    color: var(--gray-light);
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

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

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.testimonial-author span {
    font-size: 13px;
    color: var(--gray);
}

/* ===== BRANCHES SECTION ===== */
.branches-section {
    background: var(--dark-3);
    position: relative;
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.branch-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.branch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-accent);
    opacity: 0.85;
}

.branch-card:hover {
    transform: translateY(-5px);
    border-color: rgba(27, 91, 182, 0.35);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.1);
}

.branch-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 180, 216, 0.1);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
}

.branch-name {
    font-size: 20px;
    color: var(--white);
    font-weight: 700;
    margin-bottom: 12px;
}

.branch-address {
    color: var(--gray-light);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.branch-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gradient-accent);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.branch-map-btn:hover {
    opacity: 0.9;
    transform: scale(1.03);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: var(--dark-2);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

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

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

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 180, 216, 0.1);
    border: 1px solid rgba(0, 180, 216, 0.3);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 20px;
    flex-shrink: 0;
}

.contact-info-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 6px;
}

.contact-info-item a,
.contact-info-item span {
    font-size: 16px;
    color: var(--white);
    font-weight: 500;
    display: block;
}

.contact-info-item a:hover {
    color: var(--accent);
}

.whatsapp-big-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: var(--white);
    padding: 20px 28px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
    margin-top: 10px;
}

.whatsapp-big-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(37, 211, 102, 0.5);
}

.whatsapp-big-btn i {
    font-size: 36px;
}

.whatsapp-big-btn strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

.whatsapp-big-btn small {
    font-size: 13px;
    opacity: 0.85;
}

/* Contact Form */
.contact-form-wrap {
    background: var(--dark-2);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-light);
    margin-bottom: 10px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    padding: 14px 18px;
    color: #0f172a;
    font-family: var(--font-ar);
    font-size: 15px;
    transition: var(--transition);
    outline: none;
    appearance: auto;
}

.form-group select option {
    background: #ffffff;
    color: #0f172a;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 91, 182, 0.15);
}

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

.submit-btn {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 17px;
}

.form-success {
    text-align: center;
    padding: 40px;
}

.form-success i {
    font-size: 60px;
    color: #25d366;
    margin-bottom: 16px;
    display: block;
}

.form-success p {
    font-size: 18px;
    color: var(--white);
    font-weight: 600;
}

/* ===== FOOTER ===== */
.footer {
    background: #0f172a;
    color: #94a3b8;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo i {
    font-size: 36px;
    color: var(--primary-light);
}

.footer-logo span {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff !important;
}

.footer-about {
    font-size: 14px;
    color: #94a3b8 !important;
    line-height: 1.8;
    margin-bottom: 24px;
}

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

.footer-social a {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 18px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #cbd5e1 !important;
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '›';
    color: #60a5fa;
    font-size: 18px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #60a5fa !important;
    padding-right: 8px;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd5e1;
    font-size: 14px;
}

.footer-contact-list li i {
    color: #60a5fa;
    font-size: 16px;
    width: 20px;
    flex-shrink: 0;
}

.footer-contact-list a {
    color: #cbd5e1;
    transition: var(--transition);
}

.footer-contact-list a:hover {
    color: #60a5fa;
}

/* SEO Keywords - visually hidden but readable by crawlers */
.seo-keywords {
    font-size: 0;
    line-height: 0;
    color: transparent;
    height: 0;
    overflow: hidden;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #94a3b8;
}

/* ===== FLOATING BUTTONS ===== */
.float-whatsapp {
    position: fixed;
    bottom: 90px;
    left: 24px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    transition: var(--transition);
    z-index: 999;
}

.float-whatsapp:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7);
}

.float-tooltip {
    position: absolute;
    right: 70px;
    background: var(--dark-2);
    color: var(--white);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.1);
}

.float-whatsapp:hover .float-tooltip {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1b5bb6, #0f3c7e);
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    box-shadow: 0 8px 25px rgba(27, 91, 182, 0.4);
}

.scroll-to-top i {
    color: #ffffff !important;
}

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

.scroll-to-top:hover {
    background: linear-gradient(135deg, #e03e1c, #f97316);
    color: #ffffff !important;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 30px rgba(224, 62, 28, 0.5);
}

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

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

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

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

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

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

/* ===== RESPONSIVE DESIGN ===== */

/* Large screens (max 1400px) */
@media (max-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop (max 1024px) */
@media (max-width: 1024px) {
    :root { --section-pad: 80px 0; }

    .about-grid,
    .why-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .about-img-secondary {
        display: none;
    }

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

/* Tablet (max 768px) */
/* Tablet & Mobile (max 768px) */
@media (max-width: 768px) {
    :root { --section-pad: 60px 0; }

    /* Hide fixed floating lang toggle on mobile */
    .lang-toggle {
        display: none !important;
    }

    /* Nav */
    .nav-links,
    .nav-cta {
        display: none !important;
    }

    .header-actions {
        gap: 8px;
    }

    .hamburger {
        display: inline-flex !important;
    }

    /* Hero */
    .hero-stats {
        gap: 20px;
    }

    .stat-divider {
        height: 30px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

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

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* About Features */
    .about-features {
        grid-template-columns: 1fr;
    }

    /* Why Numbers */
    .why-numbers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        padding: 24px;
    }
}

/* Mobile (max 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-content {
        padding: 90px 0 30px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 5px 12px;
    }

    .hero-desc {
        font-size: 13px;
        margin-bottom: 16px;
    }

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

    .stat-num {
        font-size: 26px;
    }

    .stat-divider {
        display: none;
    }

    .hero-actions {
        gap: 10px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 14px;
    }

    /* Logo on very small screens */
    .logo-main {
        font-size: 15px;
    }

    .logo-sub {
        font-size: 10px;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

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

    .why-numbers-grid {
        grid-template-columns: 1fr;
    }

    .float-whatsapp {
        bottom: 80px;
        left: 16px;
        width: 52px;
        height: 52px;
    }

    .scroll-to-top {
        bottom: 20px;
        left: 16px;
        width: 40px;
        height: 40px;
    }

    .lang-toggle {
        top: 12px;
        left: 12px;
    }

    .scroll-indicator {
        display: none;
    }
}

/* English mode */
body.ltr {
    direction: ltr;
    text-align: left;
    font-family: var(--font-en);
}

body.ltr .lang-toggle {
    left: auto;
    right: 20px;
}

body.ltr .float-whatsapp {
    left: auto;
    right: 24px;
}

body.ltr .scroll-to-top {
    left: auto;
    right: 24px;
}

body.ltr .float-tooltip {
    right: auto;
    left: 70px;
}

body.ltr .footer-heading::after {
    right: auto;
    left: 0;
}

body.ltr .footer-links a::before {
    content: '‹';
}

body.ltr .ticker-track {
    animation: tickerSlideEN 25s linear infinite;
}

@keyframes tickerSlideEN {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}
