/* ========== CSS Variables ========== */
:root {
    --primary-blue: #0077b6;
    --primary-dark: #1a1a2e;
    --secondary-dark: #16213e;
    --accent-blue: #00b4d8;
    --light-blue: #90e0ef;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #e9ecef;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

/* ========== Reset & Base Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background-color: #005f8a;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}

.btn-secondary:hover {
    background-color: var(--text-dark);
    color: var(--white);
}

.btn-call {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.btn-call:hover {
    background-color: #005f8a;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* ========== Language Switcher ========== */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.language-switcher {
    display: flex;
    gap: 5px;
    background-color: var(--off-white);
    padding: 4px;
    border-radius: 30px;
}

.lang-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    background-color: transparent;
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
}

.lang-btn:hover {
    background-color: rgba(0, 119, 182, 0.1);
}

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

/* ========== Header ========== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.main-header.scrolled {
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

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

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: none;
    /* Hide original span if we keep it, or just replace the block below */
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.logo-text-main {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
}

.logo-text-sub {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--primary-dark);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.main-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* ========== Hero Section ========== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.7), rgba(22, 33, 62, 0.8)),
        url('./hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 80px;
    position: relative;
}

.hero-content {
    max-width: 650px;
    padding: 60px 40px;
    color: var(--white);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ========== Hero Stats Overlay ========== */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px 30px;
    text-align: center;
    min-width: 160px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-card h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--light-blue);
    margin-bottom: 5px;
    line-height: 1.2;
}

.stat-card p {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero-stats {
        gap: 15px;
    }

    .stat-card {
        padding: 15px 20px;
        min-width: 140px;
    }

    .stat-card h3 {
        font-size: 1.8rem;
    }
}

/* ========== Centered Hero Variant ========== */
.hero.hero-centered {
    justify-content: center;
    text-align: center;
}

.hero.hero-centered .hero-content {
    max-width: 900px;
    text-align: center;
}

.hero.hero-centered .hero-buttons {
    justify-content: center;
}

/* ========== RTL Support for Arabic ========== */
html[dir="rtl"] {
    font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
}

html[dir="rtl"] .main-nav ul {
    flex-direction: row-reverse;
}

html[dir="rtl"] .header-container {
    flex-direction: row-reverse;
}

html[dir="rtl"] .hero.hero-centered .hero-content {
    text-align: center;
}

html[dir="rtl"] .btn {
    flex-direction: row-reverse;
}

/* ========== Section Styles ========== */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-blue);
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    max-width: 700px;
}

/* ========== Services Overview ========== */
.services-overview {
    padding: 80px 0;
    background-color: var(--white);
}

.services-overview .section-title::after {
    left: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.service-card {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--off-white);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

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

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.service-card:hover .service-icon {
    background-color: var(--primary-dark);
}

.service-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.service-card p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ========== Why Choose Us ========== */
.why-choose-us {
    padding: 80px 0;
    background-color: var(--off-white);
}

.why-choose-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.why-choose-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 25px;
}

.why-choose-image-mobile {
    display: none;
}

.benefits-list {
    margin-top: 20px;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.benefits-list i {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-top: 3px;
}

.why-choose-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.why-choose-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* ========== Featured Projects ========== */
.featured-projects {
    padding: 80px 0;
    background-color: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    box-shadow: var(--shadow-lg);
}

.project-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-info {
    padding: 20px;
    background-color: var(--white);
    position: relative;
    z-index: 2;
}

.project-card:hover .carousel-slide img {
    opacity: 0.85;
}

.project-card:hover .carousel-btn {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}

.project-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.project-info p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ========== CTA Section ========== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-blue), #005f8a);
    position: relative;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--white);
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.cta-buttons .btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.cta-buttons .btn-secondary {
    border-color: var(--white);
    color: var(--white);
    background-color: transparent;
}

.cta-buttons .btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

/* ========== Footer ========== */
.main-footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr 1fr;
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 50px;
}

.footer-logo span {
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-about p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-vision-logo {
    display: block;
    width: 100%;
    max-width: 180px;
    height: auto;
    opacity: 0.9;
    transition: var(--transition);
    mix-blend-mode: screen;
    /* Attempt to blend dark background */
}

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

.footer-vision-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-links h3,
.footer-services h3,
.footer-contact h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

.footer-links h3::after,
.footer-services h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-blue);
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-services a {
    font-size: 0.9rem;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-services a:hover {
    opacity: 1;
    color: var(--light-blue);
    padding-left: 5px;
}

.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-contact .contact-item i {
    color: var(--light-blue);
    margin-top: 4px;
}

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

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

.social-links a:hover {
    background-color: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ========== Page Header (for inner pages) ========== */
.page-header {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.85), rgba(22, 33, 62, 0.9)),
        url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header .breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.page-header .breadcrumb a {
    color: var(--light-blue);
}

/* ========== About Page Styles ========== */
.about-intro {
    padding: 80px 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

/* ========== About Page Additional Sections ========== */
.about-section {
    padding: 60px 0;
    background-color: var(--white);
}

.about-section.alt-bg {
    background-color: var(--off-white);
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.vm-card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--primary-blue);
    text-align: center;
    transition: transform 0.3s ease;
    height: 100%;
}

.vm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.vm-card .section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: inline-block;
}

.vm-card .section-title::after {
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
}

.vm-card p {
    color: var(--text-light);
    line-height: 1.8;
    text-align: justify;
}

@media (max-width: 768px) {
    .vision-mission-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== Core Values Grid ========== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.value-card {
    background: var(--white);
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    border-bottom: 3px solid transparent;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--primary-blue);
}

.value-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 119, 182, 0.1);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    transition: var(--transition);
}

