/* ============================================
   GDR Desarrollos Inmobiliarios — Design System
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100;200;300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  /* Colors */
  --color-primary: #0a1628;
  --color-primary-light: #132240;
  --color-primary-dark: #060e1a;
  --color-accent: #c9a84c;
  --color-accent-light: #d4b96a;
  --color-accent-dark: #a88b3a;
  --color-white: #ffffff;
  --color-gray-50: #f8f9fa;
  --color-gray-100: #f0f1f3;
  --color-gray-200: #e1e3e6;
  --color-gray-300: #c4c8cd;
  --color-gray-400: #8a909a;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-overlay: rgba(10, 22, 40, 0.7);
  --color-overlay-light: rgba(10, 22, 40, 0.4);

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --fs-hero: clamp(2.5rem, 5vw, 4.5rem);
  --fs-h1: clamp(2rem, 4vw, 3.5rem);
  --fs-h2: clamp(1.5rem, 3vw, 2.5rem);
  --fs-h3: clamp(1.2rem, 2vw, 1.75rem);
  --fs-h4: clamp(1rem, 1.5vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;

  /* Borders & Shadows */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.2);
  --shadow-gold: 0 4px 20px rgba(201, 168, 76, 0.3);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-slower: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-gray-700);
  background-color: var(--color-white);
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-4xl) 0;
}

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

.section--gray {
  background-color: var(--color-gray-50);
}

.section--accent {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
}

.section--dark h1, .section--dark h2, .section--dark h3,
.section--dark h4, .section--dark h5, .section--dark h6,
.section--accent h1, .section--accent h2, .section--accent h3 {
  color: var(--color-white);
}

.section-label {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  display: block;
}

.section-title {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: var(--fs-body);
  color: var(--color-gray-500);
  max-width: 600px;
  line-height: 1.8;
}

.section--dark .section-subtitle,
.section--accent .section-subtitle {
  color: var(--color-gray-300);
}

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

.text-center .section-subtitle {
  margin: 0 auto;
}

.text-accent {
  color: var(--color-accent);
}

.text-outline {
  font-family: var(--font-display);
  font-weight: 800;
  -webkit-text-stroke: 2px var(--color-accent);
  color: transparent;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: var(--color-primary);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201, 168, 76, 0.4);
}

/* ── Custom Grids ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.value-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  text-align: center;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(201, 168, 76, 0.3);
}

.value-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  display: inline-block;
}

.value-card__title {
  color: var(--color-white);
  font-size: var(--fs-h4);
  margin-bottom: var(--space-sm);
}

.value-card__text {
  color: var(--color-gray-400);
  font-size: var(--fs-small);
  line-height: 1.6;
}

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

.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-primary);
  transform: translateY(-2px);
}

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

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

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
}

.header--scrolled {
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

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

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  z-index: 1001;
}

.header__logo img {
  height: 45px;
  width: auto;
}

.header__logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.header__logo-text span {
  color: var(--color-accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__list {
  display: flex;
  gap: var(--space-lg);
}

.nav__link {
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  padding: var(--space-xs) 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

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

.nav__link:hover,
.nav__link--active {
  color: var(--color-accent);
}

.header__contact {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header__phone {
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-white);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

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

.header__socials {
  display: flex;
  gap: var(--space-sm);
}

.header__socials a {
  color: var(--color-white);
  font-size: 1rem;
  transition: color var(--transition-fast);
}

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

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
  padding: 5px;
}

.hamburger span {
  width: 28px;
  height: 2px;
  background: var(--color-white);
  transition: all var(--transition-base);
  display: block;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

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

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(10, 22, 40, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  transition: right var(--transition-slow);
  z-index: 999;
}

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

.mobile-nav a {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 3px;
  transition: color var(--transition-fast);
}

.mobile-nav a:hover,
.mobile-nav a.nav__link--active {
  color: var(--color-accent);
}

/* ── Hero (Video Background) ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero__video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 22, 40, 0.85) 0%,
    rgba(10, 22, 40, 0.5) 50%,
    rgba(10, 22, 40, 0.7) 100%
  );
  z-index: -1;
}

.hero__content {
  max-width: 800px;
}

.hero__label {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hero__label::before {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--color-accent);
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

.hero__title span {
  display: block;
}

.hero__title .outline {
  -webkit-text-stroke: 2px var(--color-accent);
  color: transparent;
}

.hero__description {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  color: var(--color-gray-300);
  max-width: 550px;
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.hero__buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ── Hero Slider ── */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
}

