/* ===================================================================
   MadaClick - Premium Landing Page & Multi-Page Stylesheet
   Modern Tech Design with Seamless Dark & Light Mode + RTL/LTR Engine
   =================================================================== */

:root {
    /* Brand Accent Colors */
    --primary: #2A73E8;
    --primary-hover: #1c5ecc;
    --primary-dark: #0E43AF;
    --primary-glow: rgba(42, 115, 232, 0.35);
    
    --accent-cyan: #00d084;
    --accent-teal: #38bdf8;
    --accent-purple: #7918F2;
    --accent-pink: #f43f5e;
    --accent-amber: #f59e0b;

    --font-ar: 'Cairo', system-ui, -apple-system, sans-serif;
    --font-en: 'Manrope', system-ui, -apple-system, sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================= THEME: DARK MODE (DEFAULT) ================= */
[data-theme="dark"] {
    --bg-dark: #070a13;
    --bg-darker: #04060b;
    --bg-surface: #0a0f1d;
    --bg-card: rgba(15, 23, 42, 0.72);
    --bg-card-hover: rgba(26, 36, 61, 0.85);
    --bg-input: rgba(11, 17, 33, 0.85);

    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(42, 115, 232, 0.45);
    --border-glow: rgba(56, 189, 248, 0.5);

    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 25px rgba(42, 115, 232, 0.22);
    --glow-opacity: 0.45;
    --header-bg: rgba(7, 10, 19, 0.85);
    --announcement-bg: linear-gradient(90deg, #091329 0%, #112044 50%, #091329 100%);
    --editor-bg: #090e1a;
    --editor-header: #0d1527;
}

/* ================= THEME: LIGHT MODE ================= */
[data-theme="light"] {
    --bg-dark: #f8fafc;
    --bg-darker: #f1f5f9;
    --bg-surface: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 1);
    --bg-input: #ffffff;

    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(42, 115, 232, 0.4);
    --border-glow: rgba(42, 115, 232, 0.3);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 25px rgba(42, 115, 232, 0.15);
    --glow-opacity: 0.2;
    --header-bg: rgba(255, 255, 255, 0.9);
    --announcement-bg: linear-gradient(90deg, #e0e7ff 0%, #ede9fe 50%, #e0e7ff 100%);
    --editor-bg: #1e293b;
    --editor-header: #0f172a;
}

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

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-ar);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    transition: background-color 0.35s ease, color 0.35s ease;
}

/* Subtle interactive circuit backdrop, kept behind page content. */
.site-network-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.46;
}

html[dir="ltr"] body {
    font-family: var(--font-en);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 9px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: var(--radius-full);
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #1e293b;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

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

ul {
    list-style: none;
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

/* Ambient Glows */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    pointer-events: none;
    z-index: 0;
    opacity: var(--glow-opacity);
    transition: opacity 0.4s ease;
}
.glow-1 {
    width: 500px;
    height: 500px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}
.glow-2 {
    width: 600px;
    height: 600px;
    top: 35%;
    left: -150px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
}
.glow-3 {
    width: 550px;
    height: 550px;
    bottom: 450px;
    right: 5%;
    background: radial-gradient(circle, #0284c7 0%, transparent 70%);
}

/* Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Glassmorphism Generic Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}
.glass-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #2A73E8 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Badges & Titles */
.sub-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(42, 115, 232, 0.1);
    border: 1px solid rgba(42, 115, 232, 0.25);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
}
.max-w-700 {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.text-center {
    text-align: center;
}
.section-badge-center {
    text-align: center;
    margin-bottom: 45px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    font-size: 0.98rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}
.btn-sm {
    padding: 9px 18px;
    font-size: 0.88rem;
}
.btn-block {
    width: 100%;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #1e58c0 100%);
    color: #fff !important;
    box-shadow: 0 4px 18px var(--primary-glow);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #377fee 0%, var(--primary) 100%);
    box-shadow: 0 6px 24px rgba(42, 115, 232, 0.5);
    transform: translateY(-2px);
}
.btn-glow {
    position: relative;
    overflow: hidden;
}
.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(30deg);
    transition: 0.8s;
}
.btn-glow:hover::after {
    left: 100%;
}
.btn-outline {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}
.btn-outline:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}
.btn-whatsapp {
    background: #25D366;
    color: #fff !important;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover {
    background: #20bd5a;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
    transform: translateY(-2px);
}

