@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;500;600;700&family=Cairo:wght@400;600;700&display=swap');

:root {
    --primary: #001A41;
    --accent: #0070F3;
    --accent-light: #E1EFFF;
    --bg: #FFFFFF;
    --bg-alt: #F7F9FC;
    --text: #1A1F36;
    --text-muted: #4F566B;
    --border: #E3E8EE;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Dynamic Typography */
    --fs-h1: clamp(2.5rem, 8vw, 4.5rem);
    --fs-h2: clamp(1.8rem, 5vw, 3rem);
    --fs-h3: clamp(1.4rem, 4vw, 2rem);
    --fs-h4: clamp(1.1rem, 3vw, 1.3rem);
    --fs-body: clamp(1rem, 2vw, 1.1rem);
    --fs-lead: clamp(1.1rem, 3vw, 1.4rem);
}

[lang="ar"] {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
}

[lang="ar"] h1,
[lang="ar"] h2,
[lang="ar"] h3,
[lang="ar"] h4 {
    font-family: 'Cairo', sans-serif;
    letter-spacing: normal;
}

[lang="ar"] .nav-links {
    flex-direction: row-reverse;
    align-items: center;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    line-height: 1.1;
}

h1 {
    font-size: var(--fs-h1);
}

h2 {
    font-size: var(--fs-h2);
}

h3 {
    font-size: var(--fs-h3);
}

h4 {
    font-size: var(--fs-h4);
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 80px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* Typography Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
}

.services .section-title {
    font-size: 1.5rem;
    color: var(--primary);
}

@media (max-width: 768px) {
    .services .section-title {
        font-size: 1.5rem;
        color: var(--primary);
    }

    .section-title {
        font-size: 1.5rem;
        font-weight: 700;
        text-align: center;
    }
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 1rem auto 1rem;
    text-align: center;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 4px var(--accent-light);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
}

[dir="rtl"] select.form-control {
    background-position: left 1rem center;
}

[dir="rtl"] .form-group {
    text-align: right;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(0, 112, 243, 0.39);
}

.btn-primary:hover {
    background-color: #0060df;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 112, 243, 0.23);
}

.btn-secondary {
    background-color: var(--accent-light);
    color: var(--accent);
}

.btn-secondary:hover {
    background-color: #d0e7ff;
    transform: translateY(-2px);
}

/* Cards */
.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* =========================================
   Modern Service Cards
   ========================================= */
.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}

@media (max-width: 900px) {
    .service-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .service-cards-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.75rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    cursor: default;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.service-card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.12), 0 4px 10px -4px rgba(15, 23, 42, 0.06);
}

.service-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0, 112, 243, 0.07) 0%, rgba(56, 189, 248, 0.12) 100%);
    border: 1px solid rgba(0, 112, 243, 0.14);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.service-card-desc {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.65;
}

.service-card-footer {
    display: flex;
    align-items: center;
    padding-top: 0.75rem;
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
}

.service-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    background: rgba(0, 112, 243, 0.06);
    border: 1px solid rgba(0, 112, 243, 0.14);
    transition: all 0.22s ease;
}

.service-card-cta:hover {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 112, 243, 0.25);
}


/* =========================================
   Process / How It Works — Horizontal Timeline (Reference Match)
   ========================================= */
#process {
    padding-left: 80px;
    padding-right: 80px;
    box-sizing: border-box;
    width: 100%;
}

.process-header {
    text-align: center;
    margin-bottom: 4.5rem;
}

.process-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(0, 112, 243, 0.08);
    border: 1px solid rgba(0, 112, 243, 0.18);
    border-radius: 999px;
    padding: 0.35rem 1.15rem;
    margin-bottom: 1.25rem;
}

/* Wrapper: 4-column timeline with continuous connecting line */
.process-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    align-items: flex-start;
}

/*
  The connecting line spans from center of col 1 (12.5%) to center of col 4 (87.5% = right: 12.5%).
  Icon circle is 54px, so vertical center is at 27px.
*/
.process-line {
    position: absolute;
    top: 27px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: var(--accent);
    opacity: 0.45;
    z-index: 1;
    pointer-events: none;
}

/* Each step: absolutely NO border, NO background box, NO card */
.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 0.75rem;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    transform: none !important;
    transition: none !important;
}

.process-step:hover {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Icon circle — clean outline circle with solid white background hiding the line behind it */
.process-icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.75px solid var(--accent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.6rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.process-step:hover .process-icon-wrap {
    transform: scale(1.12);
    box-shadow: 0 6px 18px rgba(0, 112, 243, 0.22);
}

.process-step-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
}

.process-step-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin: 0;
}

