/* ================================================
   Dome Engineering - Custom Design System
   Modern, Clean, RTL Arabic Engineering Website
   ================================================ */

/* ---- CSS Variables ---- */
:root {
    --primary: #0FB5AE;
    --primary-dark: #0D9E98;
    --primary-light: rgba(15, 181, 174, 0.1);
    --dark: #1a1a2e;
    --dark-2: #16213e;
    --dark-3: #0f3460;
    --charcoal: #2D2D2D;
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #868e96;
    --gray-700: #495057;
    --gray-800: #343a40;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --font: 'Cairo', sans-serif;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    direction: rtl;
    text-align: right;
    width: 100%;
    position: relative;
    padding-top: 120px;
    overflow-x: hidden;
    /* top-bar (~37px) + header (~83px) */
}

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

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

ul {
    list-style: none;
}

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

.highlight {
    color: var(--primary);
}

/* ---- Buttons ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 181, 174, 0.35);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: #25D366;
    color: var(--white);
    border: 2px solid #25D366;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background: #1ebe5d;
    border-color: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}

/* ---- Top Bar ---- */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100000;
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.top-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-info i {
    color: var(--primary);
    font-size: 12px;
}

.top-info a {
    color: rgba(255, 255, 255, 0.8);
}

.top-info a:hover {
    color: var(--primary);
}

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

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

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

/* ---- Header ---- */
.header {
    position: fixed;
    top: 37px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 99999;
    background: var(--dark);
    box-shadow: none;
    transition: var(--transition);
    padding: 10px 0;
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    background: var(--dark);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

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

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-menu ul li {
    position: relative;
}

.nav-menu ul li a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 28px 18px;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
    position: relative;
}

.nav-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: 20px;
    right: 18px;
    left: 18px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: right;
}

.nav-menu ul li:hover a,
.nav-menu ul li.active a {
    color: var(--primary);
}

.nav-menu ul li:hover a::after,
.nav-menu ul li.active a::after {
    transform: scaleX(1);
}

.nav-menu ul li a i {
    font-size: 10px;
    transition: var(--transition);
}

.nav-menu ul li:hover a i {
    transform: rotate(180deg);
}

/* Dropdown */
.has-dropdown .dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 260px;
    background: var(--white);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-top: 3px solid var(--primary);
    z-index: 100;
    display: block;
    list-style: none;
    padding: 0;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-dropdown .dropdown li a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--charcoal);
    border-bottom: 1px solid var(--gray-100);
}

.has-dropdown .dropdown li a::after {
    display: none;
}

.has-dropdown .dropdown li:last-child a {
    border-bottom: none;
}

.has-dropdown .dropdown li a:hover {
    background: var(--primary-light);
    color: var(--primary);
    padding-right: 25px;
}

.header-cta {
    padding: 10px 24px !important;
    font-size: 14px !important;
    border-radius: var(--radius-sm) !important;
}

/* Pulse Animation for CTA Button */
.pulse-btn {
    animation: pulse-glow 2s ease-in-out infinite;
    position: relative;
}

.pulse-btn::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: var(--primary);
    opacity: 0;
    z-index: -1;
    animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(15, 181, 174, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(15, 181, 174, 0.6), 0 0 40px rgba(15, 181, 174, 0.2);
    }
}

@keyframes pulse-ring {

    0%,
    100% {
        transform: scale(1);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--white);
    margin: 5px 0;
    border-radius: 3px;
    transition: var(--transition);
}

/* ---- Hero Section ---- */
.hero {
    position: relative;
    height: 55vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.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) 50%, rgba(13, 158, 152, 0.4) 100%);
}

.hero .container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
}

.hero-content {
    max-width: 700px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(15, 181, 174, 0.2);
    border: 1px solid rgba(15, 181, 174, 0.4);
    border-radius: 30px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 40px;
    font-weight: 900;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 24px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

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

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

.dot.active,
.dot:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.2);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    right: 50%;
    transform: translateX(50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.hero-scroll a {
    color: var(--white);
    font-size: 20px;
    opacity: 0.6;
}

.hero-scroll a:hover {
    opacity: 1;
    color: var(--primary);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(50%) translateY(0);
    }

    40% {
        transform: translateX(50%) translateY(-10px);
    }

    60% {
        transform: translateX(50%) translateY(-5px);
    }
}

/* ---- Generic Section ---- */
.section {
    padding: 100px 0;
}

