/* ===================================================
   SMAYAH — IMMERSIVE EXPERIENCE
   Design System + Full Styles
   =================================================== */

/* ===================================================
   1. FONT FACES
   =================================================== */
@font-face {
  font-family: "Brando";
  src: url("Brando.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ===================================================
   2. CSS CUSTOM PROPERTIES
   =================================================== */
:root {
  /* --- Colors --- */
  --primary-dark: #091622;
  --primary-mid: #1f3a5f;
  --accent: #1fa6b6;
  --accent-hover: #178f9d;
  --accent-glow: rgba(31, 166, 182, 0.35);
  --text-dark: #091622;
  --text-body: #3a4a5c;
  --text-muted: #6b7b8d;
  --text-light: #f5f7fa;
  --border-color: rgba(14, 26, 43, 0.08);
  --border-light: rgba(14, 26, 43, 0.06);

  /* --- Typography --- */
  --font-display: "Brando", "IBM Plex Sans Arabic", serif;
  --font-body: "IBM Plex Sans Arabic", sans-serif;

  --size-hero: clamp(3rem, 5vw, 5rem);
  --size-h1: clamp(2.5rem, 4vw, 4rem);
  --size-h2: clamp(2rem, 3vw, 3rem);
  --size-h3: clamp(1.25rem, 1.5vw, 1.5rem);
  --size-body: 1.0625rem;
  --size-sm: 0.875rem;
  --size-xs: 0.75rem;

  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semi: 600;
  --weight-bold: 700;

  /* --- Spacing --- */
  --section-spacing: 140px;
  --container-max: 1320px;
  --container-padding: 2rem;

  /* --- Radius --- */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  /* --- Shadows --- */
  --shadow-sm: 0 2px 8px rgba(14, 26, 43, 0.06);
  --shadow-md: 0 4px 20px rgba(14, 26, 43, 0.08);
  --shadow-lg: 0 8px 40px rgba(14, 26, 43, 0.12);
  --shadow-xl: 0 20px 60px rgba(14, 26, 43, 0.18);

  /* --- Transitions --- */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-base: 0.4s var(--ease-out);
  --transition-slow: 0.8s var(--ease-out);
  --transition-cinematic: 1s var(--ease-out);

  /* --- Z layers (Premium Depth System) --- */
  --z-deep-bg: 0;
  --z-bg-layer: 1;
  --z-overlay: 2;
  --z-content: 5;
  --z-floating: 10;
  --z-nav: 100;
  --z-modal: 200;
  --z-cursor: 9999;

  /* --- Premium Effects --- */
  --blur-blob: 120px;
  --blur-glass: 20px;
  --noise-opacity: 0.03;
  --parallax-speed-slow: 0.05;
  --parallax-speed-medium: 0.12;
  --parallax-speed-fast: 0.25;

  /* --- Brand Identity --- */
  --brand-shape-color: #11a4c8;
  --brand-shape-opacity: 0.08;
}

/* ===================================================
   3. RESET & BASE
   =================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--size-body);
  font-weight: var(--weight-regular);
  color: var(--text-dark);
  background: #fafaf8;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  cursor: none;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ===================================================
   PREMIUM DEPTH SYSTEM - BLUR BLOBS & NOISE
   =================================================== */

/* Animated Blur Blobs */
.blur-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(var(--blur-blob));
  opacity: 0.4;
  pointer-events: none;
  will-change: transform;
  animation: blobFloat 20s ease-in-out infinite;
}

.blur-blob--accent {
  background: var(--accent);
}

.blur-blob--primary {
  background: var(--primary-mid);
}

.blur-blob--large {
  width: 600px;
  height: 600px;
}

.blur-blob--medium {
  width: 400px;
  height: 400px;
}

.blur-blob--small {
  width: 250px;
  height: 250px;
}

@keyframes blobFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(40px, -60px) scale(1.1);
  }
  50% {
    transform: translate(-30px, 30px) scale(0.95);
  }
  75% {
    transform: translate(50px, 40px) scale(1.05);
  }
}

/* ===================================================
   BRAND IDENTITY - REPEATED SHAPE SYSTEM
   =================================================== */

/* Background Pattern - Subtle */
.repeated-shape-pattern {
  position: absolute;
  inset: 0;
  background-image: url("repeated_shape.svg");
  background-size: 400px;
  background-repeat: repeat;
  opacity: var(--brand-shape-opacity);
  pointer-events: none;
  z-index: var(--z-bg-layer);
  animation: patternFloat 60s linear infinite;
}

@keyframes patternFloat {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(-400px, -400px) rotate(360deg);
  }
}

/* Brand Identity Shape - Single subtle background element per section */
.brand-shape {
  position: absolute;
  width: clamp(400px, 50vw, 800px);
  height: auto;
  opacity: 0.03;
  pointer-events: none;
  z-index: var(--z-bg-layer);
  will-change: transform;
  animation: shapeFloat 30s ease-in-out infinite;
  filter: blur(1px);
}

.brand-shape--hero {
  top: 5%;
  right: -15%;
  opacity: 0.25;
  z-index: 4;
  width: clamp(500px, 55vw, 900px);
}

.brand-shape--story {
  bottom: 20%;
  left: -15%;
  opacity: 0.025;
}

.brand-shape--services {
  top: 5%;
  right: -10%;
  opacity: 0.03;
}

.brand-shape--projects {
  bottom: 10%;
  left: 5%;
  opacity: 0.025;
}

.brand-shape--advantages {
  top: 10%;
  right: 10%;
  opacity: 0.03;
}

.brand-shape--ceo {
  top: 20%;
  left: -5%;
  opacity: 0.025;
}

.brand-shape--certifications {
  bottom: 15%;
  right: -8%;
  opacity: 0.025;
}

.brand-shape--cta {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.02;
}

.brand-shape--footer {
  top: 30%;
  right: 5%;
  opacity: 0.02;
}

/* Legacy support for repeated-shape class */
.repeated-shape {
  position: absolute;
  width: clamp(300px, 40vw, 600px);
  height: auto;
  opacity: 0.06;
  pointer-events: none;
  z-index: var(--z-bg-layer);
  will-change: transform;
  animation: shapeFloat 25s ease-in-out infinite;
}

.repeated-shape--accent {
  opacity: 0.1;
  filter: drop-shadow(0 0 60px rgba(17, 164, 200, 0.3));
}

.repeated-shape--large {
  width: clamp(400px, 50vw, 800px);
}

.repeated-shape--small {
  width: clamp(150px, 20vw, 300px);
}

@keyframes shapeFloat {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  25% {
    transform: translate(30px, -40px) rotate(5deg) scale(1.05);
  }
  50% {
    transform: translate(-20px, 20px) rotate(-3deg) scale(0.98);
  }
  75% {
    transform: translate(40px, 30px) rotate(8deg) scale(1.02);
  }
}

/* Continuous Element Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes floatSlow {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes morphBlob {
  0%,
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  25% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  50% {
    border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%;
  }
  75% {
    border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%;
  }
}

/* Apply animations to elements */
.hero__blur-blob-1,
.hero__blur-blob-2 {
  animation:
    morphBlob 20s ease-in-out infinite,
    float 15s ease-in-out infinite;
}

.service-item__icon {
  animation: floatSlow 6s ease-in-out infinite;
}

.advantage__number {
  animation: breathe 4s ease-in-out infinite;
}

.stat-card {
  animation: floatSlow 8s ease-in-out infinite;
}

.stat-card:nth-child(2) {
  animation-delay: -2s;
}

.stat-card:nth-child(3) {
  animation-delay: -4s;
}

.stat-card:nth-child(4) {
  animation-delay: -6s;
}

/* Shimmer effect on hover for buttons */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
  opacity: 1;
  animation: shimmer 1.5s ease-in-out infinite;
}

/* Floating animation for decorative elements */
.repeated-shape-pattern::before {
  animation: float 20s ease-in-out infinite;
}

.repeated-shape-pattern::after {
  animation: float 25s ease-in-out infinite reverse;
}

