/* ========================================
   Ardh Alfaw - Main Stylesheet
   ======================================== */

/* CSS Variables */
:root {
    --primary-navy: #0a1628;
    --primary-blue: #1976d2;
    --primary-dark-blue: #0a3d6b;
    --teal-accent: #00acc1;
    --sky-blue: #42a5f5;
    --white: #ffffff;
    --light-gray: #f5f7fa;
    --gray: #6c757d;
    --dark-gray: #343a40;
    --success: #28a745;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-family: 'Cairo', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

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

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1060;
    background: transparent;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--primary-navy);
    padding: 15px 0;
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.logo i {
    font-size: 1.8rem;
    color: var(--teal-accent);
}

.logo-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}


.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--teal-accent);
    transition: var(--transition);
}

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

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

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

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

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

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

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-dark-blue) 100%);
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--teal-accent);
    border-radius: 50%;
    opacity: 0.5;
    animation: float 8s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(-40px) translateX(-10px);
    }
    75% {
        transform: translateY(-20px) translateX(15px);
    }
}

.hero-bg-logo {
    position: absolute;
    width: 600px;
    height: 600px;
    object-fit: contain;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.06;
    border-radius: 50%;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 1;
    padding: 20px;
}

.hero-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    border-radius: 50%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--teal-accent);
}

.hero-location {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-location i {
    margin-left: 8px;
    color: var(--teal-accent);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--teal-accent);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.hero-scroll a {
    color: var(--white);
    font-size: 1.5rem;
    opacity: 0.7;
}

.hero-scroll a:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* Animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: transparent;
    color: var(--teal-accent);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

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

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 40px 0;
    position: relative;
}

/* All non-hero/contact sections share light-gray background */
.about, .projects, .team, .tenders, .certs-section,
.services, .news, .gallery, .clients {
    background: var(--light-gray);
}

/* White card container for all sections except hero, contact, and certs (which has its own card) */
.section:not(.hero):not(.contact):not(.certs-section):not(.gallery) > .container {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    max-width: 1600px;
    width: 97%;
    padding: 50px 44px;
}

.section > .container {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue), var(--teal-accent));
    color: var(--white);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 15px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* ========================================
   About Section
   ======================================== */
.about {
}

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

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--dark-gray);
}

.about-text strong {
    color: var(--primary-blue);
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.value-card {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.value-card i {
    font-size: 2.5rem;
    color: var(--teal-accent);
    margin-bottom: 15px;
}

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

.value-card p {
    font-size: 0.9rem;
    color: var(--gray);
}

/* ========================================
   Services Section
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

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

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

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--teal-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

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

.service-card h3 {
    font-size: 1.3rem;
    color: var(--primary-navy);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-link {
    color: var(--primary-blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link:hover {
    color: var(--teal-accent);
}

.service-link i {
    transition: var(--transition);
}

.service-link:hover i {
    transform: translateX(-5px);
}

/* ========================================
   Projects Section
   ======================================== */
.projects {
}

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

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--primary-blue);
    background: transparent;
    color: var(--primary-blue);
    border-radius: 30px;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

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

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

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

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

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-dark-blue));
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image i {
    font-size: 4rem;
    color: var(--teal-accent);
}

.project-content {
    padding: 25px;
}

.project-category {
    display: inline-block;
    background: var(--teal-accent);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.project-content h3 {
    font-size: 1.2rem;
    color: var(--primary-navy);
    margin-bottom: 10px;
}

.project-content p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--gray);
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-meta i {
    color: var(--primary-blue);
}

/* ========================================
   News Section
   ======================================== */
.news {
}

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

.news-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.news-image {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-dark-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.news-image i {
    font-size: 3.5rem;
    color: var(--teal-accent);
}

.news-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--teal-accent);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.news-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 8px;
}

.news-meta span {
    font-size: 0.85rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-meta i {
    color: var(--primary-blue);
}

.news-cat {
    background: rgba(25, 118, 210, 0.1);
    color: var(--primary-blue) !important;
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 600 !important;
}

.news-card h3 {
    font-size: 1.1rem;
    color: var(--primary-navy);
    margin-bottom: 12px;
    line-height: 1.6;
}

.news-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.8;
    flex: 1;
    margin-bottom: 20px;
}

