:root {
  --font-primary: 'IBM Plex Sans Arabic', sans-serif;
  --color-white: #ffffff;
  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.8);
  --color-overlay: rgba(0, 0, 0, 0.4);
  --color-overlay-gradient: linear-gradient(135deg, rgba(30, 30, 60, 0.8) 0%, rgba(60, 40, 80, 0) 70%);
  --spacing-container: 80px;
  --transition-fast: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: var(--font-primary);
  scroll-behavior: smooth;
}

body {
  /* background-color: #1a1a1a; */
  color: var(--color-white);
  overflow-x: hidden;
}

#app {
  width: 100%;
  min-height: 100vh;
  position: relative;
  /* Fallback background until image is ready */
  background: var(--color-overlay-gradient);
  background-size: cover;
  background-position: center;
  /* overflow: hidden; Removed to allow sticky positioning in children */
}

/* Slider Container - holds all background slides */
.slider-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

/* Individual slide - pre-rendered for performance */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

/* Dark overlay on slides */
.slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-overlay-gradient);
}

/* Active slide - visible and centered */
.slide.active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  z-index: 2;
}

/* Slide exiting to the left */
.slide.exit-left {
  opacity: 0;
  transform: translate3d(-30%, 0, 0);
  z-index: 1;
}

/* Slide exiting to the right */
.slide.exit-right {
  opacity: 0;
  transform: translate3d(30%, 0, 0);
  z-index: 1;
}

/* Slide entering from left */
.slide.enter-left {
  transform: translate3d(-100%, 0, 0);
}

/* Hero content container */
.hero-content-container {
  position: relative;
  max-width: 800px;
  margin-top: 60px;
  min-height: 300px;
}

/* Hero content slides */
.hero-content {
  position: absolute;
  top: 26px;
  left: 0;
  opacity: 0;
  pointer-events: none;
}

/* Title animation */
.hero-content h1 {
  opacity: 0;
  transform: translate3d(0, 50px, 0);
  filter: blur(10px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Description animation */
.hero-content .hero-description {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  filter: blur(8px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s,
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s,
    filter 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

/* Active state - staggered entrance */
.hero-content.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.hero-content.active h1 {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.hero-content.active .hero-description {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

/* Exit state - fade up and blur */
.hero-content.exit h1 {
  opacity: 0;
  transform: translate3d(0, -30px, 0);
  filter: blur(10px);
  transition: opacity 0.4s ease-out,
    transform 0.4s ease-out,
    filter 0.4s ease-out;
}

.hero-content.exit .hero-description {
  opacity: 0;
  transform: translate3d(0, -20px, 0);
  filter: blur(8px);
  transition: opacity 0.3s ease-out,
    transform 0.3s ease-out,
    filter 0.3s ease-out;
}

/* Header Styles */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 40px var(--spacing-container);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 100px;
  /* Adjust based on actual logo ratio */
  width: auto;
  object-fit: contain;
}

/* Logo styles cleaned up */

.nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-list a {
  text-decoration: none;
  color: var(--color-text-primary);
  font-weight: 500;
  font-size: 16px;
  transition: var(--transition-fast);
  opacity: 0.9;
}

.nav-list a:hover {
  opacity: 1;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--spacing-container);
  position: relative;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
}

.hero-content {
  max-width: 800px;
  margin-top: 60px;
  /* Offset for visual balance */
}

.hero-content h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 20px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  font-weight: 300;
  margin-bottom: -80px;
}

/* Hero Controls (Bottom) */
.hero-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0 var(--spacing-container) 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slider-progress-container {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  max-width: 400px;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  position: relative;
}

.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 33%;
  /* 1/3 slides */
  background: var(--color-white);
  border-radius: 2px;
}

.slider-arrows {
  display: flex;
  gap: 15px;
  margin-left: 30px;
  margin-right: auto;
}

.arrow-btn {
  background: transparent;
  border: 1px solid var(--color-white);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.arrow-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.discover-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mouse-icon {
  width: 20px;
  height: 32px;
  border: 2px solid var(--color-white);
  border-radius: 12px;
  position: relative;
}

.mouse-icon::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 4px;
  background: var(--color-white);
  border-radius: 2px;
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, 8px);
    opacity: 0;
  }
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  :root {
    --spacing-container: 40px;
  }

  .hero-content h1 {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .nav {
    position: static;
    transform: none;
  }

  .nav-list {
    display: none;
    /* Hide nav links on mobile for now */
  }

  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 30px;
  }

  .mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 20px;
  }

  .slider-progress-container {
    width: 100%;
    max-width: 100%;
  }

  .slider-arrows {
    margin-left: 0;
  }

  .discover-indicator {
    display: none;
  }
}

