/* ===============================================
   ECO CONSTRUCTION - TYPOGRAPHY SYSTEM
   =============================================== */

/* ============= Google Fonts Import ============= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&family=Cairo:wght@300;600;700&family=Noto+Sans+Arabic:wght@400;500;600&display=swap');

/* ============= Root Variables ============= */
:root {
    /* Colors - Logo Colors */
    --primary-color: #333333;
    --secondary-color: #666666;
    --accent-color: #FACB23;
    --dark-color: #333333;
    --text-gray: #666666;
    --light-gray: #f5f5f5;
    --white: #FFFFFF;
    
    /* English Fonts */
    --font-heading-en: 'Montserrat', sans-serif;
    --font-body-en: 'Inter', sans-serif;
    
    /* Arabic Fonts */
    --font-heading-ar: 'Cairo', sans-serif;
    --font-body-ar: 'Noto Sans Arabic', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

/* ============= Animations ============= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@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);
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

body {
    font-family: var(--font-body-en);
    font-weight: 400;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============= Typography - English ============= */
body[lang="en"] {
    font-family: var(--font-body-en);
}

body[lang="en"] h1,
body[lang="en"] .h1 {
    font-family: var(--font-heading-en);
    font-weight: 700;
    font-size: 56px;
    line-height: 1.2;
    letter-spacing: 0.3px;
    color: var(--dark-color);
}

body[lang="en"] h2,
body[lang="en"] .h2 {
    font-family: var(--font-heading-en);
    font-weight: 700;
    font-size: 42px;
    line-height: 1.2;
    letter-spacing: 0.3px;
    color: var(--dark-color);
}

body[lang="en"] h3,
body[lang="en"] .h3 {
    font-family: var(--font-heading-en);
    font-weight: 600;
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: 0.3px;
    color: var(--dark-color);
}

body[lang="en"] h4,
body[lang="en"] .h4 {
    font-family: var(--font-heading-en);
    font-weight: 600;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: 0.3px;
    color: var(--dark-color);
}

body[lang="en"] p {
    font-family: var(--font-body-en);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.7;
    letter-spacing: 0.2px;
    color: var(--text-gray);
}

body[lang="en"] .btn {
    font-family: var(--font-body-en);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.2px;
}

body[lang="en"] .nav-link {
    font-family: var(--font-body-en);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.2px;
}

body[lang="en"] .caption,
body[lang="en"] .small-text {
    font-family: var(--font-body-en);
    font-weight: 300;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0.1px;
    color: var(--text-gray);
}

/* ============= Typography - Arabic (RTL) ============= */
body[lang="ar"] {
    font-family: var(--font-body-ar);
    direction: rtl;
    text-align: right;
}

body[lang="ar"] h1,
body[lang="ar"] .h1 {
    font-family: var(--font-heading-ar);
    font-weight: 700;
    font-size: 56px;
    line-height: 1.2;
    letter-spacing: 0.3px;
    color: var(--dark-color);
}

body[lang="ar"] h2,
body[lang="ar"] .h2 {
    font-family: var(--font-heading-ar);
    font-weight: 700;
    font-size: 42px;
    line-height: 1.2;
    letter-spacing: 0.3px;
    color: var(--dark-color);
}

body[lang="ar"] h3,
body[lang="ar"] .h3 {
    font-family: var(--font-heading-ar);
    font-weight: 600;
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: 0.3px;
    color: var(--dark-color);
}

body[lang="ar"] h4,
body[lang="ar"] .h4 {
    font-family: var(--font-heading-ar);
    font-weight: 600;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: 0.3px;
    color: var(--dark-color);
}

body[lang="ar"] p {
    font-family: var(--font-body-ar);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.8;
    letter-spacing: 0.2px;
    color: var(--text-gray);
}

body[lang="ar"] .btn {
    font-family: var(--font-body-ar);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.2px;
}

body[lang="ar"] .nav-link {
    font-family: var(--font-body-ar);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.2px;
}

body[lang="ar"] .caption,
body[lang="ar"] .small-text {
    font-family: var(--font-heading-ar);
    font-weight: 300;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0.1px;
    color: var(--text-gray);
}

/* ============= Responsive Typography - Tablet ============= */
@media (max-width: 1024px) {
    /* English - Tablet */
    body[lang="en"] h1,
    body[lang="en"] .h1 {
        font-size: 42px;
    }
    
    body[lang="en"] h2,
    body[lang="en"] .h2 {
        font-size: 32px;
    }
    
    body[lang="en"] h3,
    body[lang="en"] .h3 {
        font-size: 26px;
    }
    
    body[lang="en"] h4,
    body[lang="en"] .h4 {
        font-size: 22px;
    }
    
    body[lang="en"] p {
        font-size: 18px;
    }
    
    body[lang="en"] .btn {
        font-size: 16px;
    }
    
    body[lang="en"] .nav-link {
        font-size: 16px;
    }
    
    body[lang="en"] .caption,
    body[lang="en"] .small-text {
        font-size: 13px;
    }
    
    /* Arabic - Tablet */
    body[lang="ar"] h1,
    body[lang="ar"] .h1 {
        font-size: 42px;
    }
    
    body[lang="ar"] h2,
    body[lang="ar"] .h2 {
        font-size: 32px;
    }
    
    body[lang="ar"] h3,
    body[lang="ar"] .h3 {
        font-size: 26px;
    }
    
    body[lang="ar"] h4,
    body[lang="ar"] .h4 {
        font-size: 22px;
    }
    
    body[lang="ar"] p {
        font-size: 18px;
    }
    
    body[lang="ar"] .btn {
        font-size: 16px;
    }
    
    body[lang="ar"] .nav-link {
        font-size: 16px;
    }
    
    body[lang="ar"] .caption,
    body[lang="ar"] .small-text {
        font-size: 13px;
    }
}

/* ============= Responsive Typography - Mobile ============= */
@media (max-width: 768px) {
    /* English - Mobile */
    body[lang="en"] h1,
    body[lang="en"] .h1 {
        font-size: 32px;
    }
    
    body[lang="en"] h2,
    body[lang="en"] .h2 {
        font-size: 28px;
    }
    
    body[lang="en"] h3,
    body[lang="en"] .h3 {
        font-size: 22px;
    }
    
    body[lang="en"] h4,
    body[lang="en"] .h4 {
        font-size: 20px;
    }
    
    body[lang="en"] p {
        font-size: 16px;
    }
    
    body[lang="en"] .btn {
        font-size: 15px;
    }
    
    body[lang="en"] .nav-link {
        font-size: 15px;
    }
    
    body[lang="en"] .caption,
    body[lang="en"] .small-text {
        font-size: 12px;
    }
    
    /* Arabic - Mobile */
    body[lang="ar"] h1,
    body[lang="ar"] .h1 {
        font-size: 32px;
    }
    
    body[lang="ar"] h2,
    body[lang="ar"] .h2 {
        font-size: 28px;
    }
    
    body[lang="ar"] h3,
    body[lang="ar"] .h3 {
        font-size: 22px;
    }
    
    body[lang="ar"] h4,
    body[lang="ar"] .h4 {
        font-size: 20px;
    }
    
    body[lang="ar"] p {
        font-size: 16px;
    }
    
    body[lang="ar"] .btn {
        font-size: 15px;
    }
    
    body[lang="ar"] .nav-link {
        font-size: 15px;
    }
    
    body[lang="ar"] .caption,
    body[lang="ar"] .small-text {
        font-size: 12px;
    }
}

/* ============= Container & Layout ============= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* ============= Buttons ============= */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    color: var(--white);
}

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

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

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

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

