/* ============================================
   VARIABLES & DESIGN TOKENS
   ============================================ */
:root {
    --primary-color: #0f172a;
    --primary-light: #1e293b;
    --primary-mid: #162040;
    --accent-color: #fbbf24;
    --accent-dark: #f59e0b;
    --accent-glow: rgba(251, 191, 36, 0.3);
    --text-dark: #334155;
    --text-light: #f8fafc;
    --text-muted: #4b5563;
    --bg-light: #f1f5f9;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 12px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 50%;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 8px 16px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 600;
    transition: var(--transition);
}

.skip-link:focus {
    top: 6px;
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-25px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo binding', 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.7;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

main {
    display: block;
    width: 100%;
}

/* ============================================
   TOP UTILITY BAR
   ============================================ */
.top-bar {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
    z-index: 1001;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-contact {
    display: flex;
    gap: 24px;
}

[dir="rtl"] .top-bar-contact {
    flex-direction: row-reverse;
}

.top-bar-contact a,
.top-bar-cta a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-contact a:hover,
.top-bar-cta a:hover {
    color: var(--accent-color);
}

.top-bar-cta a {
    background: rgba(251, 191, 36, 0.15);
    padding: 4px 16px;
    border-radius: 20px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    font-weight: 600;
    color: var(--accent-color);
}

.top-bar-cta a:hover {
    background: rgba(251, 191, 36, 0.25);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background-color: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text-light);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-bottom: 2px solid var(--accent-color);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-lg);
}

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

.logo a {
    text-decoration: none;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 52px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

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

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo h2 {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: -2px;
    line-height: 1.2;
    transition: var(--transition);
}

.logo span {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: #94a3b8;
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 3px;
}

[dir="rtl"] :root {
    --dir-factor: -1;
}

:root {
    --dir-factor: 1;
}

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

/* Ensure the language toggle button matches anchor styles */
.nav-links .lang-switch {
    color: #cbd5e1;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-links .lang-switch::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 3px;
}

.nav-links .lang-switch:hover,
.nav-links .lang-switch.active {
    color: var(--accent-color);
}

.nav-links .lang-switch:hover::after,
.nav-links .lang-switch.active::after {
    width: 60%;
}

.nav-links .lang-switch:focus,
.nav-links .lang-switch:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    color: var(--accent-color);
}

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

.nav-links a:focus,
.nav-links a:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    color: var(--accent-color);
}

.nav-links a:focus::after,
.nav-links a:focus-visible::after {
    width: 60%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 8px;
    border-radius: var(--radius-sm);
}

.mobile-menu-btn:hover {
    color: var(--accent-color);
    background: rgba(251, 191, 36, 0.1);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.92) 0%,
        rgba(15, 23, 42, 0.75) 50%,
        rgba(15, 23, 42, 0.85) 100%
    ),
    url('Imgs/Main-Cover.webp') center center/cover no-repeat;
    min-height: 85vh;
    display: flex;
    align-items: center;
    color: var(--text-light);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(15, 23, 42, 0.3) 100%
    );
    z-index: 1;
}

.hero-diagonal {
    position: absolute;
    bottom: -2px;
    inset-inline: 0;
    height: 120px;
    background: var(--bg-light);
    clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
    z-index: 2;
}

