/* ==========================================================================
   Green Projects | قرين بروجكتس - Corporate Website Stylesheet
   ========================================================================== */

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

/* --- CSS Variables & Design System --- */
:root {
  --color-primary-dark: #0E3B2A;      /* Deep Emerald Green */
  --color-brand: #1E7A4C;             /* Brand Green */
  --color-accent-start: #2E8B57;      /* Light Green Start */
  --color-accent-end: #6FBE7A;        /* Light Green End */
  --color-gold: #D4B46A;              /* Accessible Luxury Gold */
  --color-navy: #16243C;              /* Headings dark navy */
  --color-light-bg-1: #F7F9F7;        /* Off-white light bg */
  --color-light-bg-2: #FFFFFF;        /* Pure white bg */
  --color-gray-text: #5B6670;         /* Secondary gray text */
  --color-white-trans: rgba(255, 255, 255, 0.08);
  --color-dark-trans: rgba(14, 59, 42, 0.85);

  --font-ar-body: 'Cairo', sans-serif;
  --font-ar-title: 'Tajawal', 'IBM Plex Sans Arabic', sans-serif;
  --font-en-body: 'Inter', sans-serif;
  --font-en-title: 'Poppins', 'Montserrat', sans-serif;

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  --shadow-luxury: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 25px rgba(30, 122, 76, 0.35);
  --shadow-gold-glow: 0 0 25px rgba(201, 162, 75, 0.25);
  
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 32px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  background-color: var(--color-light-bg-2);
  color: var(--color-gray-text);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Base Headings & Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--color-navy);
}

/* Typography Switcher based on Direction */
html[dir="rtl"] body {
  font-family: var(--font-ar-body);
}
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4, html[dir="rtl"] h5, html[dir="rtl"] h6 {
  font-family: var(--font-ar-title);
}

html[dir="ltr"] body {
  font-family: var(--font-en-body);
}
html[dir="ltr"] h1, html[dir="ltr"] h2, html[dir="ltr"] h3, html[dir="ltr"] h4, html[dir="ltr"] h5, html[dir="ltr"] h6 {
  font-family: var(--font-en-title);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-primary-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border: 2px solid var(--color-primary-dark);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand);
}

/* --- Custom Cursor --- */
.cursor-dot,
.cursor-outline {
  display: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .cursor-dot {
    display: block !important;
    width: 8px;
    height: 8px;
    background-color: var(--color-gold);
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
  }

  .cursor-outline {
    display: block !important;
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--color-gold);
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
  }

  /* Cursor Hover States */
  .cursor-dot.hover {
    width: 4px;
    height: 4px;
    background-color: var(--color-gold);
  }

  .cursor-outline.hover {
    width: 60px;
    height: 60px;
    border-color: var(--color-accent-end);
    background-color: rgba(46, 139, 87, 0.1);
    box-shadow: var(--shadow-glow);
  }
}

/* --- Loader Animation --- */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-primary-dark);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease;
}

#loader.fade-out {
  opacity: 0;
}

.loader-logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-logo-official {
  height: 90px;
  width: auto;
  display: block;
  mix-blend-mode: screen;
  animation: fadeLoaderIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}


.loader-leaf {
  width: 80px;
  height: 80px;
  stroke: var(--color-gold);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawLeaf 2.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.loader-text {
  color: var(--color-light-bg-2);
  font-family: var(--font-en-title);
  font-size: 1.5rem;
  letter-spacing: 4px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeTextUp 1s ease 1s forwards;
}

.loader-text span {
  color: var(--color-gold);
}

@keyframes drawLeaf {
  to {
    stroke-dashoffset: 0;
    fill: rgba(201, 162, 75, 0.1);
  }
}

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

@keyframes fadeLoaderIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* --- Common Components & Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #8B6F30; /* High-contrast dark gold for WCAG AA compliance on light bg */
  border: 1px solid rgba(139, 111, 48, 0.3);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 15px;
  letter-spacing: 1.5px;
  background-color: rgba(139, 111, 48, 0.05);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800; /* Force Extra Bold typography hierarchy */
  color: var(--color-navy);
  line-height: 1.3;
  margin-bottom: 15px;
}

.section-title span {
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-accent-start) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Wave Divider Component */
.wave-divider {
  width: 100%;
  height: 40px;
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 10;
  pointer-events: none;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}

.wave-divider.top {
  top: -1px;
  bottom: auto;
  transform: rotate(180deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  gap: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-primary-dark) 100%);
  color: var(--color-light-bg-2);
  border: 1px solid var(--color-brand);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
  border-color: var(--color-accent-end);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary-dark);
  border: 1.5px solid var(--color-primary-dark);
}

.btn-secondary:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-light-bg-2);
  transform: translateY(-3px);
}