/* ============= Navigation ============= */

/* Navbar - For Other Pages (Solid Background) */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Navbar - For Home Page (Transparent/Glass Effect) */
.navbar-home {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Navbar Scroll Effect for Home */
.navbar-home.scrolled {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar,
.navbar-home {
    width: 100%;
}


.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 48px;
    width: auto;
    display: block;
}

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

/* ============= Hamburger Menu Icon ============= */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
}

/* Hamburger Animation - Open State */
.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ============= Mobile Menu Overlay ============= */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background-color: var(--white);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    padding: 90px 30px 40px;
    transition: left 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
    z-index: 1200;
}

body[lang="ar"] .mobile-menu {
    left: auto;
    right: -100%;
    transition: right 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.mobile-menu-header {
    position: absolute;
    top: 20px;
    left: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.mobile-menu-logo {
    height: 48px;
    width: auto;
}

.mobile-menu-footer {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-contact a {
    color: var(--dark-color);
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.mobile-contact a i {
    color: var(--accent-color);
}

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

.mobile-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--dark-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.mobile-social a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.mobile-menu.active {
    left: 0;
}

body[lang="ar"] .mobile-menu.active {
    right: 0;
}

.mobile-menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu-links li {
    border: none;
}

.mobile-menu-link {
    display: block;
    padding: 16px 18px;
    text-decoration: none;
    color: var(--dark-color);
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
    border-radius: 12px;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
    transform: translateX(4px);
}

.mobile-menu-link i {
    margin-right: 12px;
    color: var(--accent-color);
    font-size: 18px;
}

body[lang="ar"] .mobile-menu-link i {
    margin-right: 0;
    margin-left: 12px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

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

.lang-btn {
    background: none;
    border: 1px solid var(--light-gray);
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

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

/* ============= Utilities ============= */
.text-center {
    text-align: center;
}

body[lang="ar"] .text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.py-1 { padding: 10px 0; }
.py-2 { padding: 20px 0; }
.py-3 { padding: 30px 0; }
.py-4 { padding: 40px 0; }
.py-5 { padding: 50px 0; }

/* ============= Smooth Transitions ============= */
* {
    transition: color 0.2s ease, background-color 0.2s ease;
}

/* ============= Reset for Arabic RTL Layouts ============= */
body[lang="ar"] .nav-links {
    direction: rtl;
}

body[lang="ar"] .container {
    text-align: right;
}

body[lang="ar"] .mobile-menu-overlay {
    right: 0;
    left: auto;
}

/* ============= Hamburger Menu - Always Visible ============= */
.hamburger-menu {
    display: flex;
}

@media (max-width: 768px) {
    .logo img {
        height: 40px;
    }
    
    .hamburger-menu {
        width: 28px;
        height: 22px;
    }
    
    .hamburger-line {
        height: 2.5px;
    }
}

/* ============= Hero Section ============= */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #333333 0%, #666666 100%);
    background-image: 
        linear-gradient(45deg, rgba(255,255,255,0.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.05) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.05) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.05) 75%);
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
}

/* When actual image is added, use this structure in HTML:
   <div class="hero-image-container">
       <img src="your-image.jpg" alt="Construction" class="hero-image">
   </div>
*/
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlay for better text readability */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    color: var(--white);
}

.hero-title {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-title-main {
    display: block;
    font-size: 56px;
    font-family: var(--font-heading-en);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.2;
}

.hero-title-ar {
    display: block;
    font-size: 42px;
    font-family: var(--font-heading-ar);
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1.3;
    margin-top: 12px;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--white);
    margin-bottom: 40px;
    display: block;
}

.hero-subtitle-en,
.hero-subtitle-ar {
    color: var(--white);
    display: block;
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 22px;
    font-family: var(--font-body-en);
    line-height: 1.4;
}

.hero-subtitle-ar {
    font-family: var(--font-body-ar);
    color: rgba(255, 255, 255, 0.9);
}

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

/* ============= Company Overview Section ============= */
.company-overview {
    padding: 100px 0;
    background-color: var(--white);
    position: relative;
}

.company-overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(51, 51, 51, 0.02) 2px, rgba(51, 51, 51, 0.02) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(51, 51, 51, 0.02) 2px, rgba(51, 51, 51, 0.02) 4px);
    background-size: 20px 20px;
    z-index: 0;
}

