/* Tajawal Font for Arabic */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

/* ============================================
   MTONYX - Premium Software Company
   CSS Design System
   ============================================ */

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
    /* Brand Colors */
    --color-navy: #0B1A2A;
    --color-navy-light: #112840;
    --color-navy-dark: #060d15;
    --color-white: #FFFFFF;
    --color-blue: #4CA3DD;
    --color-blue-light: #6BB5E8;
    --color-blue-dark: #3A8BC5;
    --color-blue-glow: rgba(76, 163, 221, 0.3);

    /* Neutral Colors */
    --color-gray-100: #F7F9FC;
    --color-gray-200: #E4E9F0;
    --color-gray-300: #CBD2DC;
    --color-gray-400: #9AA5B5;
    --color-gray-500: #6B7785;
    --color-gray-600: #4A5568;

    /* Semantic Colors */
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error: #EF4444;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 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);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 30px rgba(76, 163, 221, 0.3);
    --shadow-glow-lg: 0 0 60px rgba(76, 163, 221, 0.4);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Z-Index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-tooltip: 600;
}

/* ============================================
   CSS Reset & Base Styles
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-white);
    background-color: var(--color-navy);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================
   Typography
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-white);
}

h1 {
    font-size: var(--text-5xl);
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-3xl);
}

h4 {
    font-size: var(--text-2xl);
}

h5 {
    font-size: var(--text-xl);
}

h6 {
    font-size: var(--text-lg);
}

@media (max-width: 768px) {
    h1 {
        font-size: var(--text-4xl);
    }

    h2 {
        font-size: var(--text-3xl);
    }

    h3 {
        font-size: var(--text-2xl);
    }
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-blue {
    color: var(--color-blue);
}

.text-muted {
    color: var(--color-gray-400);
}

/* ============================================
   Layout & Container
   ============================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section {
    padding: var(--space-24) 0;
}

.section--dark {
    background-color: var(--color-navy-dark);
}

.section--gradient {
    background: linear-gradient(180deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-8);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {

    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Flexbox Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: var(--space-2);
}

.gap-4 {
    gap: var(--space-4);
}

.gap-6 {
    gap: var(--space-6);
}

.gap-8 {
    gap: var(--space-8);
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    padding: var(--space-4) 0;
    background: rgba(11, 26, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(76, 163, 221, 0.1);
    transition: all var(--transition-base);
}

.header.scrolled {
    padding: var(--space-3) 0;
    background: rgba(11, 26, 42, 0.95);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.header__logo img {
    height: 45px;
    width: auto;
}

.header__logo-text {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-white);
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.nav__link {
    position: relative;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-gray-300);
    padding: var(--space-2) 0;
    transition: color var(--transition-fast);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-blue);
    transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link.active {
    color: var(--color-white);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

/* Mobile Menu */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: all var(--transition-fast);
}

@media (max-width: 1024px) {
    .nav__toggle {
        display: flex;
    }

    .nav__list {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--color-navy);
        padding: var(--space-8);
        gap: var(--space-4);
        transform: translateY(-150%);
        opacity: 0;
        transition: all var(--transition-base);
    }

    .nav__list.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav__link {
        font-size: var(--text-lg);
    }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dark) 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-md), 0 0 20px rgba(76, 163, 221, 0.2);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn--secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn--secondary:hover {
    border-color: var(--color-blue);
    color: var(--color-blue);
    background: rgba(76, 163, 221, 0.1);
}

.btn--outline {
    background: transparent;
    color: var(--color-blue);
    border: 2px solid var(--color-blue);
}

.btn--outline:hover {
    background: var(--color-blue);
    color: var(--color-white);
}

.btn--large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
}

.btn--small {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

.btn--icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: var(--radius-full);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero__background canvas {
    width: 100%;
    height: 100%;
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: var(--space-8);
}

.hero__logo {
    width: 180px;
    height: auto;
    margin: 0 auto var(--space-8);
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(76, 163, 221, 0.4));
}