.btn-gold {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-gold) 0%, #B88E3C 100%);
  color: var(--color-primary-dark);
  border: none;
  font-weight: 700;
  z-index: 1;
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 20%;
  height: 100%;
  background: rgba(255, 255, 255, 0.25);
  transform: skewX(-30deg);
  transition: none;
  z-index: 2;
  pointer-events: none;
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold-glow);
  filter: brightness(1.05);
}

.btn-gold:hover::after {
  left: 150%;
  transition: left 0.8s ease-in-out;
}

.btn-white {
  background: var(--color-light-bg-2);
  color: var(--color-primary-dark);
  border: 1.5px solid var(--color-light-bg-2);
}

.btn-white:hover {
  background: transparent;
  color: var(--color-light-bg-2);
  transform: translateY(-3px);
}

/* Glassmorphism Classes */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-md);
  padding: 30px;
  transition: var(--transition-smooth);
}

.glass-card-dark {
  background: rgba(14, 59, 42, 0.65);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-md);
  padding: 40px;
  color: var(--color-light-bg-2);
  transition: var(--transition-smooth);
}

.glass-card-dark:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-gold-glow);
}

/* Textures */
.dark-pattern-bg {
  background-color: var(--color-primary-dark);
  position: relative;
}

.dark-pattern-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--color-brand) 0.5px, transparent 0.5px), radial-gradient(var(--color-brand) 0.5px, var(--color-primary-dark) 0.5px);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
  opacity: 0.15;
  pointer-events: none;
}

/* Reveal Animation Setup */
.reveal-element {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-element.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 40px;
  inset-inline-end: 40px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  z-index: 999;
  transition: var(--transition-smooth);
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  background-color: #128C7E;
  box-shadow: 0 15px 30px rgba(18, 140, 126, 0.5);
}

/* --- a) Header / Navbar --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 0;
  z-index: 1000;
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 15px 0;
  background-color: rgba(14, 59, 42, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(201, 162, 75, 0.15);
}

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

/* Brand Logo CSS */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* Official image logo — transparent background, larger size */
.logo-official-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-official {
  height: 62px;
  width: auto;
  display: block;
  /* screen blend removes white from PNG logo against the dark header background */
  mix-blend-mode: screen;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.15));
  transition: var(--transition-fast);
}

.logo-official-link:hover .logo-official {
  filter: drop-shadow(0 2px 8px rgba(201, 162, 75, 0.4));
  transform: scale(1.04);
  transition: var(--transition-smooth);
}


.logo-icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--color-gold);
}

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

.logo-main {
  font-family: var(--font-en-title);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 2px;
  color: var(--color-light-bg-2);
  line-height: 1.1;
}

.logo-sub {
  font-family: var(--font-ar-title);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--color-gold);
}

/* Navigation Links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: var(--transition-fast);
  position: relative;
  padding: 5px 0;
}

html[dir="rtl"] .nav-links a {
  font-family: var(--font-ar-body);
}

html[dir="ltr"] .nav-links a {
  font-family: var(--font-en-body);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--color-gold);
}

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

/* Language and CTA Buttons Group */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-light-bg-2);
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.lang-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background-color: rgba(255, 255, 255, 0.05);
}

/* Burger Menu */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
}

.burger-menu span {
  width: 100%;
  height: 3px;
  background-color: var(--color-light-bg-2);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* Mobile responsive navigation overrides in media queries below */


/* --- b) Hero Section --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background-image: url('../images/hero-bg.jpg'); /* Riyadh night skyline */
  background-size: cover;
  background-position: center;
  color: var(--color-light-bg-2);
  padding-top: 140px;
}

/* Duotone overlay combining dark green and dark gradient overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(14, 59, 42, 0.95) 0%, rgba(10, 40, 29, 0.9) 50%, rgba(5, 20, 15, 0.85) 100%);
  z-index: 1;
}

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

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

.hero-title {
  font-size: 4rem;
  line-height: 1.15;
  margin-bottom: 25px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #FFFFFF;
}

.hero-title .title-accent {
  display: block;
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--color-gold);
  margin-top: 15px;
  font-family: inherit;
  font-style: italic;
  letter-spacing: 0.5px;
}

.hero-desc {
  font-size: 1.25rem;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 650px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 70px;
}

/* Statistics Ribbon at base of Hero */
.stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  border-top: 1px solid rgba(251, 251, 251, 0.15);
  padding-top: 40px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-gold);
  font-family: var(--font-en-title);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}


/* --- c) About Us Section --- */
.about-section {
  background-color: var(--color-light-bg-1);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: center;
}

.about-text-content {
  display: flex;
  flex-direction: column;
}

.about-para {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-navy);
  font-weight: 500;
  margin-bottom: 30px;
}

.about-para-secondary {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-gray-text);
  margin-bottom: 40px;
}

/* Architectural styling for the Left column (visual representation) */
.about-visual {
  position: relative;
  height: 480px;
}

.about-img-frame {
  position: absolute;
  width: 85%;
  height: 90%;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-luxury);
  border: 1px solid rgba(14, 59, 42, 0.1);
  transition: var(--transition-smooth);
}