.process-step-desc {
    font-size: 0.86rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 210px;
    margin: 0 auto;
}

@media (max-width: 860px) {
    #process {
        padding-left: 20px;
        padding-right: 20px;
    }
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
        row-gap: 3rem;
    }
    .process-line {
        display: none;
    }
    .process-step {
        padding: 0;
    }
}

@media (max-width: 520px) {
    .process-timeline {
        grid-template-columns: 1fr;
        row-gap: 2.5rem;
    }
}


/* Navigation */
nav {
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

nav.scrolled {
    padding: 1rem 0;
    border-color: var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo img {
    height: 70px;
    width: auto;
    transition: var(--transition);
    display: block;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links .btn {
    border-radius: 8px;
    padding: 0.65rem 1.35rem;
    font-size: 0.92rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    /* Mobile Hero Styles */
    .hero {
        padding: 6rem 0 4rem;
        margin-top: 50px;
    }

    .hero-badge {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

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

    .hero-stats {
        gap: 1.5rem;
    }

    .btn-group {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-lg {
        width: 100%;
    }

    .hero-dec-1,
    .hero-dec-2 {
        display: none;
    }
}

/* Layout Sections */
section {
    padding: 8rem 0;
}

/* =========================================
   Hero Section (Modern High-Contrast SaaS Redesign)
   ========================================= */
.hero {
    position: relative;
    padding: 10rem 0 7.5rem;
    text-align: center;
    overflow: hidden;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 70% 60% at 50% -10%, rgba(0, 112, 243, 0.1) 0%, rgba(255, 255, 255, 0) 70%),
        radial-gradient(circle at 10% 40%, rgba(56, 189, 248, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 90% 50%, rgba(0, 112, 243, 0.06) 0%, transparent 45%);
    z-index: 0;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(15, 23, 42, 0.08) 1.25px, transparent 1.25px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 35%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 35%, transparent 80%);
    z-index: 1;
}

.hero-decoration {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(50px);
}

.hero-dec-1 {
    top: -5%;
    right: 15%;
    width: 320px;
    height: 320px;
    background: rgba(0, 112, 243, 0.08);
    animation: float 8s ease-in-out infinite;
}

.hero-dec-2 {
    bottom: 5%;
    left: 10%;
    width: 360px;
    height: 360px;
    background: rgba(56, 189, 248, 0.08);
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(20px) scale(1.05);
    }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    z-index: 3;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(0, 112, 243, 0.07);
    border: 1px solid rgba(0, 112, 243, 0.22);
    color: var(--accent);
    padding: 0.45rem 1.35rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    width: fit-content;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 112, 243, 0.08);
    animation: slideInDown 0.6s ease-out;
}

.hero-badge i {
    color: var(--accent);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 6.5vw, 4.35rem);
    color: #0f172a;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.03em;
    animation: slideInDown 0.8s ease-out 0.1s both;
}

.text-highlight {
    color: var(--accent);
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: #475569;
    line-height: 1.7;
    max-width: 680px;
    margin: 0 auto;
    font-weight: 400;
    animation: slideInDown 0.8s ease-out 0.2s both;
}

.btn-group {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideInDown 0.8s ease-out 0.3s both;
}

.btn-lg {
    padding: 0.85rem 1.85rem;
    font-size: 0.96rem;
    font-weight: 600;
    border-radius: 8px;
}

.btn-primary.btn-lg {
    background: var(--accent);
    color: #ffffff;
    border: 1px solid var(--accent);
    box-shadow: 0 4px 16px rgba(0, 112, 243, 0.32);
}

.btn-primary.btn-lg:hover {
    background: #0060df;
    border-color: #0060df;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 112, 243, 0.42);
}

.btn-secondary.btn-lg {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.btn-secondary.btn-lg:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

/* Grids */
.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.stats-card {
    position: relative;
    background: #ffffff;
    padding: 1.6rem 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Accent top border glow on hover */
.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0070F3 0%, #38bdf8 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 112, 243, 0.3);
    box-shadow: 0 14px 30px -6px rgba(0, 112, 243, 0.14), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
}

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

.stats-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.1rem;
}

.stats-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0, 112, 243, 0.08) 0%, rgba(0, 112, 243, 0.16) 100%);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 112, 243, 0.15);
    transition: all 0.3s ease;
}