.company-overview .container {
    position: relative;
    z-index: 1;
}

.overview-content {
    text-align: center;
}

.overview-title {
    font-family: var(--font-heading-en);
    font-weight: 700;
    font-size: 38px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

body[lang="ar"] .overview-title {
    font-family: var(--font-heading-ar);
}

.overview-intro {
    font-size: 20px;
    color: var(--text-gray);
    max-width: 1200px;
    margin: 0 auto 60px;
    line-height: 1.8;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.overview-intro-en,
.overview-intro-ar {
    display: block;
}

.overview-intro-en {
    font-family: var(--font-body-en);
    text-align: left;
    padding-right: 25px;
    border-right: 2px solid rgba(51, 51, 51, 0.1);
}

.overview-intro-ar {
    font-family: var(--font-body-ar);
    direction: rtl;
    text-align: right;
    padding-left: 25px;
}

.key-figures {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.figure-box {
    background-color: var(--light-gray);
    padding: 40px 30px;
    border: 2px solid var(--light-gray);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.figure-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--accent-color);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.figure-box:hover::before {
    opacity: 1;
}

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

.figure-number {
    font-family: var(--font-heading-en);
    font-weight: 700;
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.figure-number .count-up {
    display: inline-block;
}

.figure-suffix {
    font-size: 0.7em;
}

body[lang="ar"] .figure-number {
    font-family: var(--font-heading-ar);
}

.figure-label {
    font-size: 16px;
    color: var(--text-gray);
    font-weight: 600;
}

.figure-label-cities {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 400;
    margin-top: 5px;
}

/* ============= Sticky Image Section ============= */
.sticky-image-section {
    height: 600px;
    position: relative;
    overflow: hidden;
    margin: 60px 0;
}

.sticky-image-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 600px;
    z-index: 0;
}

.sticky-image-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 30px 20px;
    box-sizing: border-box;
}

/* Disable fixed attachment on mobile for better performance */
@media (max-width: 768px) {
    .sticky-image-placeholder {
        background-attachment: scroll;
    }
    
    .sticky-image-container {
        height: 100%;
        position: relative;
    }
}

.sticky-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
}

.image-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 35px 45px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 550px;
    width: auto;
    min-width: 300px;
    margin: 0 auto;
    box-sizing: border-box;
}