.about-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Shift frame positions depending on logical alignments */
.about-visual .frame-main {
  top: 0;
  inset-inline-start: 0;
  z-index: 2;
}

.about-visual .frame-accent {
  bottom: 0;
  inset-inline-end: 0;
  z-index: 1;
  border: 2px solid var(--color-gold);
}

.about-visual .frame-accent::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(14, 59, 42, 0.7) 0%, rgba(201, 162, 75, 0.7) 100%);
  mix-blend-mode: multiply;
}

.about-visual:hover .frame-main {
  transform: translate(-10px, -10px);
}

.about-visual:hover .frame-accent {
  transform: translate(10px, 10px);
}


/* --- d) Vision & Mission Section --- */
.vision-mission-section {
  background-color: var(--color-light-bg-2);
}

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

.vision-card {
  padding: 50px 40px;
  background-color: var(--color-light-bg-1);
  border: 1px solid rgba(14, 59, 42, 0.05);
  border-radius: var(--border-radius-md);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}

.vision-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--color-brand);
  transition: var(--transition-smooth);
}

.vision-card.mission-card::before {
  background-color: var(--color-gold);
}

.vision-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-luxury);
  border-color: rgba(14, 59, 42, 0.1);
}

.vision-card:hover::before {
  width: 8px;
}

.vision-icon-box {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(30, 122, 76, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  color: var(--color-brand);
  transition: var(--transition-smooth);
}

.mission-card .vision-icon-box {
  background-color: rgba(201, 162, 75, 0.08);
  color: var(--color-gold);
}

.vision-card:hover .vision-icon-box {
  transform: rotateY(180deg);
}

.vision-card h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.vision-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-gray-text);
}


/* --- e) Core Values Section --- */
.values-section {
  background-color: var(--color-light-bg-1);
}

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

.value-card {
  background-color: var(--color-light-bg-2);
  border: 1px solid rgba(14, 59, 42, 0.05);
  border-radius: var(--border-radius-md);
  padding: 30px 24px;
  text-align: center;
  position: relative;
  perspective: 1000px; /* For card flip effect if needed, but let's do a smooth hover switch content */
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: var(--transition-smooth);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-luxury);
  border-color: var(--color-brand);
}

.value-card-inner {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.value-icon-box {
  width: 60px;
  height: 60px;
  background-color: rgba(14, 59, 42, 0.05);
  color: var(--color-primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.value-card:hover .value-icon-box {
  background-color: var(--color-brand);
  color: var(--color-light-bg-2);
  box-shadow: var(--shadow-glow);
}

.value-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.value-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-gray-text);
  transition: var(--transition-smooth);
}

/* Hover reveals English text */
.value-desc-en {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 30px 24px;
  background-color: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transform: translateY(100%);
  transition: var(--transition-smooth);
  border-radius: var(--border-radius-md);
}

.value-card:hover .value-desc-en {
  transform: translateY(0);
}

.value-desc-en h4 {
  color: var(--color-gold) !important;
  font-size: 1.15rem;
  margin-bottom: 10px;
  font-family: var(--font-en-title);
}

.value-desc-en p {
  font-size: 0.85rem;
  line-height: 1.5;
  font-family: var(--font-en-body);
}


/* --- f) Our Services Section --- */
.services-section {
  background-color: var(--color-light-bg-2);
}

.services-main-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.service-main-card {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-luxury);
  border: 1px solid rgba(14, 59, 42, 0.05);
  background-color: var(--color-light-bg-1);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-main-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(14, 59, 42, 0.12);
  border-color: var(--color-brand);
}

.service-img-box {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.service-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-main-card:hover .service-img-box img {
  transform: scale(1.08);
}

.service-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(14, 59, 42, 0.6) 0%, transparent 100%);
}

.service-info-box {
  padding: 35px 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-info-box h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.service-info-box p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-gray-text);
}

/* Secondary technical features grid */
.services-tech-title {
  text-align: center;
  font-size: 1.5rem;
  margin: 50px 0 30px 0;
  color: var(--color-navy);
}

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

.service-tech-card {
  padding: 24px;
  background-color: var(--color-light-bg-1);
  border: 1px solid rgba(14, 59, 42, 0.05);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: var(--transition-fast);
}

.service-tech-card:hover {
  background-color: var(--color-light-bg-2);
  border-color: var(--color-brand);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
}

.service-tech-icon {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  background-color: rgba(30, 122, 76, 0.1);
  color: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-tech-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}


/* --- g) Work Methodology Section (Timeline) --- */
.methodology-section {
  background-color: var(--color-light-bg-1);
}

.timeline-wrapper {
  position: relative;
  margin-top: 60px;
  padding: 40px 0;
}

/* Horizontal Timeline bar track */
.timeline-track {
  position: absolute;
  top: 120px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: rgba(14, 59, 42, 0.1);
  z-index: 1;
}

html[dir="rtl"] .timeline-track {
  right: 0;
  left: auto;
}

