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

/* ==========================================================================
   CSS Variables (Design System)
   ========================================================================== */
:root {
  --primary-color: #1a1a1a;
  /* الأسود المطفي (Matte Black) للهيدر والعناوين */
  --text-gray: #4b4b4b;
  /* رمادي داكن مريح للعين للنصوص */
  --accent-color: #e2c27d;
  /* Gold داكن مطابق للوجو للأزرار والأيقونات */
  --bg-light: #ffffff;
  /* الأبيض (White) للخلفيات */
  --border-light: #eeeeee;
  --white: #ffffff;
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06);
  /* ظل خفيف جداً */
  --transition: all 0.3s ease;
  --container-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  zoom: 0.85;
  /* هذا يعادل 85% */
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  background-color: var(--white);
  color: var(--text-gray);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  padding-top: 130px;
}

body:has(.dual-header.is-transparent) {
  padding-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.3;
}

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

ul {
  list-style: none;
}

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

/* ==========================================================================
   Layout Utilities
   ========================================================================== */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.section-padding {
  padding: 6rem 0;
}

/* ==========================================================================
   Dual Corporate Header
   ========================================================================== */
.dual-header {
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
}

/* Top Bar (Dark) */
.top-bar {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.6rem 0;
  font-size: 0.9rem;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 950px;
  /* Brings items closer to the center */
  margin: 0 auto;
}

.top-nav-links ul {
  display: flex;
  gap: 1.5rem;
}

.top-nav-links a {
  color: var(--white);
  font-weight: 500;
  opacity: 0.8;
}

.top-nav-links a:hover {
  opacity: 1;
  color: var(--accent-color);
}

.top-bar-social {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.top-bar-social a {
  color: var(--white);
  opacity: 0.9;
  font-size: 1.1rem;
}

.top-bar-social a:hover {
  color: var(--accent-color);
}

/* Main Navigation (White) */
.dual-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s ease;
}

.dual-header.is-transparent {
  position: absolute;
  top: 0;
  left: 0;
}

.main-nav {
  background-color: var(--white);
  padding: 0.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
  box-shadow: var(--shadow-soft);
}

.dual-header.is-transparent:not(.scrolled) .main-nav {
  background-color: transparent;
  box-shadow: none;
  padding: 0.75rem 5%;
}

.main-nav .nav-menu a {
  color: var(--text-gray);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.arabic-logo {
  font-family: var(--heading-font);
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.dual-header.is-transparent:not(.scrolled) .main-nav .arabic-logo {
  color: var(--white);
}

.dual-header.is-transparent:not(.scrolled) .main-nav .nav-menu a {
  color: var(--white) !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}


/* Scrolled State */
.dual-header.scrolled {
  position: fixed;
  top: 0;
  box-shadow: var(--shadow-soft);
  /* Removed translateY so the black bar stays visible! */
}

.dual-header.scrolled .main-nav {
  padding: 0.5rem 5%;
  background-color: var(--white);
}

.dual-header.scrolled .nav-menu a {
  color: var(--text-gray) !important;
  text-shadow: none;
}

.dual-header.scrolled .nav-menu a:hover,
.main-nav .nav-menu a:hover {
  color: var(--accent-color) !important;
}

.dual-header.scrolled .text-logo {
  -webkit-text-stroke: 1.5px var(--primary-color);
}

.main-nav .logo {
  text-decoration: none;
}

.text-logo {
  font-weight: 900;
  font-size: 2.2rem;
  letter-spacing: 2px;
  color: var(--accent-color);
  -webkit-text-stroke: 1.5px var(--primary-color);
  text-decoration: none;
  text-transform: uppercase;
}

.logo-accent {
  /* We can keep it the same or remove the class logic */
  color: var(--accent-color);
}

.contact-info-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Header Gold Button (Premium, Dynamic) */
.btn-gold {
  background: linear-gradient(135deg, var(--accent-color) 0%, #C09B2E 100%);
  color: var(--primary-color);
  border: none;
  padding: 0.6rem 1.8rem;
  border-radius: 0;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 4px 15px rgba(226, 194, 125, 0.4);
}

.btn-gold i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #C09B2E 0%, var(--accent-color) 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(226, 194, 125, 0.6);
}

.btn-gold:hover i {
  transform: translateX(-4px);
  /* Moves icon to the left for Arabic RTL flow */
}

/* Specific Accent Button style */
.btn-accent {
  background-color: var(--accent-color);
  color: var(--primary-color);
  /* Dark slate text for perfect contrast on gold */
  padding: 0.6rem 1.8rem;
  border-radius: 4px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  transition: all 0.3s ease;
}

.btn-accent:hover {
  transform: translateY(-2px);
  background-color: #C09B2E;
  /* Slightly darker gold on hover */
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

/* ==========================================================================
   Hero Section (Cinematic Architectural Showcase)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* Aligns to the right in RTL */
  text-align: right;
  /* Text aligned to start */
  background-color: var(--primary-color);
  overflow: hidden;
  /* Hide zoomed image edges */
  padding-top: 80px;
  /* Space for the transparent header if needed */
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slowZoom 25s infinite alternate ease-in-out;
}

@keyframes slowZoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.15);
  }
}

@keyframes scrollDown {
  0% {
    top: -50%;
  }

  100% {
    top: 150%;
  }
}

/* Gradient dark overlay: darker on the right, lighter on the left with a subtle cinematic tint */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to left, rgba(15, 18, 25, 0.95) 0%, rgba(20, 24, 34, 0.8) 40%, rgba(30, 35, 45, 0.4) 100%);
  mix-blend-mode: multiply;
  z-index: 1;
}

/* Optional blueprint grid overlay for engineering feel */
.blueprint-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeInUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  padding: 0 2rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-title-ar {
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.5rem;
  text-shadow: 0 15px 40px rgba(0, 0, 0, 0.9), 0 5px 15px rgba(0, 0, 0, 0.5);
  /* Stronger shadow */
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero-title-ar span {
  color: var(--accent-color);
  text-shadow: 0 0 20px rgba(226, 194, 125, 0.4);
  /* Glow effect on the span */
}

.hero-divider {
  width: 120px;
  height: 5px;
  background-color: var(--accent-color);
  margin: 1.5rem 0;
  box-shadow: 0 0 20px rgba(226, 194, 125, 0.6);
  /* Stronger glow */
  border-radius: 5px;
}

.hero-title-en {
  font-size: 1.8rem;
  font-weight: 600;
  color: #f0f0f0;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 3.5rem;
  max-width: 700px;
  line-height: 1.6;
}

.hero-title-en span {
  color: var(--accent-color);
  font-weight: 800;
}

.btn-outline-white {
  border: 2px solid var(--white);
  color: var(--white);
  padding: 0.8rem 2.2rem;
  border-radius: 4px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  /* Slight glass effect */
  backdrop-filter: blur(5px);
}

.btn-outline-white:hover {
  border-color: var(--accent-color);
  background: var(--accent-color);
  color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(226, 194, 125, 0.4);
  transform: translateY(-3px);
}




/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
  padding: 6rem 0;
  background-color: var(--white);
  color: var(--primary-color);
}