.hero__title {
    font-size: var(--text-6xl);
    font-weight: 700;
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

@media (max-width: 768px) {
    .hero__title {
        font-size: var(--text-4xl);
    }
}

.hero__subtitle {
    font-size: var(--text-xl);
    color: var(--color-gray-300);
    margin-bottom: var(--space-10);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero__buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* Float Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: rgba(17, 40, 64, 0.5);
    border: 1px solid rgba(76, 163, 221, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(76, 163, 221, 0.3);
    box-shadow: var(--shadow-glow);
}

.card__icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(76, 163, 221, 0.2) 0%, rgba(76, 163, 221, 0.05) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
    color: var(--color-blue);
    font-size: var(--text-2xl);
}

.card__title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
}

.card__text {
    color: var(--color-gray-400);
    line-height: 1.7;
}

/* Service Card */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-blue), transparent);
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
}

.service-card:hover::before {
    transform: translateX(0);
}

/* Project Card */
.project-card {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: var(--color-navy-light);
}

.project-card__image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-card__image img {
    transform: scale(1.1);
}

.project-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 26, 42, 0.9), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--space-6);
}

.project-card:hover .project-card__overlay {
    opacity: 1;
}

.project-card__content {
    padding: var(--space-6);
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.project-card__tag {
    padding: var(--space-1) var(--space-3);
    background: rgba(76, 163, 221, 0.1);
    color: var(--color-blue);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
}

/* Team Card */
.team-card {
    text-align: center;
    background: transparent;
    border: none;
}

.team-card:hover {
    background: transparent;
    box-shadow: none;
}

.team-card__image {
    width: 150px;
    height: 150px;
    border-radius: var(--radius-full);
    margin: 0 auto var(--space-6);
    overflow: hidden;
    border: 3px solid var(--color-blue);
    padding: 3px;
    background: linear-gradient(135deg, var(--color-blue), var(--color-navy));
}

.team-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-full);
}

.team-card__name {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
}

.team-card__role {
    color: var(--color-blue);
    font-size: var(--text-sm);
}

/* Testimonial Card */
.testimonial-card {
    position: relative;
    padding: var(--space-10) var(--space-8);
}

.testimonial-card__quote {
    font-size: var(--text-4xl);
    color: var(--color-blue);
    opacity: 0.3;
    position: absolute;
    top: var(--space-4);
    left: var(--space-6);
}

.testimonial-card__text {
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--color-gray-300);
    margin-bottom: var(--space-6);
    line-height: 1.8;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.testimonial-card__author-image {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.testimonial-card__author-name {
    font-weight: 600;
    font-size: var(--text-base);
}

.testimonial-card__author-role {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-16);
}

.section-header__label {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: rgba(76, 163, 221, 0.1);
    color: var(--color-blue);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header__title {
    margin-bottom: var(--space-6);
}

.section-header__text {
    color: var(--color-gray-400);
    font-size: var(--text-lg);
}

/* ============================================
   Values Section
   ============================================ */
.value-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-6);
    background: rgba(17, 40, 64, 0.3);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.value-item:hover {
    background: rgba(17, 40, 64, 0.5);
    transform: translateX(10px);
}

.value-item__icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-blue), var(--color-blue-dark));
    border-radius: var(--radius-md);
    flex-shrink: 0;
    font-size: var(--text-xl);
}

.value-item__title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
}

.value-item__text {
    color: var(--color-gray-400);
    font-size: var(--text-sm);
}

/* ============================================
   Stats Section
   ============================================ */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    padding: var(--space-12);
    background: linear-gradient(135deg, rgba(76, 163, 221, 0.1), transparent);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(76, 163, 221, 0.2);
}

@media (max-width: 768px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat {
    text-align: center;
}

.stat__number {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: 700;
    color: var(--color-blue);
    margin-bottom: var(--space-2);
}

.stat__label {
    color: var(--color-gray-400);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   Technologies Section
   ============================================ */
.tech-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-10);
}

.tech-logo {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    transition: all var(--transition-base);
    opacity: 0.6;
}

.tech-logo:hover {
    opacity: 1;
    background: rgba(76, 163, 221, 0.1);
    transform: scale(1.1);
}

