/* =========================================================
   Frontend Style - Company Profile CMS
   Structure:
   1) Variables
   2) Reset & Base
   3) Layout
   4) Utilities
   5) Buttons
   6) Header / Navbar
   7) Hero
   8) Sections
   9) Cards
   10) Statistics
   11) Testimonials
   12) Contact
   13) Alerts
   14) Generic Modal
   15) Footer
   16) Floating WhatsApp
   17) Team Components
   18) Project Modal
   19) Responsive
========================================================= */

/* =========================
   1) Variables
========================= */
:root {
    --primary: #1a1a2e;
    --primary-light: #16213e;
    --accent: #0f3460;
    --accent-light: #e94560;

    --white: #ffffff;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #007bff;
    --whatsapp: #25d366;

    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;

    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    overflow-x: hidden;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

/* =========================
   3) Layout
========================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid {
    display: grid;
    gap: 24px;
}

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

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

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

/* =========================
   4) Utilities
========================= */
.section {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.section:nth-child(even) {
    background: var(--gray-50);
}

.section-title {
    position: relative;
    margin-bottom: 50px;
    color: var(--gray-900);
    text-align: center;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    margin: 16px auto 0;
    border-radius: 2px;
    background: var(--accent-light);
}

/* موجة خفيفة أعلى الأقسام */
.section::before {
    content: "";
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--gray-50);
    border-radius: 50% 50% 0 0;
    pointer-events: none;
}

/* =========================
   5) Buttons
========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    transition: var(--transition);
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-hero {
    padding: 14px 36px;
    border-radius: var(--radius);
    background: var(--accent-light);
    color: var(--white);
    font-size: 18px;
}

.btn-hero:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: var(--white);
}

.btn-whatsapp:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* =========================
   6) Header / Navbar
========================= */
.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: none;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-header.scrolled {
    background: color-mix(in srgb, var(--header-bg) 85%, transparent);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar {
    padding: 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    width: auto;
    height: 42px;
}

.nav-brand-text {
    color: var(--header-text);
    font-size: 20px;
    font-weight: 800;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nav-link {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    color: var(--header-text);
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
}

.lang-switch {
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 14px;
    font-weight: 700;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    border: none;
    background: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: var(--header-text);
    transition: var(--transition);
}

/* =========================
   7) Hero
========================= */
.hero-section {
    position: relative;
    min-height: 90vh;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    border-bottom-right-radius: 60px;
    border-bottom-left-radius: 60px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-color: var(--primary);
    background-position: center;
    background-size: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(15, 52, 96, 0.7) 100%);
    clip-path: inherit;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 20px;
    color: var(--white);
    text-align: center;
}

.hero-content h1 {
    margin-bottom: 20px;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.2;
    text-wrap: balance;
}

.hero-content p {
    max-width: 700px;
    margin-bottom: 32px;
    opacity: 0.9;
    font-size: clamp(16px, 2.5vw, 22px);
    line-height: 1.6;
}

.hero-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    z-index: 10;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 2px solid var(--white);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot.active {
    background: var(--white);
}

/* =========================
   8) Generic Cards / Shared
========================= */
.card {
    position: relative;
    z-index: 1;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12), 0 6px 6px rgba(0, 0, 0, 0.08);
    text-align: center;
    cursor: pointer;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.1);
}

.card-icon {
    display: flex;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 28px;
    transition: transform 0.5s ease;
}

.card:hover .card-icon {
    transform: rotate(15deg) scale(1.1);
}

.card-icon i,
.stat-icon i,
.contact-item i {
    color: var(--icon-color);
}