.stats-card:hover .stats-icon-wrap {
    background: var(--accent);
    color: #ffffff;
    transform: scale(1.05);
    border-color: var(--accent);
}

.stats-chip {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0284c7;
    background: #f0f9ff;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(2, 132, 199, 0.15);
}

.stats-number {
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1.15;
    color: #0f172a;
    letter-spacing: -0.03em;
    margin-bottom: 0.35rem;
    font-feature-settings: "tnum";
}

.stats-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.4;
}

[lang="ar"] .stats-card,
[dir="rtl"] .stats-card {
    text-align: right;
}

@media (max-width: 540px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Case Studies */
.case-study-list {
    display: grid;
    gap: clamp(4rem, 10vw, 8rem);
}

.case-study-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    grid-template-areas: "img card";
}

.case-study-item:nth-child(even) {
    grid-template-areas: "card img";
}

.case-study-card {
    grid-area: card;
    background: var(--bg-alt);
    padding: clamp(1.5rem, 4vw, 3.5rem);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.case-study-img {
    grid-area: img;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.case-study-img:hover {
    transform: scale(1.02);
}

.case-study-img img {
    width: 100%;
    display: block;
}

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 992px) {
    .hero {
        padding: 8rem 0 6rem;
        margin-top: 50px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .btn-group {
        gap: 1rem;
    }

    .case-study-item,
    .case-study-item:nth-child(even) {
        grid-template-columns: 1fr;
        grid-template-areas:
            "img"
            "card";
        gap: 2rem;
    }

    .nav-content {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .mobile-bottom-nav {
        display: flex;
        position: sticky;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 72px;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
        z-index: 1000;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .stats-card {
        padding: 24px;
    }

    .mobile-bottom-nav a.mobile-nav-item {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        color: #64748b;
        font-size: 0.75rem;
        font-weight: 500;
        transition: all 0.2s ease-in-out;
        flex: 1;
        height: 100%;
        position: relative;
    }

    .mobile-bottom-nav a.mobile-nav-item i {
        font-size: 20px;
        transition: transform 0.2s ease;
    }

    .mobile-bottom-nav a.mobile-nav-item:hover,
    .mobile-bottom-nav a.mobile-nav-item.active {
        color: var(--accent);
    }

    .mobile-bottom-nav a.mobile-nav-item.active i {
        transform: translateY(-2px) scale(1.1);
    }

    .mobile-bottom-nav a.mobile-nav-item.active::after {
        content: '';
        position: absolute;
        bottom: 6px;
        width: 4px;
        height: 4px;
        background-color: var(--accent);
        border-radius: 50%;
    }

    .whatsapp-float {
        bottom: 88px !important;
    }

    .grid-auto {
        display: grid;
        grid-template-columns: 2fr;
        gap: 3rem;
        align-items: center;
    }
}



/* RTL Specific Overrides for Case Studies to keep literal "Left" and "Right" */
[lang="ar"] .case-study-item {
    grid-template-areas: "card img";
}

[lang="ar"] .case-study-item:nth-child(even) {
    grid-template-areas: "img card";
}

/* ==========================================================================
   Modern Award-Winning Project Card Styles
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.25rem;
    margin-top: 2.5rem;
}

.project-card {
    background: #ffffff;
    border: 1px solid rgba(227, 232, 238, 0.85);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
    display: flex;
    flex-direction: column;
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 112, 243, 0.3);
    box-shadow: 0 24px 48px -12px rgba(0, 112, 243, 0.14), 0 12px 24px -8px rgba(15, 23, 42, 0.06);
}

/* Browser Mockup Top Bar */
.project-card-header {
    background: #f8fafc;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 0.65rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.browser-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.browser-dots .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red {
    background: #ff5f56;
}

.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #27c93f;
}

.browser-url-pill {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    padding: 0.2rem 0.75rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: 'Inter', monospace;
    max-width: 170px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.card-live-indicator {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #10b981;
    background: rgba(16, 185, 129, 0.08);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Image Presentation with Realistic Aspect & Smooth Parallax */
.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
    background: #0f172a;
}

.project-image-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    cursor: zoom-in;
}


.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

/* Hover Quick-View Overlay */
.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.15) 60%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card:hover .image-overlay {
    opacity: 1;
}

.overlay-badge {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: #0f172a;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(8px);
    transition: transform 0.3s ease;
}

.project-card:hover .overlay-badge {
    transform: translateY(0);
}

/* Card Content Area */
.project-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.project-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 112, 243, 0.08) 0%, rgba(0, 112, 243, 0.15) 100%);
    color: var(--accent);
    padding: 0.3rem 0.75rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border: 1px solid rgba(0, 112, 243, 0.15);
}