.news-link {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
}

.news-link:hover {
    color: var(--teal-accent);
}

.news-link i {
    transition: var(--transition);
}

.news-link:hover i {
    transform: translateX(-5px);
}

/* ========================================
   Team Section
   ======================================== */
.team {
}

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

.team-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

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

.team-avatar {
    height: 160px;
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-dark-blue));
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-avatar i {
    font-size: 4rem;
    color: var(--teal-accent);
}

.team-info {
    padding: 25px 20px;
}

.team-info h3 {
    font-size: 1.1rem;
    color: var(--primary-navy);
    margin-bottom: 6px;
}

.team-role {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue), var(--teal-accent));
    color: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.team-info p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 18px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.team-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 0.9rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-social a:hover {
    background: var(--teal-accent);
    color: var(--white);
    transform: scale(1.1);
}

/* ========================================
   Gallery Section
   ======================================== */
.gallery {
    background: var(--primary-navy);
}

.gallery > .container {
    max-width: 1600px;
    width: 97%;
}

.gallery .section-tag {
    background: var(--teal-accent);
}

.gallery .section-title,
.gallery .section-desc {
    color: var(--white);
}

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

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: 0 4px 18px rgba(0,0,0,.15);
    transition: transform .3s ease, box-shadow .3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.28);
}

.gallery-thumb {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark-blue), rgba(0, 172, 193, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .4s ease;
}

.gallery-item:hover .gallery-thumb {
    transform: scale(1.06);
}

.gallery-thumb i {
    font-size: 4rem;
    color: var(--teal-accent);
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 22, 40, 0.92) 0%,
        rgba(10, 22, 40, 0.45) 50%,
        rgba(10, 22, 40, 0.0) 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 20px 16px;
    opacity: 0;
    transition: opacity .3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%) scale(0.7);
    font-size: 2.2rem;
    color: #fff;
    background: var(--teal-accent);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
}

.gallery-item:hover .gallery-overlay i {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.gallery-overlay span {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    transform: translateY(10px);
    transition: transform .3s ease;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
    width: 100%;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: var(--teal-accent);
}

.lightbox-content {
    text-align: center;
    transform: scale(0.8);
    transition: var(--transition);
    padding: 40px;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-icon {
    font-size: 6rem;
    color: var(--teal-accent);
    margin-bottom: 20px;
}

.lightbox-caption {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
}

/* ========================================
   Tenders Section
   ======================================== */
.tenders {
}

.tenders-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.tender-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 25px;
    transition: var(--transition);
}

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

.tender-status {
    flex-shrink: 0;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    min-width: 90px;
    text-align: center;
}

.tender-status.open {
    background: rgba(40, 167, 69, 0.15);
    color: var(--success);
    border: 2px solid var(--success);
}

.tender-status.closed {
    background: rgba(108, 117, 125, 0.15);
    color: var(--gray);
    border: 2px solid var(--gray);
}

.tender-body {
    flex: 1;
}

.tender-body h3 {
    font-size: 1.2rem;
    color: var(--primary-navy);
    margin-bottom: 10px;
}

.tender-body p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.tender-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.tender-meta span {
    font-size: 0.85rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tender-meta i {
    color: var(--primary-blue);
}

.tender-btn {
    flex-shrink: 0;
    padding: 12px 25px;
    font-size: 0.95rem;
}

.tender-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    color: var(--gray);
    border-color: var(--gray);
}

/* ========================================
   Clients Section
   ======================================== */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.client-card {
    background: var(--white);
    padding: 40px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.client-card i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.client-card h4 {
    color: var(--primary-navy);
    font-size: 1rem;
}

/* ========================================
   Certificates Section
   ======================================== */
.certs-section { background: var(--light-gray); }

.certs-section > .container {
    max-width: 1600px;
    width: 97%;
}

.certs-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.certs-card-header {
    padding: 18px 28px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 10px;
}

.certs-card-header i {
    color: var(--teal-accent);
    font-size: 1.1rem;
}

.certs-card-header h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.certs-card-header p {
    margin: 0 0 0 auto;
    font-size: .85rem;
    color: #888;
}

.certs-card-body {
    padding: 36px 28px;
}

.certs-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 0;
}
.certs-grid .cert-card {
    width: 280px;
    flex-shrink: 0;
}

/* "View all" button */
.certs-more-wrap {
    text-align: center;
    margin-top: 36px;
}
.certs-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--teal);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.certs-more-btn:hover { background: var(--primary-navy); transform: translateY(-2px); }