.about-header {
  text-align: center;
  margin-bottom: 5rem;
}

.about-logo-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-color);
}

.section-title span {
  color: var(--accent-color);
}

.about-grid {
  display: flex;
  gap: 5rem;
  align-items: center;
}

.about-image {
  flex: 1;
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: block;
}

.experience-badge {
  position: absolute;
  bottom: -30px;
  right: -30px;
  /* Matches RTL bottom-right overlap */
  background-color: var(--primary-color);
  /* Our black color */
  color: var(--white);
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  border-radius: 0;
  /* Sharp edges */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  z-index: 5;
}

.exp-number {
  color: var(--accent-color);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
}

.exp-text {
  font-size: 1rem;
  font-weight: 600;
  color: #ccc;
  max-width: 100px;
  line-height: 1.4;
}

.about-text {
  flex: 1;
}

.about-text-header h3 {
  font-size: 1.5rem;
  color: #444;
  margin-bottom: 0.8rem;
}

.about-text-header h3 span {
  color: var(--accent-color);
}

.gold-line {
  width: 100%;
  height: 2px;
  background-color: #e0e0e0;
  position: relative;
  margin-bottom: 2rem;
}

.gold-line::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 100px;
  background-color: var(--accent-color);
}

.about-desc {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 2rem;
  padding: 0;
}

.features-grid li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
  color: #555;
  font-size: 0.95rem;
}

/* Sub-items under a features-grid li (e.g. under تصاميم معمارية) */
.features-grid li ul {
  margin-top: 6px !important;
  padding-right: 0 !important;
  list-style: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.features-grid li ul li {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  color: #888 !important;
}

.features-grid li ul li::before {
  content: '●';
  color: var(--accent-color);
  font-size: 0.5rem;
  flex-shrink: 0;
}

.check-box {
  background-color: #dfb160;
  color: #1a1a1a;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  font-size: 0.75rem;
}

.mission-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6rem;
  padding-top: 3rem;
  border-top: 1px solid #eee;
}

.mission-info h4 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 0.5rem;
}

.mission-info h4 span {
  color: var(--accent-color);
}

.mission-info p {
  color: #777;
  font-size: 0.95rem;
}

.btn-dark {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.8rem 2.2rem;
  border-radius: 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-dark:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(226, 194, 125, 0.4);
}

.btn-dark:hover i {
  transform: translateX(-4px);
  /* Animate icon left */
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
  background-color: #fafbfc;
  /* Extremely light grey/blue for a fresh look */
  position: relative;
  border-top: 1px solid #f0f0f0;
}

.section-header {
  margin-bottom: 4rem;
}

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

.section-subtitle {
  color: #666;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 1rem auto 0;
  font-weight: 500;
  line-height: 1.8;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 4rem;
  padding-bottom: 1.5rem;
  /* Space for hovering boxes */
}

.service-card {
  position: relative;
  margin-bottom: 2.5rem;
  /* Give space for the overlapping box */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-12px);
}