/* Section-Specific Shape Positions */
.repeated-shape--hero-1 {
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.repeated-shape--hero-2 {
  bottom: -15%;
  left: -10%;
  animation-delay: -10s;
  opacity: 0.04;
}

.repeated-shape--story {
  top: 20%;
  left: -5%;
  animation-delay: -5s;
}

.repeated-shape--services {
  top: 10%;
  right: -8%;
  animation-delay: -8s;
}

.repeated-shape--projects {
  bottom: 10%;
  left: 5%;
  animation-delay: -15s;
}

.repeated-shape--advantages {
  top: 5%;
  right: 10%;
  animation-delay: -3s;
}

.repeated-shape--cta {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.05;
  animation:
    shapeFloat 30s ease-in-out infinite,
    shapePulse 4s ease-in-out infinite;
}

.repeated-shape--ceo {
  bottom: 20%;
  right: 5%;
  animation-delay: -12s;
}

.repeated-shape--certifications {
  top: 15%;
  left: 3%;
  animation-delay: -7s;
}

.repeated-shape--footer {
  top: 30%;
  right: 5%;
  animation-delay: -20s;
  opacity: 0.04;
}

@keyframes shapePulse {
  0%,
  100% {
    opacity: 0.05;
  }
  50% {
    opacity: 0.08;
  }
}

/* Noise Texture Overlay */
.noise-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--noise-opacity);
  z-index: var(--z-overlay);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Vignette Effect */
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-overlay);
  background: radial-gradient(
    ellipse at center,
    transparent 30%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

/* Glassmorphism Card Base */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(var(--blur-glass)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
}

/* Premium Reveal Animations */
@keyframes revealFadeUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes revealClip {
  from {
    clip-path: inset(100% 0 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* Masked Text Reveal - Premium effect */
@keyframes maskedReveal {
  0% {
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    transform: translateY(100%);
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: translateY(0);
  }
}

@keyframes maskSlideUp {
  0% {
    clip-path: inset(100% 0 0 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes textUnveil {
  0% {
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

/* Masked text reveal class */
.text-reveal {
  overflow: hidden;
}

.text-reveal__inner {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
}

.text-reveal.revealed .text-reveal__inner {
  animation: maskedReveal 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 1;
}

/* Section heading masked reveal */
.section-heading--reveal {
  overflow: hidden;
}

.section-heading--reveal .heading-text {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-heading--reveal.revealed .heading-text {
  transform: translateY(0);
}

/* Hero title masked reveal */
.hero__title--reveal {
  overflow: hidden;
}

.hero__title--reveal .title-text {
  display: inline-block;
  transform: translateY(100%);
  animation: none;
}

.hero__title--reveal.revealed .title-text {
  animation: maskedReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes shimmerMove {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Reveal Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1s var(--ease-out),
    transform 1s var(--ease-out);
  will-change: opacity, transform;
}

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

/* Side reveal variant (used for floating images) */
.reveal.reveal-side {
  transform: none !important;
  opacity: 0;
  clip-path: inset(0 14% 0 0);
  filter: blur(2px);
  transition:
    opacity 0.9s var(--ease-out),
    clip-path 0.9s var(--ease-out),
    filter 0.9s var(--ease-out) !important;
}

[dir="rtl"] .reveal.reveal-side {
  clip-path: inset(0 0 0 14%);
}

.reveal.reveal-side.revealed {
  transform: none !important;
  opacity: 1;
  clip-path: inset(0 0 0 0);
  filter: blur(0);
}

/* Masked Appear for Images — same approach as text headings:
   Parent = overflow:hidden (the mask)
   Child img = transform to slide in */
.reveal-image {
  overflow: hidden;
}

.reveal-image > img {
  display: block;
  width: 100%;
  height: 100%;
  transform: translateX(-100%) scale(1.15);
  transition: transform 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

[dir="rtl"] .reveal-image > img {
  transform: translateX(100%) scale(1.15);
}

.reveal-image.revealed > img {
  transform: translateX(0) scale(1.15);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-image > img {
    transform: none;
    transition: none;
  }
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}
.reveal-delay-5 {
  transition-delay: 0.5s;
}

.reveal-stagger-1 {
  transition-delay: 0.05s;
}
.reveal-stagger-2 {
  transition-delay: 0.1s;
}
.reveal-stagger-3 {
  transition-delay: 0.15s;
}
.reveal-stagger-4 {
  transition-delay: 0.2s;
}
.reveal-stagger-5 {
  transition-delay: 0.25s;
}
.reveal-stagger-6 {
  transition-delay: 0.3s;
}

/* ===================================================
   3D STACKING / CURTAIN EFFECT
   =================================================== */
main {
  position: relative;
  z-index: 2;
}

.story,
.ceo,
.services,
.projects,
.advantages,
.certifications,
.cta,
.footer {
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Re-assigning background colors (keeping z-index relative) */
.story {
  background: var(--primary);
}
.services {
  background: var(--primary-dark);
}
.projects {
  background: #151e2b;
}
.advantages {
  background: var(--primary);
}
.certifications {
  background: var(--primary-dark);
}
.cta {
  background: var(--accent);
}
.footer {
  background: #0b111a;
}

/* Restoring margins */
section {
  margin: 0;
}

/* ===================================================
   4. CURSOR FOLLOWER
   =================================================== */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition:
    width 0.3s,
    height 0.3s,
    background 0.3s;
}

.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: calc(var(--z-cursor) - 1);
  transform: translate(-50%, -50%);
  transition:
    width 0.35s var(--ease-out),
    height 0.35s var(--ease-out),
    border-color 0.3s,
    background 0.3s;
}

.cursor-outline.hovering {
  width: 64px;
  height: 64px;
  border-color: var(--accent);
  background: rgba(31, 166, 182, 0.08);
}

.cursor-dot.hovering {
  width: 6px;
  height: 6px;
  background: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .cursor-dot,
  .cursor-outline {
    display: none !important;
  }
  body {
    cursor: auto;
  }
  a {
    cursor: pointer;
  }
}

/* ===================================================
   5. SCROLL PROGRESS BAR
   =================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  z-index: calc(var(--z-nav) + 1);
  pointer-events: none;
}

/* ===================================================
   2. NAVBAR - REBUILT
   =================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: var(--z-nav);
  /* padding: 2rem 0; More spacing initially */
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(3rem, 6vw, 6rem);
  background: rgba(255, 255, 255, 1);
}

.navbar__brand {
  display: grid;
  align-items: start;
  gap: 0.12rem;
}

.navbar--scrolled {
  border: 1px solid rgba(9, 22, 34, 0.08);
  box-shadow:
    0 8px 24px rgba(9, 22, 34, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(9, 22, 34, 0.08);
}

.navbar--scrolled .navbar {
  /* position: fixed; */
}

/* --- LOGO: Hidden initially (Hero has one) --- */
.navbar__logo {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: all 0.4s ease;
  width: 120px; /* Fixed width to prevent jumping */
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: start;
}

.navbar__slogan {
  margin: 0;
  font-size: 0.72rem;
  color: #4d6780;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.navbar__logo img {
  /* width: 100%; */
  height: 80%;
  display: block;
}

/* --- LINKS: Refined Composition --- */
.navbar__menu {
  display: flex;
  align-items: center;
  gap: 3rem; /* More breathing room */
  margin: 0 auto; /* Center the menu if desired, or keep generic flow */
}

.navbar__link {
  font-size: var(--size-sm);
  font-weight: var(--weight-medium);
  color: var(--text-dark);
  text-decoration: none;
  position: relative;
  opacity: 0.9;
  transition: opacity 0.3s;
  cursor: pointer;
}

.navbar__link:hover {
  opacity: 1;
}

.navbar__link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%;
}

/* --- ACTIONS --- */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.navbar__lang {
  background: rgba(9, 22, 34, 0.06);
  border: 1px solid rgba(9, 22, 34, 0.18);
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: var(--size-xs);
  cursor: pointer;
  transition: all 0.3s;
}

.navbar__lang:hover {
  background: var(--text-dark);
  color: white;
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: all var(--transition-fast);
}

.navbar__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.navbar__hamburger.active span:nth-child(2) {
  opacity: 0;
}
.navbar__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================================================
   7. MOBILE MENU
   =================================================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--primary-dark);
  z-index: calc(var(--z-nav) - 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.mobile-menu--open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: var(--size-h3);
  color: var(--text-light);
  opacity: 0.8;
  transition: opacity var(--transition-fast);
  cursor: none;
}

.mobile-menu__link:hover {
  opacity: 1;
  color: var(--accent);
}

/* ===================================================
   8. BUTTONS
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: var(--size-sm);
  font-weight: var(--weight-semi);
  border: none;
  border-radius: var(--radius-sm);
  cursor: none;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

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

.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow:
    0 0 30px var(--accent-glow),
    0 8px 24px rgba(31, 166, 182, 0.2);
  transform: none;
}

/* Enhanced button hover with magnetic effect */
.btn {
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:not(.btn--primary):hover {
  transform: translateY(-3px) scale(1.02);
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
}

.btn--primary:active {
  transform: none;
}

.btn--outline-light {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.btn--outline {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid var(--border-color, rgba(0, 0, 0, 0.2));
}

.btn--outline:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--accent);
  color: var(--accent);
}

.btn--sm {
  padding: 0.55rem 1.25rem;
  font-size: var(--size-xs);
}
.btn--lg {
  padding: 1rem 2.5rem;
  font-size: var(--size-body);
}

.navbar:not(.navbar--scrolled) .btn--primary {
  background: var(--accent);
  border: 1.5px solid var(--accent);
  color: white;
}

.navbar:not(.navbar--scrolled) .btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow:
    0 0 24px rgba(31, 166, 182, 0.25),
    0 8px 20px rgba(31, 166, 182, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  .btn::before {
    display: none;
  }
  .btn--primary:hover {
    transform: none;
  }
}

/* ===================================================
   9. SECTION COMMON
   =================================================== */
/* --- Section Title Block: bar + heading + eyebrow --- */
.section-title-block {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-title-block__bar {
  width: 8px;
  min-height: 60px;
  align-self: stretch;
  background: var(--accent);
  flex-shrink: 0;
}

.section-title-block__text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--size-xs);
  font-weight: var(--weight-semi);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0;
  order: 2;
}

.section-eyebrow--light {
  color: rgba(31, 166, 182, 0.9);
}

.section-heading {
  font-family: var(--font-display);
  font-size: var(--size-h2);
  font-weight: var(--weight-bold);
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 0;
  order: 1;
}

.section-subheading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--weight-bold);
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 0;
}

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

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

/* ===================================================
   10. HERO — CINEMATIC PROJECT SHOWCASE (PREMIUM)
   =================================================== */
.hero {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 6rem);
  background:
    linear-gradient(rgba(9, 22, 34, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 22, 34, 0.012) 1px, transparent 1px),
    radial-gradient(
      1200px 600px at 85% 20%,
      rgba(31, 166, 182, 0.15),
      transparent 60%
    ),
    radial-gradient(
      900px 520px at 15% 80%,
      rgba(9, 22, 34, 0.1),
      transparent 65%
    ),
    #fafaf8;
  background-size:
    80px 80px,
    80px 80px,
    auto,
    auto,
    auto;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--primary-dark),
    transparent
  );
  opacity: 0.04;
  pointer-events: none;
  z-index: 1;
}

.hero::before {
  left: 8%;
  top: 15%;
  width: 1px;
  height: 55%;
}

.hero::after {
  right: 12%;
  top: 25%;
  width: 1px;
  height: 35%;
}

/* --- Deep Background Layer --- */
.hero__deep-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero__blur-blob-1 {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  filter: blur(150px);
  opacity: 0.2;
  animation: heroBlob1 25s ease-in-out infinite;
  z-index: 0;
}

.hero__blur-blob-2 {
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-mid) 0%, transparent 70%);
  filter: blur(130px);
  opacity: 0.18;
  animation: heroBlob2 30s ease-in-out infinite;
  z-index: 0;
}

.hero__blur-blob-3 {
  position: absolute;
  top: 30%;
  right: -15%;
  width: 550px;
  height: 550px;
  background: radial-gradient(
    circle,
    rgba(31, 166, 182, 0.6) 0%,
    transparent 70%
  );
  filter: blur(140px);
  opacity: 0.12;
  animation: heroBlob3 35s ease-in-out infinite;
  z-index: 0;
}

@keyframes heroBlob1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-50px, 80px) scale(1.15);
  }
  66% {
    transform: translate(30px, -40px) scale(0.9);
  }
}

@keyframes heroBlob2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(60px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-40px, 30px) scale(0.95);
  }
}

@keyframes heroBlob3 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-70px, 40px) scale(1.08);
  }
  66% {
    transform: translate(50px, -30px) scale(0.92);
  }
}

.hero__dots {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(8, 8px);
  gap: 10px;
  opacity: 0.12;
  z-index: 2;
  pointer-events: none;
}

.hero__dots--top-right {
  top: 20%;
  right: 6%;
}

.hero__dots--top-right .hero__dot {
  background: var(--accent);
}

.hero__dots--bottom-left {
  bottom: 22%;
  left: 6%;
}

.hero__dot {
  width: 8px;
  height: 8px;
  background: var(--primary-dark);
  border-radius: 50%;
}

/* --- Slides with Multi-Layer Parallax --- */
.hero__slides {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
  will-change: opacity, transform;
}

.hero__slide--active {
  opacity: 1;
}

/* Multi-layer parallax system for hero slides */
.hero__slide-layers {
  position: absolute;
  inset: -15%;
  will-change: transform;
}

.hero__layer {
  position: absolute;
  inset: 0;
  will-change: transform;
  transition: transform 0.1s linear;
}

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

.hero__layer--back {
  z-index: 1;
}

.hero__layer--back img {
  filter: brightness(0.5) saturate(0.7);
  transform: scale(1.02);
  opacity: 0.8;
}

.hero__layer--mid {
  z-index: 2;
}

.hero__layer--mid img {
  filter: brightness(0.85);
  transform: scale(1.05);
  transition:
    transform 8s ease-out,
    filter 0.5s ease;
}

.hero__slide--active .hero__layer--mid img {
  transform: scale(1);
}

/* Legacy single image support */
.hero__slide-img {
  position: absolute;
  inset: -15%;
  will-change: transform;
  transition: transform 0.1s linear;
  z-index: 1;
}

.hero__slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero__slide--active .hero__slide-img img {
  transform: scale(1);
}

/* Foreground Parallax Layer */
.hero__slide-fg {
  position: absolute;
  inset: 0;
  z-index: 2;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide {
    transition: opacity 0.01s;
  }
  .hero__blur-blob-1,
  .hero__blur-blob-2,
  .hero__blur-blob-3 {
    animation: none;
  }
}

/* --- Overlay gradient with noise --- */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(
      to right,
      rgba(14, 26, 43, 0.8) 0%,
      rgba(14, 26, 43, 0.3) 55%,
      transparent 100%
    ),
    linear-gradient(
      to top,
      rgba(14, 26, 43, 0.95) 0%,
      rgba(14, 26, 43, 0.15) 35%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 70% 30%,
      transparent 20%,
      rgba(14, 26, 43, 0.5) 100%
    );
  pointer-events: none;
}

/* Noise texture overlay for premium feel */
.hero__overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
}

[dir="rtl"] .hero__overlay {
  background:
    linear-gradient(
      to left,
      rgba(14, 26, 43, 0.8) 0%,
      rgba(14, 26, 43, 0.3) 55%,
      transparent 100%
    ),
    linear-gradient(
      to top,
      rgba(14, 26, 43, 0.95) 0%,
      rgba(14, 26, 43, 0.15) 35%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 30% 30%,
      transparent 20%,
      rgba(14, 26, 43, 0.5) 100%
    );
}

/* --- Brand tagline — large text overlapping image --- */
.hero__tagline {
  /* position: absolute; */
  /* top: 50%; */
  /* right: clamp(2rem, 6vw, 6rem); */
  /* left: auto; */
  /* transform: translateY(-50%); */
  z-index: 5;
  text-align: right;
  padding-top: 80px;
}

.hero__tagline-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 7vw, 4.5rem);
  font-weight: var(--weight-bold);
  color: var(--primary-dark);
  line-height: 1.2;
  opacity: 0.95;
  overflow: hidden;
}

.hero__cta {
  margin-top: 1.5rem;
  pointer-events: auto;
}

.hero__tagline-sub {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 1.5vw, 1.55rem);
  color: var(--text-body);
  line-height: 2;
  margin-top: 1.5rem;
  max-width: 420px;
}

.hero__tagline-text .title-text {
  position: relative;
  display: inline-block;
  transform: translateY(110%);
  z-index: 10;
  animation: heroTaglineReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
}

@keyframes heroTaglineReveal {
  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__tagline-text .title-text {
    animation: none;
    transform: translateY(0);
  }
}

/* --- Large Logo (CALMA Style) --- */
.hero__large-logo {
  z-index: 5;
  width: clamp(220px, 28vw, 420px);
  opacity: 1;
  filter: drop-shadow(0 0 60px rgba(9, 22, 34, 0.06));
  pointer-events: none;
  transition: filter 0.5s ease;
}

.hero__large-logo:hover {
  filter: drop-shadow(0 0 80px rgba(31, 166, 182, 0.1));
}

.hero__large-logo img {
  width: 100%;
  height: auto;
}

/* --- Project info overlay --- */
.hero__project-info {
  position: absolute;
  bottom: 5rem;
  right: clamp(3rem, 8vw, 8rem);
  z-index: 6;
}

.hero__project-type {
  display: block;
  font-size: var(--size-xs);
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: var(--weight-medium);
  margin-bottom: 0.5rem;
}

.hero__project-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  color: white;
  font-weight: var(--weight-bold);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.hero__project-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--size-sm);
}

.hero__project-location svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* --- Thumbnail strip --- */
.hero__thumbs {
  position: absolute;
  bottom: 2.5rem;
  left: 3rem;
  z-index: 10;
  display: flex;
  gap: 0.75rem;
}

.hero__thumb {
  position: relative;
  width: 110px;
  height: 72px;
  /* border-radius: var(--radius-sm); */
  overflow: hidden;
  border: 2px solid transparent;
  cursor: none;
  transition: all var(--transition-base);
  background: none;
  padding: 0;
  outline: none;
}

.hero__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
  transition: filter var(--transition-base);
}

.hero__thumb--active {
  border-color: var(--accent);
}

.hero__thumb--active img {
  filter: brightness(0.9);
}

.hero__thumb:hover img {
  filter: brightness(0.8);
}