.sticky-image-title {
    font-family: var(--font-heading-en);
    font-weight: 700;
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

body[lang="ar"] .sticky-image-title {
    font-family: var(--font-heading-ar);
}

.sticky-image-subtitle {
    font-family: var(--font-heading-ar);
    font-weight: 600;
    font-size: 24px;
    color: var(--secondary-color);
    line-height: 1.4;
}

/* When actual image is added, use this structure:
   <div class="sticky-image-placeholder">
       <img src="your-image.jpg" alt="Construction" class="sticky-image">
       <div class="image-overlay">...</div>
   </div>
*/
.sticky-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    will-change: transform;
}

/* ============= Why Choose Section ============= */
.why-choose {
    padding: 70px 0 90px;
    background-color: var(--light-gray);
    position: relative;
}

/* Engineering-themed background pattern */
.why-choose::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, rgba(51, 51, 51, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(51, 51, 51, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
}

.why-choose .container {
    position: relative;
    z-index: 1;
    max-width: 1800px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 42px;
    font-family: var(--font-heading-en);
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    display: block;
    padding-bottom: 20px;
}

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

body[lang="ar"] .section-title {
    font-family: var(--font-heading-ar);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    max-width:1200px;
    margin: 0 auto;
}

.feature-card {
    width: 100%;
    max-width: 100%;
}

/* First 3 cards - each spans 2 columns */
.features-grid > .feature-card:nth-child(1),
.features-grid > .feature-card:nth-child(2),
.features-grid > .feature-card:nth-child(3) {
    grid-column: span 2;
}

/* Last 2 cards - same spacing as top row */
.features-grid > .feature-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.features-grid > .feature-card:nth-child(5) {
    grid-column: 4 / span 2;
}

.feature-card {
    background-color: var(--white);
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: all 0.3s ease;
    border: none;
    border-left: 6px solid var(--accent-color);
    border-bottom: 3px solid var(--light-gray);
    border-right: 3px solid var(--light-gray);
    border-top: 3px solid var(--light-gray);
    position: relative;
    min-height: 200px;
    overflow: hidden;
}


.feature-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-top: none;
    border-right: none;
    border-left-width: 10px;
    border-bottom: 10px solid var(--accent-color);
}