/* Arrow direction based on dir */
html[dir="rtl"] .arrow-dir {
    transform: scaleX(1);
}
html[dir="ltr"] .arrow-dir {
    transform: scaleX(-1);
}

/* ================= Top Announcement ================= */
.announcement-bar {
    background: var(--announcement-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 0.88rem;
    position: relative;
    z-index: 10;
    transition: background 0.35s ease;
}
.announcement-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    text-align: center;
}
.announcement-tag {
    background: rgba(42, 115, 232, 0.2);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.78rem;
}
.announcement-text {
    color: var(--text-primary);
}
.announcement-link {
    color: var(--primary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.announcement-link:hover {
    text-decoration: underline;
}

/* ================= Site Header ================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}
.site-header.scrolled {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-bottom-color: rgba(42, 115, 232, 0.25);
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
}

/* Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
}
.logo-text {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}
.logo-text span {
    color: var(--primary);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
}
.nav-list {
    display: flex;
    align-items: center;
    gap: 22px;
}
.nav-link {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 6px 2px;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: var(--radius-full);
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

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

/* Theme Toggle Button */
.theme-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.15rem;
    transition: var(--transition);
}
.theme-toggle-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(25deg);
}

.lang-switch-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
}
.lang-switch-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
}
.mobile-toggle .bar {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 320px;
    max-width: 85%;
    background: var(--bg-surface);
    z-index: 200;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.4);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
html[dir="rtl"] .mobile-drawer {
    right: 0;
    transform: translateX(100%);
}
html[dir="ltr"] .mobile-drawer {
    left: 0;
    transform: translateX(-100%);
}
.mobile-drawer.active {
    transform: translateX(0) !important;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}