.hero-slider--projects {
  height: 85vh;
  min-height: 550px;
  border-radius: 0;
}

.hero-slider__list {
  position: relative;
  width: 100%;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-slider__item {
  width: 200px;
  height: 300px;
  list-style-type: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  background-position: center;
  background-size: cover;
  border-radius: 20px;
  box-shadow: 0 20px 30px rgba(0,0,0,0.4) inset;
  transition: transform 0.1s, left 0.75s, top 0.75s, width 0.75s, height 0.75s;
}

.hero-slider__item:nth-child(1),
.hero-slider__item:nth-child(2) {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform: none;
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
}

.hero-slider__item:nth-child(3) { left: 50%; }
.hero-slider__item:nth-child(4) { left: calc(50% + 220px); }
.hero-slider__item:nth-child(5) { left: calc(50% + 440px); }
.hero-slider__item:nth-child(6) { left: calc(50% + 660px); opacity: 0; }

/* Content overlay */
.hero-slider__content {
  width: min(35vw, 500px);
  position: absolute;
  top: 50%;
  left: 3rem;
  transform: translateY(-50%);
  color: var(--color-white);
  text-shadow: 0 3px 12px rgba(0,0,0,0.5);
  opacity: 0;
  display: none;
}

.hero-slider__item:nth-of-type(2) .hero-slider__content {
  display: block;
  animation: heroContentShow 0.75s ease-in-out 0.3s forwards;
}

.hero-slider__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.hero-slider__desc {
  font-family: var(--font-body);
  line-height: 1.8;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-lg);
}

.hero-slider__content .btn {
  font-size: var(--fs-xs);
}

@keyframes heroContentShow {
  0% {
    filter: blur(5px);
    transform: translateY(calc(-50% + 75px));
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

/* Dark gradient overlay on active (2nd) slide for readability */
.hero-slider__item:nth-child(2)::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    110deg,
    rgba(10, 22, 40, 0.8) 0%,
    rgba(10, 22, 40, 0.45) 55%,
    transparent 100%
  );
  z-index: 0;
}

.hero-slider__item:nth-child(2) .hero-slider__content {
  z-index: 1;
}

/* Navigation arrows */
.hero-slider__nav {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  user-select: none;
  display: flex;
  gap: 0.75rem;
}

.hero-slider__btn {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-base);
  background: rgba(201, 168, 76, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(201, 168, 76, 0.5);
  color: var(--color-accent);
}

.hero-slider__btn:hover {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-white);
  font-size: var(--fs-xs);
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.6;
  animation: scrollBounce 2s infinite;
  z-index: 5;
}

.hero-slider .hero__scroll {
  bottom: 100px;
  right: 3rem;
  left: auto;
  transform: none;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
}

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

.hero-slider .hero__scroll {
  animation: scrollBounceRight 2s infinite;
}

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

/* Responsive */
@media (max-width: 900px) {
  .hero-slider__content {
    width: min(50vw, 400px);
  }
  .hero-slider__title {
    font-size: 1.2rem;
  }
  .hero-slider__desc {
    font-size: 0.75rem;
  }
  .hero-slider__item {
    width: 160px;
    height: 270px;
  }
  .hero-slider__item:nth-child(3) { left: 50%; }
  .hero-slider__item:nth-child(4) { left: calc(50% + 170px); }
  .hero-slider__item:nth-child(5) { left: calc(50% + 340px); }
  .hero-slider__item:nth-child(6) { left: calc(50% + 510px); opacity: 0; }
}

@media (max-width: 650px) {
  .hero-slider__content {
    width: 70vw;
    left: 1.5rem;
  }
  .hero-slider__title {
    font-size: 1rem;
  }
  .hero-slider__desc {
    font-size: 0.7rem;
  }
  .hero-slider__content .btn {
    font-size: 0.65rem;
    padding: 10px 20px;
  }
  .hero-slider__item {
    width: 130px;
    height: 220px;
  }
  .hero-slider__item:nth-child(3) { left: 50%; }
  .hero-slider__item:nth-child(4) { left: calc(50% + 140px); }
  .hero-slider__item:nth-child(5) { left: calc(50% + 280px); }
  .hero-slider__item:nth-child(6) { left: calc(50% + 420px); opacity: 0; }
  .hero-slider__nav {
    bottom: 1.5rem;
  }
  .hero-slider__btn {
    width: 40px;
    height: 40px;
  }
  .hero-slider .hero__scroll {
    display: none;
  }
}

