:root {
    /* Brand Palette */
    --primary-red: #E62E33;
    --dark-charcoal: #1F2937;
    --gunmetal: #4A4F55;
    --platinum: #F2F4F6;
    --pure-white: #ffffff;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--platinum);
}

::-webkit-scrollbar-thumb {
    background: var(--gunmetal);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red);
}

/* Scroll To Top Button */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    font-size: 1.5rem;
    border: none;
    outline: none;
    background-color: var(--primary-red);
    color: white;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

#scrollToTopBtn:hover {
    background-color: var(--gunmetal);
    transform: translateY(-5px);
}

/* UX Fix: Smooth scrolling ensuring header doesn't cover content */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px;
    /* Offsets the fixed header height */
}

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

body {
    background-color: #fafbfc;
    color: var(--dark-charcoal);
    font-family: 'Manrope', sans-serif;
    overflow-x: hidden;
    padding-top: 110px;
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html[dir="rtl"] body {
    font-family: 'Cairo', sans-serif;
    text-align: right;
    font-size: 1.05rem;
    /* Cairo often needs a slight boost to match Latin visual weight */
    letter-spacing: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Top Contact Bar --- */
.top-bar {
    background-color: var(--primary-red);
    color: white;
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1002;
    flex-wrap: wrap;
    /* UX Fix: Prevents text overlap on small screens */
}

.contact-group {
    display: flex;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- Social Links --- */
.social-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: white;
    /* Matches top bar text */
    transition: var(--transition);
    padding: 4px 8px;
    border-radius: 4px;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.social-link-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    transition: var(--transition);
}

.whatsapp-link-footer:hover {
    color: var(--gunmetal);
    /* Hover effect for footer links */
    transform: translateX(5px);
}

/* Fix: Keep phone numbers LTR even in Arabic */
html[dir="rtl"] .whatsapp-link-footer,
html[dir="rtl"] .social-link {
    direction: ltr;
    display: inline-flex;
    /* Ensure flex behavior keeps icon/text order */
    justify-content: flex-end;
    /* Align to right since parent is RTL text-align right */
}

html[dir="rtl"] .whatsapp-link-footer {
    justify-content: flex-end;
    /* Phone numbers in footer align right but read LTR */
}

/* --- Navigation --- */
.glass-nav {
    position: fixed;
    top: 38px;
    width: 100%;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    height: 75px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.brand-name {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--dark-charcoal);
    margin: 0 10px;
}

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

.text-red {
    color: var(--primary-red);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--gunmetal);
    font-weight: 700;
    transition: var(--transition);
    position: relative;
}

/* Hover Underline Effect */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-red);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-red);
}

/* RTL Fix for Nav Underline */
html[dir="rtl"] .nav-links a::after {
    left: auto;
    right: 0;
}

.btn-primary {
    background: var(--primary-red);
    color: white !important;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(230, 46, 51, 0.2);
}

.btn-primary::after {
    display: none;
}

/* Remove underline from button */
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 46, 51, 0.4);
}

.lang-btn {
    background: transparent;
    border: 2px solid var(--gunmetal);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    transition: var(--transition);
}

.lang-btn:hover {
    background: var(--gunmetal);
    color: white;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--dark-charcoal);
}

/* --- Hero Section --- */
.hero {
    min-height: 85vh;
    /* UX Fix: Use min-height for mobile rotation */
    display: flex;
    align-items: center;
    padding: 40px 5%;
    position: relative;
    background-color: var(--dark-charcoal);
    color: white;
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    /* Reduced empty feel */
    position: relative;
}

.hero h1 {
    font-size: 5.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    font-weight: 900;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

html[dir="rtl"] .hero h1 {
    line-height: 1.3;
    /* Arabic needs more leading */
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 90%;
}

.hero-cta-group {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.btn-cta {
    background: linear-gradient(135deg, var(--primary-red), #ff6b6b);
    color: white;
    padding: 1.1rem 2.2rem;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(230, 46, 51, 0.3);
}

.btn-cta:hover {
    background: white;
    color: var(--primary-red);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(230, 46, 51, 0.4);
    border-color: var(--primary-red);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 1.1rem 2.2rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.text-outline {
    -webkit-text-stroke: 1px var(--primary-red);
    color: transparent;
    font-weight: 900;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    margin-top: 4rem;
}

.stat-box h3 {
    font-size: 3.5rem;
    color: var(--primary-red);
    margin-bottom: 0;
    line-height: 1;
}

.stat-box span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.stat-box h3 {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 5px;
}

.hero-visual {
    position: absolute;
    right: -10%;
    top: 0;
    height: 100%;
    width: 50%;
    z-index: 1;
    pointer-events: none;
}

html[dir="rtl"] .hero-visual {
    right: auto;
    left: -10%;
    transform: scaleX(-1);
}

.beam {
    background: var(--gunmetal);
    position: absolute;
    transform: skew(-20deg);
}

.beam-1 {
    width: 120px;
    height: 120%;
    right: 20%;
    top: -10%;
    opacity: 0.5;
}

.beam-2 {
    width: 80px;
    height: 120%;
    right: 5%;
    top: -10%;
    background: var(--primary-red);
    opacity: 0.8;
}

/* --- Services --- */
.section-padding {
    padding: 8rem 0;
}

.light-bg {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.light-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
}

.about-text p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #5a6c7d;
    max-width: 800px;
    font-weight: 400;
}

.mt-4 {
    margin-top: 1.5rem;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--dark-charcoal) 0%, var(--gunmetal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), #ff6b6b);
    margin-top: 15px;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(230, 46, 51, 0.3);
}

/* --- About Section (New Layout) --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 5px solid var(--primary-red);
    z-index: 0;
    opacity: 0.3;
}

html[dir="rtl"] .about-image::before {
    right: auto;
    left: -20px;
}

.rounded-shadow {
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    display: block;
    transition: transform 0.4s ease;
}

.rounded-shadow:hover {
    transform: scale(1.02);
}

.about-stats-grid {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

/* --- Leadership Section --- */
.bg-dark {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
}

.bg-dark::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

.manager-card {
    max-width: 1100px;
    margin: 0 auto;
    background: white;
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 0;
    align-items: stretch;
}

.manager-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-red), #ff6b6b);
    z-index: 10;
}