.drawer-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 6px;
}
.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: auto;
}
.drawer-link {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
}
.drawer-link:hover, .drawer-link.active {
    background: rgba(42, 115, 232, 0.12);
    color: var(--primary);
}
.drawer-footer {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
.drawer-contact-info {
    margin-top: 16px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.drawer-contact-info i {
    color: var(--primary);
    width: 20px;
}
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* ================= Page Header Banner (for Inner Pages) ================= */
.page-hero-banner {
    padding: 70px 0 60px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(42, 115, 232, 0.05) 0%, transparent 100%);
}
.page-hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 18px;
    color: var(--text-primary);
}
.page-hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ================= Hero Section (Home) ================= */
.hero-section {
    padding: 85px 0 95px;
    position: relative;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 18px;
    border-radius: var(--radius-full);
    font-size: 0.92rem;
    font-weight: 600;
    background: rgba(42, 115, 232, 0.12);
    border: 1px solid rgba(42, 115, 232, 0.3);
    color: var(--primary);
    margin-bottom: 24px;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: pulseAnimation 2s infinite;
}
@keyframes pulseAnimation {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

.hero-title {
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: -0.5px;
    margin-bottom: 22px;
}
.hero-description {
    font-size: 1.22rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 34px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 42px;
}

/* Hero Social Proof */
.hero-trust {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}
.avatar-stack {
    display: flex;
    align-items: center;
}
.avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    margin-inline-start: -10px;
    object-fit: cover;
    background: #1e293b;
}
.avatar-img:first-child {
    margin-inline-start: 0;
}
.star-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fbbf24;
    font-size: 0.88rem;
    margin-bottom: 4px;
}
.rating-num {
    color: var(--text-primary);
    font-weight: 700;
    margin-inline-start: 6px;
    font-size: 0.92rem;
}
.trust-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* Hero Visual / Cards */
.hero-visual {
    position: relative;
    padding: 30px;
}
.hero-card-main {
    padding: 30px;
    position: relative;
    z-index: 2;
}
.card-icon-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}
.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.icon-cyan {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}
.icon-blue {
    background: rgba(42, 115, 232, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(42, 115, 232, 0.3);
}
.icon-purple {
    background: rgba(121, 24, 242, 0.15);
    color: #a855f7;
    border: 1px solid rgba(121, 24, 242, 0.3);
}

.badge-growth {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.stat-big-val {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}
.stat-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 24px;
}

.card-mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 90px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}
.chart-bar {
    flex: 1;
    height: var(--h);
    background: rgba(56, 189, 248, 0.25);
    border-radius: 6px 6px 0 0;
    transition: var(--transition);
}
.chart-bar:hover, .chart-bar.active {
    background: linear-gradient(180deg, #38bdf8 0%, var(--primary) 100%);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

/* Floating Card 1 & 2 */
.hero-card-floating {
    position: absolute;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 3;
    animation: floatAnim 4s ease-in-out infinite alternate;
}
.card-speed {
    top: 5px;
    right: -25px;
}
html[dir="rtl"] .card-speed {
    right: auto;
    left: -25px;
}
.counter-val {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
}
.card-subtitle {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.card-exp {
    bottom: -15px;
    left: 10px;
    animation-delay: -2s;
}
html[dir="rtl"] .card-exp {
    left: auto;
    right: 10px;
}

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

/* ================= Impact / Stats Grid ================= */
.impact-section {
    padding: 70px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(42, 115, 232, 0.04) 50%, transparent 100%);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.stat-box {
    padding: 34px 26px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.stat-box-icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 16px;
}
.stat-box-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 12px;
}
.stat-box-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.stat-box-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ================= Solutions Section ================= */
.solutions-section {
    padding: 95px 0;
}
.section-header {
    margin-bottom: 50px;
}
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 55px;
}

.solution-card {
    padding: 38px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: var(--radius-lg);
}
.featured-border {
    border-color: rgba(42, 115, 232, 0.4);
    box-shadow: 0 0 30px rgba(42, 115, 232, 0.15);
}
.card-badge-top {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: #fff;
}
html[dir="rtl"] .card-badge-top {
    left: auto;
    right: 20px;
}

@media (max-width: 580px) {
    .solution-card .card-badge-top {
        position: static;
        align-self: flex-start;
        margin: -9px 0 14px;
    }
}

.sol-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 24px;
}
.sol-color-1 {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}
.sol-color-2 {
    background: rgba(42, 115, 232, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(42, 115, 232, 0.3);
}
.sol-color-3 {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.sol-title {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--text-primary);
}
.sol-text {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 24px;
}
.sol-bullets {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}
.sol-bullets li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--text-secondary);
}
.sol-bullets li i {
    color: var(--accent-cyan);
    font-size: 0.9rem;
}
.sol-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
}
.sol-link:hover {
    transform: translateX(-4px);
}
html[dir="ltr"] .sol-link:hover {
    transform: translateX(4px);
}

/* Showcase Banner */
.showcase-banner {
    padding: 50px 55px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}
.showcase-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
    color: var(--text-primary);
}
.showcase-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 30px;
}
.showcase-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.showcase-image-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}
.showcase-img {
    width: 100%;
    height: auto;
    transition: transform 0.6s ease;
}
.showcase-banner:hover .showcase-img {
    transform: scale(1.03);
}