/* =========================================
   Projects Section
   ========================================= */
.projects-section {
  position: relative;
  background-color: #F3F4F6;
  padding: 80px 0;
  padding-bottom: 0px;
  /* Full width feel */
  color: #333;
  z-index: 10;
  overflow: hidden;
}

.projects-header {
  max-width: 100%;
  margin: 0 0 40px;
  padding: 0 var(--spacing-container);
}

.projects-header h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #1a1a1a;
}

.projects-header p {
  font-size: 17px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
  max-width: 898px;
}

/* Projects Grid - Horizontal Scroll */
.projects-grid {
  display: flex;
  overflow-x: auto;
  gap: 24px;
  padding: 20px var(--spacing-container) 60px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE */
}

.projects-grid::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

/* Project Card */
.project-card {
  position: relative;
  flex: 0 0 309px;
  width: 309px;
  /* 4 visible */
  height: 368px;
  border-radius: 12px;
  overflow: hidden;
  /* cursor: pointer; */
  background-size: cover;
  background-position: center;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
  /* scroll-snap-align: start; */
}

@media (max-width: 1500px) {
  .project-card {
    flex: 0 0 calc(33.333% - 18px);
  }
}

@media (max-width: 1100px) {
  .project-card {
    flex: 0 0 calc(50% - 12px);
  }
}

@media (max-width: 650px) {
  .project-card {
    flex: 0 0 calc(90% - 12px);
    height: 368px;
  }
}

.project-card:hover {
  /* transform: translateY(-8px); */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

/* Card Overlay - Deep Purple Gradient */
.card-overlay {
  opacity: 0.8;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(82, 75, 133, 1) 0%, rgba(15, 9, 64, 1) 100%);
}



/* Logo Box (Top Left) */
.card-logo-box {
  position: absolute;
  top: 25px;
  left: 0px;
  background: white;
  padding: 20px 15px;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 5;
  width: auto;
  max-width: 95%;
  height: 80px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.card-logo-box img {
  height: 66px;
  width: auto;
  object-fit: contain;
  max-width: 134.25px;
}

/* Card Content */
.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  z-index: 2;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  pointer-events: none;
  /* padding-bottom: 72px; */
  gap: 10px;
}

.project-card:hover .card-content {
  padding-bottom: 72px;
}

/* Tags - Lavender Pill Style */
.card-tags {
  display: flex;
  gap: inherit;
  /* margin-bottom: auto; */
  margin-top: auto;
  transition: transform 0.4s ease;
  flex-direction: row;
  justify-content: flex-start;
  gap: 7px;
}

.card-tag {
  background: #E0E7FF;
  color: #312E81;
  padding: 6px 8px;
  border-radius: 50px;
  font-size: 9px;
  font-weight: 600;
  border: none;
  backdrop-filter: none;
}

.project-card:hover .card-tag {
  /* Maintain look on hover, maybe slightly brighter */
  background: #EEF2FF;
}

/* Title */
.card-title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0;
  /* margin-top: 10px; */
  transition: margin-bottom 0.4s ease, transform 0.4s ease;
}

/* Description (Hidden by default) */
.card-desc {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  margin-top: 0;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hover Animations */
.project-card:hover .card-tags {
  transform: translateY(-5px);
}

.project-card:hover .card-title {
  transform: translateY(-5px);
  /* margin-bottom: 12px; */
}

.project-card:hover .card-desc {
  max-height: 150px;
  opacity: 1;
  margin-top: 0;
  /* margin-bottom: 80px; */
  /* Space for arrow button */
}

/* Hover Arrow Button */
.card-arrow-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  background: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.card-arrow-btn svg {
  transition: transform 0.3s ease;
}

.project-card:hover .card-arrow-btn {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Arrow hover effect */
.card-arrow-btn:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.card-arrow-btn:hover svg {
  transform: translateX(3px);
}


/* --- Clients Section --- */
:root {
  --rpm-brand: #003366;
  --text-main: #0f172a;
  --text-muted: #475569;
  --bg-soft: #fcfcfd;
  --border-thin: #f1f5f9;
  --accent-bar: #cbd5e1;
}

.client-universe {
  background-color: #fff;
  color: var(--text-main);
  font-family: var(--font-primary);
  width: 100%;
  padding: 100px var(--spacing-container);
  position: relative;
  z-index: 10;
}

/* --- Top Narrative --- */
.client-universe .intro {
  margin-bottom: 80px;
  max-width: 1233px;
}

.client-universe .intro h2 {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 20px 0;
  line-height: 1.1;
  color: var(--text-main);
}

.client-universe .intro p {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* --- The Layout Architecture --- */
.sector-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  padding: 60px 0;
  border-top: 1px solid var(--border-thin);
}

.sector-label {
  position: sticky;
  top: 100px;
  height: fit-content;
  align-self: start;
}

.sector-label h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--rpm-brand);
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sector-label h3::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--rpm-brand);
}