/* ── Pillar Cards ── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.pillar-card {
  padding: var(--space-2xl) var(--space-lg);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition-base);
  border: 1px solid var(--color-gray-100);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

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

.pillar-card__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: var(--radius-md);
  color: var(--color-accent);
  font-size: 1.5rem;
}

.pillar-card__title {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-sm);
}

.pillar-card__text {
  font-size: var(--fs-small);
  color: var(--color-gray-500);
  line-height: 1.7;
}

/* ── Differentiators ── */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.diff-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all var(--transition-base);
}

.diff-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--color-accent);
  transform: translateX(8px);
}

.diff-item__number {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--color-accent);
  opacity: 0.4;
  line-height: 1;
  flex-shrink: 0;
}

.diff-item__title {
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-xs);
}

.diff-item__text {
  font-size: var(--fs-small);
  color: var(--color-gray-400);
  line-height: 1.7;
}

/* ── Stage Timeline ── */
.timeline {
  margin-top: var(--space-2xl);
}

.timeline__tabs {
  display: flex;
  gap: 0;
  margin-bottom: var(--space-2xl);
  background: var(--color-gray-50);
  border-radius: var(--radius-lg);
  padding: 6px;
  position: relative;
  overflow-x: auto;
}

.timeline__tab {
  flex: 1;
  padding: var(--space-md) var(--space-sm);
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-gray-500);
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  position: relative;
  min-width: 120px;
}

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

.timeline__tab.active {
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.timeline__tab-number {
  display: block;
  font-size: var(--fs-h3);
  font-weight: 800;
  margin-bottom: 4px;
}

.timeline__tab-name {
  display: block;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline__content {
  display: none;
  animation: fadeInUp 0.5s ease;
}

.timeline__content.active {
  display: block;
}

.timeline__content-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.timeline__content-title {
  font-size: var(--fs-h3);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.timeline__content-text {
  color: var(--color-gray-600);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.timeline__deliverables {
  list-style: none;
}

.timeline__deliverables li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-gray-100);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-gray-700);
  font-size: var(--fs-small);
}

.timeline__deliverables li::before {
  content: '→';
  color: var(--color-accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Service Cards ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.service-card {
  padding: var(--space-2xl);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-100);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.service-card__number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  color: var(--color-gray-100);
  line-height: 1;
  margin-bottom: var(--space-md);
}

.service-card:hover .service-card__number {
  color: rgba(201, 168, 76, 0.15);
}

.service-card__title {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-sm);
}

.service-card__text {
  font-size: var(--fs-small);
  color: var(--color-gray-500);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.service-card__link {
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  transition: gap var(--transition-base);
}

.service-card__link:hover {
  gap: var(--space-sm);
}

/* ── Client Carousel ── */
.clients-track {
  display: flex;
  width: max-content;
  animation: scroll 30s linear infinite;
  gap: var(--space-3xl);
  padding: var(--space-2xl) 0;
}

@media (max-width: 768px) {
  .clients-track {
    animation: scroll 30s linear infinite;
  }
}

.clients-track:hover {
  animation-play-state: paused;
}

.client-logo {
  flex-shrink: 0;
  height: 50px;
  opacity: 0.4;
  filter: grayscale(100%);
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
}

.client-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.client-logo span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-gray-400);
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.client-logo:hover span {
  color: var(--color-accent);
}

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

.carousel-wrapper {
  overflow: hidden;
  position: relative;
}

.carousel-wrapper::before,
.carousel-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--color-white), transparent);
}

.carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--color-white), transparent);
}

.section--dark .carousel-wrapper::before {
  background: linear-gradient(to right, var(--color-primary), transparent);
}

.section--dark .carousel-wrapper::after {
  background: linear-gradient(to left, var(--color-primary), transparent);
}