/* ================= Services Page & Section ================= */
.services-section {
    padding: 90px 0;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.service-item {
    padding: 34px 28px;
    display: flex;
    flex-direction: column;
}
.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(42, 115, 232, 0.12);
    border: 1px solid rgba(42, 115, 232, 0.25);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 22px;
}
.service-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
}
.service-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 22px;
}
.ad-platforms-logos {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.ad-pill {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(42, 115, 232, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.service-btn-action {
    margin-top: auto;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.service-btn-action:hover {
    transform: translateX(-4px);
}
html[dir="ltr"] .service-btn-action:hover {
    transform: translateX(4px);
}

/* ================= Tech Section & Code Editor ================= */
.tech-section {
    padding: 100px 0;
}
.tech-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.tech-features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.tech-feat-card {
    padding: 22px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}
.tech-feat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.tech-feat-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}
.tech-feat-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.tech-visual {
    background: var(--editor-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}
.code-editor-header {
    background: var(--editor-header);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.editor-dots {
    display: flex;
    gap: 6px;
}
.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }
.editor-file-name {
    font-family: monospace;
    font-size: 0.82rem;
    color: #94a3b8;
}

.code-editor-body {
    padding: 24px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.88rem;
    line-height: 1.7;
    color: #e2e8f0;
    overflow-x: auto;
    direction: ltr;
    text-align: left;
}
.c-keyword { color: #f43f5e; font-weight: 700; }
.c-variable { color: #38bdf8; font-weight: 600; }
.c-property { color: #a78bfa; }
.c-string { color: #34d399; }
.c-number { color: #f59e0b; }
.c-function { color: #fbbf24; }

.code-metrics-footer {
    padding: 14px 20px;
    background: var(--editor-header);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.metric-pill {
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ================= Support Section ================= */
.support-section {
    padding: 80px 0;
}
.support-card {
    padding: 55px;
}
.support-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
}
.support-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
    color: var(--text-primary);
}
.support-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 30px;
}
.support-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 35px;
}
.support-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.support-check-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    flex-shrink: 0;
    margin-top: 3px;
}
.support-list strong {
    display: block;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.support-list p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.support-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.support-visual {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.support-badge-float {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--shadow-card);
}
.icon-float-headset {
    font-size: 2.2rem;
    color: var(--primary);
}
.sup-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.85rem;
    color: #10b981;
    font-weight: 700;
    margin-bottom: 4px;
}
.sup-dot-online {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}
.support-badge-float h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.support-channels-card {
    padding: 24px;
}
.channels-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}
.channel-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: rgba(42, 115, 232, 0.05);
    margin-bottom: 10px;
    transition: var(--transition);
}
.channel-row:hover {
    background: rgba(42, 115, 232, 0.1);
}
.channel-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}
.ch-wa { background: rgba(37, 211, 102, 0.15); color: #25D366; }
.ch-mail { background: rgba(42, 115, 232, 0.15); color: var(--primary); }
.ch-loc { background: rgba(244, 63, 94, 0.15); color: #f43f5e; }

.channel-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.ch-name {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.ch-val {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}
.channel-link {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 6px;
}
.channel-link:hover {
    color: var(--primary);
}

/* ================= Contact Section & Form ================= */
.contact-section {
    padding: 100px 0;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 40px;
}
.contact-form-card {
    padding: 42px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.input-wrapper i {
    position: absolute;
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: var(--transition);
}
html[dir="rtl"] .input-wrapper i {
    right: 16px;
}
html[dir="ltr"] .input-wrapper i {
    left: 16px;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 13px 44px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}
.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(42, 115, 232, 0.2);
}
.input-wrapper:focus-within i {
    color: var(--primary);
}

.textarea-wrapper {
    align-items: flex-start;
}
.textarea-wrapper i {
    top: 16px;
}
.textarea-wrapper textarea {
    resize: vertical;
    min-height: 110px;
}

.input-wrapper select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 16px;
}
html[dir="rtl"] .input-wrapper select {
    background-position: left 16px center;
}
html[dir="ltr"] .input-wrapper select {
    background-position: right 16px center;
}

.input-wrapper select option {
    background: var(--bg-surface);
    color: var(--text-primary);
}

.form-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 10px;
}

.form-alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    font-weight: 600;
}
.form-alert.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #10b981;
}
.form-alert.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ef4444;
}

/* Contact Info Panel */
.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.info-card {
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.info-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(42, 115, 232, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.info-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-primary);
}
.info-card p, .info-link {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.info-link:hover {
    color: var(--primary);
}
.info-sub {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.social-card {
    flex-direction: column;
}
.social-links-row {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}
.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}
.social-btn:hover {
    transform: translateY(-3px);
    color: #ffffff;
}
.social-btn.facebook:hover { background: #1877F2; border-color: #1877F2; }
.social-btn.instagram:hover { background: #E1306C; border-color: #E1306C; }
.social-btn.whatsapp:hover { background: #25D366; border-color: #25D366; }
.social-btn.email:hover { background: var(--primary); border-color: var(--primary); }

/* ================= About Page Specific Styles ================= */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 70px;
}
.story-image-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.story-image-wrap img {
    width: 100%;
    height: auto;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.team-member-card {
    padding: 35px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.team-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #38bdf8 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px var(--primary-glow);
}
.team-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.team-role {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

/* ================= News / Blog Specific Styles ================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 50px 0;
}
.news-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.news-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}
.news-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.news-card:hover .news-img-wrap img {
    transform: scale(1.06);
}
.news-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--primary);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}
html[dir="rtl"] .news-badge {
    right: auto;
    left: 14px;
}
.news-content {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.news-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.news-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 14px;
    color: var(--text-primary);
}
.news-title a:hover {
    color: var(--primary);
}
.news-excerpt {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}
.news-read-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.92rem;
}

/* ================= Newsletter Section ================= */
.newsletter-section {
    padding: 30px 0 80px;
}
.newsletter-card {
    padding: 45px 50px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}
.newsletter-text h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.newsletter-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.newsletter-input-group {
    display: flex;
    gap: 10px;
}
.newsletter-input-group input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 13px 22px;
    color: var(--text-primary);
    font-size: 0.92rem;
}
.newsletter-input-group input:focus {
    border-color: var(--primary);
}
.nl-feedback {
    font-size: 0.85rem;
    font-weight: 600;
    min-height: 20px;
}
.nl-feedback.success { color: #10b981; }
.nl-feedback.error { color: #ef4444; }

/* ================= Footer ================= */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding-top: 70px;
    position: relative;
    z-index: 10;
}
.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 45px;
    padding-bottom: 55px;
}
.footer-logo {
    margin-bottom: 18px;
}
.footer-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}
.footer-about {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 22px;
}
.footer-socials {
    display: flex;
    gap: 10px;
}
.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}
.footer-socials a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-heading {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 22px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 10px;
}
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}
html[dir="rtl"] .footer-heading::after {
    right: 0;
}
html[dir="ltr"] .footer-heading::after {
    left: 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links a {
    color: var(--text-secondary);
    font-size: 0.92rem;
}
.footer-links a:hover {
    color: var(--primary);
    transform: translateX(-4px);
}
html[dir="ltr"] .footer-links a:hover {
    transform: translateX(4px);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}
.footer-contact-info i {
    color: var(--primary);
    margin-top: 3px;
    font-size: 1rem;
    flex-shrink: 0;
}
.footer-contact-info a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.legal-links {
    display: flex;
    align-items: center;
    gap: 14px;
}
.legal-links a:hover {
    color: var(--primary);
}
.legal-links .sep {
    color: var(--border-color);
}

/* ================= Floating WhatsApp & Back to Top ================= */
.floating-whatsapp {
    position: fixed;
    bottom: 28px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    z-index: 99;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
    transition: var(--transition);
    animation: waPulse 3s infinite;
}
html[dir="rtl"] .floating-whatsapp {
    right: 28px;
}
html[dir="ltr"] .floating-whatsapp {
    left: 28px;
}
.floating-whatsapp:hover {
    transform: scale(1.1);
    background: #20bd5a;
}
@keyframes waPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.tooltip-text {
    position: absolute;
    background: var(--bg-surface);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}
html[dir="rtl"] .tooltip-text {
    right: 70px;
}
html[dir="ltr"] .tooltip-text {
    left: 70px;
}
.floating-whatsapp:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 28px;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 90;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
html[dir="rtl"] .back-to-top {
    left: 28px;
}
html[dir="ltr"] .back-to-top {
    right: 28px;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* ================= Interactive Cursor Spotlight on Glass Cards ================= */
.glass-card {
    position: relative;
    overflow: hidden;
}
.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
        rgba(56, 189, 248, 0.09),
        transparent 40%
    );
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.3s ease;
}
.glass-card > * {
    position: relative;
    z-index: 1;
}

/* ================= Hero Live Browser Mockup Enhancement ================= */
.hero-browser-window {
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 35px rgba(42, 115, 232, 0.25);
    overflow: hidden;
    position: relative;
    z-index: 2;
}
.hb-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    background: var(--editor-header);
    border-bottom: 1px solid var(--border-color);
    direction: ltr;
}
.hb-url-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    padding: 5px 14px;
    font-size: 0.78rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: monospace;
}
.hb-url-bar i {
    color: #10b981;
}
.hb-lighthouse-scores {
    display: flex;
    align-items: center;
    gap: 6px;
}
.lh-ring {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #10b981;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    font-size: 0.68rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hb-body {
    padding: 24px;
}

/* ================= Infinite Tech Stack Marquee ================= */
.tech-marquee-bar {
    padding: 26px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(42, 115, 232, 0.03);
    overflow: hidden;
    position: relative;
    z-index: 2;
}
.marquee-track {
    display: flex;
    align-items: center;
    gap: 28px;
    width: max-content;
    animation: scrollMarquee 32s linear infinite;
    direction: ltr;
}
.marquee-track:hover {
    animation-play-state: paused;
}
.tech-pill-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.92rem;
    white-space: nowrap;
    transition: var(--transition);
}
.tech-pill-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}
.tech-pill-item i {
    font-size: 1.15rem;
    color: var(--primary);
}
@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ================= Interactive Web Studio Showcase ("إحنا بتوع مواقع") ================= */
.web-studio-section {
    padding: 100px 0;
    position: relative;
}
.studio-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding: 16px 22px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}
.studio-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.studio-tab-btn {
    padding: 10px 18px;
    border-radius: var(--radius-full);
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.studio-tab-btn:hover,
.studio-tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 16px var(--primary-glow);
}