.sector-label p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
  padding-left: 42px;
}

/* --- The Logo Matrix --- */
.logo-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1px;
  background-color: var(--border-thin);
  border: 1px solid var(--border-thin);
}

.logo-cell {
  background-color: #fff;
  /* height: 120px; */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.logo-cell img {
  max-width: 100%;
  max-height: 70px;
  /* filter: grayscale(100%);
  opacity: 0.5; */
  transition: all 0.4s ease;
  object-fit: contain;
}

/* --- High-End Interaction --- */
.logo-cell:hover {
  background-color: var(--bg-soft);
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.logo-cell:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .sector-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 0;
  }

  .sector-label {
    position: relative;
    top: 0;
  }

  .client-universe .intro h2 {
    font-size: 2rem;
  }
}

/* --- Branches Section --- */
.stripe-section {
  display: flex;
  height: 550px;
  width: 100%;
  overflow: hidden;
  background: #001a33;
  position: relative;
  z-index: 10;
  margin-bottom: 100px;
}

.city-stripe {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  /* cursor: pointer; */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: all 0.8s cubic-bezier(0.25, 1, 0.3, 1);
  /* border-right: 1px solid rgba(255, 255, 255, 0.1); */
  text-decoration: none;
}

.city-stripe::after {
  opacity: 0.8;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(82, 75, 133, 1) 0%, rgba(15, 9, 64, 1) 100%);
  transition: opacity 0.6s ease;
  z-index: 1;
}

.city-stripe:hover::after {
  opacity: 0.5;
}

/* Branch Images */
.city-stripe.riyadh {
  background-image: url('imgs/Riyadh.jpg');
}

.city-stripe.jeddah {
  background-image: url('imgs/jeddah.jpg');
}

.city-stripe.dubai {
  background-image: url('imgs/dubai.jpg');
}

.city-stripe.cairo {
  background-image: url('imgs/cairo.jpg');
}

.stripe-title {
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  transform: rotate(-90deg);
  transition: all 0.6s ease;
  white-space: nowrap;
  z-index: 2;
  letter-spacing: 5px;
}

.stripe-content {
  opacity: 0;
  max-height: 0;
  transition: all 0.6s ease;
  text-align: center;
  padding: 0 30px;
  z-index: 2;
  font-size: 1rem;
  line-height: 1.6;
}

.city-stripe:hover {
  flex: 5;
}

.city-stripe:hover .stripe-title {
  transform: rotate(0);
  margin-bottom: 20px;
  font-size: 2.8rem;
  letter-spacing: 2px;
}

.city-stripe:hover .stripe-content {
  opacity: 1;
  max-height: 300px;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .stripe-section {
    flex-direction: column;
    height: auto;
  }

  .city-stripe {
    padding: 80px 0;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 300px;
  }

  .stripe-title {
    transform: rotate(0);
    font-size: 2.2rem;
  }

  .stripe-content {
    opacity: 1;
    max-height: none;
    padding-top: 15px;
  }

  .city-stripe:hover {
    flex: 1;
  }
}

/* --- Intro Container (Standalone) --- */
.intro-container {
  background-color: #fff;
  padding: 20px 80px;
  display: block;
  /* border-top: 1px solid var(--border-thin); */
  position: relative;
  z-index: 10;
}

.intro-container .intro {
  max-width: 1233px;
  margin: 0;
  text-align: left;
}

.intro-container .intro h2 {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 20px 0;
  line-height: 1.1;
  color: var(--text-main);
}