.manager-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

.manager-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(230, 46, 51, 0.1), transparent);
    z-index: 1;
}

.manager-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
    position: relative;
    z-index: 0;
}

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

.manager-info {
    padding: 4rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.manager-name {
    font-size: 2.8rem;
    color: var(--dark-charcoal);
    margin-bottom: 0.5rem;
    font-weight: 900;
    line-height: 1.2;
}

.manager-role {
    color: var(--primary-red);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.manager-role::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-red);
}

.manager-bio {
    color: #5a6c7d;
    line-height: 1.9;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.manager-bio h5 {
    color: var(--primary-red);
    font-size: 1.1rem;
    font-weight: 800;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.manager-bio ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.manager-bio li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    line-height: 1.6;
}

.manager-bio li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
}

/* RTL Support for Manager Bio Lists */
html[dir="rtl"] .manager-bio li {
    padding-left: 0;
    padding-right: 1.5rem;
    text-align: right;
}

html[dir="rtl"] .manager-bio li::before {
    left: auto;
    right: 0;
    content: '◂';
}

html[dir="rtl"] .manager-bio h5 {
    text-align: right;
}

html[dir="rtl"] .manager-bio p {
    text-align: right;
}

.manager-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.m-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--dark-charcoal);
    background: rgba(230, 46, 51, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition);
}

.m-stat:hover {
    background: rgba(230, 46, 51, 0.1);
    transform: translateX(5px);
}

.m-stat ion-icon {
    color: var(--primary-red);
    font-size: 1.8rem;
}

/* RTL Layout - Image on Right */
html[dir="rtl"] .manager-card {
    grid-template-columns: 1fr 400px;
}

html[dir="rtl"] .manager-role::after {
    left: auto;
    right: 0;
}

html[dir="rtl"] .m-stat:hover {
    transform: translateX(-5px);
}

/* Mobile Manager */
@media (max-width: 968px) {
    .manager-card {
        grid-template-columns: 1fr;
    }

    html[dir="rtl"] .manager-card {
        grid-template-columns: 1fr;
    }

    .manager-image-wrapper {
        min-height: 400px;
        order: -1;
    }

    .manager-info {
        padding: 3rem 2rem;
        text-align: center;
    }

    .manager-name {
        font-size: 2.2rem;
    }

    .manager-role {
        font-size: 1.1rem;
    }

    .manager-role::after {
        left: 50%;
        transform: translateX(-50%);
    }

    html[dir="rtl"] .manager-role::after {
        right: 50%;
        left: 50%;
        transform: translateX(-50%);
    }

    .manager-bio {
        font-size: 1rem;
    }

    .manager-stats {
        justify-content: center;
        gap: 1rem;
    }

    .m-stat {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .m-stat:hover {
        transform: translateY(-3px);
    }

    html[dir="rtl"] .m-stat:hover {
        transform: translateY(-3px);
    }
}

.a-stat {
    display: flex;
    flex-direction: column;
}

.a-stat .num {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-red);
    line-height: 1;
    background: linear-gradient(135deg, var(--primary-red), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.a-stat .txt {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gunmetal);
    text-transform: uppercase;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}

.service-card {
    background: #111827;
    color: #ffffff;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 5px solid var(--primary-red);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    min-height: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.service-card::before {
    content: attr(data-step);
    position: absolute;
    bottom: -20px;
    right: 50%;
    transform: translateX(50%);
    font-size: 12rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    /* Slightly more visible */
    line-height: 1;
    z-index: 0;
    font-family: 'Cairo', sans-serif;
}

html[dir="rtl"] .service-card::before {
    right: 50%;
    left: auto;
    transform: translateX(50%);
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    background: #000000;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.service-card .icon-wrap {
    background: rgba(255, 255, 255, 0.1);
    /* Lighter background for visibility */
    color: var(--primary-red);
    width: 90px;
    height: 90px;
    font-size: 3rem;
    border-radius: 50%;
    margin-bottom: 2rem;
    z-index: 1;
    position: relative;
    border: 2px solid var(--primary-red);
    /* Solid border */
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card:hover .icon-wrap {
    background: var(--primary-red);
    color: white;
    box-shadow: 0 0 30px rgba(230, 46, 51, 0.6);
    transform: rotate(10deg) scale(1.1);
}

.service-card h3 {
    font-size: 1.8rem;
    /* Larger Title */
    margin-bottom: 1.5rem;
    z-index: 1;
    position: relative;
    font-weight: 800;
}

.service-card p {
    color: #ffffff;
    /* PURE WHITE - NO OPACITY */
    line-height: 1.8;
    z-index: 1;
    position: relative;
    font-size: 1.1rem;
    /* Larger Text */
    font-weight: 500;
    /* Thicker Text */
    opacity: 0.95;
}


/* --- Projects Grid --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    /* UX Fix: Smaller min-width for mobile */
    gap: 20px;
    margin-top: 2rem;
}

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(230, 46, 51, 0.1);
}