.hero__thumb-label {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  font-size: 10px;
  color: white;
  font-weight: var(--weight-medium);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Slide counter --- */
.hero__counter {
  position: absolute;
  bottom: 7rem;
  left: 3rem;
  z-index: 8;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  font-family: var(--font-display);
  color: rgba(255, 255, 255, 0.5);
}

/* Masked reveal helper for section headers */
/* Legacy heading-text transform disabled for side-reveal */
.section-heading .heading-text {
  display: block;
  transform: none !important;
}

.section-heading.reveal.revealed .heading-text {
  transform: none !important;
  transition: none !important;
}

.hero__counter-current {
  font-size: 1.5rem;
  font-weight: var(--weight-bold);
  color: var(--accent);
}

.hero__counter-sep {
  font-size: 1rem;
  margin: 0 0.15rem;
}

.hero__counter-total {
  font-size: 1rem;
}

/* --- Scroll indicator --- */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(14, 26, 43, 0.6);
  font-size: var(--size-xs);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll {
    animation: none;
  }
}

/* ===================================================
   11. STORY — SPLIT STICKY LAYOUT
   =================================================== */
.story {
  position: relative;
  background: white;
}

.story__container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(2rem, 4vw, 4rem) 0;
}

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

/* --- Visual Column --- */
.story__visual {
  position: relative;
  top: 0;
  width: auto;
  height: 100%;
  max-height: 600px;
  min-height: 0;
  z-index: 2;
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .story__visual {
    position: relative;
    height: 60vh;
    order: -1 !important; /* Always top on mobile */
    top: auto;
  }
}

.story__img-wrapper {
  width: min(100%, 550px);
  aspect-ratio: 4 / 5;
  height: auto;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  margin-inline: clamp(1.5rem, 4vw, 3rem);
  will-change: transform;
}

.story__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.2s var(--ease-out);
}

.story__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.2s var(--ease-out);
}

.story__img-wrapper {
  transition:
    transform 0.1s linear,
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
    clip-path 1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Parallax effect on hover or scroll could be added here */

/* --- Content Column --- */
.story__content {
  padding: clamp(1rem, 2vw, 2rem) clamp(2rem, 5vw, 6rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
  background: white; /* Ensure text readable if overlaps */
}

/* RTL Handling: Visual Left (End), Content Right (Start) */
[dir="rtl"] .story__visual {
  order: 2;
}
[dir="rtl"] .story__content {
  order: 1;
}

.story__heading {
  font-family: var(--font-display);
  font-size: var(--size-h2);
  font-weight: var(--weight-bold);
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 2rem;
}

.story__desc {
  font-size: var(--size-body);
  color: var(--text-body);
  line-height: 1.8;
  max-width: 540px;
  margin-bottom: 5rem;
}

/* --- Stats List --- */
.story__stats {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 540px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: border-color var(--transition-base);
}

.stat-row:first-child {
  border-top: 1px solid var(--border-color);
}

.stat-row:hover {
  border-color: var(--accent);
}

.stat-row__label {
  font-size: var(--size-sm);
  color: var(--text-muted);
  font-weight: var(--weight-medium);
  letter-spacing: 0.02em;
}

.stat-row__value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--text-dark);
  font-weight: var(--weight-regular);
}

.stat-row__value .counter {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

/* ===================================================
   12. CEO — SPLIT LAYOUT (REDESIGNED)
   =================================================== */
.ceo {
  position: relative;
  background: var(--primary-dark);
  overflow: hidden;
}

.ceo__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
}

/* --- Visual Side --- */
.ceo__visual {
  position: relative;
  overflow: hidden;
}

.ceo__img-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ceo__img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
}

.ceo__visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(14, 26, 43, 0.6) 0%,
    rgba(14, 26, 43, 0.15) 50%,
    transparent 100%
  );
  pointer-events: none;
}

/* --- Content Side --- */
.ceo__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 6rem);
  padding-inline-start: clamp(3rem, 5vw, 5rem);
}

.ceo__accent-bar {
  position: absolute;
  top: 15%;
  right: 0;
  width: 6px;
  height: 70px;
  background: var(--accent);
  border-radius: 3px;
}

[dir="rtl"] .ceo__accent-bar {
  right: auto;
  left: 0;
}

.ceo__heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--text-light);
  font-weight: var(--weight-bold);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.ceo__heading-en {
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.5);
  font-weight: var(--weight-regular);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.ceo__divider {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 2rem;
  opacity: 0.6;
}

.ceo__blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 2;
  margin-bottom: 2.5rem;
  font-weight: var(--weight-regular);
  font-style: normal;
}

.ceo__blockquote p {
  margin-bottom: 1rem;
}

.ceo__blockquote p:last-child {
  margin-bottom: 0;
  font-weight: var(--weight-bold);
  color: var(--text-light);
}

.ceo__footer {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ceo__name {
  font-weight: var(--weight-bold);
  color: var(--text-light);
  font-size: var(--size-body);
}

.ceo__title-text {
  color: var(--accent);
  font-size: var(--size-sm);
  font-weight: var(--weight-medium);
}

/* ===================================================
   13. SERVICES — SPLIT PANEL LIST
   =================================================== */
.services {
  padding: var(--section-spacing) 0;
  background: var(--bg-light, #f7f8fa);
  position: relative;
  isolation: isolate;
}

.services__wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

/* --- Right Panel (image with text overlay) --- */
.services__panel {
  position: sticky;
  top: 120px;
  overflow: hidden;
  min-height: 550px;
}

.services__img-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  will-change: transform;
}

.services__img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.services__panel-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(14, 26, 43, 0.75) 0%,
    rgba(14, 26, 43, 0.5) 50%,
    rgba(14, 26, 43, 0.3) 100%
  );
  pointer-events: none;
}

.services .section-eyebrow {
  color: var(--accent);
}

.services .section-heading {
  color: var(--text-light);
}

.services__text-panel {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 4vw, 3.5rem);
}

.services__desc {
  font-size: var(--size-body);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.btn--link-light {
  color: rgba(255, 255, 255, 0.8);
}
.btn--link-light:hover {
  color: white;
}

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

.services__actions .btn svg {
  transition: transform 0.3s var(--ease-out);
}

.services__actions .btn:hover svg {
  transform: translateX(-4px);
}

[dir="rtl"] .services__actions .btn:hover svg {
  transform: translateX(4px);
}

/* --- Grid Panel (List) --- */
.services__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 3rem;
  row-gap: 0;
}

.service-item {
  position: relative;
  padding: 2.5rem 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  transform-style: preserve-3d;
  perspective: 1000px;
  background: transparent;
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Premium gradient overlay on hover */
.service-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(31, 166, 182, 0.08) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.service-item:nth-last-child(1),
.service-item:nth-last-child(2) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.service-item__num {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--accent);
  opacity: 0.6;
  font-weight: var(--weight-medium);
  letter-spacing: 0.1em;
  transition: all 0.4s ease;
}

.service-item__content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.service-item__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  font-weight: var(--weight-bold);
  transition: all 0.4s ease;
}

.service-item__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  transition: all 0.4s ease;
}

.service-item__icon {
  position: absolute;
  top: 2.5rem;
  left: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  opacity: 0.2;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transform: scale(0.8) translateY(10px);
}

[dir="rtl"] .service-item__icon {
  left: auto;
  right: 0;
}

/* Premium 3D Hover Effects */
.service-item:hover {
  transform: translateY(-8px) translateX(-5px);
  background: rgba(255, 255, 255, 0.8);
  box-shadow:
    0 20px 40px -15px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(31, 166, 182, 0.1);
}

[dir="rtl"] .service-item:hover {
  transform: translateY(-8px) translateX(5px);
}

.service-item:hover::before {
  opacity: 1;
}

.service-item:hover .service-item__num {
  opacity: 1;
  transform: translateX(5px);
}

.service-item:hover .service-item__title {
  color: var(--accent);
  transform: translateX(5px);
}

.service-item:hover .service-item__text {
  color: var(--text-body);
}

.service-item:hover .service-item__icon {
  opacity: 1;
  color: var(--accent);
  transform: scale(1.1) translateY(0) rotate(-5deg);
  filter: drop-shadow(0 0 10px rgba(31, 166, 182, 0.3));
}

/* ===================================================
   14. PROJECTS — CARD GRID
   =================================================== */
.projects {
  padding: var(--section-spacing) 0;
  background: var(--primary-dark);
  overflow: hidden;
  position: relative;
}

.projects__bg {
  position: absolute;
  top: 5%;
  bottom: 0;
  left: auto;
  right: 0;
  /* width: 50%; */
  max-height: 50%;
  z-index: 0;
  opacity: 0.15;
  mix-blend-mode: luminosity;
  overflow: hidden;
}

[dir="rtl"] .projects__bg {
  left: auto;
  right: 0;
}

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

.projects__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    var(--primary-dark) 0%,
    var(--primary-dark) 50%,
    transparent 100%
  );
  pointer-events: none;
}

[dir="rtl"] .projects__overlay {
  background: linear-gradient(
    to left,
    rgba(14, 26, 43, 0) 0%,
    var(--primary-dark) 60%,
    var(--primary-dark) 100%
  );
}

.projects .section-eyebrow {
  color: var(--accent);
}
.projects .section-heading {
  color: var(--text-light);
}

.projects__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3.5rem;
  padding: 0 var(--container-padding);
  max-width: var(--container-max);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.projects__titles {
  text-align: right;
}

.projects__titles .section-heading {
  margin-bottom: 0;
}

.projects__portal-btn {
  margin-top: 0;
  display: flex;
  flex-shrink: 0;
}

.projects__portal-btn .btn {
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: white;
  padding: 0.9rem 2rem;
  font-size: 0.95rem;
  border-radius: 999px;
}

.projects__portal-btn .btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(31, 166, 182, 0.4);
}

/* Portal-style cards (inspired by reference) */
.projects__portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
  z-index: 2;
}

.project-portal-card {
  background: #f4f5f6;
  border: 1px solid #d8dee3;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  transform-style: preserve-3d;
  transition:
    transform 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
}

.project-portal-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.project-portal-card__media {
  position: relative;
  overflow: hidden;
}

.project-portal-card__image {
  height: 310px;
  overflow: hidden;
}

.project-portal-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition:
    transform 0.7s var(--ease-out),
    filter 0.5s ease;
  will-change: transform;
}

.project-portal-card:hover .project-portal-card__image img {
  transform: scale(1.1);
  filter: saturate(1.07);
}

.project-portal-card__status-row {
  position: absolute;
  top: 1rem;
  right: 1rem;
  left: 1rem;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
}

.project-portal-card__pill {
  background: #0d2e4c;
  color: #fff;
  font-size: 0.85rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
}

.project-portal-card__pill--soft {
  background: #88ab98;
  color: #fff;
}

.project-portal-card__title-wrap {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 3;
  background: linear-gradient(
    to top,
    rgba(8, 29, 47, 0.88),
    rgba(8, 29, 47, 0.58)
  );
  padding: 1rem 1.1rem;
  color: #fff;
}

.project-portal-card__title-wrap h3 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.35;
  font-weight: 700;
}

.project-portal-card__title-wrap span {
  color: #d8e4ef;
  font-size: 0.95rem;
}

.project-portal-card__body {
  padding: 1rem 1rem 0.8rem;
  background: #f4f5f6;
}

.project-portal-card__meta-row,
.project-portal-card__price-row,
.project-portal-card__specs-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.project-portal-card__meta-row {
  margin-bottom: 0.55rem;
  color: #32465a;
  font-size: 0.95rem;
}

.project-portal-card__progress {
  background: #d4ddd6;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.project-portal-card__progress span {
  display: block;
  height: 100%;
  background: #97b29f;
  transform-origin: right center;
}

.project-portal-card__price-row {
  margin-bottom: 0.85rem;
  color: #1c2e42;
}

.project-portal-card__price-row strong {
  font-size: 1.5rem;
  font-weight: 700;
}

.project-portal-card__specs-row {
  padding: 0.55rem 0;
  border-top: 1px solid #d3dbe2;
  border-bottom: 1px solid #d3dbe2;
  color: #2e3f52;
}

.project-portal-card__code {
  margin: 0.7rem 0;
  color: #1f2f42;
  font-size: 0.9rem;
  font-weight: 600;
}

.project-portal-card__cta {
  display: block;
  text-align: center;
  background: #b6ab9d;
  color: #14283c;
  font-weight: 700;
  padding: 0.9rem;
  border-radius: 4px;
  transition: filter 0.3s ease;
}

.project-portal-card__cta:hover {
  filter: brightness(1.06);
}

@media (max-width: 1200px) {
  .projects__portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===================================================
   PREMIUM PROJECT CARDS — LUXURY REAL ESTATE
   =================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding: 0 var(--container-padding);
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}

.project-card {
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08)) !important;
  position: relative;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition:
    transform 0.5s cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.project-card:hover {
  transform: translateY(-12px);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.15),
    0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-card__image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

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

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(15, 25, 35, 0.7) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-card__overlay {
  opacity: 1;
}

.project-card__content {
  padding: 1.5rem;
  position: relative;
  background-color: #fff;
}

.project-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 2;
  border-radius: 4px;
}

.project-card__region-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(14, 26, 43, 0.85);
  color: white;
  font-size: 0.75rem;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  z-index: 2;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 0.5rem 0;
  line-height: 1.3;
}

.project-card__location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.project-card__location svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.project-card__details {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 1rem;
}

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

.project-card__detail span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-card__detail strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.project-card__price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}

.project-card__price span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.project-card__price strong {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  /* font-family: var(--font-display); */
}