.studio-Right-tools {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.device-switcher {
    display: inline-flex;
    background: var(--bg-input);
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}
.device-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.device-btn.active,
.device-btn:hover {
    background: var(--primary);
    color: #fff;
}

.accent-picker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
}
.accent-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}
.accent-dot.active,
.accent-dot:hover {
    transform: scale(1.2);
    border-color: #fff;
}

.xray-toggle-btn {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #10b981;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: var(--transition);
}
.xray-toggle-btn.active,
.xray-toggle-btn:hover {
    background: #10b981;
    color: #fff;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

/* Browser Frame Viewport */
.studio-stage-wrap {
    display: flex;
    justify-content: center;
    align-items: stretch;
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.studio-browser-frame {
    width: 100%;
    max-width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    --demo-accent: #2A73E8;
}
.studio-browser-frame[data-device="tablet"] {
    max-width: 760px;
}
.studio-browser-frame[data-device="mobile"] {
    max-width: 410px;
}
.studio-browser-header {
    background: var(--editor-header);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    direction: ltr;
}
.studio-url-box {
    flex: 1;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-family: monospace;
    font-size: 0.82rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 8px;
}
.studio-url-box i {
    color: #10b981;
}
.studio-speed-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    font-size: 0.78rem;
    font-weight: 700;
}

.studio-viewport-body {
    padding: 36px;
    min-height: 430px;
    position: relative;
    background: radial-gradient(circle at top right, rgba(42, 115, 232, 0.1), transparent 60%);
}
.studio-demo-pane {
    display: none;
    animation: fadeInDemo 0.35s ease;
}
.studio-demo-pane.active {
    display: block;
}
@keyframes fadeInDemo {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mockup Inner Layout */
.demo-mini-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 12px;
}
.demo-brand {
    font-weight: 800;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}
.demo-brand i {
    color: var(--demo-accent);
}
.demo-nav-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.demo-nav-pills span {
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}
.demo-hero-split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: center;
}
.studio-browser-frame[data-device="mobile"] .demo-hero-split {
    grid-template-columns: 1fr;
}
.demo-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(42, 115, 232, 0.15);
    color: var(--demo-accent);
    margin-bottom: 12px;
}
.demo-h4 {
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.25;
    color: var(--text-primary);
}
.demo-p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.6;
}
.demo-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    background: var(--demo-accent);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.88rem;
}
.demo-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.studio-browser-frame[data-device="mobile"] .demo-cards-grid {
    grid-template-columns: 1fr;
}
.demo-mini-card {
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}
.demo-mini-card h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}
.demo-mini-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.demo-price-badge {
    display: inline-block;
    margin-top: 8px;
    font-weight: 800;
    color: var(--demo-accent);
    font-size: 0.88rem;
}