.tech-logo img {
    max-width: 50px;
    max-height: 50px;
    filter: brightness(0) invert(1);
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
    background: linear-gradient(135deg, var(--color-navy-light) 0%, var(--color-navy) 100%);
    border-radius: var(--radius-2xl);
    padding: var(--space-16);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(76, 163, 221, 0.1) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.cta__content {
    position: relative;
    z-index: 1;
}

.cta__title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
}

.cta__text {
    color: var(--color-gray-400);
    font-size: var(--text-lg);
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Forms
   ============================================ */
.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-gray-300);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-4);
    background: rgba(17, 40, 64, 0.5);
    border: 1px solid rgba(76, 163, 221, 0.2);
    border-radius: var(--radius-lg);
    color: var(--color-white);
    font-size: var(--text-base);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(76, 163, 221, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-gray-500);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* ============================================
   Contact Info
   ============================================ */
.contact-info {
    display: grid;
    gap: var(--space-6);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-6);
    background: rgba(17, 40, 64, 0.3);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.contact-info-item:hover {
    background: rgba(17, 40, 64, 0.5);
}

.contact-info-item__icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-blue), var(--color-blue-dark));
    border-radius: var(--radius-md);
    flex-shrink: 0;
    font-size: var(--text-xl);
}

.contact-info-item__title {
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.contact-info-item__text {
    color: var(--color-gray-400);
    font-size: var(--text-sm);
}

/* ============================================
   Job Listings
   ============================================ */
.job-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6);
    background: rgba(17, 40, 64, 0.5);
    border: 1px solid rgba(76, 163, 221, 0.1);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.job-card:hover {
    border-color: rgba(76, 163, 221, 0.3);
    background: rgba(17, 40, 64, 0.7);
}

@media (max-width: 768px) {
    .job-card {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }
}

.job-card__info {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.job-card__title {
    font-size: var(--text-lg);
    font-weight: 600;
}

.job-card__meta {
    display: flex;
    gap: var(--space-4);
    color: var(--color-gray-400);
    font-size: var(--text-sm);
}

.job-card__meta span {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--color-navy-dark);
    padding: var(--space-16) 0 var(--space-8);
    border-top: 1px solid rgba(76, 163, 221, 0.1);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-10);
    margin-bottom: var(--space-12);
}

@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.footer__logo img {
    height: 40px;
}

.footer__logo-text {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 700;
    letter-spacing: 2px;
}

.footer__text {
    color: var(--color-gray-400);
    font-size: var(--text-sm);
    line-height: 1.7;
}

.footer__title {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-6);
    color: var(--color-white);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer__link {
    color: var(--color-gray-400);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--color-blue);
}

.footer__social {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.footer__social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(76, 163, 221, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-gray-400);
    transition: all var(--transition-fast);
}

.footer__social-link:hover {
    background: var(--color-blue);
    color: var(--color-white);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer__copyright {
    color: var(--color-gray-500);
    font-size: var(--text-sm);
}

/* ============================================
   WhatsApp Button
   ============================================ */
.whatsapp-btn {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: var(--text-2xl);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.5);
}

/* ============================================
   Modal
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal-backdrop);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
}

.modal.active {
    display: flex;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 26, 42, 0.9);
    backdrop-filter: blur(5px);
}

.modal__content {
    position: relative;
    z-index: var(--z-modal);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--color-navy-light);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(76, 163, 221, 0.2);
    padding: var(--space-10);
}

.modal__close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--color-gray-400);
    font-size: var(--text-xl);
    transition: all var(--transition-fast);
}

.modal__close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-8 {
    margin-top: var(--space-8);
}

.mt-12 {
    margin-top: var(--space-12);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.hidden {
    display: none;
}

.visible {
    visibility: visible;
}

.invisible {
    visibility: hidden;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Page Transition */
.page-transition {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Map Container */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(76, 163, 221, 0.2);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Glassmorphism variant */
.glass {
    background: rgba(17, 40, 64, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-navy-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--color-blue);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-blue-light);
}