.timeline-track-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-brand) 0%, var(--color-gold) 100%);
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.methodology-section.revealed .timeline-track-progress {
  width: 100%;
}

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

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition-smooth);
}

.timeline-node {
  width: 50px;
  height: 50px;
  background-color: var(--color-light-bg-2);
  border: 3px solid rgba(14, 59, 42, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en-title);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-primary-dark);
  margin-bottom: 40px;
  position: relative;
  transition: var(--transition-smooth);
}

.timeline-node::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-gold);
  transform: scale(0);
  transition: var(--transition-smooth);
}

.timeline-step:hover .timeline-node {
  border-color: var(--color-gold);
  background-color: var(--color-primary-dark);
  color: var(--color-light-bg-2);
  box-shadow: var(--shadow-gold-glow);
  transform: scale(1.1);
}

.timeline-step:hover .timeline-node::before {
  transform: scale(1);
  top: -15px; /* pop above node */
}

/* Stagger animations for step nodes */
.reveal-timeline-1 { transition-delay: 0.1s; }
.reveal-timeline-2 { transition-delay: 0.3s; }
.reveal-timeline-3 { transition-delay: 0.5s; }
.reveal-timeline-4 { transition-delay: 0.7s; }
.reveal-timeline-5 { transition-delay: 0.9s; }

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

.timeline-content-box p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-gray-text);
  padding: 0 10px;
}


/* --- h) Our Sectors Section (Diamond Shape) --- */
.sectors-section {
  background-color: var(--color-primary-dark);
  padding: 120px 0;
  position: relative;
}

.sectors-section .section-title {
  color: var(--color-light-bg-2) !important;
}
.sectors-section .section-subtitle {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Grid layout with overlapping rotated diamond cards */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px;
  margin-top: 80px;
  padding: 20px 0;
}

.sector-diamond-card {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-md);
  transform: rotate(45deg);
  overflow: hidden;
  position: relative;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sector-diamond-card:hover {
  background-color: rgba(30, 122, 76, 0.15);
  border-color: var(--color-gold);
  transform: rotate(45deg) scale(1.03) translateY(-5px);
  box-shadow: var(--shadow-gold-glow);
}

.sector-card-inner {
  transform: rotate(-45deg); /* Counter rotate contents to keep upright */
  text-align: center;
  padding: 30px;
  width: 130%; /* Expand width as rotation compresses visible horizontal area */
  height: 130%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-light-bg-2);
}

.sector-icon {
  width: 50px;
  height: 50px;
  color: var(--color-gold);
  margin-bottom: 15px;
  transition: var(--transition-smooth);
}

.sector-diamond-card:hover .sector-icon {
  transform: scale(1.1);
  color: var(--color-light-bg-2);
}

.sector-card-inner h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-light-bg-2) !important;
}

.sector-card-inner p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  max-width: 180px;
}


/* --- i) Pillars of Excellence Section --- */
.pillars-section {
  background-color: var(--color-light-bg-2);
}

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

.pillar-card {
  padding: 50px 35px;
  background-color: var(--color-light-bg-1);
  border: 1px solid rgba(14, 59, 42, 0.03);
  border-radius: var(--border-radius-md);
  position: relative;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pillar-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--color-brand);
  transform: scaleX(0);
  transition: var(--transition-smooth);
  border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
}

.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-luxury);
  border-color: rgba(14, 59, 42, 0.1);
}

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

.pillar-num {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(201, 162, 75, 0.15);
  font-family: var(--font-en-title);
  line-height: 1;
  margin-bottom: 10px;
  transition: var(--transition-smooth);
}

.pillar-card:hover .pillar-num {
  color: var(--color-gold);
  transform: scale(1.1) translateY(-5px);
}

.pillar-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.pillar-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-gray-text);
}


/* --- j) Why Us Section --- */
.why-us-section {
  background-color: var(--color-light-bg-1);
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.why-card {
  background-color: var(--color-light-bg-2);
  border: 1px solid rgba(14, 59, 42, 0.05);
  border-radius: var(--border-radius-md);
  padding: 40px 30px;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-luxury);
  border-color: var(--color-brand);
}

.why-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-gold);
  font-family: var(--font-en-title);
  line-height: 1;
  margin-bottom: 20px;
}

.why-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.why-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-gray-text);
}


/* --- k) Portfolio / Past Work Section --- */
.portfolio-section {
  background-color: var(--color-light-bg-2);
}

/* Filtering tags */
.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 50px;
}

.filter-btn {
  background-color: var(--color-light-bg-1);
  color: var(--color-gray-text);
  border: 1.5px solid rgba(14, 59, 42, 0.08);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

html[dir="rtl"] .filter-btn {
  font-family: var(--font-ar-body);
}
html[dir="ltr"] .filter-btn {
  font-family: var(--font-en-body);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--color-primary-dark);
  color: var(--color-light-bg-2);
  border-color: var(--color-primary-dark);
  box-shadow: 0 5px 15px rgba(14, 59, 42, 0.15);
}