.project-year-pill {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-alt);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 0.6rem;
    transition: color 0.25s ease;
}

.project-title a {
    color: inherit;
    text-decoration: none;
}

.project-title a:hover,
.project-card:hover .project-title {
    color: var(--accent);
}

.project-description {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* Micro Tech Stack Tags */
.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.35rem;
}

.tech-tag {
    font-size: 0.72rem;
    font-weight: 500;
    color: #475569;
    background: #f1f5f9;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

/* Action Area */
.project-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(226, 232, 240, 0.7);
    margin-top: auto;
}

.btn-card-details {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #0070F3 0%, #0051B3 100%);
    color: #ffffff;
    padding: 0.7rem 1.1rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 112, 243, 0.25);
}

.btn-card-details:hover {
    background: linear-gradient(135deg, #005bd4 0%, #00408f 100%);
    box-shadow: 0 6px 16px rgba(0, 112, 243, 0.35);
    transform: translateY(-1px);
    color: #ffffff;
}

.btn-card-details i {
    transition: transform 0.25s ease;
}

.btn-card-details:hover i {
    transform: translateX(3px);
}

html[dir="rtl"] .btn-card-details:hover i {
    transform: translateX(-3px);
}

.btn-card-live {
    width: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, #0070F3 0%, #0051B3 100%);
    color: #ffffff;
    border: 1px solid transparent;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 112, 243, 0.2);
}

.btn-card-live:hover {
    background: linear-gradient(135deg, #005bd4 0%, #00408f 100%);
    box-shadow: 0 4px 14px rgba(0, 112, 243, 0.3);
    transform: translateY(-1px);
    color: #ffffff;
}

.btn-card-live i {
    transition: transform 0.25s ease;
}

.btn-card-live:hover i {
    transform: translateX(2px) translateY(-1px);
}

html[dir="rtl"] .btn-card-live:hover i {
    transform: translateX(-2px) translateY(-1px);
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .project-footer {
        flex-direction: column;
    }

    .btn-card-details,
    .btn-card-live {
        width: 100%;
    }

    .project-buttons .btn {
        width: 100%;
    }
}

/* =========================================
   Why Choose Me Section (Modern Redesign)
   ========================================= */
.why-section {
    background: #f8fafc;
    position: relative;
}

.why-me-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 4.5rem;
    align-items: flex-start;
}

.why-left {
    position: sticky;
    top: 6rem;
}

.why-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(0, 112, 243, 0.08);
    border: 1px solid rgba(0, 112, 243, 0.18);
    border-radius: 999px;
    padding: 0.35rem 1.15rem;
    margin-bottom: 1.25rem;
}

.why-title {
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin: 0 0 1.25rem 0;
    text-align: left;
    letter-spacing: -0.02em;
}

[dir="rtl"] .why-title {
    text-align: right;
}

.why-desc {
    font-size: 1.02rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0 0 1.75rem 0;
    text-align: left;
}

[dir="rtl"] .why-desc {
    text-align: right;
}

.why-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding-top: 1.75rem;
    border-top: 1px solid #e2e8f0;
}

.why-highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
}

.why-highlight-item i {
    color: var(--accent);
    flex-shrink: 0;
}

/* Cards Stack */
.why-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.why-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.75rem 1.75rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.why-card:hover {
    transform: translateY(-3px) scale(1.01);
    border-color: rgba(0, 112, 243, 0.35);
    box-shadow: 0 14px 30px -8px rgba(0, 112, 243, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}

.why-card-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 112, 243, 0.08) 0%, rgba(56, 189, 248, 0.14) 100%);
    border: 1px solid rgba(0, 112, 243, 0.18);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.why-card:hover .why-card-icon {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    transform: scale(1.06);
    box-shadow: 0 6px 16px rgba(0, 112, 243, 0.25);
}

.why-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.why-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.45rem;
}

.why-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin: 0;
}

.why-card-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    background: rgba(0, 112, 243, 0.07);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 112, 243, 0.15);
    white-space: nowrap;
}

.why-card-desc {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 992px) {
    [dir="rtl"] .reveal {
        text-align: right;
        margin-bottom: 2rem;
    }

    [dir="rtl"] .reveal h2 {
        text-align: right;
        font-size: clamp(2rem, 10vw, 2rem);
    }

    [dir="rtl"] .reveal p {
        text-align: right;
        font-size: clamp(1rem, 3vw, 1.2rem);
    }
}