.section-badge {
    display: inline-block;
    padding: 4px 16px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    border-radius: 30px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 38px;
    font-weight: 900;
    color: var(--charcoal);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Section Header ---- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 4px 16px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    border-radius: 30px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 38px;
    font-weight: 900;
    color: var(--charcoal);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Services ---- */
.services {
    padding: 100px 0;
    background: var(--gray-50);
}

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

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px 28px;
    text-align: right;
    transition: var(--transition);
    position: relative;
    border: 1px solid transparent;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 0;
    background: var(--primary);
    transition: height 0.4s ease;
    border-radius: 0 0 4px 0;
}

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

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    position: relative;
    margin-bottom: 20px;
}

.service-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.service-card:hover .service-img {
    transform: scale(1.03);
}

.service-icon i {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 26px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

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

.service-num {
    position: absolute;
    top: -5px;
    left: 0;
    font-size: 48px;
    font-weight: 900;
    color: var(--gray-200);
    line-height: 1;
    opacity: 0.5;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    margin-top: auto;
}

.service-link:hover {
    gap: 12px;
}

/* ---- About Section ---- */
.about {
    padding: 100px 0;
}

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

.about-images {
    position: relative;
}

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

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

.about-img-secondary {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 5px solid var(--white);
    box-shadow: var(--shadow-lg);
}

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

.about-experience {
    position: absolute;
    top: -20px;
    left: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.exp-number {
    display: block;
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
}

.exp-text {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
}

.about-content .section-tag {
    margin-bottom: 16px;
}

.about-content h2 {
    font-size: 36px;
    font-weight: 900;
    color: var(--charcoal);
    line-height: 1.3;
    margin-bottom: 20px;
}

.about-lead {
    font-size: 16px;
    color: var(--text);
    font-weight: 500;
    line-height: 1.9;
    margin-bottom: 16px;
}

.about-content>p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 24px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--charcoal);
}

.feature i {
    color: var(--primary);
    font-size: 18px;
}

/* ---- Stats ---- */
.stats {
    position: relative;
    padding: 80px 0;
    background: url('../images/stats-bg.png') center/cover fixed;
}

.stats-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.9);
}

.stats .container {
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    color: var(--white);
}

.stat-icon {
    margin-bottom: 12px;
}

.stat-icon i {
    font-size: 36px;
    color: var(--primary);
}

.stat-number {
    font-size: 52px;
    font-weight: 900;
    display: inline;
}

.stat-plus {
    font-size: 30px;
    font-weight: 700;
    color: var(--primary);
}

.stat-item p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

/* ---- Projects ---- */
.projects {
    padding: 100px 0;
    background: var(--gray-50);
}

.project-filters,
.filter-btns {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--white);
    color: var(--text-light);
    border: 2px solid var(--gray-200);
    border-radius: 30px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

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

.project-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.project-card.hidden {
    display: none;
}

.project-img {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 181, 174, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.project-zoom {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--primary);
    border-radius: 50%;
    font-size: 18px;
    transform: scale(0);
    transition: var(--transition);
}

.project-card:hover .project-zoom {
    transform: scale(1);
}

.project-info {
    padding: 20px;
}

.project-cat {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-info h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--charcoal);
    margin: 6px 0 4px;
}

.project-info p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ---- CTA ---- */
.cta {
    position: relative;
    padding: 100px 0;
    text-align: center;
    background: url('../images/cta-bg.png') center/cover fixed;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.92), rgba(15, 181, 174, 0.7));
}

.cta .container {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---- Footer ---- */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 80px 0 0;
}

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

.footer-logo img {
    height: 80px;
    margin-bottom: 16px;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    transition: var(--transition);
}

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

/* Social icons on light backgrounds (contact page) */
.contact-social .footer-social a {
    background: var(--primary-light);
    color: var(--primary);
}

.contact-social .footer-social a:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-col h4 {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

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

.footer-col ul li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-col ul li a::before {
    content: '←';
    font-size: 12px;
    opacity: 0;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-right: 5px;
}

.footer-col ul li a:hover::before {
    opacity: 1;
}

.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.footer-contact .contact-item i {
    color: var(--primary);
    font-size: 16px;
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-contact .contact-item a {
    color: rgba(255, 255, 255, 0.65);
}

.footer-contact .contact-item a:hover {
    color: var(--primary);
}

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

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: var(--primary);
    font-weight: 600;
}

/* ---- WhatsApp Float ---- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99998;
    width: 70px;
    height: 70px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    animation: whatsapp-pulse 2s infinite;
    text-decoration: none;
}

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

.whatsapp-float i {
    color: var(--white);
    font-size: 32px;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ---- Scroll Top ---- */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 99998;
    width: 70px;
    height: 70px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: scroll-top-pulse 2s infinite;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
}