.intro-container .intro p {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .intro-container .intro h2 {
    font-size: 2rem;
  }
}

/* --- CTA Section --- */
.cta-section {
  background-color: #fff;
  padding: 120px var(--spacing-container);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
}

.cta-card {
  max-width: 656px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.cta-text {
  font-size: 22px;
  line-height: 1.6;
  font-weight: 600;
  color: #111;
  margin: 0;
}

.cta-button {
  background-color: #160D59;
  /* Deep indigo color from image */
  color: white;
  padding: 11px 21px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(26, 16, 60, 0.15);
  margin-top: 20px;
  width: fit-content;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(26, 16, 60, 0.25);
  background-color: #251850;
}

.cta-arrow {
  background-color: white;
  border-radius: 50%;
  color: #1a103c;
  padding: 2px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cta-arrow svg {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cta-button:hover .cta-arrow {
  transform: translateX(4px);
}

.cta-button:hover .cta-arrow svg {
  transform: translateX(2px);
}

@media (max-width: 768px) {
  .cta-text {
    font-size: 1.25rem;
  }

  .cta-button {
    width: 100%;
    justify-content: center;
  }
}


/* --- Footer Section --- */
.footer {
  width: 100%;
  position: relative;
  z-index: 20;
  background-color: #0F0940;
  /* Deep Indigo/Black matching image */
  color: #ffffff;
  font-family: var(--font-primary);
}

.footer-main {
  padding: 80px var(--spacing-container) 40px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Columns */
.footer-col {
  flex: 1;
  min-width: 250px;
}

/* Col 1: Brand */
.brand-col {
  flex: 1.2;
}

.footer-logo img {
  height: 60px;
  width: auto;
  margin-bottom: 24px;
}

.footer-tagline {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  max-width: 300px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: #fff;
}

.contact-item svg {
  color: #B2A5F7;
  /* Matches the button color */
}

/* Col 2: Links */
.links-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Or center depending on pref */
  padding-left: 40px;
  /* Indent slightly like image */
}

.links-col h3,
.newsletter-col h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 24px;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #fff;
}

/* Col 3: Newsletter */
.newsletter-col {
  flex: 1.2;
  display: flex;
  flex-direction: column;
}

.newsletter-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  width: 100%;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 6px;
  border: none;
  outline: none;
  font-family: var(--font-primary);
  font-size: 15px;
  color: #333;
  background: #fff;
}

.newsletter-form button {
  padding: 12px 24px;
  background-color: #B2A5F7;
  /* Periwinkle/Lavender from image */
  color: #05001c;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-family: var(--font-primary);
}

.newsletter-form button:hover {
  background-color: #d1cbfd;
}

.social-links {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  align-items: center;
}

.social-links a {
  color: #fff;
  transition: transform 0.3s ease, color 0.3s ease;
  display: flex;
}

.social-links a:hover {
  transform: translateY(-3px);
  color: #B2A5F7;
}

.legal-links {
  margin-top: auto;
  /* Push to bottom of container if needed */
  text-align: right;
  font-size: 14px;
}

.legal-links a {
  color: #fff;
  text-decoration: underline;
  margin-left: 20px;
}

/* Bottom Bar */
.footer-bar {
  background-color: #ffffff;
  color: #05001c;
  padding: 20px 0;
}

.bar-content {
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}

.back-to-top {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #05001c;
  background: transparent;
  color: #05001c;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background: #05001c;
  color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
  .footer-container {
    flex-direction: column;
    gap: 60px;
  }

  .links-col {
    padding-left: 0;
  }

  .legal-links {
    text-align: left;
    margin-top: 20px;
  }

  .legal-links a {
    margin-left: 0;
    margin-right: 20px;
  }
}

@media (max-width: 768px) {
  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form button {
    width: 100%;
  }

  .footer-main {
    padding: 60px 20px;
  }

  .bar-content {
    flex-direction: column-reverse;
    /* Put arrow above text on tiny screens? Or simply stack */
    gap: 20px;
    text-align: center;
  }
}

/* =========================================
   RESPONSIVE FOOTER STYLES
   Add this to the very bottom of your CSS
   ========================================= */

/* --- Tablet / Small Laptop (1024px and below) --- */
@media (max-width: 1024px) {
  .footer-main {
    padding: 60px 40px;
    /* Reduce side padding */
  }

  .footer-container {
    gap: 40px;
    /* Reduce gap between columns */
  }

  .footer-tagline {
    max-width: 100%;
    /* Allow text to flow more naturally */
  }
}

/* --- Mobile / Tablet Portrait (768px and below) --- */
@media (max-width: 768px) {

  /* Stack the main columns vertically */
  .footer-container {
    flex-direction: column;
    gap: 50px;
  }

  /* Reset column widths to fill screen */
  .footer-col {
    width: 100%;
    min-width: auto;
    flex: auto;
  }

  /* Reset specific padding for the links column */
  .links-col {
    padding-left: 0;
  }

  /* Make the newsletter form easier to use on touch screens */
  .newsletter-form {
    flex-direction: column;
    gap: 15px;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
    /* Full width buttons/inputs */
    height: 50px;
    /* Taller touch targets */
  }

  /* Adjust Social Icons spacing */
  .social-links {
    gap: 30px;
    /* More space between icons for tapping */
    margin-bottom: 30px;
  }

  /* Align legal links to the left */
  .legal-links {
    text-align: left;
    margin-top: 10px;
  }

  .legal-links a {
    margin-left: 0;
    margin-right: 25px;
    display: inline-block;
    padding: 5px 0;
  }

  /* Bottom Bar: Stack elements */
  .bar-content {
    flex-direction: column-reverse;
    /* Arrow goes above copyright text */
    gap: 20px;
    text-align: center;
  }

  /* Center the arrow button on mobile */
  .back-to-top {
    margin: 0 auto;
  }
}

/* --- Small Mobile (480px and below) --- */
@media (max-width: 480px) {
  .footer-main {
    padding: 50px 20px;
    /* Minimize padding for small screens */
  }

  .footer-logo img {
    height: 45px;
    /* Slightly smaller logo */
  }

  .footer-col h3 {
    font-size: 18px;
    /* Slightly smaller headings */
  }

  .contact-item {
    font-size: 14px;
    /* Adjust font size to prevent wrapping issues */
  }

  .bar-content p {
    font-size: 12px;
    line-height: 1.6;
    opacity: 0.7;
  }
}


/* --- Subtle Depth Section --- */
.qual-depth-section {
  position: relative;
  /* KEY CHANGE: A very light platinum/gray background */
  background-color: #F5F7FA;
  padding: 100px 0 120px;
  font-family: var(--font-primary);
  color: #1a1a1a;
  z-index: 2;
}

.qual-depth-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-container);
}