/* Selection */
::selection {
    background: var(--color-blue);
    color: var(--color-white);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-12);
    flex-wrap: wrap;
}

.filter-tab {
    padding: var(--space-3) var(--space-6);
    background: transparent;
    border: 1px solid rgba(76, 163, 221, 0.2);
    border-radius: var(--radius-full);
    color: var(--color-gray-400);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--color-blue);
    border-color: var(--color-blue);
    color: var(--color-white);
}

/* Icon SVG Styles */
.icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.icon--lg {
    width: 32px;
    height: 32px;
}

/* Loader */
.loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(76, 163, 221, 0.1);
    border-top-color: var(--color-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Pulse animation for icons */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Culture benefits */
.benefit-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    background: rgba(76, 163, 221, 0.05);
    border-radius: var(--radius-lg);
}

.benefit-item__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-blue);
    border-radius: var(--radius-md);
    color: var(--color-white);
    font-size: var(--text-lg);
}

.benefit-item__text {
    font-size: var(--text-sm);
    color: var(--color-gray-300);
}

/* ============================================
   RTL (Right-to-Left) Support for Arabic
   ============================================ */

body.rtl {
    direction: rtl;
    text-align: right;
    font-family: 'Tajawal', sans-serif !important;
}

body.rtl * {
    font-family: 'Tajawal', sans-serif !important;
}

body.rtl h1,
body.rtl h2,
body.rtl h3,
body.rtl h4,
body.rtl h5,
body.rtl h6 {
    font-family: 'Tajawal', sans-serif !important;
}

/* RTL Header */
body.rtl .header__inner {
    flex-direction: row-reverse;
}

body.rtl .nav {
    flex-direction: row-reverse;
}

body.rtl .nav__list {
    flex-direction: row-reverse;
}

body.rtl .nav__link::after {
    left: auto;
    right: 0;
}

/* RTL Footer */
body.rtl .footer__grid {
    direction: rtl;
}

body.rtl .footer__links {
    text-align: right;
}

/* RTL Cards */
body.rtl .card {
    text-align: right;
}

body.rtl .service-card::before {
    left: auto;
    right: 0;
    background: linear-gradient(-90deg, var(--color-blue), transparent);
    transform: translateX(100%);
}

body.rtl .service-card:hover::before {
    transform: translateX(0);
}

/* RTL Value items */
body.rtl .value-item {
    flex-direction: row-reverse;
    text-align: right;
}

body.rtl .value-item:hover {
    transform: translateX(-10px);
}

/* RTL Contact Info */
body.rtl .contact-info-item {
    flex-direction: row-reverse;
    text-align: right;
}

/* RTL Flex utilities */
body.rtl .flex {
    flex-direction: row-reverse;
}

body.rtl .flex-col {
    flex-direction: column;
}

/* RTL Buttons */
body.rtl .btn {
    flex-direction: row-reverse;
}

/* RTL Forms */
body.rtl .form-input,
body.rtl .form-textarea,
body.rtl .form-select {
    text-align: right;
}

body.rtl .form-label {
    text-align: right;
}

/* RTL Project tags */
body.rtl .project-card__tags {
    justify-content: flex-start;
}

/* RTL Team cards */
body.rtl .testimonial-card__author {
    flex-direction: row-reverse;
}

body.rtl .testimonial-card__quote {
    left: auto;
    right: var(--space-6);
}

/* RTL Stats */
body.rtl .stats {
    direction: rtl;
}

/* RTL Footer line */
body.rtl .footer-line {
    background: linear-gradient(270deg, var(--color-blue), transparent);
}

/* RTL Mobile menu */
@media (max-width: 1024px) {
    body.rtl .nav__list {
        flex-direction: column;
    }
}

/* Language Switcher */
.lang-switcher__btn {
    background: transparent;
    border: 1px solid var(--color-blue);
    color: var(--color-blue);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: 600;
    transition: all var(--transition-base);
}

.lang-switcher__btn:hover {
    background: var(--color-blue);
    color: var(--color-white);
}