[dir="rtl"] .hero-diagonal {
    clip-path: polygon(0 0, 100% 60%, 100% 100%, 0 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    padding: 0 40px;
    animation: fadeInUp 0.5s ease-out;
}

.hero-subtitle {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-color);
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-subtitle::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    color: var(--text-light);
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.hero h1 span {
    color: var(--accent-color);
    display: block;
}

.hero-desc {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 550px;
}

.btn {
    padding: 14px 36px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.05rem;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.btn-hero {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
    padding: 16px 42px;
    font-size: 1.1rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
}

.btn-hero:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-primary {
    background: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn:focus,
.btn:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--accent-glow);
}

/* ============================================
   SERVICE TABS STRIP
   ============================================ */
.service-tabs-strip {
    position: relative;
    z-index: 20;
    margin-top: -60px;
    padding: 0 0 40px 0;
}

.service-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.service-tab {
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.service-tab:not(:last-child) {
    border-inline-end: 1px solid var(--border-color);
    padding-inline-end: 26px;
}

.service-tab:last-child {
    border-inline-end: none;
}

.service-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.service-tab:hover::after{
    transform: scaleX(1);
}

.service-tab:focus,
.service-tab:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.service-tab:focus::after,
.service-tab:focus-visible::after {
    transform: scaleX(1);
}

.service-tab-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.5rem;
    background: var(--bg-light);
    color: var(--primary-color);
    transition: var(--transition);
}


.service-tab:hover .service-tab-icon {
    transform: scale(1.1);
}

.service-tab h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-tab span {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: var(--transition);
}


/* ============================================
   SECTION GLOBALS
   ============================================ */
.section-padding {
    padding: 90px 0;
}

.section-title {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 60px;
    padding-bottom: 24px;
    position: relative;
    line-height: 1.3;
}

.section-title span {
    color: var(--accent-color); /* Darker gold for better contrast on white background */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: var(--accent-color);
}

/* ============================================
   WHY CHOOSE US SECTION
   ============================================ */
.why-choose-us {
    background: var(--bg-white);
}

.choose-pills {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.choose-pill {
    padding: 12px 28px;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    border-radius: 40px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.choose-pill i {
    color: var(--accent-color);
    transition: var(--transition);
}

.choose-pill:hover {
    border-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.choose-pill.active {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.choose-pill.active i {
    color: var(--accent-color);
}

.choose-pill:focus,
.choose-pill:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-color: var(--accent-color);
}

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

.choose-image-wrapper {
    position: relative;
}

.choose-image-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.choose-image-main img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.choose-image-wrapper:hover .choose-image-main img {
    transform: scale(1.05);
}

.choose-image-accent {
    position: absolute;
    bottom: -20px;
    inset-inline-end: -20px;
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    border-radius: var(--radius-lg);
    z-index: 1;
    opacity: 0.15;
}

.choose-text-panel {
    display: none;
}

.choose-text-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.choose-text h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.4;
}

.choose-text p {
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.9;
    font-size: 1.05rem;
}

.choose-text .btn {
    margin-top: 16px;
}

/* ============================================
   INNOVATION BAND (DARK CTA)
   ============================================ */
.innovation-band {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--primary-mid) 50%,
        var(--primary-color) 100%
    );
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}

.innovation-band::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

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

.innovation-text h2 {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--text-light);
    line-height: 1.2;
    margin-bottom: 24px;
}

.innovation-text h2 span {
    color: var(--accent-color);
}

.innovation-text p {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 24px;
}

.innovation-author strong {
    color: var(--accent-color);
    font-size: 1rem;
}

.innovation-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.innovation-img {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.innovation-img img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.innovation-img:hover img {
    transform: scale(1.08);
}

.innovation-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(15, 23, 42, 0.4) 100%);
    pointer-events: none;
}

/* ============================================
   SERVICES DETAIL GRID
   ============================================ */
.services-detail {
    background: var(--bg-light);
}

.services-detail-header {
    text-align: center;
}

.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-detail-card {
    background: var(--bg-white);
    padding: 36px 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.service-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.25s ease;
    transform-origin: center;
}

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

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

/* .service-detail-card.featured {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
} */

/* .service-detail-card.featured::before {
    transform: scaleX(1);
} */

.service-detail-card.featured:hover {
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.4);
}

.service-detail-icon {
    width: 75px;
    height: 75px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    background: var(--bg-light);
    color: var(--primary-color);
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

/* .service-detail-card.featured .service-detail-icon {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.3);
    color: var(--accent-color);
} */

.service-detail-card:hover .service-detail-icon {
    transform: scale(1.1);
    background: rgba(251, 191, 36, 0.1);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

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

.service-detail-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

/* .service-detail-card.featured h3 {
    color: var(--text-light);
} */

.service-detail-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* .service-detail-card.featured p {
    color: #94a3b8;
} */

.service-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.service-link:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.service-detail-card.featured .service-link {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
    background: var(--bg-white);
}

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

.filter-btn {
    padding: 12px 30px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: inherit;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.filter-btn:focus,
.filter-btn:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-color: var(--accent-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.project-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

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

.project-card-img-wrapper {
    overflow: hidden;
    position: relative;
}

.project-image {
    height: 240px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-color: #cbd5e1;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.project-overlay {
    position: absolute;
    top: 16px;
    inset-inline-end: 16px;
    z-index: 2;
}

.project-category-tag {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.project-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.25rem;
    font-weight: 800;
}

.project-info p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0;
}

/* Projects CTA Button */
.projects-cta-wrapper {
    text-align: center;
    margin-top: 40px;
}

.projects-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.projects-view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
}

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

/* ============================================
   LICENSES & CERTIFICATIONS
   ============================================ */
.licenses-section {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--primary-mid) 50%,
        var(--primary-light) 100%
    );
    position: relative;
    overflow: hidden;
}

.licenses-section::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.licenses-section .section-title {
    color: var(--text-light);
}