/* Portfolio dynamic grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-card {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-luxury);
  cursor: pointer;
}

.portfolio-img-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.portfolio-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(14, 59, 42, 0.95) 0%, rgba(14, 59, 42, 0.8) 50%, rgba(14, 59, 42, 0.3) 100%);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-img-wrapper img {
  transform: scale(1.08);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-category {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.portfolio-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-light-bg-2) !important;
  margin-bottom: 5px;
  line-height: 1.3;
}

.portfolio-client {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.portfolio-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-gold);
  transition: var(--transition-fast);
}

.portfolio-cta svg {
  transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-cta svg {
  transform: translateX(5px);
}

html[dir="rtl"] .portfolio-card:hover .portfolio-cta svg {
  transform: translateX(-5px);
}


/* --- Lightbox / Modal Module --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(10, 40, 29, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 30px;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-container {
  width: 100%;
  max-width: 1100px;
  background-color: var(--color-primary-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-md);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  overflow: hidden;
  max-height: 85vh;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Lightbox Left (Gallery Slider) */
.lightbox-gallery {
  position: relative;
  background-color: #051A12;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
}

.lightbox-slides {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.lightbox-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-slide.active {
  opacity: 1;
}

.lightbox-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Navigation Arrow Controls */
.lightbox-ctrl {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background-color: rgba(14, 59, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-light-bg-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
}

.lightbox-ctrl:hover {
  background-color: var(--color-gold);
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-gold-glow);
}

#lightbox-prev {
  left: 20px;
}
#lightbox-next {
  right: 20px;
}

/* Dots tracker */
.lightbox-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.lightbox-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition-fast);
}

.lightbox-dot.active {
  background-color: var(--color-gold);
  width: 20px;
  border-radius: 4px;
}

/* Lightbox Right (Details pane) */
.lightbox-details {
  padding: 40px;
  color: var(--color-light-bg-2);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.lightbox-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
}

#lightbox-category {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-gold);
  text-transform: uppercase;
}

#lightbox-year {
  font-size: 0.9rem;
  opacity: 0.7;
  font-family: var(--font-en-title);
}

#lightbox-title {
  font-size: 1.8rem;
  line-height: 1.3;
  margin-bottom: 15px;
  color: var(--color-light-bg-2) !important;
}

.lightbox-client-box {
  margin-bottom: 25px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.lightbox-client-box span {
  font-weight: 600;
  color: var(--color-gold);
}

#lightbox-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 35px;
  flex-grow: 1;
}

.lightbox-actions {
  display: flex;
  gap: 15px;
}

.lightbox-actions .btn {
  padding: 10px 20px;
  font-size: 0.85rem;
  flex: 1;
}

/* Close Lightbox button */
.lightbox-close-btn {
  position: absolute;
  top: -60px;
  inset-inline-end: 0;
  background: transparent;
  border: none;
  color: var(--color-light-bg-2);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lightbox-close-btn:hover {
  color: var(--color-gold);
  transform: rotate(90deg);
}


/* --- l) Contact Us Section --- */
.contact-section {
  background-color: var(--color-light-bg-2);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: start;
}

/* Contact Info Side */
.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-card {
  background-color: var(--color-light-bg-1);
  border: 1px solid rgba(14, 59, 42, 0.05);
  border-radius: var(--border-radius-md);
  padding: 30px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: var(--transition-smooth);
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-brand);
  box-shadow: var(--shadow-luxury);
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(30, 122, 76, 0.08);
  color: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.contact-card p, .contact-card a {
  font-size: 0.95rem;
  color: var(--color-gray-text);
  text-decoration: none;
  transition: var(--transition-fast);
}

.contact-card a:hover {
  color: var(--color-brand);
}

/* Map frame style */
.map-container {
  height: 250px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-luxury);
  border: 1px solid rgba(14, 59, 42, 0.08);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Contact Form Side (Glassmorphism layout inside Dark BG overlay) */
.contact-form-panel {
  padding: 40px;
  background-color: var(--color-primary-dark);
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
}

.contact-form-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--color-brand) 0.5px, transparent 0.5px);
  background-size: 20px 20px;
  opacity: 0.15;
  pointer-events: none;
}

.contact-form-title {
  color: var(--color-light-bg-2);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.contact-form-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 30px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gold);
  letter-spacing: 0.5px;
}

.form-group input, .form-group textarea, .form-group select {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  padding: 12px 18px;
  color: var(--color-light-bg-2);
  border-radius: var(--border-radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--color-gold);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px rgba(201, 162, 75, 0.15);
}

.form-group select option {
  background-color: var(--color-primary-dark);
  color: var(--color-light-bg-2);
}

.contact-form button {
  width: 100%;
  margin-top: 10px;
}