.value-card:hover .value-icon {
    background-color: var(--primary-blue);
    color: var(--white);
}

.value-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.value-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ========== Experience Section ========== */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.experience-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--off-white);
    padding: 25px;
    border-radius: 10px;
    transition: var(--transition);
    border-left: 4px solid var(--primary-blue);
}

.experience-card:hover {
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.exp-icon {
    min-width: 50px;
    height: 50px;
    background-color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.2rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.exp-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-dark);
}

.exp-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

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

.about-section .section-title {
    margin-bottom: 25px;
}

.about-section p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-section p strong {
    color: var(--primary-dark);
}

.about-list {
    margin-top: 20px;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.about-list li i {
    color: var(--primary-blue);
    font-size: 0.5rem;
    margin-top: 8px;
}

.values-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.values-list li {
    padding: 15px 20px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: var(--transition);
}

.about-section.alt-bg .values-list li {
    background-color: var(--white);
}

.values-list li:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.values-list li strong {
    color: var(--primary-blue);
}

.service-area .location {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.service-area .location i {
    color: #e91e63;
    margin-right: 8px;
}

/* ========== Services Page Styles ========== */
.services-full {
    padding: 80px 0;
    background-color: var(--white);
}

.services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    display: flex;
    gap: 25px;
    padding: 30px;
    background-color: var(--off-white);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.service-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.service-item .service-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.service-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.service-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    text-align: justify;
}

/* ========== Projects Page Styles ========== */
.projects-full {
    padding: 80px 0;
    background-color: var(--white);
}

.projects-filter {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background-color: var(--off-white);
    border: none;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-blue);
    color: var(--white);
}

.projects-full-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ========== Contact Page Styles ========== */
.contact-section {
    padding: 80px 0;
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info-box {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
}

.contact-info-box h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.contact-info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-info-item i {
    width: 45px;
    height: 45px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-info-item p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.contact-form-box {
    padding: 40px;
    background-color: var(--off-white);
    border-radius: var(--border-radius);
}

.contact-form-box h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 30px;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ========== Map Section ========== */
.map-section {
    height: 400px;
    background-color: var(--light-gray);
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ========== Responsive Design ========== */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .header-container {
        padding: 10px 20px;
    }

    .language-switcher {
        padding: 3px;
    }

    .lang-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: var(--shadow);
        display: none;
    }

    .main-nav:has(#navMenu.show) {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        display: none;
    }

    .main-nav ul.show,
    #navMenu.show {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .btn-call {
        display: none;
    }

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

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

    .why-choose-content {
        grid-template-columns: 1fr;
    }

    .why-choose-image {
        display: none;
    }

    .why-choose-image-mobile {
        display: block;
        margin-bottom: 20px;
        border-radius: var(--border-radius);
        overflow: hidden;
    }

    .why-choose-image-mobile img {
        width: 100%;
        height: 300px;
        object-fit: cover;
    }

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

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

    .footer-vision {
        grid-column: span 2;
        justify-content: center;
        margin-top: 20px;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .hero-content {
        padding: 30px 20px;
    }

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

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

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

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-vision {
        grid-column: span 1;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-links h3::after,
    .footer-services h3::after,
    .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact .contact-item {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .page-header h1 {
        font-size: 2rem;
    }

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

    .projects-full-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-tagline {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

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

    .section-title {
        font-size: 1.6rem;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

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

/* Clients Section */
.clients-section {
    padding: 60px 0;
    background-color: #ffffff;
    overflow: hidden;
}

.clients-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.clients-track {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
    gap: 80px;
    align-items: center;
}



.client-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}



@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 40px));
        /* Half width + half gap */
    }
}

/* ========== Floating Contact Buttons ========== */
.floating-contacts {
    position: fixed;
    right: 25px;
    bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.floating-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    text-decoration: none;
}

.floating-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.btn-whatsapp {
    background-color: #25d366;
}

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

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

@media (max-width: 768px) {
    .floating-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .floating-contacts {
        right: 15px;
        bottom: 15px;
    }
}

/* ========== Toast Notification ========== */
.toast-container {
    position: fixed;
    top: 100px;
    right: -400px;
    z-index: 10000;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-container.active {
    right: 25px;
}

.toast {
    background: #fff;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 6px solid #25d366;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
    min-width: 300px;
}

.toast.error {
    border-left-color: #ff4d4d;
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    width: 35px;
    border-radius: 50%;
    background-color: #25d366;
    color: #fff;
    font-size: 18px;
}

.toast.error .toast-icon {
    background-color: #ff4d4d;
}

.toast-content {
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-weight: 600;
    color: var(--primary-dark);
}

.toast-message {
    font-size: 0.9rem;
    color: var(--text-light);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.toast-progress::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background-color: #25d366;
    animation: progress 5s linear forwards;
}

.toast.error .toast-progress::before {
    background-color: #ff4d4d;
}

@keyframes progress {
    100% {
        right: 100%;
    }
}

/* RTL Support for Toast */
html[dir="rtl"] .toast-container {
    right: auto;
    left: -400px;
}

html[dir="rtl"] .toast-container.active {
    left: 25px;
}

html[dir="rtl"] .toast {
    border-left: none;
    border-right: 6px solid #25d366;
}

html[dir="rtl"] .toast.error {
    border-right-color: #ff4d4d;
}

/* ========== Project Carousel ========== */
.project-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background-color: #f0f0f0;
    /* Light background for contained images */
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 5;
    pointer-events: none;
}

.carousel-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) scale(0.8);
}

.carousel-btn:hover {
    background: #ffffff;
    transform: scale(1.1);
}

/* Pagination Dots */
.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dot.active {
    background: #ffffff;
    transform: scale(1.2);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}