.project-card__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  background: var(--primary-dark);
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.project-card__link svg {
  transition: transform 0.3s ease;
}

.project-card__link:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

.project-card__link:hover svg {
  transform: translateX(4px);
}

.js-card-link {
  cursor: pointer;
}

.js-card-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

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

  .project-card__image {
    height: 220px;
  }
}

/* ===================================================
   ADVANTAGES — EDITORIAL LAYERED COMPOSITION
   =================================================== */
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.advantage-feature {
  grid-column: 1 / -1;
  position: relative;
  min-height: 420px;
  border-radius: 16px;
  overflow: hidden;
  background: #0f1f30;
}

.advantage-feature__media,
.advantage-tile__media,
.advantage-wide__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.advantage-feature__media img,
.advantage-tile__media img,
.advantage-wide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: brightness(0.78);
  transition:
    transform 0.7s var(--ease-out),
    filter 0.5s ease;
}

.advantage-feature::before,
.advantage-tile::before,
.advantage-wide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 24, 39, 0.88) 0%,
    rgba(10, 24, 39, 0.45) 45%,
    rgba(10, 24, 39, 0.12) 100%
  );
  z-index: 1;
}

.advantage-feature__content {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  z-index: 2;
  max-width: 520px;
  background: rgba(10, 24, 39, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
}

.advantage-feature__number {
  display: inline-block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.advantage-feature__content h3 {
  color: #fff;
  margin-bottom: 0.5rem;
  font-size: 1.45rem;
}

.advantage-feature__content p {
  color: rgba(255, 255, 255, 0.86);
  margin: 0;
}

.advantage-tile,
.advantage-wide {
  position: relative;
  min-height: 240px;
  border-radius: 14px;
  overflow: hidden;
  background: #0f1f30;
}

.advantage-wide {
  grid-column: 1 / -1;
  min-height: 200px;
}

.advantage-tile__content,
.advantage-wide__content {
  position: absolute;
  right: 1.1rem;
  left: 1.1rem;
  bottom: 1rem;
  z-index: 2;
  color: #fff;
}

.advantage-tile__content span,
.advantage-wide__content span {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05rem;
}

.advantage-tile__content h4,
.advantage-wide__content h4 {
  margin: 0.35rem 0 0;
  font-size: 1.2rem;
}

.advantage-feature:hover .advantage-feature__media img,
.advantage-tile:hover .advantage-tile__media img,
.advantage-wide:hover .advantage-wide__media img {
  transform: scale(1.12);
  filter: brightness(0.68);
}

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

  .advantage-feature {
    min-height: 360px;
  }
}

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

.project-strip {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transform-style: preserve-3d;
  transition:
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.6s ease;
}

/* Premium border glow on hover */
.project-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  z-index: 4;
  pointer-events: none;
  transition: border-color 0.5s ease;
}

.project-strip:hover::after {
  border-color: rgba(31, 166, 182, 0.3);
}

/* Multi-layer parallax system for project strips */
.project-strip__layers {
  position: absolute;
  inset: -10%;
  z-index: 1;
  overflow: hidden;
}

.project-strip__layer {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.project-strip__layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 1s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s ease;
}

.project-strip__layer--back {
  z-index: 1;
}

.project-strip__layer--back img {
  filter: brightness(0.6) saturate(0.8);
  transform: scale(1.05);
}

.project-strip__layer--mid {
  z-index: 2;
}

.project-strip__layer--mid img {
  filter: brightness(0.8);
  transform: scale(1.1);
}

.project-strip__layer--front {
  z-index: 3;
  mix-blend-mode: overlay;
  opacity: 0.7;
}

.project-strip__layer--front img {
  filter: brightness(1.1) contrast(1.1);
  transform: scale(1.15);
}

.project-strip:hover .project-strip__layer--back img {
  transform: scale(1.1);
}

.project-strip:hover .project-strip__layer--mid img {
  transform: scale(1.15);
  filter: brightness(0.7);
}

.project-strip:hover .project-strip__layer--front img {
  transform: scale(1.2);
  opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
  .project-strip:hover .project-strip__layer img {
    transform: none;
  }
}

/* Legacy single image support */
.project-strip__img {
  position: absolute;
  inset: -10%;
  z-index: 1;
  will-change: transform;
}

.project-strip__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 1s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s ease;
  filter: brightness(0.85);
}

.project-strip:hover .project-strip__img img {
  transform: scale(1.1);
  filter: brightness(0.7);
}

@media (prefers-reduced-motion: reduce) {
  .project-strip:hover .project-strip__img img {
    transform: none;
  }
}

.project-strip__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(14, 26, 43, 0.95) 0%,
    rgba(14, 26, 43, 0.4) 40%,
    rgba(14, 26, 43, 0.1) 100%
  );
  z-index: 2;
  transition: all 0.5s ease;
}

.project-strip:hover .project-strip__overlay {
  background: linear-gradient(
    to top,
    rgba(14, 26, 43, 0.98) 0%,
    rgba(14, 26, 43, 0.5) 50%,
    rgba(31, 166, 182, 0.1) 100%
  );
}

/* Accent gradient reveal on hover */
.project-strip__overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(31, 166, 182, 0.15) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}

.project-strip:hover .project-strip__overlay::before {
  opacity: 1;
}

.project-strip__content {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  left: 1.5rem;
  z-index: 3;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-strip:hover .project-strip__content {
  transform: translateY(-8px);
}

.project-strip__type {
  display: block;
  font-size: var(--size-xs);
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  font-weight: var(--weight-medium);
  opacity: 0.9;
  transform: translateY(10px);
  transition: all 0.4s ease 0.1s;
}

.project-strip:hover .project-strip__type {
  opacity: 1;
  transform: translateY(0);
}

.project-strip__name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: white;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  font-weight: var(--weight-bold);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.project-strip__location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--size-xs);
  margin-bottom: 0.75rem;
  opacity: 0.8;
  transition: opacity 0.4s ease;
}

.project-strip:hover .project-strip__location {
  opacity: 1;
}

.project-strip__location svg {
  color: var(--accent);
  flex-shrink: 0;
}

.project-strip__badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(31, 166, 182, 0.2);
  color: var(--accent);
  border: 1px solid rgba(31, 166, 182, 0.3);
  border-radius: var(--radius-sm);
  font-size: var(--size-xs);
  font-weight: var(--weight-semi);
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.4s ease 0.15s;
}

.project-strip:hover .project-strip__badge {
  transform: translateY(0);
  opacity: 1;
}

.project-strip__badge--wip {
  background: rgba(245, 166, 35, 0.15);
  color: #f5a623;
  border-color: rgba(245, 166, 35, 0.3);
}

/* ===================================================
   15. STATISTICS — OVERLAY ON PARALLAX BG
   =================================================== */
.statistics {
  position: relative;
  padding: var(--section-spacing) 0;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.statistics__bg {
  position: absolute;
  inset: -20%;
  z-index: 0;
  will-change: transform;
}

.statistics__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.25);
}

.statistics__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(14, 26, 43, 0.95), rgba(14, 26, 43, 0.7)),
    radial-gradient(
      circle at 50% 50%,
      transparent 20%,
      rgba(14, 26, 43, 0.5) 100%
    );
  z-index: 1;
}

.statistics__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

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

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition-base);
}

.stat-card:hover {
  border-color: rgba(31, 166, 182, 0.3);
  background: rgba(31, 166, 182, 0.05);
}

.stat-card__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: var(--weight-bold);
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.stat-card__label {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--size-sm);
  font-weight: var(--weight-medium);
}

/* ===================================================
   16. ADVANTAGES
   =================================================== */
/* ===================================================
   16. ADVANTAGES (BENTO GRID)
   =================================================== */
.advantages {
  padding: var(--section-spacing) 0;
  background: white;
  position: relative;
}

/* Decorative blur blob */
.advantages::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(31, 166, 182, 0.08) 0%,
    transparent 70%
  );
  filter: blur(100px);
  pointer-events: none;
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(
    2,
    1fr
  ); /* 2 columns for better 5-point balance */
  grid-auto-rows: minmax(200px, auto);
  gap: 2rem;
}

/* --- Base Card --- */
.advantage {
  position: relative;
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* Premium gradient overlay */
.advantage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(31, 166, 182, 0.05) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.advantage:hover {
  transform: translateY(-10px);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(31, 166, 182, 0.1);
}

.advantage:hover::before {
  opacity: 1;
}

/* --- Card Types --- */

/* 1. Bento Card (Number + Title + Eng) */
.advantage--bento {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 260px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.advantage__number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.12;
  line-height: 1;
  margin-bottom: auto;
  transition: all 0.5s ease;
}

.advantage:hover .advantage__number {
  opacity: 0.25;
  transform: translateX(5px);
}

.advantage__content {
  margin-top: 1rem;
  position: relative;
  z-index: 2;
}

.advantage--bento h3 {
  font-size: var(--size-h4);
  font-weight: var(--weight-bold);
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  transition: color 0.4s ease;
}

.advantage:hover h3 {
  color: var(--accent);
}

.advantage__en {
  font-size: var(--size-xs);
  color: var(--text-muted);
  font-family: var(--font-body);
  opacity: 0.7;
  direction: ltr;
  text-align: left;
  transition: opacity 0.4s ease;
}

.advantage:hover .advantage__en {
  opacity: 1;
}

/* Advantage cards with images */
.advantage--has-image {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.advantage__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
}

.advantage__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  filter: brightness(0.7);
}

.advantage--has-image:hover .advantage__image img {
  transform: scale(1.1);
  filter: brightness(0.5);
}

.advantage__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(14, 26, 43, 0.95) 0%,
    rgba(14, 26, 43, 0.6) 50%,
    rgba(14, 26, 43, 0.3) 100%
  );
  z-index: 1;
  transition: all 0.5s ease;
}

.advantage--has-image:hover .advantage__overlay {
  background: linear-gradient(
    to top,
    rgba(14, 26, 43, 0.98) 0%,
    rgba(14, 26, 43, 0.7) 50%,
    rgba(31, 166, 182, 0.2) 100%
  );
}

.advantage--has-image .advantage__number {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.3);
  opacity: 0.5;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.advantage--has-image:hover .advantage__number {
  color: var(--accent);
  opacity: 0.8;
}

.advantage--has-image .advantage__content {
  position: relative;
  z-index: 2;
}

.advantage--has-image h3 {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.advantage--has-image:hover h3 {
  color: var(--accent);
}

.advantage--has-image .advantage__en {
  color: rgba(255, 255, 255, 0.7);
}

.advantage--has-image:hover .advantage__en {
  color: rgba(255, 255, 255, 0.9);
}

/* Span 2 with larger image effect */
.advantage--has-image.span-2 {
  min-height: 280px;
}

.advantage--has-image.span-2 .advantage__image img {
  filter: brightness(0.6);
}

/* --- Spans --- */
.span-2 {
  grid-column: span 2;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .advantages__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .span-2 {
    grid-column: span 2;
  }
}

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

  .span-2,
  .span-4 {
    grid-column: auto;
  }
}

/* ===================================================
   16B. ADVANTAGES — SPLIT CENTERED LAYOUT
   =================================================== */
.advantages-split {
  display: grid;
  grid-template-columns: 1fr 380px 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 4rem;
}

.advantages-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.advantages-col--left {
  align-items: flex-end;
  text-align: right;
}

.advantages-col--right {
  align-items: flex-start;
  text-align: left;
}

.advantages-center {
  position: relative;
  height: auto;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.advantages-image-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 700px;
  aspect-ratio: 3 / 5;
  overflow: hidden;
  border-radius: 0;
  will-change: transform;
}

.advantages-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.advantage-card {
  background: transparent;
  border: 0;
  border-right: 3px solid var(--accent);
  padding: 1.5rem;
  transition: all 0.4s ease;
}

.advantages-col--right .advantage-card {
  border-right: 0;
  border-left: 3px solid var(--accent);
}

.advantage-card:hover {
  background: rgba(31, 166, 182, 0.05);
  transform: translateX(-5px);
}

.advantages-col--right .advantage-card:hover {
  transform: translateX(5px);
}