.feature-card:hover::before {
    display: none;
}

.feature-number {
    font-family: var(--font-heading-en);
    font-weight: 700;
    font-size: 40px;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 12px;
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-number::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--light-gray);
    transform: rotate(45deg);
    z-index: -1;
}

body[lang="ar"] .feature-number {
    font-family: var(--font-heading-ar);
}

.feature-title {
    font-family: var(--font-heading-en);
    font-weight: 600;
    font-size: 24px ;
    color: var(--primary-color);
    line-height: 1.3;
    margin-top: 5px;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.feature-text-ar {
    font-family: var(--font-body-ar);
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.4;
    text-align: right;
}

body[lang="ar"] .feature-title {
    font-family: var(--font-heading-ar);
}

.cta-center {
    text-align: center;
    margin-top: 60px;
}

/* ============= Responsive - Hero Section ============= */
@media (max-width: 1024px) {
    .hero-section {
        min-height: 500px;
    }
    
    .hero-title-main {
        font-size: 42px;
    }
    
    .hero-title-ar {
        font-size: 32px;
    }
    
    .hero-subtitle-en,
    .hero-subtitle-ar {
        font-size: 18px;
    }
    
    .key-figures {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .overview-intro {
        gap: 40px;
        font-size: 19px;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .features-grid > .feature-card:nth-child(1),
    .features-grid > .feature-card:nth-child(2),
    .features-grid > .feature-card:nth-child(3),
    .features-grid > .feature-card:nth-child(4),
    .features-grid > .feature-card:nth-child(5) {
        grid-column: auto;
    }
    
    .sticky-image-section {
        height: 500px;
        margin: 60px 0;
    }
    
    .sticky-image-container {
        height: 500px;
    }
    
    .sticky-image-title {
        font-size: 36px;
    }
    
    .sticky-image-subtitle {
        font-size: 20px;
    }
    
    .image-overlay {
        padding: 30px;
    }
    
}

@media (max-width: 768px) {
    .sticky-image-section {
        height: 400px;
        margin: 40px 0;
    }
    
    .sticky-image-container {
        height: 400px;
        position: relative;
    }
    
    .sticky-image-title {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .sticky-image-subtitle {
        font-size: 18px;
    }
    
    .image-overlay {
        padding: 25px 20px;
        max-width: 450px;
        width: 85%;
        border-radius: 6px;
    }
    
    .hero-section {
        min-height: 450px;
    }
    
    .hero-title-main {
        font-size: 32px;
    }
    
    .hero-title-ar {
        font-size: 24px;
    }
    
    .hero-subtitle-en,
    .hero-subtitle-ar {
        font-size: 16px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }
    
    .key-figures {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .figure-number {
        font-size: 36px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .features-grid > .feature-card {
        grid-column: auto;
    }
    
    .feature-card {
        padding: 30px 20px;
        min-height: 220px;
    }
    
    .feature-number {
        font-size: 40px;
        margin-bottom: 12px;
        width: 55px;
        height: 55px;
    }
    
    .feature-number::after {
        width: 100%;
        height: 100%;
    }
    
    .feature-title {
        font-size: 16px;
    }
    
    .feature-text-ar {
        font-size: 13px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .overview-intro {
        font-size: 18px;
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .overview-intro-en {
        padding-right: 0;
        border-right: none;
        border-bottom: 2px solid rgba(51, 51, 51, 0.1);
        padding-bottom: 30px;
    }
    
    .overview-intro-ar {
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .sticky-image-section {
        height: 300px;
        margin: 30px 0;
    }
    
    .sticky-image-container {
        height: 300px;
    }
    
    .sticky-image-title {
        font-size: 20px;
        margin-bottom: 6px;
        line-height: 1.3;
    }
    
    .sticky-image-subtitle {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .image-overlay {
        padding: 18px 12px;
        max-width: 320px;
        width: 92%;
        border-radius: 4px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid > .feature-card {
        grid-column: auto;
    }
    
    .key-figures {
        grid-template-columns: 1fr;
    }
}

/* ============= Footer ============= */
.main-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    font-weight: 600;
}

.social-link {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.social-link:hover {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: transparent;
}

.social-link i {
    font-size: 16px;
}

.footer-copy {
    flex: 1 1 auto;
    text-align: center;
    font-size: 13px;
}

.footer-copy a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.footer-copy a:hover {
    text-decoration: underline;
}

.footer-logo-right img {
    height: 56px;
    width: auto;
    display: block;
}

.footer-bottom {
    margin-top: 24px;
    text-align: center;
    font-size: 12px;
    color: var(--white);
}

@media (max-width: 768px) {
    .main-footer {
        padding: 30px 0;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }
    
    .footer-copy {
        order: 3;
    }
}

/* ============= Floating Contact Button ============= */
.floating-contact {
    position: fixed;
    right: 24px;
    bottom: 20px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.floating-contact.visible {
    opacity: 1;
    pointer-events: auto;
}

.floating-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-size: 22px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.floating-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    padding: 16px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.floating-menu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background-color: transparent;
    color: var(--primary-color);
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.floating-action i {
    font-size: 15px;
    color: var(--accent-color);
}

.floating-action:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.back-to-top {
    position: fixed;
    right: 96px;
    bottom: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    z-index: 1600;
    opacity: 0;
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

@media (max-width: 480px) {
    .floating-contact {
        right: 12px;
        bottom: 18px;
    }
    
    .floating-toggle {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }
    
    .floating-action {
        font-size: 13px;
        padding: 9px 12px;
    }
    
    .back-to-top {
        right: auto;
        left: 12px;
        bottom: 18px;
        width: 26px;
        height: 26px;
        font-size: 14px;
    }
}

.projects-gallery {
    padding: 80px 0;
    background-color: var(--white);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.projects-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.slider-controls {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--accent-color);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.slider-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
    background-color: #ffd950;
}

.slider-btn:active {
    transform: translateY(0) scale(0.96);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.slider-btn:focus-visible {
    outline: 3px solid rgba(250, 203, 35, 0.45);
    outline-offset: 2px;
}

.projects-slider {
    overflow: hidden;
    position: relative;
    margin-top: 48px;
    padding: 0 12px;
}

.projects-track {
    --projects-gap: 24px;
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
    gap: var(--projects-gap);
}

.project-slide {
    flex: 0 0 calc((100% - (var(--projects-gap) * 4)) / 5);
    min-width: 220px;
    max-width: 360px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
    background-size: cover;
    background-position: center;
    position: relative;
    transform: scale(0.965);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 260px;
    border: none;
    cursor: pointer;
}

.project-slide:focus-visible {
    outline: 3px solid var(--accent-color);
}

.project-slide:hover {
    transform: translateY(-6px) scale(1);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.15);
}

.project-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.25) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-slide:hover::after {
    opacity: 1;
}

.project-caption {
    padding: 24px 22px 28px;
}

.project-caption h3 {
    font-size: 20px;
    font-family: var(--font-heading-en);
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.project-caption p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
}

.projects-footer {
    margin-top: 32px;
    text-align: center;
}

.project-lightbox {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    padding: 40px;
}

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

@media (max-width: 1600px) {
    .project-slide {
        flex: 0 0 calc((100% - (var(--projects-gap) * 3)) / 4);
    }
}

@media (max-width: 1200px) {
    .project-slide {
        flex: 0 0 calc((100% - (var(--projects-gap) * 2)) / 3);
        min-width: 260px;
    }
}

@media (max-width: 900px) {
    .project-slide {
        flex: 0 0 calc((100% - var(--projects-gap)) / 2);
        min-width: 280px;
    }
}

.project-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background-color: rgba(0, 0, 0, 0.4);
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.lightbox-close:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .projects-gallery {
        padding: 60px 0;
    }

    .projects-header {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
    }

    .project-slide {
        flex: 0 0 80%;
        min-width: 280px;
        height: 200px;
    }

    .project-lightbox {
        padding: 20px;
    }
}