/* ── CTA Section ── */
.cta-section {
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section__title {
  font-size: var(--fs-h1);
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.cta-section__text {
  font-size: var(--fs-body);
  color: var(--color-gray-300);
  max-width: 500px;
  margin: 0 auto var(--space-xl);
  line-height: 1.8;
}

/* ── Footer ── */
.footer {
  background: var(--color-primary-dark);
  color: var(--color-gray-400);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand p {
  margin-top: var(--space-md);
  font-size: var(--fs-small);
  line-height: 1.8;
  max-width: 300px;
}

.footer__title {
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-md);
}

.footer__list li {
  margin-bottom: var(--space-xs);
}

.footer__list a {
  font-size: var(--fs-small);
  color: var(--color-gray-400);
  transition: all var(--transition-fast);
}

.footer__list a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

.footer__contact-item {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: var(--fs-small);
  align-items: flex-start;
}

.footer__contact-item svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.footer__socials {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  color: var(--color-gray-400);
  transition: all var(--transition-fast);
}

.footer__social-link:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: var(--fs-xs);
}

.footer__bottom a {
  color: var(--color-gray-400);
}

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

.footer__bottom-links {
  display: flex;
  gap: var(--space-md);
}

/* ── Scroll Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all var(--transition-slower);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all var(--transition-slower);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all var(--transition-slower);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all var(--transition-slower);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ── Stats Counter ── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.stat-item {
  text-align: center;
  padding: var(--space-lg);
}

.stat-item__number {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-item__label {
  font-size: var(--fs-small);
  color: var(--color-gray-400);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Project Grid ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

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

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.project-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--space-2xl) var(--space-lg);
  background: linear-gradient(to top, rgba(10, 22, 40, 0.9), transparent);
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-base);
}

.project-card:hover .project-card__overlay {
  transform: translateY(0);
  opacity: 1;
}

.project-card__category {
  font-size: var(--fs-xs);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-xs);
}

.project-card__title {
  font-size: var(--fs-h4);
  color: var(--color-white);
}

/* ── Page Hero (subpages) ── */
.page-hero {
  height: 65vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  position: relative;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

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

.page-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 22, 40, 0.82) 0%,
    rgba(10, 22, 40, 0.55) 50%,
    rgba(10, 22, 40, 0.75) 100%
  );
  z-index: 1;
}

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

.page-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 2;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 2;
}

.page-hero__title {
  font-size: var(--fs-h1);
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.page-hero__breadcrumb {
  font-size: var(--fs-small);
  color: var(--color-gray-400);
}

.page-hero__breadcrumb a {
  color: var(--color-accent);
}

/* ── Contact Form ── */
.contact-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-gray-700);
  transition: border-color var(--transition-fast);
  background: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* ── Filter Tabs ── */
.filter-tabs {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

.filter-tab {
  padding: 10px 24px;
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-gray-500);
  background: var(--color-gray-50);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--color-primary);
  color: var(--color-accent);
}

/* ── Values Grid ── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.value-card {
  padding: var(--space-2xl);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.value-card:hover {
  border-color: var(--color-accent);
  background: rgba(255,255,255,0.03);
  transform: translateY(-4px);
}

.value-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.value-card__title {
  font-size: var(--fs-h4);
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.value-card__text {
  font-size: var(--fs-small);
  color: var(--color-gray-400);
  line-height: 1.7;
}

/* ── Accordion ── */
.accordion {
  margin-top: var(--space-2xl);
}

.accordion-item {
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  overflow: hidden;
  transition: all var(--transition-base);
}

.accordion-item:hover {
  border-color: var(--color-accent);
}

.accordion-header {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  background: var(--color-white);
  transition: all var(--transition-fast);
}

.accordion-header:hover {
  background: var(--color-gray-50);
}

.accordion-header .icon {
  transition: transform var(--transition-base);
  color: var(--color-accent);
  font-size: 1.5rem;
}