.advantage-card__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.advantage-card h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.advantage-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Reveal from bottom for image */
.reveal-mask-down {
  opacity: 0;
  clip-path: inset(100% 0 0 0);
  transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-mask-down.revealed {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

/* Reveal from top for image — same approach as text headings */
.reveal-mask-top {
  overflow: hidden;
}

.reveal-mask-top > img {
  display: block;
  width: 100%;
  height: 100%;
  transform: translateY(-100%);
  transition: transform 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-mask-top.revealed > img {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-mask-top > img {
    transform: none;
    transition: none;
  }
}

/* Masked reveal from side for cards */
.advantage-card[data-side="left"] {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transform: translateX(-30px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.advantage-card[data-side="right"] {
  opacity: 0;
  clip-path: inset(0 0 0 100%);
  transform: translateX(30px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.advantage-card.revealed {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: translateX(0);
}

/* Responsive */
@media (max-width: 1200px) {
  .advantages-split {
    grid-template-columns: 1fr 300px 1fr;
    gap: 2rem;
  }
}

@media (max-width: 900px) {
  .advantages-split {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .advantages-center {
    grid-column: 1 / -1;
    order: -1;
    height: auto;
    margin-bottom: 2rem;
  }

  .advantages-image-wrapper {
    position: relative;
    height: 350px;
    min-height: auto;
  }

  .advantages-col--left,
  .advantages-col--right {
    align-items: flex-start;
    text-align: left;
  }

  .advantage-card {
    border-right: 0;
    border-left: 3px solid var(--accent);
  }
}

@media (max-width: 600px) {
  .advantages-split {
    grid-template-columns: 1fr;
  }

  .advantages-col--left,
  .advantages-col--right {
    grid-column: 1;
  }
}

/* ===================================================
   17. CERTIFICATIONS — SPLIT LAYOUT
   =================================================== */
.certifications {
  overflow: hidden;
}

.certifications__split {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  min-height: 600px;
}

/* --- Dark text side --- */
.certifications__text-side {
  position: relative;
  background: var(--primary-dark);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.certifications__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.1;
  will-change: transform;
}

.certifications__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.certifications__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(14, 26, 43, 0.5) 0%,
    rgba(14, 26, 43, 0.3) 100%
  );
  pointer-events: none;
}

.certifications__text-content {
  position: relative;
  z-index: 2;
  padding: clamp(2.5rem, 5vw, 5rem);
}

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

.certifications__desc {
  font-size: var(--size-body);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.9;
  max-width: 500px;
}

/* --- Light cards side --- */
.certifications__cards-side {
  background: white;
  padding: clamp(2rem, 4vw, 4rem);
  display: flex;
  align-items: center;
}

.certifications__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  width: 100%;
}

/* --- Certificate Card (image-based) --- */
.cert-card {
  position: relative;
  background: white;
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    transform 0.5s var(--ease-out),
    box-shadow 0.5s ease;
  cursor: default;
}

.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .cert-card,
  .cert-card:hover {
    transform: none;
    transition: none;
  }
}

.cert-card__figure {
  margin: 0;
  overflow: hidden;
}

.cert-card__figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.cert-card:hover .cert-card__figure img {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .cert-card:hover .cert-card__figure img {
    transform: none;
  }
}

.cert-card__title {
  font-family: var(--font-display);
  font-size: var(--size-sm);
  color: var(--text-dark);
  font-weight: var(--weight-semi);
  text-align: center;
  padding: 0.85rem 0.75rem;
  border-top: 1px solid var(--border-light, rgba(0, 0, 0, 0.06));
}

/* Reveal stagger utility */
.reveal-stagger-1 {
  transition-delay: 0.1s;
}
.reveal-stagger-2 {
  transition-delay: 0.2s;
}
.reveal-stagger-3 {
  transition-delay: 0.3s;
}
.reveal-stagger-4 {
  transition-delay: 0.4s;
}
.reveal-stagger-5 {
  transition-delay: 0.5s;
}
.reveal-stagger-6 {
  transition-delay: 0.6s;
}

@media (prefers-reduced-motion: reduce) {
  [class*="reveal-stagger"] {
    transition-delay: 0s;
  }
}

/* Responsive certifications */
@media (max-width: 900px) {
  .certifications__split {
    grid-template-columns: 1fr;
  }

  .certifications__text-side {
    min-height: 350px;
  }

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

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

/* ===================================================
   17b. PARTNERS — SIMPLE HEADING + CARDS
   =================================================== */
.partners {
  padding: var(--section-spacing) 0;
  background: white;
  overflow: hidden;
}

.partners__header {
  margin-bottom: 3rem;
}

.partners__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    transform 0.5s var(--ease-out),
    box-shadow 0.5s ease;
  cursor: default;
}

.partner-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .partner-card,
  .partner-card:hover {
    transform: none;
    transition: none;
  }
}

.partner-card__figure {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.partner-card__figure img {
  width: 100%;
  max-height: 100px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.5s ease;
}

.partner-card:hover .partner-card__figure img {
  filter: grayscale(0%);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .partner-card__figure img {
    filter: none;
    opacity: 1;
  }
}

/* Responsive partners */
@media (max-width: 900px) {
  .partners__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ===================================================
   18. CTA - PREMIUM DRAMATIC SECTION
   =================================================== */
.cta {
  position: relative;
  padding: var(--section-spacing) 0;
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    #0a1018 50%,
    var(--primary-mid) 100%
  );
  overflow: hidden;
  text-align: center;
}

/* Animated background blobs */
.cta::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(31, 166, 182, 0.15) 0%,
    transparent 60%
  );
  filter: blur(100px);
  animation: ctaBlob1 20s ease-in-out infinite;
  pointer-events: none;
}

.cta::after {
  content: "";
  position: absolute;
  bottom: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(31, 59, 95, 0.2) 0%,
    transparent 60%
  );
  filter: blur(80px);
  animation: ctaBlob2 25s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ctaBlob1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(50px, 30px) scale(1.1);
  }
  66% {
    transform: translate(-30px, -20px) scale(0.95);
  }
}

@keyframes ctaBlob2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-40px, -30px) scale(1.05);
  }
  66% {
    transform: translate(30px, 40px) scale(0.9);
  }
}

.cta__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(31, 166, 182, 0.12) 0%,
    transparent 50%
  );
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.cta__inner {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 0 auto;
}

.cta__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-light);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.cta__text {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--size-body);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.cta__actions {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Enhanced CTA buttons */
.cta .btn--primary {
  background: var(--accent);
  box-shadow:
    0 0 40px rgba(31, 166, 182, 0.3),
    0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta .btn--primary:hover {
  box-shadow:
    0 0 60px rgba(31, 166, 182, 0.4),
    0 15px 40px rgba(0, 0, 0, 0.25);
}

/* ===================================================
   19. FOOTER
   =================================================== */
.footer {
  background: #070f1a;
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__logo {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer__desc {
  font-size: var(--size-sm);
  max-width: 340px;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  color: rgba(255, 255, 255, 0.6);
}

.footer__social a svg {
  width: 18px;
  height: 18px;
}

.footer__social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(31, 166, 182, 0.08);
}

.footer__heading {
  color: var(--text-light);
  font-size: var(--size-sm);
  font-weight: var(--weight-semi);
  margin-bottom: 1.25rem;
}

.footer__links li + li {
  margin-top: 0.75rem;
}
.footer__links a {
  font-size: var(--size-sm);
  transition: color var(--transition-fast);
}
.footer__links a:hover {
  color: var(--accent);
}

.footer__contact p {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--size-sm);
  margin-bottom: 0.75rem;
}

.footer__contact svg {
  color: var(--accent);
  flex-shrink: 0;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2rem;
  text-align: center;
  font-size: var(--size-xs);
}

.footer__slogan {
  margin: 0.55rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--size-sm);
  font-weight: var(--weight-semi);
}

/* ===================================================
   20. REVEAL ANIMATIONS
   =================================================== */
/* [Duplicate reveal removed] */

/* [Duplicate reveal.revealed removed] */

/* Staggered delays */
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-stagger-1 {
  transition-delay: 0s;
}
.reveal-stagger-2 {
  transition-delay: 0.08s;
}
.reveal-stagger-3 {
  transition-delay: 0.16s;
}
.reveal-stagger-4 {
  transition-delay: 0.24s;
}
.reveal-stagger-5 {
  transition-delay: 0.32s;
}
.reveal-stagger-6 {
  transition-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===================================================
   21. RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
  :root {
    --section-spacing: 100px;
    --container-padding: 1.5rem;
  }

  .navbar__actions {
    display: none;
  }

  .hero {
    gap: 30px;
    flex-direction: column-reverse;
  }

  .hero__tagline {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* right: 2rem; */
    padding-top: 0 !important;
    width: 100%;
  }

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

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

  .hero__large-logo {
    width: unset;
  }
  .hero__project-info {
    right: 2rem;
    bottom: 8rem;
  }
  .hero__thumbs {
    left: 2rem;
  }
  .hero__counter {
    left: 2rem;
  }

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

  .story__desc,
  .story__stats {
    max-width: 100%;
  }

  .services__panel-overlay {
    /* display: none; */
    z-index: 0;
  }

  .services__panel {
    min-height: auto;
  }

  .service-item {
    background-color: white;
  }

  .projects__bg {
    top: 0;
    right: 0;
  }

  .advantages-col .advantage-card {
    width: 100%;
  }

  .certifications__text-side {
    top: 0 !important;
  }

  .about__wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about__images-col {
    min-height: auto;
  }
  .about__sticky {
    position: static;
  }
  .about__img--2 {
    margin-top: 0;
  }

  .services__wrapper,
  [dir="rtl"] .services__wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .services__panel {
    position: static;
  }
  .services__text-panel {
    position: static;
    margin-bottom: 2rem;
  }
  .services__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .ceo__split {
    grid-template-columns: 1fr;
  }
  .ceo__visual {
    height: 350px;
  }
  .ceo__accent-bar {
    display: none;
  }
  .advantages__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .statistics__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .certifications__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .navbar__menu {
    display: none;
  }
  .navbar__hamburger {
    display: flex;
  }
}

@media (max-width: 768px) {
  :root {
    --section-spacing: 80px;
  }

  .hero__tagline-text {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
  .hero__tagline {
    position: static;
    transform: none;
    margin: 7rem 1.5rem 0;
    text-align: right;
  }
  .hero__tagline-sub {
    font-size: 0.95rem;
  }
  .hero__scroll {
    bottom: 1.5rem;
  }
  .hero__project-info {
    right: 1.5rem;
    bottom: 7rem;
  }
  .hero__thumbs {
    display: none;
  }
  .hero__counter {
    left: 1.5rem;
    bottom: 2.5rem;
  }

  .services__list {
    grid-template-columns: 1fr;
  }
  .advantages__grid {
    grid-template-columns: 1fr 1fr;
  }
  .statistics__grid {
    grid-template-columns: 1fr 1fr;
  }
  .certifications__grid {
    grid-template-columns: 1fr 1fr;
  }
  .projects__gallery {
    grid-template-columns: 1fr;
  }

  .cert-lightbox__nav {
    width: 40px;
    height: 40px;
  }
  .cert-lightbox__nav--prev {
    left: 0.75rem;
  }
  .cert-lightbox__nav--next {
    right: 0.75rem;
  }

  .project-strip__content {
    right: 2rem;
    bottom: 2rem;
  }

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

  .cta__actions {
    flex-direction: column;
    align-items: center;
  }

  .cursor-dot,
  .cursor-outline {
    display: none !important;
  }
  body {
    cursor: auto;
  }
  a {
    cursor: pointer;
  }
}

@media (max-width: 480px) {
  :root {
    --section-spacing: 64px;
    --container-padding: 1.25rem;
  }

  .hero__tagline-text {
    font-size: 2.5rem;
  }
  .hero__tagline-sub {
    font-size: 0.9rem;
  }
  .hero__project-name {
    font-size: 1.25rem;
  }

  .advantages__grid {
    grid-template-columns: 1fr;
  }
  .statistics__grid {
    grid-template-columns: 1fr 1fr;
  }
  .certifications__grid {
    grid-template-columns: 1fr;
  }
  .projects__gallery {
    grid-template-columns: 1fr;
  }
  .certifications__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===================================================
   REPEATED SHAPE MOTIF
   =================================================== */
.repeated-shape {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.15; /* Increased visibility as requested */
  animation: floatShape 20s ease-in-out infinite;
  mix-blend-mode: overlay;
}

.repeated-shape--hero {
  top: 10%;
  left: 10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
  border-radius: 50%;
  animation-delay: -2s;
  opacity: 0.1;
}

.repeated-shape--services {
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  border-radius: 50%;
  animation-delay: 0s;
}

.repeated-shape--stats {
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  border-radius: 50%;
  animation-delay: -5s;
}

.repeated-shape--footer {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation-delay: -10s;
}

/* Geometric Pattern Overlay */
.repeated-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--accent) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(
    to bottom,
    transparent,
    black 15%,
    black 85%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent,
    black 15%,
    black 85%,
    transparent
  );
}

@keyframes floatShape {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -30px) scale(1.1);
  }
}

/* ===================================================
   HERO LOGO DRAWING ANIMATION
   =================================================== */
/* ===================================================
   HERO LOGO DRAWING ANIMATION
   =================================================== */
/* ===================================================
   HERO LOGO DRAWING ANIMATION
   =================================================== */
/* ===================================================
   HERO LOGO DRAWING ANIMATION
   =================================================== */
/* ===================================================
   HERO LOGO DRAWING ANIMATION
   =================================================== */
.hero__logo-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.hero__logo-svg path {
  /* fill: var(--primary-dark); */
  fill-opacity: 0;

  stroke: var(--primary-dark);
  stroke-width: 1;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000; /* Reverted to positive (draws LTR) */
  stroke-linecap: round;
  stroke-linejoin: round;

  /* &:nth-of-type(3), */
  &:nth-of-type(4),
  &:nth-of-type(5),
  &:nth-of-type(6),
  &:nth-of-type(7),
  &:nth-of-type(8) {
    stroke: var(--accent);
  }

  animation:
    drawStroke 3s ease-out forwards,
    revealFill 1s ease-out 2.5s forwards;
}

/* Logo paths all draw at the same time */
.hero__logo-svg path:nth-child(n + 4) {
  animation-delay: 0s, 2.5s; /* Same timing as other paths */
}