/* Success Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 40px;
  left: 40px;
  background-color: var(--color-primary-dark);
  color: var(--color-light-bg-2);
  border: 1.5px solid var(--color-gold);
  padding: 16px 28px;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transform: translateY(150px);
  opacity: 0;
  transition: var(--transition-smooth);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Custom Contact Form Validation Errors */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #E74C3C !important;
  box-shadow: 0 0 10px rgba(231, 76, 60, 0.2) !important;
}

.error-msg {
  color: #E74C3C;
  font-size: 0.75rem;
  margin-top: 5px;
  font-weight: 500;
  text-align: start;
}

/* Accessibility Focus States */
*:focus-visible {
  outline: 3px solid var(--color-gold) !important;
  outline-offset: 4px !important;
}

.portfolio-card:focus-visible {
  outline: 3px solid var(--color-gold) !important;
  outline-offset: 4px !important;
  border-radius: var(--border-radius-md);
}


/* --- m) Footer --- */
footer {
  background-color: #051A12;
  color: rgba(255, 255, 255, 0.65);
  padding: 80px 0 30px 0;
  position: relative;
  border-top: 1px solid rgba(201, 162, 75, 0.15);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-about {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-about p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-links-box h3, .footer-contact-box h3 {
  color: var(--color-light-bg-2);
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
}

.footer-links-box h3::after, .footer-contact-box h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  inset-inline-start: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-gold);
}

.footer-links {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-gold);
  padding-inline-start: 5px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  font-size: 0.95rem;
}

.footer-contact-item svg {
  color: var(--color-gold);
  flex-shrink: 0;
}

/* Social icons layout */
.footer-socials {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--border-radius-sm);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-light-bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  text-decoration: none;
}

.social-link:hover {
  background-color: var(--color-gold);
  color: var(--color-primary-dark);
  transform: translateY(-3px);
}

/* Footer Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-size: 0.85rem;
}

.footer-policy-links {
  display: flex;
  gap: 20px;
}

.footer-policy-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.footer-policy-links a:hover {
  color: var(--color-gold);
}


/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Large Tablets & Small Laptops (992px to 1200px) */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3.2rem;
  }
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Medium Tablets (768px to 991px) */
@media (max-width: 991px) {
  /* Navigation mobile layout */
  .burger-menu {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    inset-inline-end: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--color-primary-dark);
    flex-direction: column;
    padding: 100px 40px;
    align-items: flex-start;
    gap: 25px;
    transition: inset-inline-end 0.4s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    border-inline-start: 1px solid rgba(201, 162, 75, 0.2);
    z-index: 1000;
  }

  .nav-links.active {
    inset-inline-end: 0;
  }

  /* Hamburger transform animation to 'X' */
  .burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .burger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  .burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
  }

  .hero-title {
    font-size: 2.8rem;
  }
  .hero-title .title-accent {
    font-size: 1.8rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .about-visual {
    height: 400px;
    order: -1; /* Display photo first on tablet */
  }

  .vision-mission-grid {
    grid-template-columns: 1fr;
  }

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

  /* Timeline changes to vertical flow on tablets and mobile */
  .timeline-track {
    top: 0;
    left: 25px;
    width: 3px;
    height: 90%;
  }
  html[dir="rtl"] .timeline-track {
    right: 25px;
    left: auto;
  }
  .methodology-section.revealed .timeline-track-progress {
    width: 3px;
    height: 100%;
  }
  .timeline-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .timeline-step {
    flex-direction: row;
    text-align: start;
    align-items: flex-start;
    gap: 20px;
  }
  .timeline-node {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .timeline-content-box p {
    padding: 0;
  }

  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .sector-diamond-card {
    transform: rotate(0deg);
  }
  .sector-diamond-card:hover {
    transform: scale(1.03) translateY(-5px);
  }
  .sector-card-inner {
    transform: rotate(0deg);
    width: 100%;
    height: 100%;
  }

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

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

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

  .lightbox-container {
    grid-template-columns: 1fr;
    max-height: 90vh;
  }
  .lightbox-gallery {
    min-height: 300px;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Small Devices & Mobiles (Up to 767px) */
@media (max-width: 767px) {
  section {
    padding: 60px 0;
  }

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

  .hero-section {
    padding-top: 110px;
  }

  .hero-title {
    font-size: 2.2rem;
  }
  .hero-title .title-accent {
    font-size: 1.4rem;
  }
  .hero-desc {
    font-size: 1.05rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .stats-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }
  .value-card {
    min-height: auto;
  }

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

  .sectors-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .sector-diamond-card {
    aspect-ratio: auto;
    padding: 30px 20px;
  }
  
  .why-us-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-form-panel {
    padding: 30px 20px;
  }

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

  .whatsapp-float {
    bottom: 25px;
    inset-inline-end: 25px;
    width: 50px;
    height: 50px;
  }
}

/* ==========================================================================
   Task Additions (Contrast, Alignment, fallbacks, scroll tracking & polish)
   ========================================================================== */

/* --- Dark section tag override --- */
.dark-pattern-bg .section-tag,
.sectors-section .section-tag {
  color: var(--color-gold) !important;
  border-color: rgba(212, 180, 106, 0.3) !important;
  background-color: rgba(212, 180, 106, 0.05) !important;
}

/* --- Lightbox Action Buttons Contrast Overrides --- */
.lightbox-details .btn-secondary {
  color: var(--color-light-bg-2) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}
.lightbox-details .btn-secondary:hover {
  background-color: var(--color-light-bg-2) !important;
  color: var(--color-primary-dark) !important;
  border-color: var(--color-light-bg-2) !important;
}

/* --- Contact Form Inputs placeholder legibility --- */
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.55) !important;
}

/* --- Default Fallback backgrounds for image loading/failures --- */
.portfolio-img-wrapper,
.service-img-box,
.about-img-frame {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-brand) 100%) !important;
}