/* X-Ray Engineering Inspector Overlay */
.studio-browser-frame.xray-mode .demo-mini-card,
.studio-browser-frame.xray-mode .demo-hero-split > div,
.studio-browser-frame.xray-mode .demo-mini-nav {
    outline: 1px dashed #10b981;
    position: relative;
}
.xray-Specs-bar {
    display: none;
    margin-top: 24px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.35);
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.studio-browser-frame.xray-mode .xray-Specs-bar {
    display: grid;
}
.studio-browser-frame[data-device="mobile"].xray-mode .xray-Specs-bar {
    grid-template-columns: 1fr 1fr;
}
.xray-metric-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.xray-metric-item span {
    font-size: 0.74rem;
    color: var(--text-secondary);
}
.xray-metric-item strong {
    font-size: 0.95rem;
    color: #10b981;
    font-family: monospace;
}

/* ================= Interactive Website Blueprint & Estimator ================= */
.blueprint-section {
    padding: 95px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(42, 115, 232, 0.05) 50%, transparent 100%);
}
.blueprint-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 36px;
    align-items: start;
}
.bp-config-card {
    padding: 36px;
}
.bp-step-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.bp-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.bp-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}
.bp-option-btn {
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-align: start;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.bp-option-btn i {
    font-size: 1.3rem;
    color: var(--primary);
    margin-top: 2px;
}
.bp-option-btn strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 3px;
}
.bp-option-btn span {
    font-size: 0.78rem;
    color: var(--text-secondary);
}
.bp-option-btn.selected,
.bp-option-btn:hover {
    border-color: var(--primary);
    background: rgba(42, 115, 232, 0.12);
    box-shadow: 0 0 20px rgba(42, 115, 232, 0.18);
}