@keyframes drawStroke {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes revealFill {
  to {
    fill-opacity: 1;
    stroke-width: 0;
  }
}

/* ===================================================
   SCROLL REVEAL & MOTION UTILITIES
   =================================================== */
/* [Duplicate reveal removed] */

/* [Duplicate reveal.revealed removed] */

/* Delays for standard flow */
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* Staggered grids (cards) */
.reveal-stagger-1 {
  transition-delay: 0.1s;
}
.reveal-stagger-2 {
  transition-delay: 0.2s;
}
.reveal-stagger-3 {
  transition-delay: 0.3s;
}
.reveal-stagger-4 {
  transition-delay: 0.4s;
}
.reveal-stagger-5 {
  transition-delay: 0.5s;
}
.reveal-stagger-6 {
  transition-delay: 0.6s;
}

/* Parallax Optimization */
[data-speed] {
  will-change: transform;
  /* Ensure JS updates are immediate */
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .repeated-shape {
    animation: none;
  }

  .hero__logo-svg path {
    stroke-dasharray: 0;
    stroke-dashoffset: 0;
    fill: white;
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===================================================
   RESPONSIVE HEADER OVERRIDES
   =================================================== */
@media (max-width: 768px) {
  .navbar__menu,
  .navbar__actions {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
    margin-right: auto;
  }

  .navbar {
    justify-content: space-between;
  }

  .navbar__logo {
    width: 100px;
  }

  .navbar__slogan {
    display: none;
  }
}

/* ===================================================
   INNER PAGES — SHARED COMPONENTS
   =================================================== */

/* --- Page Hero --- */
.page-hero {
  position: relative;
  padding: clamp(8rem, 15vw, 10rem) 0 clamp(3rem, 5vw, 5rem);
  overflow: hidden;
  min-height: 250px;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(14, 26, 43, 0.85) 0%,
    rgba(14, 26, 43, 0.7) 100%
  );
}

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

.page-hero__title {
  font-size: clamp(var(--size-h2), 5vw, var(--size-h1));
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--size-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb__sep {
  opacity: 0.4;
}

.breadcrumb [aria-current="page"] {
  color: var(--text-light);
  font-weight: var(--weight-semi);
}

/* --- Project Hero (project detail) --- */
.project-hero {
  position: relative;
  padding: clamp(10rem, 22vw, 16rem) 0 clamp(4rem, 8vw, 8rem);
  overflow: hidden;
  min-height: 500px;
}

.project-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.project-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(14, 26, 43, 0.5) 0%,
    rgba(14, 26, 43, 0.9) 100%
  );
}

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

.project-hero__content {
  max-width: 700px;
}

.project-hero__badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: var(--size-xs);
  font-weight: var(--weight-semi);
  padding: 0.35rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.project-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--weight-bold);
  color: var(--text-light);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.project-hero__location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--size-body);
  margin-bottom: 2rem;
}

.project-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ===================================================
   CONTACT PAGE
   =================================================== */
.contact-page {
  padding: var(--section-spacing) 0;
  background: white;
}

.contact-page__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-page__info-title,
.contact-page__form-title {
  font-family: var(--font-display);
  font-size: var(--size-h3);
  font-weight: var(--weight-bold);
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.contact-page__info-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-page__info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-page__info-icon {
  width: 48px;
  height: 48px;
  background: rgba(31, 166, 182, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-page__info-item h3 {
  font-size: var(--size-sm);
  font-weight: var(--weight-semi);
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.contact-page__info-item p {
  font-size: var(--size-sm);
  color: var(--text-muted);
}

.contact-page__map {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}

.contact-page__map iframe {
  display: block;
}

/* --- Contact Form --- */
.contact-page__form-wrapper {
  background: var(--bg-card, #f8f9fa);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius-lg, 16px);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
}

.contact-page__form-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form__group {
  margin-bottom: 1.25rem;
}

.contact-form__label {
  display: block;
  font-size: var(--size-sm);
  font-weight: var(--weight-medium);
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.contact-form__input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-display);
  font-size: var(--size-sm);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.12));
  border-radius: var(--radius-sm);
  background: white;
  color: var(--text-dark);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  outline: none;
}

.contact-form__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 166, 182, 0.15);
}

.contact-form__input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.contact-form__textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  padding-left: 2.5rem;
}

[dir="rtl"] .contact-form__select {
  background-position: left 1rem center;
}

.contact-form__submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .contact-page__grid {
    grid-template-columns: 1fr;
  }

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

/* ===================================================
   PROJECTS PORTAL PAGE
   =================================================== */
.projects-portal {
  padding: var(--section-spacing) 0;
  background: #f8f9fa;
}

.projects-portal__filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

/* --- Filter Pills --- */
.filter-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 0.6rem 1.5rem;
  font-family: var(--font-display);
  font-size: var(--size-sm);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  background: #f1f3f5;
  border: 1px solid transparent;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  .filter-pill {
    transition: none;
  }
}

.filter-pill:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(31, 166, 182, 0.08);
}

.filter-pill--active {
  background: var(--primary-dark);
  color: white;
  border-color: var(--primary-dark);
}

.filter-pill--active:hover {
  background: var(--primary-dark);
  color: white;
  border-color: var(--primary-dark);
}

/* --- Filter Select --- */
.filter-select {
  padding: 0.6rem 2.5rem 0.6rem 1.25rem;
  font-family: var(--font-display);
  font-size: var(--size-sm);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.12));
  border-radius: var(--radius-sm);
  background: white;
  color: var(--text-dark);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  cursor: pointer;
  outline: none;
  transition: border-color 0.3s ease;
}

.filter-select:focus {
  border-color: var(--accent);
}

/* --- Portal Grid (more columns possible) --- */
.projects-grid--portal {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* --- Region Tag on cards --- */
.project-card__region-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  /* [Region tag styles consolidated above] */
  color: white;
  font-size: 0.7rem;
  font-weight: var(--weight-semi);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  z-index: 3;
}

[dir="rtl"] .project-card__region-tag {
  left: auto;
  right: 1rem;
}

/* ===================================================
   PROJECT DETAIL PAGE SECTIONS
   =================================================== */

/* --- Units Tabs --- */
.units-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.units-tab {
  padding: 0.6rem 1.5rem;
  font-family: var(--font-display);
  font-size: var(--size-sm);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  background: #f1f3f5;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  .units-tab {
    transition: none;
  }
}

.units-tab--active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* --- Units Grid --- */
.project-units {
  padding: 4rem 0;
  background: white;
}

.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* --- Unit Card --- */
.unit-card {
  background: white;
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
  /* border-radius: var(--radius-md); */
  overflow: hidden;
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
  .unit-card {
    transition: none;
  }
}

.unit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.unit-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.unit-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .unit-card__image img {
    transition: none;
  }
}

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

.unit-card__status {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: var(--weight-semi);
  border-radius: 4px;
  z-index: 2;
}

.unit-card__status--available {
  background: #10b981;
  color: white;
}

.unit-card__status--sold {
  background: #ef4444;
  color: white;
}

.unit-card__body {
  padding: 1.25rem;
}

.unit-card__title {
  font-family: var(--font-display);
  font-size: var(--size-body);
  font-weight: var(--weight-bold);
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.unit-card__specs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.unit-card__spec {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--size-xs);
  color: var(--text-muted);
}

.unit-card__spec svg {
  color: var(--accent);
}

.unit-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: var(--size-sm);
}

.unit-card__price span {
  color: var(--text-muted);
}

.unit-card__price strong {
  color: var(--accent);
  font-size: var(--size-body);
}

.unit-card__btn {
  width: 100%;
  text-align: center;
}

/* --- Project Info Table --- */
.project-info {
  padding: 4rem 0;
  background: #f9fafb;
}

.info-table {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
  border-radius: var(--radius-md);
  overflow: hidden;
  background: white;
}

.info-table__row {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
}

.project-specs {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.project-specs th,
.project-specs td {
  padding: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  text-align: right;
}

.project-specs th {
  color: var(--text-muted);
  font-weight: var(--weight-medium);
  width: 40%;
}

.project-specs td {
  color: var(--text-dark);
  font-weight: var(--weight-semi);
}
.info-table__row:last-child {
  border-bottom: none;
}

.info-table__label {
  color: var(--text-muted);
  font-size: var(--size-sm);
}

.info-table__value {
  font-weight: var(--weight-semi);
  color: var(--text-dark);
  font-size: var(--size-sm);
}

/* --- Nearby --- */
.project-nearby {
  padding: 4rem 0;
  background: white;
}

.nearby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.5rem;
}

.nearby-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
  font-size: var(--size-sm);
  color: var(--text-dark);
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  .nearby-item {
    transition: none;
  }
}

.nearby-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.nearby-item__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 166, 182, 0.1);
  border-radius: 50%;
  color: var(--accent);
}

.nearby-item span {
  font-size: var(--size-sm);
  color: var(--text-dark);
}

/* --- Features Grid --- */
.project-features {
  padding: var(--section-spacing) 0;
  background: #f9fafb;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.5rem;
}

.feature-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
  font-size: var(--size-sm);
  color: var(--text-dark);
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  .feature-item {
    transition: none;
  }
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.feature-item__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 166, 182, 0.1);
  border-radius: 50%;
  color: var(--accent);
}

/* --- Guarantees --- */
.project-guarantees {
  padding: var(--section-spacing) 0;
  background: white;
}

.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}

.guarantee-item {
  text-align: center;
  padding: 2rem 1rem;
  background: #f9fafb;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
}

.guarantee-item__icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 166, 182, 0.1);
  border-radius: 50%;
  color: var(--accent);
  margin-bottom: 1rem;
}

.guarantee-item h3 {
  font-size: var(--size-sm);
  font-weight: var(--weight-semi);
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.guarantee-item p {
  font-size: var(--size-xs);
  color: var(--text-muted);
}

/* --- Gallery Grid --- */
.project-gallery {
  padding: var(--section-spacing) 0;
  background: var(--primary-dark);
}

.project-gallery .section-heading {
  color: var(--text-light);
}

.project-gallery .section-eyebrow {
  color: rgba(31, 166, 182, 0.9);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-grid__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.gallery-grid__item--wide {
  grid-column: span 2;
}

.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .gallery-grid__item img {
    transition: none;
  }
}

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

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

  .gallery-grid__item--wide {
    grid-column: span 1;
  }
}

/* --- Project CTA --- */
.project-cta {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: linear-gradient(135deg, var(--primary-dark), #0a1628);
  text-align: center;
}

.project-cta__inner h2 {
  font-family: var(--font-display);
  font-size: var(--size-h2);
  font-weight: var(--weight-bold);
  color: var(--text-light);
  margin-bottom: 1rem;
}

.project-cta__inner p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--size-body);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-inline: auto;
}

.project-cta__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===================================================
   UNIT DETAIL PAGE
   =================================================== */

/* --- Unit Header (breadcrumb) --- */
.unit-header {
  padding: clamp(8rem, 14vw, 10rem) 0 2rem;
  background: var(--primary-dark);
}

.unit-header .breadcrumb {
  margin-bottom: 0;
}

/* --- Unit Showcase --- */
.unit-showcase {
  padding: clamp(2rem, 4vw, 4rem) 0 var(--section-spacing);
  background: white;
}

.unit-showcase__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.unit-showcase__main-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.unit-showcase__main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
  .unit-showcase__main-image img {
    transition: none;
  }
}

.unit-showcase__thumbs {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.unit-showcase__thumb {
  width: 80px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.3s ease;
  padding: 0;
  background: none;
}

@media (prefers-reduced-motion: reduce) {
  .unit-showcase__thumb {
    transition: none;
  }
}

.unit-showcase__thumb--active {
  border-color: var(--accent);
}

.unit-showcase__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Unit Info Sidebar --- */
.unit-showcase__info {
  position: sticky;
  top: 120px;
}

.unit-showcase__developer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
  margin-bottom: 1.5rem;
}

.unit-showcase__dev-label {
  display: block;
  font-size: var(--size-xs);
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.unit-showcase__developer strong {
  font-size: var(--size-sm);
  color: var(--text-dark);
}

.unit-showcase__title {
  font-family: var(--font-display);
  font-size: var(--size-h2);
  font-weight: var(--weight-bold);
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.unit-showcase__project-link {
  font-size: var(--size-sm);
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.unit-showcase__project-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: var(--weight-medium);
}

.unit-showcase__project-link a:hover {
  text-decoration: underline;
}

.unit-showcase__price-block {
  padding: 1.5rem;
  background: rgba(31, 166, 182, 0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 166, 182, 0.15);
  margin-bottom: 1.5rem;
}

.unit-showcase__price-label {
  display: block;
  font-size: var(--size-xs);
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.unit-showcase__price {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--weight-bold);
  color: var(--accent);
}

.unit-showcase__price span {
  font-size: var(--size-sm);
  font-weight: var(--weight-medium);
}

.unit-showcase__cta {
  display: flex;
  gap: 0.75rem;
}

.unit-showcase__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: var(--size-sm);
}

@media (max-width: 768px) {
  .unit-showcase__grid {
    grid-template-columns: 1fr;
  }

  .unit-showcase__info {
    position: static;
  }
}

/* --- Key Info Grid --- */
.unit-key-info {
  padding: var(--section-spacing) 0;
  background: #f9fafb;
}

.key-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.key-info-item {
  padding: 1.25rem;
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
  opacity: 1;
  transform: none;
  transition: box-shadow 0.3s ease;
}

.key-info-item:nth-child(1) {
  transition-delay: 0.1s;
}
.key-info-item:nth-child(2) {
  transition-delay: 0.15s;
}
.key-info-item:nth-child(3) {
  transition-delay: 0.2s;
}
.key-info-item:nth-child(4) {
  transition-delay: 0.25s;
}
.key-info-item:nth-child(5) {
  transition-delay: 0.3s;
}
.key-info-item:nth-child(6) {
  transition-delay: 0.35s;
}

@media (prefers-reduced-motion: reduce) {
  .key-info-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.key-info-item__label {
  display: block;
  font-size: var(--size-xs);
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.key-info-item__value {
  font-size: var(--size-body);
  color: var(--text-dark);
  font-weight: var(--weight-semi);
}

/* --- Unit Description --- */
.unit-description {
  padding: var(--section-spacing) 0;
  background: white;
}

.unit-description__content {
  max-width: 800px;
}

.unit-description__content p {
  font-size: var(--size-body);
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.unit-description__content p:last-child {
  margin-bottom: 0;
}

/* --- Unit Services --- */
.unit-services {
  padding: 4rem 0;
  background: white;
}

.services-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
}

.service-icon-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
  font-size: var(--size-sm);
  color: var(--text-dark);
}

.service-icon-item__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 166, 182, 0.1);
  border-radius: 50%;
  color: var(--accent);
  flex-shrink: 0;
}