.licenses-section .section-title::after {
    background: var(--accent-color);
}

.licenses-subtitle {
    text-align: center;
    color: #94a3b8;
    font-size: 1.05rem;
    max-width: 760px;
    margin: 10px auto 50px;
    line-height: 1.8;
}

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

.license-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.license-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(251, 191, 36, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.license-img {
    width: 100px;
    min-width: 100px;
    height: 130px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.license-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.license-card:hover .license-img {
    border-color: rgba(251, 191, 36, 0.4);
}

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

.license-content h3 {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.license-content p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.license-issuer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 600;
    background: rgba(251, 191, 36, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(251, 191, 36, 0.15);
}

.license-issuer i {
    font-size: 0.7rem;
}

/* Certificate Lightbox Modal */
.cert-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.cert-modal.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.cert-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
}

.cert-modal-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    max-height: 90vh;
    width: 90%;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.2s ease;
    display: flex;
    flex-direction: column;
}

.cert-modal-content img {
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    background: #fff;
    display: block;
}

.cert-modal-close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--primary-color);
    color: var(--text-light);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 3;
    box-shadow: var(--shadow-md);
}

.cert-modal-close:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.cert-modal-title {
    padding: 16px 24px;
    text-align: center;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary-color);
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
}

/* ============================================
   SUCCESS PARTNERS SECTION
   ============================================ */
.partners-section {
    background: var(--bg-white);
    position: relative;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    justify-items: center;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.partner-name {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 600;
    text-align: center;
    transition: color 0.3s ease;
}

.partner-card:hover .partner-name {
    color: var(--accent-color);
}

.partner-logo {
    width: 100%;
    max-width: 140px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
    border-radius: var(--radius-sm);
    padding: 15px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    background: var(--bg-light);
}

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

.contact-info-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.2);
    transition: var(--transition);
}

.contact-info-card:hover .contact-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.3);
}

.contact-info-card h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-info-card p,
.contact-info-card a {
    color: var(--text-muted);
    font-size: 1rem;
    direction: ltr;
}

.contact-info-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
    width: 100%;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.25s ease, transform 0.25s ease;
}

.contact-info-card a:hover,
.contact-info-card a:focus {
    color: var(--accent-color);
    transform: translateX(2px);
    text-decoration: underline;
}

.contact-info-card a:not(:last-child) {
    margin-bottom: 8px;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: var(--primary-color);
    color: #94a3b8;
    padding: 70px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.8fr 1.2fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.footer-logo-img {
    height: 55px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.footer-brand p {
    color: #64748b;
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

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

.footer-links-col h2,
.footer-newsletter h2 {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-links-col h2::after,
.footer-newsletter h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

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

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

.footer-links-col ul a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links-col ul a::before {
    content: '\f104';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    color: var(--accent-color);
    opacity: 0;
    transition: var(--transition);
    transform: translateX(6px);
}

.footer-links-col ul a:hover {
    color: var(--accent-color);
    padding-inline-end: 6px;
}

.footer-links-col ul a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-newsletter p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.newsletter-form {
    display: flex;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: rgba(255,255,255,0.05);
    color: var(--text-light);
    font-size: 0.9rem;
    outline: none;
    font-family: inherit;
}

.newsletter-form input::placeholder {
    color: #475569;
}

.newsletter-form input:focus {
    background: rgba(255,255,255,0.08);
}

.newsletter-form button {
    padding: 12px 18px;
    background: var(--accent-color);
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--accent-dark);
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    color: #475569;
    font-size: 0.85rem;
}

/* ============================================
   SERVICE DETAILS PAGE
   ============================================ */

.projects-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem; 
    margin-top: 2rem;
    width: 100%;
}


.sample-project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sample-project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.sample-project-card:hover img {
    transform: scale(1.08);
}
.sample-project-info {
    flex-grow: 1; 
}


.sample-project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.sample-project-card img {
    width: 100%; 
    aspect-ratio: 4 / 3; 
    object-fit: cover;
    display: block;
    
    border-radius: 8px 8px 0 0; 
}
.page-header {
    position: relative;
    padding: 180px 0 100px;
    background: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    overflow: hidden;
}

.page-header.design-header {
    background: url('Imgs/service-design-header.webp') center center/cover no-repeat;
}

.page-header.infra-header {
    background: url('Imgs/service-infrastructure-header.webp') center center/cover no-repeat;
}
.page-header.electro-header {
    background: url('Imgs/service-electro-header.webp') center center/cover no-repeat;
}
.page-header.supply-header {
    background: url('Imgs/service-supply-header.webp') center center/cover no-repeat;
}
.page-header.solar-header {
    background: url('Imgs/service-solar-header.webp') center center/cover no-repeat;
}
.page-header.maint-header {
    background: url('Imgs/service-maint-header.webp') center center/cover no-repeat;
}

.page-header-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    z-index: 1;
}
.page-header .container {
    position: relative;
    z-index: 2;
}
.page-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
    color: var(--text-light);
}
.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out;
}