/* Header */
.qual-depth-header {
  margin-bottom: 60px;
  position: relative;
  padding-left: 25px;
}

/* A vertical connector line to anchor the header */
.connector-line {
  position: absolute;
  left: 0;
  top: 5px;
  width: 4px;
  height: 50px;
  background: linear-gradient(to bottom, #00857A, #160D59);
  border-radius: 2px;
}

.qual-depth-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: #160D59;
  /* Deep Indigo */
  margin-bottom: 12px;
  line-height: 1.2;
}

.qual-depth-header p {
  font-size: 18px;
  color: #64748b;
  /* Slate Gray for softer text */
  max-width: 600px;
}

/* Grid Layout */
.qual-depth-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* Card Design - Pure White on Light Gray */
.depth-card {
  background: #ffffff;
  padding: 35px 25px;
  border-radius: 12px;
  /* Soft shadow to create the "Lift" from the gray background */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  border-top: 4px solid transparent;
  /* Hidden top border for hover */
}

/* Hover Effect */
.depth-card:hover {
  transform: translateY(-8px);
  /* Stronger shadow on hover */
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-top-color: #00857A;
  /* Teal top accent appears */
}

/* Card Top Area */
.depth-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 25px;
}

.depth-number {
  font-size: 28px;
  font-weight: 800;
  color: #e2e8f0;
  /* Very light slate number */
  font-family: var(--font-primary);
  transition: color 0.3s ease;
}

.depth-card:hover .depth-number {
  color: #160D59;
  /* Darkens on hover */
}

.depth-icon-box {
  width: 48px;
  height: 48px;
  background: #F0F9F8;
  /* Very light teal tint */
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00857A;
  /* Teal Icon */
  transition: all 0.3s ease;
}

.depth-card:hover .depth-icon-box {
  background: #00857A;
  color: #ffffff;
  transform: rotate(360deg);
  /* Playful spin */
}

/* Content */
.depth-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
  min-height: 46px;
}