/* --- Unify Card shadow & hover scale transitions --- */
.why-card, .pillar-card, .vision-card, .value-card, .contact-card, .service-main-card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.why-card:hover, .pillar-card:hover, .vision-card:hover, .value-card:hover, .contact-card:hover, .service-main-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--shadow-luxury) !important;
  border-color: var(--color-brand) !important;
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-brand) 100%);
  z-index: 99999;
  transition: width 0.1s ease-out;
}

/* --- Scroll to Top Button --- */
.scroll-to-top-btn {
  position: fixed;
  bottom: 40px;
  inset-inline-start: 40px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-color: var(--color-primary-dark);
  border: 1.5px solid var(--color-gold);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  z-index: 998;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-luxury);
}

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

.scroll-to-top-btn:hover {
  background-color: var(--color-gold);
  color: var(--color-primary-dark);
  transform: scale(1.1) translateY(-3px);
  box-shadow: var(--shadow-gold-glow);
}

@media (max-width: 767px) {
  .scroll-to-top-btn {
    bottom: 25px;
    inset-inline-start: 25px;
    width: 50px;
    height: 50px;
  }
}

/* --- Official Logo styles --- */
.logo-official-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-official {
  height: 48px; /* Perfect height for navbar logo */
  width: auto;
  object-fit: contain;
  background-color: #ffffff; /* white background plate */
  padding: 4px 10px;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  transition: var(--transition-fast);
}
.logo-official:hover {
  transform: scale(1.03);
}
.footer-logo {
  height: 60px; /* Slightly larger in footer */
  padding: 6px 12px;
}
.loader-logo-official {
  max-width: 280px;
  height: auto;
  background-color: #ffffff;
  padding: 20px 30px;
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  animation: fadeLoaderIn 0.8s ease-out forwards;
}
@keyframes logoPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.05); opacity: 1; }
}

/* ==========================================================================
   MOBILE COMPREHENSIVE FIXES — 360px / 390px / 430px
   Additive only — desktop layout unchanged
   ========================================================================== */

/* --- Fluid typography using clamp() --- */
html {
  /* Base font scales from 14px (360px wide) to 16px (1200px wide) */
  font-size: clamp(14px, 0.875rem + 0.25vw, 16px);
}

/* --- Hero Section Mobile --- */
@media (max-width: 480px) {
  .hero-section {
    padding-top: 100px;
    padding-bottom: 40px;
    min-height: 100svh; /* Use small viewport height to account for browser chrome */
  }

  .hero-title {
    font-size: clamp(1.6rem, 5vw + 0.5rem, 2.2rem);
    line-height: 1.25;
    margin-bottom: 15px;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero-title .title-accent {
    font-size: clamp(1.1rem, 3.5vw + 0.3rem, 1.4rem);
    display: block;
    margin-top: 8px;
  }

  .hero-desc {
    font-size: clamp(0.875rem, 2.5vw + 0.25rem, 1rem);
    line-height: 1.7;
    margin-bottom: 25px;
  }

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

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    font-size: 0.9rem;
  }

  /* Stats in a 3-col single row on small phones */
  .stats-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 20px 10px;
  }

  .stat-item {
    padding: 15px 8px;
  }

  .stat-num {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .stat-label {
    font-size: clamp(0.6rem, 1.8vw, 0.75rem);
    line-height: 1.3;
  }
}

/* --- Header / Navbar Mobile --- */
@media (max-width: 480px) {
  header {
    padding: 14px 0;
  }

  header .container {
    padding: 0 16px;
  }

  .logo-official {
    height: 38px;
  }

  .btn.btn-gold {
    padding: 10px 14px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  /* Hide CTA button on very small phones (360px) to prevent overflow */
  @media (max-width: 380px) {
    .nav-actions .btn.btn-gold {
      display: none;
    }
  }
}

/* --- About Section Mobile --- */
@media (max-width: 480px) {
  .about-grid {
    gap: 30px;
  }

  .about-visual {
    height: 280px;
  }

  .about-img-frame.frame-accent {
    width: 55%;
    bottom: -15px;
    inset-inline-start: -10px;
  }

  .about-text-content {
    padding: 0;
  }

  .section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    line-height: 1.3;
  }

  .section-subtitle {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
  }

  .about-para {
    font-size: 0.925rem;
    line-height: 1.75;
  }
}