.service-details-page {
    background-color: var(--bg-light);
}
.service-details-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .service-details-content {
        padding: 30px 20px;
    }
}
.service-details-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 30px;
}
.sample-project-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}
.sample-project-section h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}
.sample-project-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--bg-white);
    border: 1px solid var(--border-color);
}
.sample-project-card img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.sample-project-card:hover img {
    transform: scale(1.08);
}
.sample-project-info {
    padding: 25px;
}
@media (max-width: 480px) {
    .sample-project-info {
        padding: 15px;
    }
}
.sample-project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}
@media (max-width: 480px) {
    .sample-project-info h4 {
        font-size: 1.2rem;
    }
}
.sample-project-info p {
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--text-muted);
}

/* Contact Section Layout */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* تقسيم الشاشة لجزئين */
    gap: 40px;
    align-items: start;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.contact-info-card {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
}

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

/* Contact Form Styles */
.contact-form-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px 15px 15px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: transparent;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

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

/* Floating Label Animation */
.input-group label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #888;
    background: #fff;
    padding: 0 5px;
    transition: 0.3s ease all;
    pointer-events: none;
}

/* RTL Support for Arabic label position */
html[dir="rtl"] .input-group label {
    left: auto;
    right: 15px;
}

.input-group textarea + label {
    top: 25px;
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: 0;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.contact-form-container .btn{
    display: block;
    text-align: center;
}

/* ============================================
   PROJECTS PAGE STYLES
   ============================================ */

.projects-hero {
    position: relative;
    min-height: 70vh;
    background: url('Imgs/projects-header.webp') center center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: 0;
}

.projects-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    z-index: 1;
}

.projects-hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-light);
    max-width: 800px;
    padding: 40px 20px;
    animation: fadeInDown 0.8s ease-out;
}

.projects-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.projects-hero-content p {
    font-size: 1.25rem;
    color: rgba(248, 250, 252, 0.85);
    line-height: 1.6;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.section-title {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-dark));
    margin: 20px auto 0;
    border-radius: 2px;
}

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

/* Projects Grid */
.projects-section {
    background: var(--bg-light);
    position: relative;
}

/* Projects Gallery Grid (for projects.html) */
.projects-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Project Gallery Card (for projects.html) */
.projects-gallery-grid .project-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: fadeInUp 0.6s ease-out forwards;
}

.projects-gallery-grid .project-card:nth-child(1) { animation-delay: 0.1s; }
.projects-gallery-grid .project-card:nth-child(2) { animation-delay: 0.2s; }
.projects-gallery-grid .project-card:nth-child(3) { animation-delay: 0.3s; }
.projects-gallery-grid .project-card:nth-child(n+4) { animation-delay: 0.4s; }

.projects-gallery-grid .project-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

/* Project Image Wrapper (for projects.html) */
.projects-gallery-grid .project-image-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%);
}

.projects-gallery-grid .gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

/* Project Overlay (for projects.html) */
.projects-gallery-grid .project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    cursor: pointer;
    z-index: 2;
}

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

/* Project View Button (for projects.html) */
.projects-gallery-grid .project-view-btn {
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    transform: scale(0.9);
}

.projects-gallery-grid .project-card:hover .project-view-btn {
    transform: scale(1);
    background: var(--accent-dark);
}

.projects-gallery-grid .project-view-btn:hover {
    background: var(--accent-dark);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
}

/* Project Info (for projects.html) */
.projects-gallery-grid .project-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.projects-gallery-grid .project-info h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.4;
}

.projects-gallery-grid .project-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
}

/* CTA Section */
.projects-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    text-align: center;
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
}

.projects-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(251, 191, 36, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.projects-cta::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(251, 191, 36, 0.03);
    border-radius: 50%;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 800;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(248, 250, 252, 0.85);
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 14px 40px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
}

/* ============================================
   LIGHTBOX MODAL STYLES
   ============================================ */

.projects-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.90);
    backdrop-filter: blur(6px);
}

.lightbox-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(1100px, 95vw);
    max-height: 92vh;
    background: rgba(10, 12, 23, 0.98);
    border-radius: 28px;
    box-shadow: 0 35px 120px rgba(0, 0, 0, 0.45);
    z-index: 2001;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: scaleIn 0.28s ease-out;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.25s ease, transform 0.25s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.05);
}