.accordion-item.active .accordion-header .icon {
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.accordion-item.active .accordion-body {
  max-height: 1000px;
}

.accordion-body-inner {
  padding: 0 var(--space-lg) var(--space-lg);
}

/* ── Contact Grid ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-info {
  padding: var(--space-2xl);
  background: var(--color-primary);
  border-radius: var(--radius-md);
  color: var(--color-white);
}

.contact-info__item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  align-items: flex-start;
}

.contact-info__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 168, 76, 0.15);
  border-radius: var(--radius-sm);
  color: var(--color-accent);
  flex-shrink: 0;
}

.contact-info__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.contact-info__text {
  font-size: var(--fs-small);
  color: var(--color-gray-300);
  line-height: 1.6;
}

.map-container {
  width: 100%;
  height: 250px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: var(--space-lg);
  background: var(--color-primary-light);
}

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

/* ── Responsive ── */
@media (max-width: 1024px) {
  .header__contact {
    display: none;
  }

  .pillars {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

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

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

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

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

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

  .timeline__content-inner {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero__content {
    padding-top: var(--space-2xl);
  }

  .hero__buttons {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .hero__buttons .btn {
    width: 100%;
    text-align: center;
  }

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

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

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

  .hero-slider--projects {
    height: 75vh;
    min-height: 450px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .timeline__tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .timeline__tab {
    min-width: 100px;
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .filter-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-sm);
  }

  .page-hero {
    height: 40vh;
    min-height: 300px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }

  .stat-item__number {
    font-size: var(--fs-h2);
  }
}

/* ── 3D Tilt Project Cards ── */
.cards-3d {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  padding: var(--space-lg) 0;
}

.card-wrap {
  transform: perspective(800px);
  transform-style: preserve-3d;
  cursor: pointer;
}

.card-wrap:hover .card-3d__info {
  transform: translateY(0);
}

.card-wrap:hover .card-3d__info p {
  opacity: 1;
}

.card-wrap:hover .card-3d__info,
.card-wrap:hover .card-3d__info p {
  transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-wrap:hover .card-3d__info::after {
  transition: 5s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 1;
  transform: translateY(0);
}

.card-wrap:hover .card-3d__bg {
  transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 5s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 0.8;
}

.card-wrap:hover .card-3d {
  transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 2s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow:
    rgba(201, 168, 76, 0.2) 0 0 40px 5px,
    rgba(201, 168, 76, 0.6) 0 0 0 1px,
    rgba(0,0,0,0.66) 0 30px 60px 0,
    inset #333 0 0 0 5px,
    inset rgba(255,255,255,0.3) 0 0 0 6px;
}

.card-3d {
  position: relative;
  width: 100%;
  height: 320px;
  background-color: var(--color-primary);
  overflow: hidden;
  border-radius: 10px;
  box-shadow:
    rgba(0,0,0,0.66) 0 30px 60px 0,
    inset #333 0 0 0 5px,
    inset rgba(255,255,255,0.2) 0 0 0 6px;
  transition: 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

.card-3d__bg {
  opacity: 0.5;
  position: absolute;
  top: -20px;
  left: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transition: 1s cubic-bezier(0.445, 0.05, 0.55, 0.95), opacity 5s 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
  pointer-events: none;
}

.card-3d__info {
  padding: 20px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: var(--color-white);
  transform: translateY(40%);
  transition: 0.6s 1.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.card-3d__info p {
  opacity: 0;
  text-shadow: rgba(0,0,0,1) 0 2px 3px;
  transition: 0.6s 1.6s cubic-bezier(0.215, 0.61, 0.355, 1);
  font-size: var(--fs-small);
  color: var(--color-accent);
  margin-top: 6px;
}

.card-3d__info * {
  position: relative;
  z-index: 1;
}

.card-3d__info::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
  background-blend-mode: overlay;
  opacity: 0;
  transform: translateY(100%);
  transition: 5s 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

.card-3d__info h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
  text-shadow: rgba(0,0,0,0.5) 0 10px 10px;
}

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

@media (max-width: 768px) {
  .cards-3d {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  .card-3d {
    height: 260px;
  }
}

@media (max-width: 480px) {
  .cards-3d {
    grid-template-columns: 1fr;
  }
  .card-3d {
    height: 300px;
  }
}

/* ── Project Detail Modal ── */
.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.project-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 14, 26, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.project-modal__container {
  position: relative;
  width: 94vw;
  max-width: 1200px;
  height: auto;
  max-height: 90vh;
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-primary);
  box-shadow:
    0 0 0 1px rgba(201, 168, 76, 0.15),
    0 25px 80px rgba(0, 0, 0, 0.6),
    0 0 120px rgba(201, 168, 76, 0.06);
  transform: scale(0.92) translateY(30px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}

.project-modal.active .project-modal__container {
  transform: scale(1) translateY(0);
}

/* Close Button */
.project-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 20;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(10, 22, 40, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  cursor: pointer;
  transition: all 0.3s ease;
}

.project-modal__close:hover {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
  transform: rotate(90deg) scale(1.1);
}

/* Carousel Section */
.project-modal__carousel-section {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: var(--color-primary-dark);
}

.project-modal__carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.project-modal__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.04);
}

.project-modal__slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

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

/* Ken Burns subtle effect on active slide */
.project-modal__slide.active img {
  animation: kenBurnsSubtle 12s ease-in-out infinite alternate;
}

@keyframes kenBurnsSubtle {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); }
}

/* Gradient overlay on carousel for readability at bottom */
.project-modal__carousel-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to top, rgba(6, 14, 26, 0.6) 0%, transparent 100%);
  z-index: 3;
  pointer-events: none;
}

/* Arrows */
.project-modal__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(10, 22, 40, 0.55);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(201, 168, 76, 0.35);
  color: var(--color-accent);
  cursor: pointer;
  transition: all 0.3s ease;
}