/* =========================================
   Contact Section — 2-Column Layout
   ========================================= */
.contact-section {
    position: relative;
}

.contact-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.contact-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(0, 112, 243, 0.08);
    border: 1px solid rgba(0, 112, 243, 0.18);
    border-radius: 999px;
    padding: 0.35rem 1.15rem;
    margin-bottom: 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 2.5rem;
    align-items: stretch;
}

/* Info Column */
.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.contact-info-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

[dir="rtl"] .contact-info-title {
    text-align: right;
}

.contact-info-desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

[dir="rtl"] .contact-info-desc {
    text-align: right;
}

.contact-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.22s ease;
}

a.contact-item:hover {
    background: #ffffff;
    border-color: rgba(0, 112, 243, 0.3);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 112, 243, 0.08);
}

[dir="rtl"] a.contact-item:hover {
    transform: translateX(-4px);
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 8px;
    background: rgba(0, 112, 243, 0.08);
    border: 1px solid rgba(0, 112, 243, 0.16);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    overflow: hidden;
    text-align: left;
}

[dir="rtl"] .contact-item-text {
    text-align: right;
}

.contact-item-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.contact-item-val {
    font-size: 0.92rem;
    font-weight: 600;
    color: #0f172a;
    word-break: break-all;
}

/* Map Card */
.contact-map-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    height: 230px;
}

.contact-map-card iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

/* Form Column */
.contact-form-col {
    display: flex;
}

.contact-form-col .contact-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.btn-contact-submit {
    align-self: flex-start;
    padding: 0.65rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: auto;
    margin-top: 0.25rem;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 992px) {
    .case-study-item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .why-me-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .why-left {
        position: static;
    }
}

@media (max-width: 640px) {
    .why-card {
        padding: 1.35rem 1.25rem;
        gap: 1rem;
    }

    .why-card-header {
        flex-wrap: wrap;
        gap: 0.4rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 5rem 0;
    }

    .hero {
        padding: 10rem 0 6rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Project Detail Styles */
.project-hero {
    padding: 12rem 0 6rem;
    background: linear-gradient(to bottom, var(--bg-alt) 0%, var(--bg) 100%);
    text-align: left;
}

.project-hero h1 {
    font-size: 4rem;
    margin: 1rem 0;
    letter-spacing: -0.02em;
}

.project-tag {
    background: var(--accent-light);
    color: var(--accent);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.project-meta {
    display: flex;
    justify-content: flex-start;
    gap: clamp(1rem, 3vw, 2.5rem);
    margin-top: 2.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    flex-wrap: wrap;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}


.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.project-detail-card {
    background: white;
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: var(--radius);
    height: 100%;
}

.project-detail-card h3 {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.project-image-container {
    margin: 4rem 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.25), 0 18px 36px -18px rgba(0, 0, 0, 0.3);
    background-color: var(--bg-alt);
    border: 1px solid var(--border);
}

.project-image-container img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.project-image-container:hover img {
    transform: scale(1.02);
}

.bg-alt {
    background-color: var(--bg-alt);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    background: var(--bg-alt);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
}

.cta-box {
    margin-top: 8rem;
    text-align: center;
    background: var(--bg-alt);
    padding: clamp(2rem, 8vw, 5rem);
    border-radius: var(--radius);
}

@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-hero h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .cta-box {
        margin-top: 4rem;
    }
}

/* Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
    color: white;
}

/* Footer Redesign */
.site-footer {
    background: #0f172a;
    color: white;
    padding: 6rem 0 3rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1.5rem;
    display: block;
}

.footer-brand p {
    color: #94a3b8;
    max-width: 300px;
    line-height: 1.6;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links {
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.footer-links a {
    color: #94a3b8;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: #64748b;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    color: white;
    transform: translateY(-3px);
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 84px !important;
        right: 1.5rem;
    }
}

/* Arabic Redesign Refinements */
[lang="ar"] {
    line-height: 1.8;
}

[lang="ar"] h1,
[lang="ar"] h2,
[lang="ar"] h3 {
    line-height: 1.4;
    font-weight: 700;
}


[lang="ar"] .card {
    border-right: 4px solid transparent;
    transition: var(--transition);
}

[lang="ar"] .card:hover {
    border-right-color: var(--accent);
}

[lang="ar"] .nav-links {
    gap: 2.5rem;
}

[lang="ar"] .section-title {
    position: relative;
    display: inline-block;
}

/* [lang="ar"] .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
} */