/* --- Unit Map --- */
.unit-map {
  padding: 4rem 0;
  background: #f8f9fa;
}

.unit-map__wrapper {
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}

.unit-map__wrapper iframe {
  display: block;
}

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

/* --- Active link --- */
.navbar__link--active {
  color: var(--accent) !important;
}

/* ===================================================
   PHASE 3 VISUAL FIXES
   =================================================== */

/* 1. Masked Reveal - Emerge from Sidebar */
.section-title-block__text {
  overflow: hidden;
  position: relative;
}

/* Initial State */
.section-title-block .section-title-block__bar {
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s ease;
}
.section-title-block.reveal .section-heading,
.section-title-block.reveal .section-eyebrow {
  opacity: 0;
  transform: translateX(100%); /* Start from right (behind bar in RTL) */
  will-change: transform, opacity;
}

/* Revealed State */
.section-title-block.revealed .section-title-block__bar {
  transform: scaleY(1);
}

.section-title-block.revealed .section-heading,
.section-title-block.revealed .section-eyebrow {
  animation: maskedSlideOut 1s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

.section-title-block.revealed .section-eyebrow {
  animation-delay: 0.2s;
}

@keyframes maskedSlideOut {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 2. Inner Header Fixes */
.page-hero {
  padding-top: clamp(8rem, 15vw, 10rem) !important;
  min-height: 200px !important;
  padding-bottom: 2rem !important;
}

/* 3. About Section Image Width */
.story__container {
  grid-template-columns: 1fr 1fr;
}
.story__img-wrapper {
  width: 100% !important;
  max-width: 100% !important;
}
/* Ensure visual side takes full width of its column */
.story__visual {
  /* width: 100% !important; */
}

/* 4. CEO Section Fixes */
.ceo__accent-bar {
  display: none !important;
}
.brand-shape--ceo {
  left: auto !important;
  right: -5% !important;
  top: 10% !important;
}

/* 5. Certificates & Partners */
.certifications__text-side {
  position: sticky;
  top: 120px; /* Adjusted for header height */
  align-self: start;
  height: 100%;
  z-index: 5;
}

/* Vertical Cards */
.certificate-card {
  aspect-ratio: 0.7 !important; /* Taller vertical */
}

/* Remove Hover Delay */
.certificate-card:hover,
.partner-card:hover {
  transition-delay: 0s !important;
}
.partner-card__figure img {
  transition-delay: 0s !important;
}

/* Fix Hero Layer Images z-index if issues */
.hero__slide-layers {
  z-index: 0;
}

/* ===================================================
   PHASE 4: VISUAL OVERHAUL & ANIMATION
   =================================================== */

/* 1. Project Cards Animation Fixes */
.project-portal-card {
  opacity: 0;
  transform: translateY(30px) rotateX(5deg);
  transition:
    transform 0.8s cubic-bezier(0.2, 1, 0.3, 1),
    opacity 0.8s ease-out,
    box-shadow 0.4s ease;
  will-change: transform, opacity;
}

.project-portal-card.revealed {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

.project-portal-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1); /* Smoother zoom */
}

/* 2. Inner Header Height Reduction */
.project-hero,
.unit-header {
  padding-top: clamp(6rem, 10vw, 8rem) !important;
  padding-bottom: 2rem !important;
  min-height: auto !important;
}
.project-hero__content {
  padding-bottom: 2rem;
}

/* 3. About Section Image Fix */
.story__img-wrapper {
  height: auto !important;
  aspect-ratio: 16/10 !important; /* Widescreen ratio */
}
.story__img-wrapper img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}
/* Delay image reveal */
.story__visual.revealed .story__img-wrapper {
  transition-delay: 0.4s;
}

/* 4. Certificates & Partners Layout */
.certifications__grid,
.partners__grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  gap: 1.5rem;
}

.certificate-card {
  aspect-ratio: 2/3 !important; /* Taller Portrait */
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Text at bottom */
}

/* 5. Near By & Services Cards (Enlarged + Icon Top) */
.nearby-grid,
.services-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 2rem;
}

.nearby-item,
.service-icon-item {
  display: flex;
  flex-direction: column !important; /* Force Column */
  align-items: center;
  text-align: center;
  background: white;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.nearby-item:hover,
.service-icon-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* 6. CTA Section Background & Pattern */
.project-cta,
.cta-section {
  background-color: #0f1c2e !important; /* Darker Blue */
  position: relative;
  overflow: hidden;
}
.project-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.828-1.415 1.415-.828-.828-.828.828-1.415-1.415.828-.828-.828-.828 1.415-1.415.828.828.828-.828 1.415 1.415-.828.828zM22.485 0l.83.828-1.415 1.415-.828-.828-.828.828-1.415-1.415.828-.828-.828-.828 1.415-1.415.828.828.828-.828 1.415 1.415-.828.828zM0 22.485l.828.83-1.415 1.415-.828-.828-.828.828L-3.658 22.485l.828-.828-.828-.828 1.415-1.415.828.828.828-.828 1.415 1.415-.828.828zM0 54.627l.828.83-1.415 1.415-.828-.828-.828.828L-3.658 54.627l.828-.828-.828-.828 1.415-1.415.828.828.828-.828 1.415 1.415-.828.828zM54.627 60l.83.828-1.415 1.415-.828-.828-.828.828-1.415-1.415.828-.828-.828-.828 1.415-1.415.828.828.828-.828 1.415 1.415-.828.828zM22.485 60l.83.828-1.415 1.415-.828-.828-.828.828-1.415-1.415.828-.828-.828-.828 1.415-1.415.828.828.828-.828 1.415 1.415-.828.828z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* 7. Project Gallery Slider (Single Slide + Dots) */
.project-slider,
.project-gallery-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16/9;
  background: #f5f5f5;
}

.footer__social-link {
  font-weight: 700;
  text-transform: uppercase;
}

.footer__inline-link {
  color: inherit;
  transition: color var(--transition-fast);
}

.footer__inline-link:hover {
  color: var(--accent);
}

.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: 1;
}
.gallery-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer; /* Lightbox trigger */
}

/* Dots Navigation */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
}
.slider-dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

/* Gallery Navigation Buttons */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  color: var(--text-dark);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: var(--shadow-md);
}

.gallery-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-lg);
}

.gallery-nav--prev {
  right: 1rem;
}

.gallery-nav--next {
  left: 1rem;
}

@media (max-width: 768px) {
  .gallery-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .gallery-nav--prev {
    right: 0.5rem;
  }

  .gallery-nav--next {
    left: 0.5rem;
  }
}

/* 8. Footer Gap Fix */
html,
body {
  margin: 0;
  padding: 0;
  height: auto;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1 0 auto;
}
.footer {
  flex-shrink: 0;
  position: relative;
}

/* ===================================================
   PHASE 5: FINAL FIXES (Animations, Gallery, Cards)
   =================================================== */

/* 1. Fix Animation Glitches & Sudden Appearance */
/* Force initial state for all reveal elements, including specific cards */
.reveal,
.section-title-block.reveal,
.project-card.reveal,
.cert-card.reveal,
.partner-card.reveal,
.service-item.reveal,
.advantage-card.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Revealed state */
.reveal.revealed,
.section-title-block.reveal.revealed,
.project-card.reveal.revealed,
.cert-card.reveal.revealed,
.partner-card.reveal.revealed,
.service-item.reveal.revealed,
.advantage-card.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Remove 3D Transforms that cause Glitches */
.project-portal-card,
.project-card,
.nearby-item {
  transform: none !important;
}

/* Cert and Partner cards - use only reveal animation, no 3D tilt */
.cert-card.reveal,
.partner-card.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.cert-card.reveal.revealed,
.partner-card.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Re-apply Hover Effects (Translate Y only) */
.project-card:hover,
.cert-card:hover,
.partner-card:hover,
.nearby-item:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--shadow-lg);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* 2. Project Gallery Adjustments */
.project-slider,
.project-gallery-slider {
  aspect-ratio: 2.35/1 !important; /* Shorter/Cinematic */
  background: #ffffff !important; /* White background */
  max-width: 1000px; /* Optional: limit width if "smaller" meant overall size */
  margin: 0 auto; /* Center if max-width used */
}