.image-container {
    position: relative;
    width: 100%;
    height: 220px;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 3px solid var(--primary-red);
    transition: transform 0.6s ease;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.view-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(230, 46, 51, 0.9);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.view-btn:hover {
    transform: scale(1.05);
    background: var(--primary-red);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--dark-charcoal);
    margin-bottom: 0.5rem;
}

/* --- Footer --- */
footer {
    background: var(--primary-red);
    position: relative;
    padding-top: 5rem;
    margin-top: 4rem;
}

footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--gunmetal);
    border-bottom-right-radius: 100% 100px;
    z-index: 1;
}

html[dir="rtl"] footer::before {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 100% 100px;
}

/* --- LIGHTBOX --- */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2001;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: var(--primary-red);
    text-decoration: none;
    cursor: pointer;
}

.lightbox-nav {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    outline: none;
}

.lightbox-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev {
    left: -60px;
}

.next {
    right: -60px;
}

/* Mobile Arrows logic */
@media (max-width: 768px) {
    .prev {
        left: 0;
    }

    .next {
        right: 0;
    }

    .lightbox-nav {
        background: rgba(0, 0, 0, 0.5);
    }
}

.lightbox-caption {
    margin-top: 15px;
    color: #ccc;
    font-size: 1.2rem;
    text-align: center;
    font-weight: 300;
}

html[dir="rtl"] footer::before {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 100% 100px;
}

.footer-content {
    position: relative;
    z-index: 2;
    color: white;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-bottom: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding-bottom: 2rem;
}

.footer-col h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: var(--primary-red);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    margin-bottom: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-col.links ul {
    list-style: none;
    padding: 0;
}

.footer-col.links li {
    margin-bottom: 10px;
}

.footer-col.links a {
    text-decoration: none;
    color: white;
    transition: var(--transition);
    display: inline-block;
}

.footer-col.links a:hover {
    color: var(--gunmetal);
    transform: translateX(5px);
}

.footer-col.contact p a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.footer-col.contact p a:hover {
    color: var(--gunmetal);
    transform: translateX(5px);
}

.footer-map iframe {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.text-white {
    color: white !important;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
    background: #c41e23;
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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



/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
        /* Stack on tablet/mobile */
        gap: 2rem;
        text-align: center;
    }

    .about-stats-grid {
        justify-content: center;
    }

    .about-image {
        order: -1;
        /* Image on top for mobile */
        margin: 0 2rem;
    }
}

@media (max-width: 768px) {

    /* UX Fix: Center top bar and allow wrapping */
    .top-bar {
        justify-content: center;
        text-align: center;
        gap: 5px;
    }

    .contact-group {
        justify-content: center;
    }

    /* Nav Adjustment */
    .glass-nav {
        top: 60px;
        height: 60px;
    }

    .menu-toggle {
        display: block;
    }

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

    /* UX Fix: Better mobile menu styling */
    .nav-links {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        gap: 25px;
        padding: 40px 0;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        /* Hidden state */
        opacity: 0;
        transform: translateY(-20px);
        pointer-events: none;
        transition: all 0.3s ease;
        border-bottom: 1px solid #eee;
    }

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

    /* Large touch targets */
    .nav-links a {
        font-size: 1.2rem;
        padding: 10px;
        width: 100%;
        text-align: center;
    }

    .btn-primary {
        width: 80%;
    }

    /* UX Fix: Font sizes for mobile */
    .hero h1 {
        font-size: 3rem;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .btn-cta,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    body {
        padding-top: 130px;
    }

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

    footer::before {
        border-radius: 0 0 50% 50% / 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}