.project-modal__arrow:hover {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 4px 24px rgba(201, 168, 76, 0.4);
}

.project-modal__arrow--prev {
  left: 16px;
}

.project-modal__arrow--next {
  right: 16px;
}

/* Dots */
.project-modal__dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
  align-items: center;
}

.project-modal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.project-modal__dot.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: scale(1.3);
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.5);
}

.project-modal__dot:hover {
  background: rgba(201, 168, 76, 0.6);
  border-color: var(--color-accent);
}

/* Counter */
.project-modal__counter {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-white);
  background: rgba(10, 22, 40, 0.6);
  backdrop-filter: blur(12px);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  letter-spacing: 1px;
}

/* Info Section */
.project-modal__info-section {
  background: linear-gradient(165deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  overflow-y: auto;
  max-height: 500px;
  position: relative;
}

/* Decorative accent line */
.project-modal__info-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light), transparent);
}

.project-modal__info-inner {
  padding: 36px 32px;
}

/* Category Badge */
.project-modal__category-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  padding: 5px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
}

/* Title */
.project-modal__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 24px;
}

/* Meta Grid */
.project-modal__meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.project-modal__meta-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.project-modal__meta-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 8px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.project-modal__meta-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-gray-500);
  margin-bottom: 2px;
}

.project-modal__meta-value {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-white);
}

.project-modal__status {
  color: #4ade80;
}

/* Divider */
.project-modal__divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 168, 76, 0.3), rgba(201, 168, 76, 0.05));
  margin-bottom: 24px;
}

/* Subtitle */
.project-modal__subtitle {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: 12px;
}

/* Description */
.project-modal__desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--color-gray-400);
  margin-bottom: 28px;
}

/* CTA Button */
.project-modal__cta {
  width: 100%;
  padding: 14px 24px;
}

/* ── Modal Responsive ── */
@media (max-width: 1024px) {
  .project-modal__container {
    max-width: 90vw;
  }

  .project-modal__carousel-section {
    height: 380px;
  }

  .project-modal__info-section {
    max-height: 380px;
  }
}

@media (max-width: 768px) {
  .project-modal__container {
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }

  .project-modal__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .project-modal__carousel-section {
    height: 45vh;
    min-height: 260px;
    flex-shrink: 0;
  }

  .project-modal__info-section {
    flex: 1;
    max-height: none;
    overflow-y: auto;
  }

  .project-modal__info-section::before {
    display: none;
  }

  .project-modal__info-inner {
    padding: 24px 20px 32px;
  }

  .project-modal__meta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .project-modal__close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .project-modal__arrow {
    width: 38px;
    height: 38px;
  }

  .project-modal__arrow--prev { left: 10px; }
  .project-modal__arrow--next { right: 10px; }
}

@media (max-width: 480px) {
  .project-modal__carousel-section {
    height: 38vh;
    min-height: 220px;
  }

  .project-modal__meta-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .project-modal__info-inner {
    padding: 20px 16px 28px;
  }

  .project-modal__title {
    font-size: 1.3rem;
  }
}