.card-img {
    width: 100%;
    height: 180px;
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.card-img-cover {
    display: block;
    width: 100%;
    height: 220px;
    margin: 0 auto 16px;
    border-radius: var(--radius) var(--radius) 0 0;
    object-fit: cover;
}


.card h3 {
    margin-bottom: 10px;
    color: var(--gray-900);
    font-size: 20px;
    font-weight: 700;
}

.card p {
    color: var(--gray-500);
    font-size: 15px;
    line-height: 1.7;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    color: var(--accent-light);
    font-size: 15px;
    font-weight: 600;
}

.card-body {
    padding-top: 16px;
}

.card-why {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    text-align: start;
}

.card-why .card-icon {
    flex-shrink: 0;
    margin: 0;
}

.card-text h3 {
    margin-bottom: 8px;
}

/* =========================
   9) Statistics
========================= */
.section-stats {
    color: var(--footer-text);
    background: var(--footer-bg);
}
.section.section-stats {
    background: var(--footer-bg) !important;
    color: var(--footer-text) !important;
}

.section.section-stats::before {
    background: var(--footer-bg) !important;
}

.section-stats .section-title {
    color: var(--footer-text);
}

.section-stats .section-title::after {
    background: var(--accent-light);
}

.stat-card {
    padding: 24px;
    text-align: center;
}

.stat-icon {
    margin-bottom: 12px;
    opacity: 0.9;
    font-size: 40px;
}

.stat-count {
    margin-bottom: 6px;
    font-size: 48px;
    font-weight: 800;
}

.stat-label {
    color: var(--footer-text);
    opacity: 0.85;
    font-size: 16px;
    font-weight: 500;
}



/* =========================
   10) Testimonials
========================= */
.testimonials-slider {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-card {
    display: none;
    padding: 40px 32px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.testimonial-card.active {
    display: block;
}

.testimonial-quote {
    margin-bottom: 16px;
    color: var(--accent-light);
    opacity: 0.5;
    font-size: 36px;
}

.testimonial-text {
    margin-bottom: 24px;
    color: var(--gray-600);
    font-size: 18px;
    font-style: italic;
    line-height: 1.8;
}

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

.testimonial-img,
.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.testimonial-img {
    object-fit: cover;
}

.testimonial-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
    color: var(--gray-400);
    font-size: 24px;
}

.testimonial-author strong {
    display: block;
    color: var(--gray-800);
    font-size: 16px;
}

.testimonial-author span {
    display: block;
    color: var(--gray-400);
    font-size: 14px;
}

.testimonial-stars {
    color: var(--gray-300);
    font-size: 16px;
}

.testimonial-stars .filled {
    color: var(--warning);
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.testimonial-nav button {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    background: var(--white);
    color: var(--gray-600);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.testimonial-nav button:hover {
    border-color: var(--accent-light);
    color: var(--accent-light);
}

/* =========================
   11) Contact
========================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--gray-600);
    font-size: 16px;
}

.contact-item i {
    display: flex;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--primary);
    font-size: 18px;
}

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

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-links a {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 18px;
}

.social-links a:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
}

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

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--gray-800);
    font-size: 16px;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

/* =========================
   12) Alerts
========================= */
.alert {
    margin-bottom: 24px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 500;
}

.alert-success {
    border: 1px solid #a7f3d0;
    background: #ecfdf5;
    color: #065f46;
}

.alert-error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

/* =========================
   13) Generic Modal
========================= */
.modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-dialog {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    padding: 32px;
    border-radius: var(--radius);
    background: var(--white);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-500);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

[dir="rtl"] .modal-close {
    right: auto;
    left: 16px;
}

.modal-close:hover {
    background: var(--danger);
    color: var(--white);
}

.modal-img {
    width: 100%;
    height: 250px;
    margin-bottom: 20px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.modal-content h3 {
    margin-bottom: 14px;
    color: var(--gray-900);
    font-size: 24px;
    font-weight: 700;
}

.modal-content p {
    margin-bottom: 20px;
    color: var(--gray-600);
    line-height: 1.8;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* =========================
   14) Footer
========================= */
.site-footer {
    padding: 70px 0 0;
    background: var(--footer-bg);
    color: var(--footer-text);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    width: auto;
    height: 42px;
    margin-bottom: 12px;
}

.footer-brand-text,
.footer-title {
    font-size: 20px;
    font-weight: 800;
}

.footer-text {
    opacity: 0.85;
    font-size: 15px;
    line-height: 1.7;
}

.footer-heading {
    margin-bottom: 14px;
    font-size: 16px;
    font-weight: 700;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
}

.footer-links a {
    opacity: 0.8;
}

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

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.85;
    font-size: 15px;
}

.footer-contact i {
    color: var(--accent-light);
}

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

.footer-social a {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--footer-text);
}

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

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0.75;
    text-align: center;
    font-size: 14px;
}

.footer-copyright {
    opacity: 0.7;
    font-size: 14px;
}

/* =========================
   15) Floating WhatsApp
========================= */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;
    display: flex;
    width: 60px;
    height: 60px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--whatsapp);
    color: var(--white);
    box-shadow: var(--shadow-lg);
    font-size: 32px;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 24px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

/* =========================
   16) Team Cards & Team Modal
========================= */
.card-team {
    position: relative;
    overflow: hidden;
    padding: 40px 25px 30px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.card-team::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.card-team:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
}

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

.team-img-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
}

.team-img-wrapper::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    opacity: 0.15;
    transform: translate(-50%, -50%);
    transition: var(--transition);
}

.team-avatar {
    position: relative;
    z-index: 2;
    display: block;
    width: 130px;
    height: 130px;
    margin: 0 auto;
    border: 3px solid var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    transition: var(--transition);
}

.team-avatar.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    color: var(--primary);
    font-size: 40px;
    font-weight: bold;
}

.card-team:hover .team-avatar {
    transform: scale(1.05);
    border-color: var(--primary);
}

.card-team:hover .team-img-wrapper::after {
    width: 150px;
    height: 150px;
    opacity: 0.25;
}