@keyframes scroll-top-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(15, 181, 174, 0.5);
    }

    70% {
        box-shadow: 0 0 0 18px rgba(15, 181, 174, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(15, 181, 174, 0);
    }
}

/* ---- Animations ---- */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-left"] {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-left"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

[data-aos="fade-right"] {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-right"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

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

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

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

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

    .hero-content h1 {
        font-size: 40px;
    }
}

/* ---- Page Banner (Inner Pages) ---- */
.page-banner {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.page-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.88), rgba(15, 181, 174, 0.5));
}

.page-banner .container {
    position: relative;
    z-index: 2;
}

.page-banner-content {
    text-align: center;
}

.page-banner-content h1 {
    font-size: 42px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 12px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--white);
}

/* ---- Contact Page ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: flex-start;
}

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

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 20px;
    flex-shrink: 0;
}

.contact-info-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.contact-info-card p,
.contact-info-card a {
    font-size: 14px;
    color: var(--gray-600);
    text-decoration: none;
}

.contact-form-block {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-form .form-group {
    margin-bottom: 16px;
}

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

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-sm);
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    color: var(--charcoal);
    background: var(--gray-50);
    transition: var(--transition);
    outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(15, 181, 174, 0.1);
}

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

/* ---- Map Section ---- */
.map-section {
    line-height: 0;
}

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

/* ---- Clients Page ---- */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.client-card {
    background: var(--white);
    padding: 40px 24px;
    text-align: center;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.client-logo-placeholder {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 50%;
    margin: 0 auto 16px;
    font-size: 30px;
    color: var(--primary);
}

.client-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.client-card p {
    font-size: 13px;
    color: var(--gray-600);
}

@media (max-width: 768px) {
    body {
        padding-top: 80px;
        /* header only, top-bar hidden */
    }

    .top-bar {
        display: none;
    }

    .header {
        padding: 5px 0;
        top: 0;
    }

    .header-inner {
        height: 70px;
    }

    .logo img {
        height: 80px;
        /* large & clear on mobile */
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        z-index: 100000;
        /* above header */
        padding: 80px 30px 30px;
        transition: right 0.4s ease;
        box-shadow: var(--shadow-xl);
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .whatsapp-float {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float i {
        font-size: 28px;
    }

    .scroll-top {
        width: 60px;
        height: 60px;
        bottom: 20px;
        left: 20px;
        font-size: 20px;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0;
    }

    .nav-menu ul li a {
        padding: 14px 0;
        border-bottom: 1px solid var(--gray-100);
        color: var(--charcoal);
    }

    .nav-menu ul li a::after {
        display: none;
    }

    .has-dropdown .dropdown {
        position: static;
        box-shadow: none;
        border: none;
        border-top: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-right: 20px;
        display: none;
    }

    .has-dropdown.open .dropdown {
        display: block;
    }

    .header-cta {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero {
        height: 80vh;
    }

    .hero-content h1 {
        font-size: 32px;
    }

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

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-img-secondary {
        position: relative;
        bottom: auto;
        left: auto;
        width: 150px;
        margin-top: -40px;
        margin-right: auto;
    }

    .about-experience {
        top: auto;
        bottom: 20px;
        left: auto;
        right: 20px;
    }

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

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

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

    .section-header h2 {
        font-size: 30px;
    }

    .cta-content h2 {
        font-size: 30px;
    }
}

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

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

    .hero-btns a {
        text-align: center;
        justify-content: center;
    }

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

    .stat-number {
        font-size: 38px;
    }

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

    .page-banner {
        height: 220px;
    }

    .page-banner-content h1 {
        font-size: 28px;
    }

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

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

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

    .header-actions {
        position: absolute;
        left: 70px;
        top: 50%;
        transform: translateY(-50%);
        gap: 8px;
    }

    .header-actions .header-cta {
        display: none;
    }

    .lang-switcher {
        padding: 5px 10px;
        font-size: 12px;
    }

    .lang-flag {
        width: 18px;
        height: 13px;
    }
}

/* ---- Language Switcher ---- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.lang-switcher:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
}

.lang-flag {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}