.lightbox-image-wrapper {
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #070b16;
}

.lightbox-image-wrapper img {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    display: block;
}

.lightbox-info {
    padding: 28px 30px 20px;
    background: transparent;
    text-align: center;
}

.lightbox-info h3 {
    font-size: clamp(1.4rem, 2vw, 2rem);
    color: #f8fafc;
    margin-bottom: 10px;
    font-weight: 700;
}

.lightbox-info p {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.8;
    margin: 0;
}

.lightbox-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 18px 24px 26px;
    background: rgba(15, 23, 42, 0.95);
}

.lightbox-prev,
.lightbox-next {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background 0.25s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.lightbox-counter {
    font-size: 0.98rem;
    color: #cbd5e1;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

@media (max-width: 768px) {
    .lightbox-content {
        width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }

    .lightbox-image-wrapper {
        min-height: 52vh;
    }

    .lightbox-info {
        padding: 22px 18px 16px;
    }

    .lightbox-nav {
        gap: 12px;
        padding: 14px 18px 18px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 42px;
        height: 42px;
    }
}


/* Responsive */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr; /* تحت بعض في الموبايل */
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets */
@media (max-width: 1024px) {
    .innovation-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .choose-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .choose-image-main img {
        height: 320px;
    }

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

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

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

    /* Nav adjustments for tablets */
    .nav-links a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

/* Mobile */
@media (max-width: 640px) {
    /* Top bar */
    .top-bar-content {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
    .top-bar-contact {
        gap: 16px;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Navbar */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--primary-color);
        padding: 16px;
        border-top: 1px solid rgba(255,255,255,0.08);
        box-shadow: var(--shadow-lg);
    }
    .nav-links.active {
        display: flex !important;
        animation: fadeInDown 0.3s ease-out;
    }
    .nav-links a {
        padding: 12px 16px;
        margin: 2px 0;
        border-radius: var(--radius-sm);
    }
    .mobile-menu-btn {
        display: block;
    }

    /* Hero */
    .hero {
        min-height: 70vh;
    }
    .hero-content {
        padding: 0 20px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero-desc {
        font-size: 1rem;
    }
    .hero-diagonal {
        height: 60px;
    }

    /* Service Tabs */
    .service-tabs {
        grid-template-columns: repeat(2, 1fr);
        border-radius: var(--radius-md);
    }
    .service-tab {
        padding: 20px 14px;
    }
    .service-tab:nth-child(2) {
        border-left: none;
    }
    .service-tab:nth-child(3),
    .service-tab:nth-child(4) {
        border-top: 1px solid var(--border-color);
    }
    .service-tab:nth-child(4) {
        border-left: none;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.8rem;
    }

    /* Choose pills */
    .choose-pills {
        gap: 8px;
    }
    .choose-pill {
        padding: 8px 18px;
        font-size: 0.85rem;
    }

    /* Innovation */
    .innovation-text h2 {
        font-size: 2rem;
    }
    .innovation-images {
        grid-template-columns: 1fr;
    }
    .innovation-img img {
        height: 220px;
    }

    /* Services detail */
    .services-detail-grid {
        grid-template-columns: 1fr;
    }

    /* Licenses */
    .licenses-grid {
        grid-template-columns: 1fr;
    }
    .license-card {
        padding: 22px;
    }

    /* Projects */
    .projects-grid,
    .projects-grid-wrapper {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-grid,
    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .footer-links-col h2::after,
    .footer-newsletter h2::after {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links-col,
    .footer-newsletter {
        text-align: center;
    }

    .footer-links-col ul a {
        justify-content: center;
    }

    .footer-brand {
        text-align: center;
    }

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

/* Small phones */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    .service-tabs {
        grid-template-columns: 1fr;
    }
    .service-tab {
        border-left: none;
        border-bottom: 1px solid var(--border-color);
    }
    .service-tab:last-child {
        border-bottom: none;
    }
    .service-tab:nth-child(3),
    .service-tab:nth-child(4) {
        border-top: none;
    }
    .btn-hero {
        padding: 12px 28px;
        font-size: 1rem;
    }

    /* Projects Page Mobile Styles */
    .projects-gallery-grid {
        grid-template-columns: 1fr;
    }

    .projects-hero {
        min-height: 50vh;
    }

    .projects-hero-content h1 {
        font-size: 2rem;
    }

    .lightbox-info {
        padding: 15px;
    }

    .lightbox-nav {
        flex-wrap: wrap;
        gap: 10px;
    }
}