/* All-certificates overlay */
.certs-all-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 9998;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.certs-all-modal.open { display: flex; }
.certs-all-box {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 900px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.certs-all-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.certs-all-header h3 { margin: 0; font-size: 1.05rem; color: var(--primary-navy); }
.certs-all-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
    transition: color .2s;
}
.certs-all-close:hover { color: #111; }
.certs-all-body {
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.certs-all-body .cert-card { width: 240px; flex-shrink: 0; }

.cert-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease;
}
.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.cert-thumb {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f8fafc;
}
.cert-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}
.cert-card:hover .cert-thumb img { transform: scale(1.06); }

.cert-no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}
.cert-no-thumb i {
    font-size: 3.5rem;
    color: var(--teal);
    opacity: .7;
}

.cert-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,41,87,.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    opacity: 0;
    transition: opacity .25s;
}
.cert-hover-overlay i { font-size: 1.6rem; }
.cert-hover-overlay span { font-size: .85rem; font-weight: 600; }
.cert-card:hover .cert-hover-overlay { opacity: 1; }

.cert-label {
    padding: 12px 14px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--primary-navy);
    text-align: center;
    line-height: 1.4;
}

/* PDF Modal */
.cert-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.cert-modal.open { display: flex; }

.cert-modal-box {
    background: #1e1e1e;
    border-radius: 10px;
    width: 100%;
    max-width: 900px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

.cert-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #111;
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    flex-shrink: 0;
}

.cert-modal-close {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: color .2s;
}
.cert-modal-close:hover { color: #fff; }

.cert-modal-box iframe {
    flex: 1;
    border: none;
    width: 100%;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-dark-blue) 100%);
}

.contact .section-tag {
    background: var(--teal-accent);
}

.contact .section-title,
.contact .section-desc {
    color: var(--white);
}

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

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

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.contact-card i {
    font-size: 1.5rem;
    color: var(--teal-accent);
    margin-top: 5px;
}

.contact-card h4 {
    color: var(--white);
    margin-bottom: 5px;
    font-size: 1rem;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 10px;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: scale(1.02);
}

.whatsapp-btn i {
    font-size: 1.3rem;
}

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

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

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-navy);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

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

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

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

.footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer ul li a:hover {
    color: var(--teal-accent);
}

.footer-services ul li {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

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

/* ========================================
   Back to Top Button
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--teal-accent);
    transform: translateY(-5px);
}

/* ========================================
   Modal
   ======================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    transform: scale(0.8);
    transition: var(--transition);
}

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

.modal-content i {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 20px;
}

.modal-content h3 {
    color: var(--primary-navy);
    margin-bottom: 15px;
}

.modal-content p {
    color: var(--gray);
    margin-bottom: 25px;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Large Desktop 1201-1400px: tighten nav to prevent overflow with 10 items */
@media (min-width: 1201px) and (max-width: 1400px) {
    .nav-links {
        gap: 16px;
    }

    .logo {
        font-size: 1.25rem;
    }
}

/* Desktop only: breathing room between transparent navbar and hero content */
@media (min-width: 1201px) {
    .hero-content {
        padding-top: 90px;
    }
}

/* Medium Desktop / Tablet - 1200px: hamburger nav */
/* 10 Arabic nav items need ~1100px+ to fit; hamburger at ≤1200px prevents overflow */
@media (max-width: 1200px) {

    /* ── Navbar: solid + hamburger ── */
    .navbar {
        background: var(--primary-navy);
        padding: 14px 0;
    }

    .navbar.scrolled {
        padding: 12px 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1100;
        position: relative;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        right: auto;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: var(--primary-navy);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 0;
        transition: left 0.3s ease;
        z-index: 1050;
        overflow-y: auto;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.4);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 1040;
    }

    .nav-overlay.active {
        display: block;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a {
        display: block;
        padding: 15px 0;
        font-size: 1.05rem;
    }

    /* ── Hero: padding for fixed solid nav ── */
    .hero {
        padding-top: 70px;
    }
}

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

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

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

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

/* Tablet Small - 900px */
@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
    }

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

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

    .tender-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .tender-btn {
        align-self: stretch;
        text-align: center;
        justify-content: center;
    }
}