/* 3. Near By Cards (Match Project Features) */
.nearby-item {
  /* Reset previous styles if needed */
  flex-direction: column !important;
  align-items: center !important; /* Right align (RTL) */
  text-align: right !important;
  padding: 2rem !important;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

/* 4. Certificates Card Opacity Fix specifically */
.cert-card {
  opacity: 0; /* Fallback if reveal class missing from CSS */
}
.cert-card.revealed {
  opacity: 1;
}

/* 5. Heading Reveal Mask Fix for Inner Pages */
/* Ensure the mask structure works if .reveal is added */
.section-title-block.reveal {
  opacity: 0;
  transform: translateY(30px);
  overflow: hidden;
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.section-title-block.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* The bar animation */
.section-title-block.reveal .section-title-block__bar {
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.8s ease-out 0.2s;
}

[dir="rtl"] .section-title-block.reveal .section-title-block__bar {
  transform-origin: left;
}

.section-title-block.reveal.revealed .section-title-block__bar {
  transform: scaleX(1);
}

/* ===================================================
   UNIT GALLERY GRID (3 images max with +X overlay)
   =================================================== */
.unit-gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 6px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 500px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.unit-gallery-grid__small {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.unit-gallery-grid__large {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.unit-gallery-grid__small .unit-gallery-item {
  flex: 1;
  min-height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: auto;
}

.unit-gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  min-width: 0;
  height: 100%;
  border-radius: var(--radius-lg);
}

.unit-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
  min-width: 0;
  min-height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.unit-gallery-item:hover img {
  transform: scale(1.05);
}

/* Overlay for "+X more images" */
.unit-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 26, 43, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.3s ease;
  border-radius: var(--radius-lg);
}

.unit-gallery-item:hover .unit-gallery-overlay {
  background: rgba(14, 26, 43, 0.75);
}

.unit-gallery-overlay__count {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: var(--weight-bold);
  color: #fff;
  line-height: 1;
}

.unit-gallery-overlay__text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Badges on main image */
.unit-gallery-badges {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.unit-gallery-badge {
  padding: 0.4rem 1rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: var(--weight-medium);
  border-radius: var(--radius-sm);
}

.unit-gallery-badge--dark {
  background: var(--primary-dark);
}

/* Responsive */
@media (max-width: 768px) {
  .unit-gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 200px 150px;
  }

  .unit-gallery-grid__small {
    flex-direction: row;
    order: 2;
  }

  .unit-gallery-grid__large {
    order: 1;
  }

  .unit-gallery-grid__large .unit-gallery-item {
    aspect-ratio: 16/9;
  }
}

/* ===================================================
   LIGHTBOX (Full-screen Image Viewer)
   =================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}

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

.lightbox__slide {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__slide img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
  z-index: 10;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
  z-index: 10;
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.lightbox__nav--prev {
  right: 1.5rem;
}

.lightbox__nav--next {
  left: 1.5rem;
}

.lightbox__dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 10;
}

.lightbox__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lightbox__dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.lightbox__dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

/* Lightbox Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .lightbox,
  .lightbox__close,
  .lightbox__nav,
  .lightbox__dot,
  .unit-gallery-item img {
    transition: none;
  }
}

/* Lightbox Responsive */
@media (max-width: 768px) {
  .lightbox__close {
    top: 1rem;
    left: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .lightbox__nav {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }

  .lightbox__nav--prev {
    right: 0.75rem;
  }

  .lightbox__nav--next {
    left: 0.75rem;
  }

  .lightbox__dots {
    bottom: 1.5rem;
  }

  .lightbox__dot {
    width: 10px;
    height: 10px;
  }
}

/* ===================================================
   UNIT PAGE - REDESIGNED LAYOUT
   =================================================== */

/* Breadcrumb */
.unit-breadcrumb {
  padding: 1rem 0;
  background: white;
  border-bottom: 1px solid var(--border-light);
  margin-top: 0;
}

.unit-breadcrumb .breadcrumb {
  margin: 0;
}

/* Content Grid */
.unit-content {
  padding: 3rem 0;
  background: #f8f9fa;
  overflow: hidden;
}

/* Gallery inside container */
.unit-content .unit-gallery-grid {
  margin-bottom: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Gallery fade animation */
.unit-gallery-item {
  opacity: 0;
  animation: galleryFadeIn 0.6s ease forwards;
}

.unit-gallery-grid__large .unit-gallery-item {
  animation-delay: 0s;
}

.unit-gallery-grid__small .unit-gallery-item:nth-child(1) {
  animation-delay: 0.15s;
}

.unit-gallery-grid__small .unit-gallery-item:nth-child(2) {
  animation-delay: 0.3s;
}

@keyframes galleryFadeIn {
  from {
    opacity: 0;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .unit-gallery-item {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Grid: المعلومات على اليمين، التواصل على اليسار (RTL) */
.unit-content__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Sidebar (Left in RTL = Contact & Developer) */
.unit-content__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 100px;
}

.unit-contact-box {
  background: white;
  border-radius: var(--radius-sm);
  padding: 2rem;
  border: 1px solid var(--border-light);
}

.unit-contact-box__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: var(--weight-bold);
  color: var(--text-dark);
  margin: 0 0 0.5rem;
}

.unit-contact-box__project {
  color: var(--text-muted);
  font-size: var(--size-sm);
  margin: 0 0 1.5rem;
}

.unit-contact-box__project a {
  color: var(--accent);
  text-decoration: none;
}

.unit-contact-box__price {
  background: rgb(240, 241, 244);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.unit-contact-box__price span {
  display: block;
  font-size: var(--size-sm);
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.unit-contact-box__price strong {
  /* font-family: var(--font-display); */
  font-size: 1.5rem;
  color: var(--text-dark);
}

.unit-contact-box__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.unit-contact-box__actions .btn {
  justify-content: center;
}

.unit-developer-box {
  background: white;
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border-light);
}

.unit-developer-box img {
  flex-shrink: 0;
}

.unit-developer-box span {
  display: block;
  font-size: var(--size-xs);
  color: var(--text-muted);
}

.unit-developer-box strong {
  display: block;
  font-size: var(--size-sm);
  color: var(--text-dark);
}

/* Main Content (Right - Info & Description) */
.unit-content__main {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.unit-key-info {
  background: white;
  border-radius: var(--radius-sm);
  padding: 2rem;
  border: 1px solid var(--border-light);
}

.unit-key-info .key-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.unit-description {
  background: white;
  border-radius: var(--radius-sm);
  padding: 2rem;
  border: 1px solid var(--border-light);
}

.unit-description__content {
  margin-top: 1.5rem;
}

.unit-description__content p {
  color: var(--text-body);
  line-height: 1.9;
  margin: 0 0 1rem;
}

.unit-description__content p:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .unit-content__grid {
    grid-template-columns: 1fr;
  }

  .unit-content__sidebar {
    position: static;
    order: 2;
  }

  .unit-content__main {
    order: 1;
  }

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

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

/* ===================================================
   AUCTIONS PAGE
   =================================================== */

/* Auctions Portal */
.auctions-portal {
  padding: 4rem 0;
  background: #f8f9fa;
}

.auctions-portal__filters {
  margin-bottom: 2rem;
}

.auctions-portal__filters-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-label {
  font-size: var(--size-sm);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
}

/* Auctions Grid */
.auctions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

/* Auction Card */
.auction-card {
  background: white;
  /* border-radius: var(--radius-lg); */
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.auction-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.auction-card__image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.auction-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.auction-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 22, 34, 0.7) 0%, transparent 50%);
}

.auction-card__status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: var(--weight-medium);
  z-index: 2;
}

.auction-card__status--active {
  background: #10b981;
  color: white;
}

.auction-card__status--upcoming {
  background: #f59e0b;
  color: white;
}

.auction-card__status--ended {
  background: #6b7280;
  color: white;
}

.auction-card__content {
  padding: 1.5rem;
}

.auction-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--weight-bold);
  color: var(--text-dark);
  margin: 0 0 0.5rem;
}

.auction-card__location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: var(--size-sm);
  margin: 0 0 1rem;
}

.auction-card__countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 1rem;
  background: rgb(240, 241, 244);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.auction-card__countdown--ended {
  background: #fee2e2;
}

.countdown__ended {
  color: #dc2626;
  font-weight: var(--weight-bold);
  font-size: var(--size-sm);
}

.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 45px;
}

.countdown__number {
  /* font-family: var(--font-display); */
  font-size: 1.5rem;
  font-weight: var(--weight-bold);
  color: var(--primary-dark);
  line-height: 1;
}

.countdown__label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.countdown__separator {
  font-size: 1.25rem;
  color: var(--text-muted);
  align-self: flex-start;
  margin-top: 0.25rem;
}

.auction-card__price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1rem;
}

.auction-card__price span {
  color: var(--text-muted);
  font-size: var(--size-sm);
}

.auction-card__price strong {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--accent);
}

.auction-card__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem;
  background: var(--primary-dark);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: var(--weight-medium);
  transition: background 0.3s ease;
}

.auction-card__link:hover {
  background: var(--accent);
}

/* ===================================================
   TERMS PAGE
   =================================================== */
.terms-page {
  padding: 5rem 0;
}

.terms-page__container {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr 1fr;
}

.terms-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.terms-card h2 {
  margin: 0 0 0.8rem;
  color: var(--primary-dark);
}

.terms-card h3 {
  margin: 1.1rem 0 0.45rem;
  color: #16354b;
  font-size: 1rem;
}

.terms-card p,
.terms-card li {
  color: var(--text-muted);
  line-height: 1.9;
}

.terms-card ul {
  margin: 0;
  padding: 0 1rem 0 0;
}

/* ===================================================
   NEWS
   =================================================== */
.news-home {
  padding: 4rem 0;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.news-home__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.news-home__controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.news-home__controls .btn {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff;
  font-weight: 600;
}

.news-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: #fff;
  color: var(--accent);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.news-nav-btn:hover,
.news-nav-btn:focus-visible {
  background: var(--accent);
  color: #fff;
}

.news-slider {
  margin-top: 1rem;
  overflow: hidden;
}

.news-slider__track {
  --news-cards-per-page: 3;
  --news-gap: 1rem;
  display: flex;
  gap: var(--news-gap);
  transition: transform 0.45s ease;
  will-change: transform;
}

.news-slider__card {
  flex: 0 0
    calc(
      (100% - (var(--news-gap) * (var(--news-cards-per-page) - 1))) /
        var(--news-cards-per-page)
    );
  opacity: 1;
}

html[dir="rtl"] .news-slider__card {
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] .news-slider__card {
  direction: ltr;
  text-align: left;
}

.news-slider__card[aria-hidden="true"] {
  opacity: 0.96;
}

.news-slider__track.is-animating {
  transition: transform 0.45s ease;
}

.news-slider__track.is-static {
  transition: none;
}

.news-slider__dots {
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.news-slider__dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: #c5d7df;
  cursor: pointer;
  padding: 0;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.news-slider__dot:hover,
.news-slider__dot:focus-visible {
  background: #8fbfca;
}

.news-slider__dot.news-slider__dot--active {
  width: 24px;
  background: var(--accent);
}

.news-page__grid {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.news-home__viewport {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.news-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  /* box-shadow: 0 14px 36px rgba(9, 22, 34, 0.08); */
}

.news-card__image-wrap {
  display: block;
  aspect-ratio: 16 / 10;
}

.news-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__body {
  padding: 1rem;
}

.news-card__title {
  margin: 0;
  font-size: 1.2rem;
}

.news-card__title a {
  color: var(--primary-dark);
}

.news-card__excerpt {
  margin: 0.8rem 0 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.news-card__footer {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.news-card__date {
  color: var(--accent);
  font-weight: 600;
}

.news-detail {
  padding: 3rem 0 4rem;
}

.news-detail__hero {
  margin-top: 1rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.news-detail__hero img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.news-detail__content {
  margin-top: 1.2rem;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.2rem;
}

.news-detail__meta {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.news-detail__text {
  line-height: 2;
  color: var(--text-body);
  white-space: pre-line;
}

.news-detail__pager {
  margin-top: 1.1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
}

@media (prefers-reduced-motion: reduce) {
  .news-slider__track,
  .news-slider__track.is-animating {
    transition: none;
  }
}

@media (max-width: 900px) {
  .news-home__head {
    flex-wrap: wrap;
  }

  .news-home__controls {
    width: 100%;
  }

  .news-slider__track {
    --news-cards-per-page: 1;
  }

  .news-home__viewport {
    grid-template-columns: 1fr;
  }

  .news-page__grid {
    grid-template-columns: 1fr;
  }

  .terms-page__container {
    grid-template-columns: 1fr;
  }

  .terms-page {
    padding: 3rem 0;
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .news-slider__track {
    --news-cards-per-page: 2;
  }
}

/* ===================================================
   AUCTION DETAIL PAGE
   =================================================== */

/* Breadcrumb */
.auction-breadcrumb {
  padding: 1rem 0;
  background: white;
  border-bottom: 1px solid var(--border-light);
}

/* Content Grid */
.auction-content {
  padding: 3rem 0;
  background: #f8f9fa;
  overflow: hidden;
}

.auction-content .unit-gallery-grid {
  margin-bottom: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.auction-content__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.auction-detail-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
}

.auction-detail-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.auction-detail-table th,
.auction-detail-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-light);
  text-align: right;
  font-size: 0.9rem;
}

.auction-detail-table th {
  color: var(--text-dark);
  background: #f8fbff;
  font-weight: 600;
}

/* Auction Info */
.auction-info {
  background: white;
  border-radius: var(--radius-sm);
  padding: 2rem;
  border: 1px solid var(--border-light);
}

.auction-info__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.auction-info__item {
  padding: 1rem;
  background: rgb(240, 241, 244);
  border-radius: var(--radius-sm);
}

.auction-info__label {
  display: block;
  font-size: var(--size-xs);
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.auction-info__value {
  display: block;
  font-size: var(--size-body);
  color: var(--text-dark);
  font-weight: var(--weight-semi);
}

/* Auction Specs */
.auction-specs {
  background: white;
  border-radius: var(--radius-sm);
  padding: 2rem;
  border: 1px solid var(--border-light);
  margin-top: 2rem;
}

.auction-specs__content {
  margin-top: 1.5rem;
}

/* Auction Description */
.auction-description {
  background: white;
  border-radius: var(--radius-sm);
  padding: 2rem;
  border: 1px solid var(--border-light);
  margin-top: 2rem;
}

.auction-description__content {
  margin-top: 1.5rem;
}

.auction-description__content p {
  color: var(--text-body);
  line-height: 1.9;
  margin: 0 0 1rem;
}

.auction-description__content p:last-child {
  margin-bottom: 0;
}

/* Sidebar */
.auction-content__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 100px;
}

/* Register Box */
.auction-register-box {
  background: white;
  border-radius: var(--radius-sm);
  padding: 2rem;
  border: 1px solid var(--border-light);
}

.auction-countdown {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auction-countdown__label {
  font-size: var(--size-sm);
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.auction-countdown__numbers {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.25rem;
}

.auction-countdown .countdown__number {
  font-size: 2rem;
  color: var(--accent);
}

.auction-register-box__price {
  background: rgb(240, 241, 244);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.auction-register-box__price span {
  display: block;
  font-size: var(--size-sm);
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.auction-register-box__price strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-dark);
}

.auction-register-box__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auction-register-box__actions .btn {
  justify-content: center;
}

/* Developer Box */
.auction-developer-box {
  background: white;
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border-light);
}

.auction-developer-box img {
  flex-shrink: 0;
}

.auction-developer-box span {
  display: block;
  font-size: var(--size-xs);
  color: var(--text-muted);
}

.auction-developer-box strong {
  display: block;
  font-size: var(--size-sm);
  color: var(--text-dark);
}

/* Responsive */
@media (max-width: 992px) {
  .auction-content__grid {
    grid-template-columns: 1fr;
  }

  .auction-content__sidebar {
    position: static;
    order: 2;
  }

  .auction-content__main {
    order: 1;
  }

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

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

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

  .auction-countdown .countdown__number {
    font-size: 1.5rem;
  }
}

.countdown__meta {
  width: 100%;
  text-align: center;
  font-size: var(--size-xs);
  font-weight: var(--weight-semi);
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.contact-form__feedback {
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: var(--size-sm);
}

.contact-form__feedback--success {
  background: rgba(21, 128, 61, 0.1);
  border: 1px solid rgba(21, 128, 61, 0.35);
  color: #166534;
}

.contact-form__feedback--error {
  background: rgba(185, 28, 28, 0.08);
  border: 1px solid rgba(185, 28, 28, 0.35);
  color: #991b1b;
}

.footer__social a {
  width: 40px;
  min-width: 40px;
  padding: 0;
}

.footer__social a span {
  font-size: 0.75rem;
  white-space: nowrap;
}

.project-interest {
  padding: 40px 0 0;
}

.project-interest .contact-form {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
}

.interest-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.interest-modal.modal--open {
  display: flex;
}

.interest-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 22, 34, 0.68);
}

.interest-modal__dialog {
  position: relative;
  width: min(100%, 680px);
  max-height: 90vh;
  overflow: auto;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.interest-modal__close {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-dark);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.interest-modal__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: var(--size-h4);
}

.interest-modal__subtitle {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.interest-modal .contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .interest-modal .contact-form__grid {
    grid-template-columns: 1fr;
  }
}