.service-img-wrapper {
  position: relative;
  height: 280px;
  overflow: hidden;
  border-radius: 0;
  /* Sharp edges */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

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

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.service-title-box {
  position: absolute;
  bottom: -25px;
  /* Overlaps exactly on the bottom edge */
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-color);
  /* Same flat gold as the CTA button */
  color: var(--primary-color);
  padding: 0.8rem 1rem;
  /* Smaller padding */
  border-radius: 0;
  /* Sharp edges */
  width: 60%;
  /* Smaller width */
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  /* Subtle shadow for depth */
  transition: all 0.3s ease;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-title-box h3 {
  margin: 0;
  font-size: 1.05rem;
  /* Smaller font size */
  font-weight: 800;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

/* Hover effects for the title box (matching the CTA button) */
.service-card:hover .service-title-box {
  bottom: -20px;
  /* Box lifts up slightly */
  background-color: #c09b2e;
  /* Darker gold, exactly like CTA hover */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-card:hover .service-title-box h3 {
  color: var(--primary-color);
  /* Text stays dark */
}

.services-cta {
  margin-top: 1rem;
}

/* ==========================================================================
   Collage Works Section (Creative Masonry)
   ========================================================================== */
.works-section {
  position: relative;
  padding-top: 6rem;
  padding-bottom: 6rem;
  /* Hard split background: white top, dark slate bottom */
  background: linear-gradient(to bottom, #ffffff 40%, var(--primary-color) 40%);
}

.works-header {
  margin-bottom: 3.5rem;
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  /* Base height for items */
  gap: 12px;
  /* Small gap for a dense, collage feel */
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.masonry-item {
  border-radius: 0;
  /* Sharp edges */
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background-color: #111;
  /* Dark bg before image loads */
}

/* Specific spans for the bento box layout */
.span-2x2 {
  grid-column: span 2;
  grid-row: span 2;
}

.span-2x1 {
  grid-column: span 2;
  grid-row: span 1;
}

.span-1x2 {
  grid-column: span 1;
  grid-row: span 2;
}

.span-1x1 {
  grid-column: span 1;
  grid-row: span 1;
}

.masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  filter: brightness(0.95);
}

.masonry-item:hover img {
  transform: scale(1.1);
  filter: brightness(1.05);
}

/* Works CTA Button */
.works-cta {
  position: relative;
  z-index: 2;
}

.btn-white-gold {
  background-color: #fff;
  color: var(--accent-color);
  border: 2px solid #fff;
  padding: 0.9rem 2.2rem;
  border-radius: 0;
  font-weight: 800;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-white-gold:hover {
  background-color: transparent;
  color: #fff;
  border-color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   4-Card Projects Section
   ========================================================================== */
.projects-section {
  position: relative;
}

.projects-top-bg {
  background-color: #fff;
  padding-bottom: 2rem;
}

.projects-dark-bg {
  position: relative;
  padding: 4rem 0 6rem;
  background-color: var(--primary-color);
  background-image: linear-gradient(rgba(26, 26, 26, 0.85), rgba(26, 26, 26, 0.85)), url('assets/img-32.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.projects-dark-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  margin-bottom: 3.5rem;
  z-index: 2;
}

.projects-dark-header h3 {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0;
  position: relative;
  z-index: 2;
}

.projects-dark-header h3 span {
  color: var(--accent-color);
}

.projects-dark-header .gold-line {
  width: 70px;
  height: 3px;
  background-color: var(--accent-color);
  position: relative;
  z-index: 2;
}

/* Animated Marquee Background */
.marquee-bg {
  position: absolute;
  top: 10%;
  left: 0;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

.marquee-track {
  display: inline-block;
  animation: marqueeMove 40s linear infinite;
}

.marquee-track span {
  font-size: 10rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  font-family: var(--heading-font);
  text-transform: uppercase;
}

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

  100% {
    transform: translateX(50%);
  }

  /* Adjust based on duplicated text */
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 2;
}

.project-card {
  background-color: var(--primary-color);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border-bottom-color: var(--accent-color);
}

.project-img-wrapper {
  height: 200px;
  overflow: hidden;
}

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

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

.project-title-box {
  padding: 1.2rem 1rem;
  text-align: center;
  background-color: var(--primary-color);
  transition: background-color 0.4s ease;
}

.project-title-box h4 {
  color: var(--accent-color);
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  transition: color 0.4s ease;
}

.project-card:hover .project-title-box {
  background-color: var(--accent-color);
}

.project-card:hover .project-title-box h4 {
  color: #1a1a1a;
}

.projects-cta {
  display: flex;
  justify-content: flex-end;
  /* Aligns to left in RTL */
  margin-top: 3.5rem;
  position: relative;
  z-index: 2;
}

.btn-dark-outline {
  background-color: rgba(255, 255, 255, 0.02);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.7rem 1.8rem;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 2px;
  backdrop-filter: blur(5px);
}

.btn-dark-outline:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--primary-color);
  transform: translateX(-5px) translateY(-2px);
  box-shadow: 0 8px 25px rgba(226, 194, 125, 0.4);
}

/* ==========================================================================
   Partners & Profile Section
   ========================================================================== */
.partners-profile-section {
  background-color: #fff;
  padding-bottom: 6rem;
  padding-top: 5rem;
}

.partners-area {
  margin-bottom: 6rem;
}

.center-line {
  margin: 0.5rem auto 3.5rem;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.partner-logo-box {
  width: 170px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  transition: all 0.4s ease;
  background-color: transparent;
}

.partner-logo-box:hover {
  transform: translateY(-5px);
}

.partner-logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: all 0.4s ease;
}

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

.profile-area {
  margin-top: 2rem;
}

.profile-title {
  color: var(--text-dark);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.profile-title span {
  color: var(--accent-color);
}

.profile-subtitle {
  color: #666;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
}

.btn-profile {
  display: inline-flex;
  align-items: center;
  background-color: var(--primary-color);
  border-radius: 4px;
  text-decoration: none;
  padding: 10px 25px 10px 35px;
  position: relative;
  transition: all 0.3s ease;
  margin-right: 15px;
  /* Offset for absolute icon */
}

.btn-profile:hover {
  background-color: #2a2826;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-profile-icon {
  background-color: var(--accent-color);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  position: absolute;
  right: -19px;
  /* Half width to protrude perfectly */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-profile-text {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-right: 25px;
  /* Make space for icon */
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.main-footer {
  position: relative;
  background-color: transparent;
}

.footer-top {
  background: linear-gradient(to right, #11141a, var(--primary-color));
  padding: 6rem 0 4rem;
  border-top: 3px solid var(--accent-color);
  /* Gold accent line */
  position: relative;
}

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

.about-col {
  text-align: center;
}

.footer-logo-text {
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.about-col p {
  color: #d1d5db;
  font-size: 1.05rem;
  line-height: 1.9;
  margin: 0 auto;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -12px;
  right: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.footer-col:hover h4::after {
  width: 60px;
  /* Expands on hover */
}

.links-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.links-col ul li {
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.links-col ul li a {
  color: #e5e7eb;
  /* Brighter default text */
  text-decoration: none;
  font-size: 1.05rem;
  transition: all 0.3s ease;
}

.links-col ul li i {
  color: var(--accent-color);
  font-size: 0.85rem;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.links-col ul li:hover a {
  color: var(--accent-color);
  transform: translateX(-8px);
}

.links-col ul li:hover i {
  color: #fff;
  transform: scale(1.1);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 1.5rem;
  gap: 15px;
  transition: all 0.3s ease;
}

.contact-list li:hover {
  transform: translateX(-5px);
}

.contact-text {
  color: #e5e7eb;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.contact-list li:hover .contact-text {
  color: var(--accent-color);
}

.contact-icon {
  width: 30px;
  height: 30px;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  /* Gold icon */
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-list li:hover .contact-icon {
  color: #fff;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copyright p,
.footer-credits p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.scroll-top-btn {
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.scroll-top-btn:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
  transform: translateY(-5px);
}

/* ==========================================================================
   Portfolio Slider & Features Bar Section
   ========================================================================== */
.portfolio-slider-section {
  position: relative;
  margin-top: 5rem;
  margin-bottom: 6rem;
}

.slider-main-area {
  position: relative;
  padding-top: 2rem;
  padding-bottom: 4.5rem;
  /* Reduced to tighten the gap below the image */
}

.slider-bg-strip {
  position: absolute;
  top: 4rem;
  /* Makes the top of the image overlap the white space */
  left: 0;
  width: 100%;
  height: calc(100% - 4rem);
  /* Extends exactly to the bottom of the main area */
  background-color: var(--primary-color);
  background-image: linear-gradient(rgba(26, 26, 26, 0.85), rgba(26, 26, 26, 0.85)), url('assets/img-16.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.slider-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  /* Brings arrows closer to the image */
}

.slider-arrow {
  background: transparent;
  border: none;
  color: #a79c8e;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 10px;
}

.slider-arrow:hover {
  color: var(--accent-color);
  transform: scale(1.1);
}

.slider-image-container {
  position: relative;
  max-width: 650px;
  /* Adjusted size for better proportions */
  width: 100%;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.slider-slides {
  position: relative;
  width: 100%;
}

.slider-img {
  width: 100%;
  height: auto;
  display: none;
}

.slider-img.active {
  display: block;
  animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.slider-dots {
  position: absolute;
  bottom: -25px;
  /* Brought up slightly */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.slider-dots .dot {
  width: 8px;
  height: 8px;
  background-color: #888;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dots .dot.active {
  background-color: var(--accent-color);
  width: 24px;
  border-radius: 10px;
}

.features-bar-container {
  display: flex;
  justify-content: center;
  margin-top: -50px;
  position: relative;
  z-index: 3;
}

.features-bar {
  display: flex;
  width: 100%;
  max-width: 900px;
  gap: 20px;
  /* Separate the boxes */
}

.feature-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 1.8rem 1rem;
  font-weight: 800;
  font-size: 1.2rem;
  border-radius: 0;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
}

.feature-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.feature-box span {
  margin-top: 2px;
}

.gold-box {
  background: linear-gradient(135deg, rgba(226, 194, 125, 0.9) 0%, rgba(192, 155, 46, 0.9) 100%);
  color: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-box {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(40, 40, 40, 0.9) 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .white-bar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .dark-nav {
    flex-direction: column;
    height: auto;
    padding: 1rem;
    gap: 1rem;
  }

  .nav-links {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .nav-links a {
    height: auto;
    padding: 0.5rem 0;
  }

  .overlapping-services-container {
    margin-top: -40px;
    gap: 2rem;
  }

  .service-circle {
    width: 80px;
    height: 80px;
  }

  .hero-wave svg {
    height: 80px;
  }

  .features-bar {
    flex-direction: column;
  }

  .slider-content {
    gap: 1rem;
  }

  .slider-image-container {
    max-width: 85%;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
    /* More gap on mobile since boxes overlap at bottom */
  }

  .masonry-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

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

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

  .footer-top {
    padding: 4rem 0 2rem;
  }
}

@media (max-width: 576px) {
  .masonry-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

  .span-2x2,
  .span-2x1,
  .span-1x2,
  .span-1x1 {
    grid-column: span 1;
    grid-row: span 1;
  }

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



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

  .footer-col {
    margin-bottom: 2rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }


}

/* ==========================================================================
   Lightbox Styles
   ========================================================================== */
.lightbox {
  display: none;
  /* Hidden by default, toggled via JS */
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease-out forwards;
}

@keyframes zoomIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 45px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 100000;
}

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

/* ==========================================================================
   Creative Contact Section
   ========================================================================== */
.creative-contact {
  background-color: #fafbfc;
  position: relative;
}

.contact-info-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.info-card {
  background-color: #fff;
  border-radius: 0;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  min-width: 280px;
  border-bottom: 3px solid transparent;
}

.info-card:hover {
  transform: translateY(-5px);
  border-bottom-color: var(--accent-color);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.info-icon {
  width: 50px;
  height: 50px;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.info-card:hover .info-icon {
  transform: scale(1.1);
}

.info-text h5 {
  margin: 0 0 0.3rem 0;
  font-size: 1.1rem;
  color: var(--primary-color);
}

.info-text p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Contact Box Wrapper */
.contact-box-wrapper {
  display: flex;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
  background-color: var(--primary-color);
}

.contact-form-side {
  flex: 1;
  padding: 4rem;
  background-color: var(--primary-color);
  color: #fff;
}

.contact-form-side h3 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
}

.contact-form-side h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 0;
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
}

.modern-form .form-row {
  display: flex;
  gap: 2rem;
}

.modern-form .input-group {
  position: relative;
  margin-bottom: 2.5rem;
  flex: 1;
}

.modern-form input,
.modern-form textarea,
.modern-form select {
  width: 100%;
  padding: 10px 0;
  font-size: 1.05rem;
  color: #fff;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  outline: none;
  background: transparent;
  transition: all 0.3s ease;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Custom styling for select dropdown */
.modern-form select {
  cursor: pointer;
  background: transparent url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='%23e2c27d'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat left center;
  background-size: 24px;
  padding-left: 25px; /* space for the arrow */
}

.modern-form select option {
  background-color: #222; /* Dark background matching theme */
  color: #fff;
  padding: 12px;
  font-size: 1rem;
  direction: rtl;
}

.modern-form textarea {
  resize: vertical;
  min-height: 100px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-wrap: break-word;
  word-break: break-word;
}

.modern-form textarea::-webkit-scrollbar {
  display: none;
}

.modern-form label {
  position: absolute;
  top: 10px;
  right: 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
  transition: all 0.3s ease;
}

.modern-form input::placeholder,
.modern-form textarea::placeholder {
  color: transparent;
}

/* Floating Label Magic */
.modern-form input:focus~label,
.modern-form textarea:focus~label,
.modern-form select:focus~label,
.modern-form input:not(:placeholder-shown)~label,
.modern-form textarea:not(:placeholder-shown)~label,
.modern-form select:valid~label {
  top: -20px;
  font-size: 0.85rem;
  color: var(--accent-color);
}

.modern-form input:focus,
.modern-form textarea:focus,
.modern-form select:focus {
  border-bottom-color: var(--accent-color);
}

.btn-submit {
  background-color: var(--accent-color);
  color: var(--primary-color);
  border: none;
  padding: 0.8rem 2rem;
  font-size: 0.95rem;
  font-weight: 800;
  font-family: inherit;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.btn-submit:hover {
  background-color: #c09b2e;
  transform: translateY(-2px);
}

.contact-map-side {
  flex: 1;
  min-height: 100%;
  position: relative;
}

.contact-map-side iframe {
  width: 100%;
  height: 100%;
  min-height: 500px;
  display: block;
  filter: grayscale(20%) contrast(110%);
}

@media (max-width: 992px) {
  .contact-box-wrapper {
    flex-direction: column;
  }

  .modern-form .form-row {
    flex-direction: column;
    gap: 0;
  }

  .contact-form-side {
    padding: 2.5rem;
  }

  .contact-map-side iframe {
    min-height: 350px;
  }
}

/* ==========================================================================
   About Page (Standalone) Styles
   ========================================================================== */
.about-page-header {
  padding: 6rem 0 2rem;
  background-color: #fff;
}

.about-logo-wrapper {
  margin-bottom: 1.5rem;
}

.about-top-logo {
  height: 60px;
  width: auto;
}

.about-top-title {
  font-size: 1.8rem;
  color: var(--primary-color);
  font-weight: 800;
  margin-bottom: 2rem;
}

.about-top-title strong {
  color: var(--accent-color);
  font-weight: 800;
}

.watermark-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4rem;
  min-height: 150px;
}

.watermark-text {
  font-size: 15vw;
  font-weight: 900;
  color: rgba(212, 175, 55, 0.05);
  /* Faint gold */
  line-height: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  user-select: none;
  z-index: 1;
}

@media (min-width: 1200px) {
  .watermark-text {
    font-size: 180px;
  }
}

.watermark-overlay {
  position: relative;
  z-index: 2;
}

.watermark-overlay-title {
  font-size: 2.8rem;
  color: var(--primary-color);
  font-weight: 900;
  margin-bottom: 0.2rem;
}

.watermark-overlay-subtitle {
  font-size: 1.2rem;
  color: #666;
  font-weight: 500;
}

.about-split-section {
  padding: 0 0 6rem 0;
  background-color: #fff;
}

.about-split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 992px) {
  .about-split-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.about-main-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  margin-bottom: 3rem;
}

.about-checklist {
  padding: 0 1rem;
}

.checklist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 576px) {
  .checklist-grid {
    grid-template-columns: 1fr;
  }
}

.checklist-grid li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-color);
}

.checklist-grid li i {
  color: #333;
  /* Dark icon */
  font-size: 1.4rem;
  /* Gold check inside the dark circle via text shadow/color tricks or just a solid icon */
}

/* Text Content Area */
.about-text-content {
  padding-top: 1rem;
}

.about-text-logo {
  margin-bottom: 1rem;
}

.about-text-logo img {
  height: 50px;
}

.about-main-title {
  font-size: 2.2rem;
  color: var(--primary-color);
  font-weight: 900;
  margin-bottom: 0.2rem;
}

.about-main-subtitle {
  font-size: 1.1rem;
  color: #888;
  margin-bottom: 2.5rem;
}

.about-paragraphs p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.gold-text {
  color: var(--accent-color);
  font-weight: 800;
}

/* ==========================================================================
   Ultra-Premium About Us Styling
   ========================================================================== */

/* Text Content Enhancements */
.premium-text-styling {
  border-right: 3px solid var(--accent-color);
  /* Left border in RTL */
  padding-right: 2rem;
  margin-top: 2rem;
}

.premium-text-styling .about-paragraphs p {
  font-size: 1.15rem;
  line-height: 1.9;
  color: #333;
}

.english-translation {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 15px;
  background-color: rgba(212, 175, 55, 0.05);
  border-left: 3px solid var(--accent-color);
  color: #666;
  font-size: 0.95rem;
  font-family: Arial, sans-serif;
  /* Standard font for English */
}

/* Premium Visuals & Image Composition */
.premium-visuals {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.premium-image-composition {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

/* Arch Shape Image */
.arch-image-wrapper {
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border: 5px solid #fff;
  background-color: #fff;
}

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

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

/* Floating Experience Badge */
.floating-experience-badge {
  position: absolute;
  bottom: -30px;
  right: -30px;
  /* Overlaps bottom-right in LTR, bottom-left in RTL usually, but RTL right is logical right */
  background-color: var(--primary-color);
  color: #fff;
  width: 140px;
  height: 140px;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  border: 4px solid #fff;
  z-index: 2;
}

.badge-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 5px;
}

.badge-text {
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  padding: 0 10px;
}

/* Premium Checklist Tags */
.premium-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.feature-tag {
  background-color: #f8f9fa;
  border: 1px solid #eee;
  padding: 0.8rem 1.5rem;
  border-radius: 0;
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.feature-tag i {
  color: var(--accent-color);
  font-size: 1.2rem;
}

.feature-tag:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Chairman Section Styling
   ========================================================================== */
.chairman-section {
  background-color: #fcfcfc;
  border-top: 1px solid #eee;
}

.chairman-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 992px) {
  .chairman-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.chairman-text-side {
  padding-right: 1rem;
}

.chairman-badge {
  display: inline-block;
  background-color: #2a2a2a;
  color: var(--accent-color);
  padding: 0.8rem 1.5rem;
  font-size: 1.4rem;
  font-weight: 800;
  border-radius: 0;
  margin-bottom: 2rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.chairman-content p {
  font-size: 1.15rem;
  line-height: 1.9;
  color: #555;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.chairman-name {
  font-size: 1.3rem;
  color: var(--primary-color);
  font-weight: 900;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(212, 175, 55, 0.3);
  /* Gold line */
  display: inline-block;
}

/* Premium Dark Logo Box (Right side in image, left side in RTL layout) */
.chairman-visual-side {
  display: flex;
  justify-content: center;
  align-items: center;
}

.premium-logo-box {
  background-color: #22252a;
  /* Dark sleek color from image */
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4 / 3;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 4px solid var(--accent-color);
  border-radius: 0;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  padding: 2rem;
  text-align: center;
}

.premium-logo-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-text-huge {
  font-size: 6rem;
  font-weight: 900;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -2px;
}

.logo-title-ar {
  font-size: 1.6rem;
  color: var(--accent-color);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.logo-title-en {
  font-size: 0.9rem;
  color: var(--accent-color);
  font-family: Arial, sans-serif;
  letter-spacing: 2px;
  opacity: 0.8;
}

/* ==========================================================================
   Experiences Section Styling
   ========================================================================== */
.experiences-section {
  background-color: #fff;
  padding-top: 4rem;
}

.experiences-header {
  margin-bottom: 2rem;
}

.experiences-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.experiences-title strong {
  color: var(--accent-color);
}

.experiences-subtitle {
  font-size: 1.2rem;
  color: #666;
  font-weight: 600;
}

/* Overlapping Image */
.experiences-image-wrapper {
  position: relative;
  z-index: 10;
  margin-bottom: -180px;
  /* Pull the dark section up */
  text-align: center;
}

.experiences-main-img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 0;
  /* Sharp edges */
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  display: inline-block;
}

@media (max-width: 768px) {
  .experiences-image-wrapper {
    margin-bottom: -80px;
  }
}

/* Dark Bottom Content */
.experiences-dark-bg {
  background-color: #fff;
  /* Light theme to match homepage */
  padding-top: 250px;
  /* Space for the overlapping image */
  padding-bottom: 6rem;
}

@media (max-width: 768px) {
  .experiences-dark-bg {
    padding-top: 130px;
  }
}

.experiences-dark-title {
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 3rem;
}

.experiences-paragraphs {
  max-width: 900px;
  margin: 0 auto;
}

.experiences-paragraphs p {
  color: #555;
  font-size: 1.25rem;
  line-height: 2.1;
  margin-bottom: 1.8rem;
  font-weight: 400;
}

/* ==========================================================================
   Vision & Mission Section Styling
   ========================================================================== */
.vision-mission-section {
  padding-bottom: 6rem;
}

.vision-mission-layout {
  display: flex;
  background-color: #fff;
  /* Light theme */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

@media (max-width: 992px) {
  .vision-mission-layout {
    flex-direction: column;
  }
}

.vm-image-box {
  flex: 1;
  min-height: 500px;
}

.vm-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vm-text-box {
  flex: 1;
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  .vm-text-box {
    padding: 3rem 2rem;
  }
}

.vm-timeline {
  border-right: 2px solid rgba(0, 0, 0, 0.1);
  /* Timeline vertical line on the right in RTL */
  padding-right: 4.5rem;
  /* Increased padding to prevent text overlap */
}

.vm-item {
  position: relative;
  margin-bottom: 4rem;
}

.vm-item:last-child {
  margin-bottom: 0;
}

/* The small hollow square badge on the timeline */
.vm-tag {
  position: absolute;
  right: -92px;
  /* Pulled exactly onto the vertical line taking padding into account */
  top: 5px;
  background-color: #fff;
  /* Match box background */
  border: 2px solid var(--accent-color);
  color: var(--primary-color);
  padding: 2px 15px;
  font-size: 0.9rem;
  font-weight: 700;
}

.vm-title {
  color: var(--accent-color);
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.vm-content p {
  color: #555;
  font-size: 1.15rem;
  line-height: 2;
  font-weight: 500;
  margin: 0;
}

/* ==========================================================================
   Goals Section Styling
   ========================================================================== */
.goals-section {
  padding-bottom: 6rem;
}

.goals-layout {
  display: flex;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 992px) {
  .goals-layout {
    flex-direction: column;
  }
}

.goals-image-box {
  flex: 1;
}

.goals-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 0;
  /* Sharp edges */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.goals-text-box {
  flex: 1;
  padding: 1rem 0;
}

.goals-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.goals-list li {
  position: relative;
  padding-right: 1.5rem;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  font-weight: 500;
}

.goals-list li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background-color: #555;
  /* Dark grey bullets matching the image */
  border-radius: 50%;
}

/* ==========================================================================
   Values Section Styling
   ========================================================================== */
.values-subtitle {
  font-size: 1.2rem;
  color: #555;
  font-weight: 600;
  max-width: 800px;
  margin: 0 auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 1100px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

.value-card {
  background-color: #fff;
  border: 1px solid #eee;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
  border-radius: 0;
  /* Sharp edges */
  border-bottom: 3px solid transparent;
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  border-bottom: 3px solid var(--accent-color);
}

.value-icon {
  margin: 0 auto 1rem;
  background-color: transparent;
  color: var(--accent-color);
  font-size: 2.5rem;
  /* Slightly larger since there's no bounding box */
  transition: all 0.4s ease;
}

.value-card:hover .value-icon {
  transform: scale(1.1);
}

.value-title {
  font-size: 1.4rem;
  color: var(--primary-color);
  font-weight: 800;
  margin-bottom: 1rem;
}

.value-text {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.8;
  font-weight: 500;
}

/* ==========================================================================
   Stats Section Styling
   ========================================================================== */
.stats-section {
  background-color: #fff;
  /* Light theme */
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid #eee;
}

/* Animated moving dots background */
.stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--accent-color) 3px, transparent 3px);
  background-size: 50px 50px;
  opacity: 0.4;
  /* More visible gold dots */
  pointer-events: none;
  animation: moveDots 20s linear infinite;
  z-index: 1;
}

@keyframes moveDots {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 120px 120px;
  }
}

.stats-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 5rem;
  color: var(--primary-color);
  position: relative;
  z-index: 2;
}

.stats-title span {
  color: var(--accent-color);
  font-weight: 900;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

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

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-number {
  font-size: 5.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-text {
  font-size: 1.25rem;
  color: var(--accent-color);
  font-weight: 700;
  letter-spacing: 1px;
}

/* ==========================================================================
   Services Page Header & CTA Banner
   ========================================================================== */
.services-page-header {
  background-color: #fff;
}

.services-cta-banner {
  padding-bottom: 6rem;
  background-color: #fff;
}

.cta-banner-inner {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
  padding: 4rem 3rem;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.cta-title {
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  position: relative;
  z-index: 2;
  margin: 0;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.cta-button {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 1rem 2.8rem;
  font-size: 1.2rem;
  font-weight: 800;
  border-radius: 50px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-button:hover {
  background-color: var(--white);
  color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
}

.cta-bg-icon {
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15rem;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

@media (max-width: 768px) {
  .cta-banner-inner {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding: 3rem 1.5rem;
  }
}


/* ==========================================================================
   Mobile Responsive Overrides
   ========================================================================== */

/* 1. Header & Navigation */
.nav-menu ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: var(--primary-color);
  cursor: pointer;
  z-index: 1002;
}

.dual-header.is-transparent:not(.scrolled) .menu-toggle {
  color: var(--white);
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  display: block;
  opacity: 1;
}

@media (max-width: 992px) {

  .nav-menu ul {
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 2rem;
  }

  .nav-menu ul li a {
    color: var(--primary-color) !important;
    text-shadow: none !important;
    font-size: 1.2rem !important;
    display: block;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
  }

  .main-nav {
    padding: 1rem 5%;
  }

  .dual-header.is-transparent:not(.scrolled) .main-nav {
    padding: 1rem 5%;
  }
}

/* 2. Typography Scaling (Hero Section) */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem !important;
    line-height: 1.4;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .btn-gold,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }
}

/* 3. Grid Layout Adjustments */
@media (max-width: 768px) {

  .services-grid,
  .portfolio-grid,
  .footer-grid,
  .about-grid,
  .contact-wrapper {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .contact-info-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-page-header {
    padding-top: 4rem;
  }
}

/* Increase social icon size */
.top-bar-social a {
  font-size: 1.15rem !important;
  margin-left: 12px;
}

/* Mobile Menu Contact Info */
.mobile-nav-contact {
  display: none;
  /* hidden on desktop */
}

@media (max-width: 992px) {
  .mobile-nav-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #eee;
  }

  .mobile-nav-phone,
  .mobile-nav-email {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-gray);
  }

  .mobile-nav-phone i,
  .mobile-nav-email i {
    color: var(--accent-color);
    font-size: 1.3rem;
  }

  .mobile-nav-phone a {
    color: inherit;
    text-decoration: none;
  }

  .mobile-nav-social {
    display: flex;
    gap: 15px;
    margin-top: 10px;
  }

  .mobile-nav-social a {
    color: var(--text-gray);
    font-size: 1.5rem;
    transition: color 0.3s ease;
  }

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

@media (max-width: 992px) {

  /* Fix mobile menu link colors overridden by desktop !important */
  .dual-header.is-transparent:not(.scrolled) .main-nav .nav-menu ul li a,
  .main-nav .nav-menu ul li a {
    color: var(--primary-color) !important;
    text-shadow: none !important;
  }

  /* Fix contact info alignment in mobile menu */
  .mobile-nav-contact {
    align-items: flex-start;
    text-align: right;
  }

  .mobile-nav-phone,
  .mobile-nav-email {
    text-shadow: none !important;
  }

  .mobile-nav-social a {
    text-shadow: none !important;
    color: var(--text-gray) !important;
  }
}

/* Hide mobile overlay on desktop if left active by resize */
@media (min-width: 993px) {
  .mobile-overlay {
    display: none !important;
  }
}

@media (max-width: 992px) {

  /* Restoring accidentally deleted CSS */
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease;
    z-index: 1000;
    padding-top: 5rem;
    overflow-y: auto;
  }

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

@media (max-width: 992px) {

  /* Highly specific rule to override the transparent header white links */
  .dual-header.is-transparent .main-nav .nav-menu .mobile-nav-contact a,
  .dual-header.is-transparent:not(.scrolled) .main-nav .nav-menu .mobile-nav-contact a {
    color: var(--primary-color) !important;
    text-shadow: none !important;
  }

  .dual-header.is-transparent .main-nav .nav-menu .mobile-nav-social a,
  .dual-header.is-transparent:not(.scrolled) .main-nav .nav-menu .mobile-nav-social a {
    color: var(--text-gray) !important;
    font-size: 1.5rem !important;
  }
}

@media (max-width: 992px) {

  /* Center mobile contact info and use a single uniform color */
  .mobile-nav-contact {
    align-items: center !important;
    text-align: center !important;
  }

  .mobile-nav-social {
    justify-content: center !important;
    width: 100%;
  }

  .mobile-nav-phone,
  .mobile-nav-email,
  .mobile-nav-phone a,
  .mobile-nav-email a,
  .mobile-nav-phone i,
  .mobile-nav-email i,
  .mobile-nav-social a,
  .mobile-nav-social a i,
  .dual-header.is-transparent .main-nav .nav-menu .mobile-nav-social a,
  .dual-header.is-transparent:not(.scrolled) .main-nav .nav-menu .mobile-nav-social a,
  .dual-header.is-transparent .main-nav .nav-menu .mobile-nav-contact a,
  .dual-header.is-transparent:not(.scrolled) .main-nav .nav-menu .mobile-nav-contact a,
  .dual-header.is-transparent .main-nav .nav-menu .mobile-nav-contact i,
  .dual-header.is-transparent:not(.scrolled) .main-nav .nav-menu .mobile-nav-contact i {
    color: var(--primary-color) !important;
  }
}

@media (max-width: 992px) {

  /* Hide hamburger icon when full screen menu is active to prevent overlap */
  .nav-menu.active~.nav-actions .menu-toggle {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }
}

@media (max-width: 992px) {

  /* Hide Top Bar on mobile for cleaner look */
  .top-bar {
    display: none;
  }

  .main-nav .logo img {
    max-height: 75px !important;
  }

  .nav-actions .btn-gold {
    display: none;
    /* Hide CTA button to save space for hamburger menu */
  }
}

@media (max-width: 992px) {

  /* Center logo on mobile */
  .main-nav {
    justify-content: center !important;
    position: relative;
  }

  /* Keep hamburger on the left edge */
  .nav-actions {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (max-width: 768px) {

  /* Improve Hero Section Responsiveness */
  .hero {
    justify-content: center;
    text-align: center;
  }

  .hero-divider {
    margin: 1.5rem auto;
    /* Center the divider */
  }

  .hero-title-ar {
    font-size: 2rem !important;
    text-align: center;
  }

  .hero-title-en {
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 2rem;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  /* Comprehensive Mobile Polish for all Sections */

  /* 1. Section Spacing & Headers */
  .section-padding,
  .works-section,
  .projects-section,
  .portfolio-slider-section {
    padding: 4rem 0 !important;
  }

  .section-header {
    text-align: center !important;
    margin-bottom: 2rem !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .section-title {
    font-size: 2rem !important;
    line-height: 1.3 !important;
    text-align: center !important;
  }

  /* 2. Grid Overrides (Stacking) */
  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 0.8rem !important;
  }

  .services-grid,
  .masonry-grid,
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* 3. Partners Grid (keep 2 per row so they aren't massive) */
  .partners-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }

  /* 4. Text and Alignment fixes */
  .about-text,
  .service-card,
  .project-info,
  .footer-widget {
    text-align: center !important;
  }

  .about-features,
  .contact-info-top {
    justify-content: center !important;
    align-items: center !important;
  }

  .slider-controls {
    justify-content: center !important;
    margin-top: 1.5rem !important;
  }

  /* 5. Images and Cards */
  .project-card,
  .service-card {
    margin: 0 auto;
    width: 100%;
    max-width: 400px;
  }

  .masonry-item img {
    height: auto !important;
    max-height: 250px !important;
  }
}

@media (max-width: 768px) {

  /* Nicer Mobile Buttons */
  .btn-gold,
  .btn-dark,
  .btn-outline,
  .btn-outline-white {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 280px !important;
    white-space: nowrap !important;
    margin: 1rem auto !important;
    border-radius: 8px !important;
    /* Smoother rounded corners */
    padding: 1rem 2rem !important;
    /* Larger touch target */
    font-size: 1.1rem !important;
  }
}

@media (max-width: 768px) {

  /* Stack mission row vertically on mobile so button is below text */
  .mission-row {
    flex-direction: column !important;
    gap: 1.5rem !important;
    text-align: center !important;
  }

  /* Make buttons sharp as requested */
  .btn-gold,
  .btn-dark,
  .btn-outline,
  .btn-outline-white {
    border-radius: 0 !important;
  }
}

@media (max-width: 992px) {

  /* Show CTA button in mobile header */
  .nav-actions .btn-gold {
    display: inline-flex !important;
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: auto !important;
    max-width: none !important;
    padding: 0.4rem 0.8rem !important;
    font-size: 0.85rem !important;
    border-radius: 0 !important;
    /* Sharp */
    margin: 0 !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 992px) {

  /* Hide CTA button again per user request */
  .nav-actions .btn-gold {
    display: none !important;
  }
}

/* ================= PORTFOLIO PAGE STYLES ================= */
.portfolio-page-section {
  padding: 60px 0;
  background-color: #fff;
}

.portfolio-title-wrapper {
  text-align: center;
  margin-bottom: 40px;
}

.portfolio-filter-bar {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  background-color: var(--primary-color);
  margin-bottom: 40px;
  border-radius: 0;
  overflow: hidden;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.filter-btn {
  flex: 1;
  background: transparent;
  color: #fff;
  border: none;
  padding: 16px 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.filter-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.filter-btn.active {
  background-color: var(--accent-color);
  color: #fff;
}

.portfolio-gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.gallery-item {
  width: calc(20% - 12px);
  position: relative;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: opacity 0.4s ease;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

@media (max-width: 992px) {
  .gallery-item {
    width: calc(33.333% - 10px);
  }

  .portfolio-filter-bar {
    flex-wrap: wrap;
    border-radius: 0;
  }

  .filter-btn {
    flex: 1 1 33%;
  }
}

@media (max-width: 768px) {
  .gallery-item {
    width: calc(50% - 7.5px);
  }

  .filter-btn {
    flex: 1 1 50%;
    font-size: 0.85rem;
  }
}

/* =========================================================
   COMPREHENSIVE MOBILE OPTIMIZATION (STRICTLY < 992px)
   ========================================================= */

@media (max-width: 992px) {

  /* 1. Global Spacing */
  .section-padding {
    padding: 3rem 0 !important;
  }

  /* 2. Typography */
  .hero-content h1 {
    font-size: 2.5rem !important;
  }

  .section-title {
    font-size: 2rem !important;
  }

  .hero-content p {
    font-size: 1.1rem !important;
  }

  .section-subtitle {
    font-size: 1rem !important;
  }

  /* 3. Grid Layouts -> Single Column on Tablets/Mobile */
  .about-grid,
  .services-grid,
  .features-grid,
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

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

  /* 4. Masonry Grid Fixes (Our Work) */
  .masonry-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-auto-rows: 150px !important;
  }

  .masonry-item {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
}

@media (max-width: 768px) {

  /* 1. Typography extra small */
  .hero-content h1 {
    font-size: 2rem !important;
  }

  .section-title {
    font-size: 1.7rem !important;
  }

  /* 2. Projects -> 2 columns on phones */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }

  .masonry-grid {
    grid-template-columns: 1fr !important;
  }

  .masonry-grid {
    grid-auto-rows: 250px !important;
  }

  .portfolio-gallery-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .gallery-item {
    width: calc(50% - 7.5px) !important;
    max-width: none !important;
  }

  /* 3. Portfolio Filter Bar */
  .portfolio-filter-bar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
  }

  .filter-btn {
    flex: 1 1 40% !important;
    padding: 12px 5px !important;
    font-size: 0.9rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 992px) {
  .about-grid {
    display: flex !important;
    flex-direction: column !important;
  }

  .about-image {
    order: -1 !important;
  }

  .about-text {
    order: 1 !important;
  }
}

@media (max-width: 992px) {
  .about-grid {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem !important;
    align-items: flex-start !important;
  }

  .about-image {
    order: 1 !important;
    flex: 1 !important;
    min-width: 0 !important;
  }

  .about-text {
    order: 2 !important;
    flex: 1 !important;
    min-width: 0 !important;
  }

  .about-image img {
    width: 100% !important;
    height: auto !important;
  }

  .about-text-header h3 {
    font-size: 1.2rem !important;
  }

  .about-desc {
    font-size: 0.85rem !important;
  }

  .services-list-item {
    font-size: 0.8rem !important;
  }
}

/* FINAL FIX: About Section Mobile - image RIGHT, text LEFT */
@media (max-width: 992px) {
  .about-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 1rem !important;
    align-items: flex-start !important;
  }

  .about-image {
    order: 0 !important;
    flex: 1 1 45% !important;
    min-width: 0 !important;
  }

  .about-text {
    order: 1 !important;
    flex: 1 1 55% !important;
    min-width: 0 !important;
  }

  .about-image img {
    width: 100% !important;
    height: auto !important;
  }

  .about-text-header h3 {
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
  }

  .about-desc {
    font-size: 0.82rem !important;
    line-height: 1.6 !important;
  }

  .services-list-item span {
    font-size: 0.8rem !important;
  }

  .experience-badge {
    font-size: 0.75rem !important;
  }
}

/* SWAP: About Section Mobile - image LEFT (order override) */
@media (max-width: 992px) {
  .about-image {
    order: 1 !important;
  }

  .about-text {
    order: 0 !important;
  }
}

@media (max-width: 992px) {
  .about-image {
    margin-top: 3rem !important;
    align-self: flex-start !important;
  }
}

@media (max-width: 768px) {
  .about-image {
    margin-top: 5rem !important;
  }

  .experience-badge {
    padding: 0.5rem 0.8rem !important;
    width: 100% !important;
    max-width: 180px !important;
  }

  .experience-badge .exp-number {
    font-size: 1.8rem !important;
  }

  .experience-badge .exp-text {
    font-size: 0.7rem !important;
  }
}

@media (max-width: 768px) {
  .about-image {
    margin-top: 7rem !important;
  }

  .experience-badge .exp-number {
    font-size: 2.5rem !important;
  }

  .experience-badge .exp-text {
    font-size: 0.85rem !important;
  }
}

@media (max-width: 768px) {
  .about-image {
    margin-top: 9rem !important;
  }
}

@media (max-width: 768px) {
  .about-image {
    margin-top: 12rem !important;
  }
}

/* =========================================================
   SCROLL ANIMATIONS - Pure CSS + Intersection Observer
   ========================================================= */

/* Initial hidden states */
.fade-up {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-left {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-right {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.zoom-in {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Visible state (added by JS) */
.fade-up.visible,
.fade-left.visible,
.fade-right.visible,
.zoom-in.visible {
  opacity: 1;
  transform: none;
}

/* Staggered delay helpers */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

/* ==========================================================================
   Page Loader & Custom Cursor (Premium Upgrades)
   ========================================================================== */
.page-loader {
  position: fixed;
  inset: 0;
  /* Shorthand for top, bottom, left, right 0 */
  background-color: var(--primary-color);
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s cubic-bezier(0.8, 0, 0.2, 1), visibility 0.8s cubic-bezier(0.8, 0, 0.2, 1);
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loader-img-logo {
  max-width: 150px;
  /* Adjust size based on actual logo */
  margin-bottom: 25px;
  border-radius: 8px;
  /* Optional, just in case */
  animation: pulseLogo 1.5s infinite alternate;
}

.loader-line-wrapper {
  width: 200px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.loader-line {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--accent-color);
  animation: loadLine 1.5s infinite ease-in-out;
}

@keyframes pulseLogo {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.05);
    opacity: 1;
    text-shadow: 0 0 20px rgba(226, 194, 125, 0.5);
  }
}

@keyframes loadLine {
  0% {
    left: -100%;
  }

  50% {
    left: 0;
  }

  100% {
    left: 100%;
  }
}

}