/* --- Vision / Mission Cards Mobile --- */
@media (max-width: 480px) {
  .vision-mission-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .vision-card {
    padding: 25px 20px;
  }
}

/* --- Services Section Mobile --- */
@media (max-width: 480px) {
  .services-main-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .service-main-card {
    padding: 20px;
  }

  .service-img-box {
    height: 180px;
  }

  .services-tech-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .service-tech-card {
    padding: 20px 15px;
  }
}

/* --- Methodology / Timeline Mobile --- */
@media (max-width: 480px) {
  .timeline-track {
    left: 18px;
    inset-inline-start: 18px;
  }

  html[dir="rtl"] .timeline-track {
    right: 18px;
    left: auto;
    inset-inline-start: auto;
    inset-inline-end: 18px;
  }

  .timeline-step {
    padding-inline-start: 50px;
    padding-inline-end: 0;
    gap: 15px;
  }

  .timeline-node {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 0.9rem;
  }

  .timeline-content-box h3 {
    font-size: 1rem;
  }

  .timeline-content-box p {
    font-size: 0.875rem;
    line-height: 1.6;
  }
}

/* --- Sectors / Diamond Cards Mobile --- */
@media (max-width: 480px) {
  .sectors-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sector-diamond-card {
    padding: 25px 20px;
    aspect-ratio: auto;
  }
}

/* --- Why Us Section Mobile --- */
@media (max-width: 480px) {
  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .why-card {
    padding: 25px 20px;
  }
}

/* --- Pillars Section Mobile --- */
@media (max-width: 480px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .pillar-card {
    padding: 25px 20px;
  }
}

/* --- Portfolio Grid Mobile --- */
@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .portfolio-img-wrapper {
    height: 220px;
  }

  .filter-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .portfolio-filters {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* --- Contact Section Mobile --- */
@media (max-width: 480px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-info-panel {
    gap: 15px;
  }

  .contact-card {
    padding: 20px 15px;
    gap: 12px;
  }

  .contact-form-panel {
    padding: 25px 16px;
  }

  .map-container {
    height: 220px;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px; /* Prevent iOS zoom on focus */
    padding: 12px 14px;
  }

  .form-group label {
    font-size: 0.875rem;
  }
}

/* --- Lightbox Mobile --- */
@media (max-width: 480px) {
  .lightbox-container {
    width: 95vw;
    max-height: 92svh;
    overflow-y: auto;
    grid-template-columns: 1fr;
    border-radius: var(--border-radius-md);
  }

  .lightbox-gallery {
    min-height: 240px;
    max-height: 55vw;
  }

  .lightbox-details {
    padding: 20px 16px;
  }

  .lightbox-details h2 {
    font-size: 1.1rem;
  }

  .lightbox-actions {
    flex-direction: column;
    gap: 10px;
  }

  .lightbox-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* --- Footer Mobile --- */
@media (max-width: 480px) {
  footer {
    padding-top: 50px;
  }

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

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

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

  .footer-logo {
    height: 50px;
    margin: 0 auto 15px;
    display: block;
  }

  .footer-links-box h3,
  .footer-contact-box h3 {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .footer-contact-item {
    font-size: 0.875rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 20px 0;
  }

  .copyright {
    font-size: 0.8rem;
  }
}

/* --- General overflow prevention --- */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
    overflow-x: hidden;
  }

  * {
    max-width: 100%;
  }

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

  /* Section headers */
  .section-header {
    margin-bottom: 30px;
  }

  .section-tag {
    font-size: 0.75rem;
    padding: 5px 12px;
  }

  .btn {
    word-break: break-word;
  }

  /* Prevent text overflow on narrow screens */
  p, h1, h2, h3, h4, h5, h6, span, a {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
}

/* --- 360px extra-small fix --- */
@media (max-width: 380px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-title .title-accent {
    font-size: 1rem;
  }

  .stats-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 15px;
    text-align: start;
  }

  .stat-num {
    font-size: 1.8rem;
    min-width: 60px;
  }

  .stat-label {
    font-size: 0.8rem;
  }
}

/* --- Archive Teaser Banner in Portfolio --- */
.archive-teaser-banner {
  margin-top: 50px;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, #1a5c3c 100%);
  border-radius: 16px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(212, 180, 106, 0.2);
  position: relative;
  overflow: hidden;
}

.archive-teaser-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(201, 162, 75, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.archive-teaser-content {
  position: relative;
  z-index: 1;
}

.archive-teaser-title {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.archive-teaser-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  max-width: 600px;
}

.archive-teaser-banner .btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .archive-teaser-banner {
    flex-direction: column;
    text-align: center;
    padding: 30px 24px;
    gap: 20px;
  }
  
  .archive-teaser-desc {
    max-width: 100%;
  }
}