.bp-Summary-card {
    padding: 36px;
    border-color: rgba(42, 115, 232, 0.45);
    position: sticky;
    top: 100px;
}
.bp-summary-header {
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}
.bp-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 0.92rem;
}
.bp-summary-row span {
    color: var(--text-secondary);
}
.bp-summary-row strong {
    color: var(--text-primary);
    font-weight: 700;
}
.bp-stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 24px;
}
.bp-stack-tag {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(56, 189, 248, 0.14);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

/* ================= Why MadaClick Websites Benchmark Comparison ================= */
.benchmark-section {
    padding: 80px 0;
}
.benchmark-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.benchmark-card {
    padding: 36px;
}
.benchmark-card.mada-winner {
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 0 35px rgba(16, 185, 129, 0.12);
}
.bm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}
.bm-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.bm-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.95rem;
}
.bm-val-bad {
    color: #ef4444;
    font-weight: 700;
}
.bm-val-good {
    color: #10b981;
    font-weight: 800;
}

/* ================= Interactive FAQ Accordion & News Filter ================= */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 860px;
    margin: 0 auto;
}
.faq-item {
    padding: 0;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    padding: 22px 26px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    text-align: start;
}
.faq-question i.faq-toggle-icon {
    color: var(--primary);
    transition: transform 0.3s ease;
}
.faq-item.open .faq-question i.faq-toggle-icon {
    transform: rotate(180deg);
}
.faq-answer {
    padding: 0 26px 22px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    display: none;
}
.faq-item.open .faq-answer {
    display: block;
}