/* Mobile - 768px */
@media (max-width: 768px) {

    /* ── Hero ── */
    .hero {
        min-height: 100svh; /* safe area on iOS */
    }

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

    .hero-logo {
        width: 140px;
        height: 140px;
    }

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

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .hero-stats {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-number {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

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

    /* ── Sections ── */
    .section {
        padding: 55px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

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

    .section-desc {
        font-size: 1rem;
    }

    /* ── Grids ── */
    .services-grid,
    .projects-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    /* ── Cards ── */
    .service-card {
        padding: 30px 20px;
    }

    /* ── Forms ── */
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 25px 18px;
    }

    /* ── Footer ── */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

    /* ── Project filter ── */
    .projects-filter {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.88rem;
    }

    /* ── Back to top ── */
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 44px;
        height: 44px;
    }

    /* ── Gallery: overlay always visible on touch (no hover on mobile) ── */
    .gallery-item .gallery-overlay {
        opacity: 1;
    }
}

/* Mobile Small - 480px */
@media (max-width: 480px) {
    .hero-logo {
        width: 110px;
        height: 110px;
        margin-bottom: 12px;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }

    .stat-item {
        flex: 0 0 calc(50% - 14px);
        text-align: center;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    /* ── Single column on very small screens ── */
    .clients-grid,
    .team-grid,
    .about-values {
        grid-template-columns: 1fr;
    }

    /* ── Cards compact ── */
    .service-card,
    .project-content {
        padding: 22px 16px;
    }

    .team-avatar {
        height: 130px;
    }

    .team-avatar i {
        font-size: 3rem;
    }

    /* ── Section text ── */
    .section-title {
        font-size: 1.6rem;
    }

    .section {
        padding: 45px 0;
    }

    /* ── Contact ── */
    .contact-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .contact-form {
        padding: 20px 14px;
    }

    /* ── News ── */
    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    /* ── Tenders ── */
    .tender-meta {
        flex-direction: column;
        gap: 8px;
    }

    /* ── Modal ── */
    .modal-content {
        padding: 30px 18px;
        margin: 16px;
    }

    .news-modal-body {
        padding: 20px 18px 24px;
    }

    /* ── Footer ── */
    .footer {
        padding: 40px 0 0;
    }

    /* ── Buttons ── */
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

/* Extra small - 360px */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .container {
        padding: 0 14px;
    }

    .nav-links {
        width: 90%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 10px;
    }

    .stat-item {
        flex: unset;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
}

/* ========================================
   Real Image Support
   ======================================== */

/* Gallery real images */
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

/* Project cover images */
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* News featured images */
.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Team profile photos */
.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========================================
   News Modal
   ======================================== */
.news-modal-content {
    max-width: 700px;
    width: 95%;
    padding: 0;
    text-align: right;
    overflow: hidden;
    position: relative;
}

.news-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0,0,0,.45);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.75rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.news-modal-close:hover { background: rgba(0,0,0,.7); }

.news-modal-image {
    width: 100%;
    max-height: 320px;
    overflow: hidden;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-modal-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.news-modal-image i {
    font-size: 5rem;
    color: var(--teal-accent);
    padding: 2rem 0;
}

.news-modal-body {
    padding: 28px 32px 32px;
}

.news-modal-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    font-size: .88rem;
    color: var(--gray);
}

.news-modal-body h2 {
    color: var(--primary-navy);
    font-size: 1.4rem;
    margin-bottom: 14px;
    line-height: 1.5;
}

.news-modal-body p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 0;
}

button.news-read-more {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

/* Lightbox image */
.lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 12px;
    display: block;
    object-fit: contain;
}

/* ========================================
   Show More
   ======================================== */
.extra-item {
    display: none;
}

.show-more-wrap {
    text-align: center;
    margin-top: 2.5rem;
}

.show-more-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 2rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: background .25s, color .25s, transform .25s;
}

.show-more-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.show-more-btn i {
    transition: transform .3s;
}

.show-more-btn:hover i {
    transform: translateY(3px);
}