.card-team h3 {
    margin-bottom: 8px;
    color: var(--gray-900);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.card-team:hover h3 {
    color: var(--primary);
}

.card-team .job-title {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
}

.card-team:hover .job-title {
    background: var(--primary-light);
    color: var(--white);
}

.team-modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: none;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.team-modal-content {
    position: relative;
    overflow: hidden;
    width: 90%;
    max-width: 800px;
    padding: 0;
    border: none;
    border-radius: var(--radius-lg);
    background-color: var(--white);
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.team-modal.show .team-modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 10;
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-500);
    cursor: pointer;
    font-size: 28px;
    font-weight: bold;
    transition: var(--transition);
}

html[dir="rtl"] .close-modal {
    right: auto;
    left: 20px;
}

.close-modal:hover {
    background: var(--danger);
    color: var(--white);
}

.modal-body {
    display: flex;
    width: 100%;
    flex-direction: row;
    align-items: stretch;
}

html[dir="rtl"] .modal-body {
    text-align: right;
}

html[dir="ltr"] .modal-body {
    text-align: left;
}

.modal-img-container {
    position: relative;
    display: flex;
    flex: 0 0 35%;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
}

.modal-img-container img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}

html[dir="rtl"] .modal-img-container img {
    border-radius: 0 25px 0 25px;
}

html[dir="ltr"] .modal-img-container img {
    border-radius: 25px 0 25px 0;
}

.modal-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
}

.modal-info h2 {
    margin: 0 0 5px;
    color: var(--gray-900);
    font-size: 2rem;
}

.modal-job-title {
    margin: 0 0 20px;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 500;
}

.modal-bio {
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.8;
}

/* =========================
   17) Project Modal
========================= */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: none;
    width: 100%;
    height: 100%;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.project-modal.show {
    display: flex;
    opacity: 1;
}

.project-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.project-modal-content {
    position: relative;
    z-index: 10000;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    border-radius: 15px;
    background: var(--white);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    direction: rtl;
}

.project-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10001;
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
}

.project-modal-close:hover {
    background: #ff4444;
    color: var(--white);
    transform: rotate(90deg);
}

.project-slider-container {
    position: relative;
    margin-bottom: 30px;
}

.slider-main {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.slider-image,
.slider-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.slider-video {
    background: #000;
}

.slider-image.active,
.slider-video.active {
    opacity: 1;
    pointer-events: auto;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    display: flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    cursor: pointer;
    font-size: 20px;
    transform: translateY(-50%);
    transition: all 0.3s;
}

.slider-arrow:hover {
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: var(--info);
}

.slider-prev {
    left: 15px;
}

.slider-next {
    right: 15px;
}

html[dir="rtl"] .slider-prev {
    right: 15px;
    left: auto;
}

html[dir="rtl"] .slider-next {
    left: 15px;
    right: auto;
}

.slider-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding: 10px 5px;
    scrollbar-width: thin;
}

.slider-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.slider-thumbnails::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: #ccc;
}

.slider-thumb,
.video-thumb {
    flex: 0 0 auto;
    width: 100px;
    height: 70px;
    border: 3px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
}

.slider-thumb {
    object-fit: cover;
}

.slider-thumb:hover,
.video-thumb:hover {
    opacity: 1;
    transform: scale(1.05);
}

.slider-thumb.active,
.video-thumb.active {
    border-color: var(--info);
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.3);
}

.video-thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
}

.video-thumb i {
    margin-bottom: 4px;
    color: var(--white);
    font-size: 24px;
}

.video-thumb span {
    font-size: 10px;
    font-weight: 500;
}

.project-details {
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

html[dir="ltr"] .project-details {
    text-align: left;
}

.project-details h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 1.8rem;
}

.project-client {
    margin-bottom: 15px;
    color: var(--info);
    font-weight: 500;
}

.project-description {
    margin-bottom: 15px;
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
}

/* =========================
   18) Responsive
========================= */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .nav-menu {
        position: absolute;
        top: 72px;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        gap: 6px;
        padding: 16px;
        background: var(--header-bg);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-link {
        padding: 12px 16px;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .contact-grid,
    .form-row-2,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }

    .card {
        padding: 24px 18px;
    }

    .card-img-cover {
        height: 180px;
    }

    .card-why {
        flex-direction: column;
        text-align: center;
    }

    .card-why .card-icon {
        margin: 0 auto;
    }

    .stat-count {
        font-size: 36px;
    }

    .footer-grid {
        gap: 30px;
        text-align: center;
    }

    .footer-contact li,
    .footer-social {
        justify-content: center;
    }

    .modal-body {
        flex-direction: column;
    }

    .modal-img-container {
        width: 100%;
        height: 250px;
        flex: none;
    }

    .modal-img-container img {
        border-radius: 0 0 var(--radius) var(--radius);
    }

    .modal-info {
        padding: 25px;
    }

    .project-modal-content {
        width: 95%;
        padding: 20px 15px;
    }

    .slider-main {
        height: 300px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .slider-thumb,
    .video-thumb {
        width: 80px;
        height: 60px;
    }

    .project-details h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .section-title {
        font-size: 24px;
    }
}
.footer-company-bio {
    margin-top: 12px;
    max-width: 320px;
    line-height: 1.8;
    opacity: 0.9;
}