/* Modal entry animation for content items */
.project-modal.active .project-modal__category-badge {
  animation: modalSlideUp 0.5s 0.2s ease both;
}
.project-modal.active .project-modal__title {
  animation: modalSlideUp 0.5s 0.3s ease both;
}
.project-modal.active .project-modal__meta-grid {
  animation: modalSlideUp 0.5s 0.4s ease both;
}
.project-modal.active .project-modal__divider {
  animation: modalSlideUp 0.5s 0.45s ease both;
}
.project-modal.active .project-modal__subtitle {
  animation: modalSlideUp 0.5s 0.5s ease both;
}
.project-modal.active .project-modal__desc {
  animation: modalSlideUp 0.5s 0.55s ease both;
}
.project-modal.active .project-modal__cta {
  animation: modalSlideUp 0.5s 0.6s ease both;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Team Section — Pyramid Layout ── */
.team-pyramid {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.team-row {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 32px);
  flex-wrap: wrap;
  width: 100%;
}

.team-row--top {
  max-width: 900px;
}

.team-row--bottom {
  max-width: 1200px;
}

/* Connector line between rows */
.team-pyramid__connector {
  width: 2px;
  height: 48px;
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.6) 0%, rgba(201, 168, 76, 0.1) 100%);
  position: relative;
  margin: 0 auto;
}

.team-pyramid__connector::before,
.team-pyramid__connector::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

.team-pyramid__connector::before {
  top: -4px;
}

.team-pyramid__connector::after {
  bottom: -4px;
  width: 6px;
  height: 6px;
  background: rgba(201, 168, 76, 0.4);
}

/* ── Team Card — Formal Design ── */
.team-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 16px;
  padding: 32px 24px 28px;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.4s ease;
  position: relative;
  overflow: hidden;
  flex: 0 1 220px;
  min-width: 180px;
  max-width: 240px;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.team-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.03) 0%, transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(201, 168, 76, 0.1);
  border-color: rgba(201, 168, 76, 0.35);
}

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

.team-card:hover::after {
  opacity: 1;
}

/* ── Photo Frame ── */
.team-card__photo-frame {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 20px;
  padding: 4px;
  background: linear-gradient(135deg, var(--color-gray-200) 0%, var(--color-gray-300) 100%);
  position: relative;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s ease;
}

.team-card:hover .team-card__photo-frame {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.team-card__photo-frame--gold {
  background: linear-gradient(135deg, var(--color-accent) 0%, #d4b95e 50%, var(--color-accent) 100%);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.12);
}

.team-card--lead:hover .team-card__photo-frame--gold {
  box-shadow: 0 0 0 6px rgba(201, 168, 76, 0.2), 0 8px 24px rgba(201, 168, 76, 0.15);
}

.team-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  background: var(--color-gray-100);
}

/* Empty photo frame for placeholders */
.team-card__photo-frame--empty {
  background: linear-gradient(135deg, var(--color-gray-100) 0%, var(--color-gray-200) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card__placeholder-icon {
  width: 48px;
  height: 48px;
  color: var(--color-gray-400);
  opacity: 0.6;
}

/* ── Card Info ── */
.team-card__info {
  position: relative;
  z-index: 1;
}

.team-card__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.team-card__name--placeholder {
  color: var(--color-gray-400);
  font-style: italic;
}

.team-card__role {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.team-card__title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-gray-500);
  line-height: 1.5;
}

/* ── Leadership Variant ── */
.team-card--lead {
  border-color: rgba(201, 168, 76, 0.25);
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.02) 0%, var(--color-white) 30%);
  flex: 0 1 260px;
  max-width: 280px;
  padding: 36px 28px 32px;
}

.team-card--lead .team-card__photo-frame {
  width: 130px;
  height: 130px;
  margin-bottom: 24px;
}

.team-card--lead .team-card__name {
  font-size: 1.1rem;
}

.team-card--lead .team-card__role {
  font-size: 0.72rem;
  letter-spacing: 2.5px;
}

/* ── Placeholder Variant ── */
.team-card--placeholder {
  border-style: dashed;
  border-color: var(--color-gray-300);
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(0, 0, 0, 0.008) 10px,
    rgba(0, 0, 0, 0.008) 20px
  );
  opacity: 0.7;
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.team-card--placeholder:hover {
  opacity: 1;
  border-color: rgba(201, 168, 76, 0.3);
}