.news-filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

/* ================= Responsive Breakpoints ================= */
@media (max-width: 1080px) {
    .hero-grid,
    .tech-wrapper,
    .support-grid,
    .contact-grid,
    .showcase-banner,
    .newsletter-card,
    .story-grid,
    .blueprint-grid,
    .benchmark-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-title, .page-hero-title {
        font-size: 2.8rem;
    }
    .solutions-grid,
    .services-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 820px) {
    .nav-menu, .cta-header-btn {
        display: none;
    }
    .mobile-toggle {
        display: flex;
    }
    .solutions-grid,
    .services-grid,
    .news-grid,
    .team-grid,
    .bp-options-grid,
    .demo-hero-split {
        grid-template-columns: 1fr;
    }
    .hero-title, .page-hero-title {
        font-size: 2.3rem;
    }
    .card-speed, .card-exp {
        position: static;
        margin-top: 15px;
    }
    .hero-visual {
        padding: 0;
    }
    .form-row,
    .form-action-row {
        grid-template-columns: 1fr;
    }
    .showcase-banner,
    .support-card,
    .contact-form-card,
    .newsletter-card,
    .bp-config-card,
    .bp-Summary-card,
    .studio-viewport-body {
        padding: 28px 20px;
    }
    .newsletter-input-group {
        flex-direction: column;
    }
    .xray-Specs-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .site-network-bg {
        opacity: 0.42;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr;
    }
    .hero-title, .page-hero-title {
        font-size: 1.95rem;
    }
    .section-title {
        font-size: 1.75rem;
    }
    .hero-trust {
        flex-direction: column;
        align-items: flex-start;
    }
    .announcement-inner {
        font-size: 0.8rem;
    }
}

/* Keep the compact layout readable on narrow phones. */
@media (max-width: 580px) {
    html,
    body {
        overflow-x: clip;
    }

    .header-container {
        gap: 8px;
    }

    .header-actions {
        gap: 6px;
        flex-shrink: 0;
    }

    .header-actions .lang-switch-btn {
        min-width: 0;
        padding: 8px 10px;
        font-size: 0.82rem;
    }

    .header-actions .theme-toggle-btn {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
    }

    .header-container > .brand-logo {
        min-width: 0;
        gap: 6px;
    }

    .header-container > .brand-logo .logo-text {
        font-size: 1.15rem;
    }

    .header-container > .brand-logo .logo-img {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
    }

    .hero-grid,
    .hero-grid > *,
    .hero-content,
    .hero-visual {
        width: 100%;
        min-width: 0;
    }

    .hero-content {
        text-align: center;
    }

    .badge-pill {
        max-width: 100%;
        justify-content: center;
        padding: 7px 10px;
        font-size: 0.78rem;
        white-space: normal;
    }

    .hero-title,
    .page-hero-title {
        font-size: clamp(1.6rem, 7vw, 1.85rem);
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .hero-description,
    .page-hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons,
    .hero-trust {
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .hero-browser-window,
    .code-editor {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }

    .hb-top-bar {
        gap: 6px;
        padding: 10px;
    }

    .hb-url-bar {
        min-width: 0;
        overflow: hidden;
        padding-inline: 8px;
        font-size: 0.68rem;
    }

    .hb-url-bar span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .code-editor-body {
        max-width: 100%;
        padding: 16px;
        font-size: 0.72rem;
    }
}