.depth-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.depth-list li {
  font-size: 14px;
  color: #475569;
  /* Slate 600 */
  margin-bottom: 12px;
  position: relative;
  padding-left: 18px;
  line-height: 1.5;
  transition: transform 0.2s ease;
}

/* Creative Bullet: Small dashes */
.depth-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 2px;
  background: #cbd5e1;
  /* Light gray dash */
  transition: width 0.3s ease, background 0.3s ease;
}

.depth-card:hover .depth-list li::before {
  width: 12px;
  /* Dash grows */
  background: #00857A;
  /* Turns Teal */
}

.depth-list li:hover {
  transform: translateX(4px);
  color: #160D59;
}

/* Responsive */
@media (max-width: 1200px) {
  .qual-depth-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .qual-depth-grid {
    grid-template-columns: 1fr;
  }

  .qual-depth-section {
    padding: 80px 0;
  }

  .qual-depth-header {
    padding-left: 0;
    text-align: center;
  }

  .connector-line {
    left: 50%;
    transform: translateX(-50%);
    top: -30px;
    height: 4px;
    width: 60px;
  }
}

/* --- Dark Premium Qualifications Section --- */
.qual-dark-section {
  position: relative;
  background-color: #0F0A3C;
  /* Darker Deep Indigo */
  padding: 120px 0;
  color: #ffffff;
  overflow: hidden;
  font-family: var(--font-primary);
}

/* Abstract Background Pattern (Subtle) */
.bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.03) 50%, transparent 52%);
  background-size: 60px 60px;
  pointer-events: none;
}

.qual-dark-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-container);
  position: relative;
  z-index: 2;
}

/* Header */
.qual-dark-header {
  margin-bottom: 80px;
  padding-left: 20px;
  border-left: 4px solid #00857A;
  /* Teal Accent Line */
}

.qual-dark-header .tag {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #00857A;
  margin-bottom: 10px;
  font-weight: 600;
}

.qual-dark-header h2 {
  font-size: 42px;
  font-weight: 700;
  color: white;
  margin: 0;
}

/* Grid Layout - Converted to Flex for hover effect */
.qual-dark-grid {
  display: flex;
  gap: 20px;
  width: 100%;
}

/* Card Design */
.dark-card {
  flex: 1;
  min-width: 200px;
  /* Prevents crushing on smaller desktop screens */
  background: rgba(255, 255, 255, 0.03);
  /* Very transparent white */
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 30px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* Smooth ease */
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Number Styling */
.card-number {
  font-size: 60px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.05);
  /* Ghost number */
  position: absolute;
  top: 10px;
  right: 20px;
  line-height: 1;
  transition: all 0.4s ease;
}

.dark-card:hover .card-number {
  color: rgba(0, 133, 122, 0.2);
  /* Teal hint on hover */
  transform: translateY(-5px);
}

.qualifications-card-content {
  position: relative;
  z-index: 2;
  justify-content: flex-start;
}

.dark-card h3 {
  font-size: 24px;
  margin-bottom: 20px;
  line-height: 1.3;
  min-height: 60px;
  /* Aligns titles */
  display: flex;
  align-items: flex-end;
}

.separator {
  width: 40px;
  height: 2px;
  background-color: #00857A;
  margin-bottom: 25px;
  transition: width 0.4s ease;
}

.dark-card:hover .separator {
  width: 100%;
  /* Line expands on hover */
}

/* List Styling */
.dark-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dark-list li {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 14px;
  padding-left: 0;
  transition: transform 0.3s ease, color 0.3s ease;
}

.dark-list li:hover {
  color: #fff;
  transform: translateX(5px);
}

/* Hover Glow Effect */
.hover-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(0, 133, 122, 0.2), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.dark-card:hover {
  flex: 1.8;
  /* Expands width on hover */
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-5px);
  /* Reduced lift to avoid layout shift issues */
  border-color: rgba(0, 133, 122, 0.5);
  /* Teal Border */
}

.dark-card:hover .hover-glow {
  opacity: 1;
}

/* Responsive */
@media (max-width: 1200px) {
  .qual-dark-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2x2 grid */
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .qual-dark-grid {
    grid-template-columns: 1fr;
    /* Stack */
  }

  .qual-dark-header h2 {
    font-size: 32px;
  }

  .qual-dark-section {
    padding: 80px 0;
  }
}