.team-card--placeholder::before {
  background: linear-gradient(90deg, var(--color-gray-300), var(--color-gray-400));
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .team-row {
    gap: 16px;
  }

  .team-card {
    flex: 0 1 160px;
    min-width: 140px;
    max-width: 200px;
    padding: 24px 16px 20px;
  }

  .team-card--lead {
    flex: 0 1 180px;
    max-width: 220px;
    padding: 28px 20px 24px;
  }

  .team-card__photo-frame {
    width: 85px;
    height: 85px;
    margin-bottom: 16px;
  }

  .team-card--lead .team-card__photo-frame {
    width: 100px;
    height: 100px;
    margin-bottom: 18px;
  }

  .team-card__name {
    font-size: 0.88rem;
  }

  .team-card--lead .team-card__name {
    font-size: 0.95rem;
  }

  .team-card__role {
    font-size: 0.62rem;
    letter-spacing: 1.5px;
  }

  .team-card__title {
    font-size: 0.68rem;
  }

  .team-pyramid__connector {
    height: 32px;
  }
}

@media (max-width: 480px) {
  .team-row {
    gap: 12px;
  }

  .team-card {
    flex: 0 1 140px;
    min-width: 120px;
    padding: 20px 12px 16px;
  }

  .team-card--lead {
    flex: 0 1 150px;
    padding: 22px 14px 18px;
  }

  .team-card__photo-frame {
    width: 70px;
    height: 70px;
    margin-bottom: 12px;
  }

  .team-card--lead .team-card__photo-frame {
    width: 80px;
    height: 80px;
    margin-bottom: 14px;
  }

  .team-card__name {
    font-size: 0.78rem;
  }

  .team-card--lead .team-card__name {
    font-size: 0.85rem;
  }

  .team-pyramid__connector {
    height: 24px;
  }
}

/* ════════════════════════════════════════════════
   Notification Modal — Premium Formal Design
   ════════════════════════════════════════════════ */

.notif-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 15, 25, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.notif-modal {
  background: var(--color-white);
  border-radius: 20px;
  padding: 48px 40px 36px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(201, 168, 76, 0.1);
  transform: scale(0.85) translateY(30px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.4s ease;
}

.notif-overlay.active .notif-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Close button */
.notif-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--color-gray-100);
  color: var(--color-gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.notif-modal__close:hover {
  background: var(--color-gray-200);
  color: var(--color-primary);
  transform: rotate(90deg);
}

/* Logo */
.notif-modal__logo {
  margin-bottom: 24px;
}

.notif-modal__logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
}

/* Animated icon */
.notif-modal__icon-wrapper {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
}

.notif-modal__icon {
  width: 72px;
  height: 72px;
}

.notif-modal__icon--success {
  color: #22c55e;
}

.notif-modal__icon--error {
  color: #ef4444;
}

/* Circle draw animation */
.notif-modal__icon-circle {
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  animation: none;
}

.notif-overlay.active .notif-modal__icon-circle {
  animation: notifDrawCircle 0.6s 0.3s ease-out forwards;
}

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

/* Check draw animation */
.notif-modal__icon-check {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: none;
}

.notif-overlay.active .notif-modal__icon-check {
  animation: notifDrawCheck 0.4s 0.7s ease-out forwards;
}

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

/* X draw animation */
.notif-modal__icon-x {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: none;
}

.notif-overlay.active .notif-modal__icon-x {
  animation: notifDrawX 0.3s 0.7s ease-out forwards;
}

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

/* Title */
.notif-modal__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

/* Body text */
.notif-modal__text {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--color-gray-600);
  line-height: 1.65;
  margin-bottom: 24px;
}

/* Divider */
.notif-modal__divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  margin: 0 auto 16px;
}

/* Footer branding */
.notif-modal__footer {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-accent);
  margin-bottom: 24px;
}

/* CTA button */
.notif-modal__btn {
  width: 100%;
  max-width: 220px;
  padding: 14px 32px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 12px;
  cursor: pointer;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .notif-modal {
    padding: 36px 24px 28px;
    border-radius: 16px;
  }

  .notif-modal__logo-img {
    height: 40px;
  }

  .notif-modal__icon-wrapper {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }

  .notif-modal__icon {
    width: 60px;
    height: 60px;
  }

  .notif-modal__title {
    font-size: 1.15rem;
  }

  .notif-modal__text {
    font-size: 0.85rem;
  }

  .notif-modal__footer {
    font-size: 0.65rem;
    letter-spacing: 2px;
  }
}
