/* ============================================
   HINES — Modern SaaS Real Estate Platform
   Clean Architecture · Soft Gradients · Tech UI
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-bg: #ffffff;
  --color-bg-subtle: #f8f9fb;
  --color-bg-section: #f1f3f8;
  --color-bg-card: #ffffff;
  --color-primary: #4f6ef7;
  --color-primary-dark: #3b5de7;
  --color-primary-light: rgba(79,110,247,0.08);
  --color-primary-glow: rgba(79,110,247,0.15);
  --color-accent: #7c5cfc;
  --color-black: #1a1d2e;
  --color-text: #4a4d5e;
  --color-text-muted: #8b8fa3;
  --color-text-light: #b0b3c5;
  --color-border: rgba(0,0,0,0.06);
  --color-border-card: rgba(0,0,0,0.04);
  --color-shadow: rgba(20,25,60,0.06);
  --color-shadow-deep: rgba(20,25,60,0.1);

  --gradient-hero: linear-gradient(135deg, #f0f4ff 0%, #e8ecf8 30%, #f7f8fc 70%, #eef1fb 100%);
  --gradient-section: linear-gradient(180deg, #f1f3f8 0%, #f8f9fb 100%);
  --gradient-card: linear-gradient(135deg, #ffffff, #fafbff);
  --gradient-cta: linear-gradient(135deg, #4f6ef7 0%, #7c5cfc 100%);

  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --section-padding: 120px 0;
  --container-width: 1200px;
  --container-padding: 0 48px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-fast: 0.3s;
  --duration-medium: 0.6s;
  --duration-reveal: 1s;

  --z-nav: 1000;
  --z-modal: 2000;
  --z-mobile-menu: 900;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color var(--duration-fast) ease; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-black);
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: clamp(2.6rem, 5vw, 3.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
h4 { font-size: 0.95rem; font-weight: 600; }

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}

.gradient-text {
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out-quart);
  position: relative;
}

.btn-primary {
  background: var(--gradient-cta);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(79,110,247,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(79,110,247,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-black);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.btn-arrow svg {
  width: 18px; height: 18px;
  stroke: currentColor; fill: none; stroke-width: 2;
  transition: transform var(--duration-fast) ease;
}
.btn-arrow:hover svg { transform: translateX(4px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  padding: 18px 48px;
  display: flex; align-items: center; justify-content: space-between;
  transition: all var(--duration-fast) ease;
}
.nav.scrolled {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 48px;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 20px var(--color-shadow);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-black);
  letter-spacing: 0.04em;
}
.nav-logo span { color: var(--color-primary); }

.nav-links {
  display: flex; align-items: center; gap: 36px;
}
.nav-links a {
  font-size: 0.88rem; font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--duration-fast) ease;
}
.nav-links a:hover { color: var(--color-black); }

.nav-cta { padding: 10px 24px !important; font-size: 0.82rem !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; z-index: calc(var(--z-mobile-menu) + 1);
}
.hamburger span { width: 24px; height: 2px; background: var(--color-black); transition: all var(--duration-fast) ease; }
.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-menu {
  display: none; position: fixed; inset: 0; background: var(--color-bg);
  z-index: var(--z-mobile-menu);
  flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
.mobile-menu.active { display: flex; }
.mobile-menu a { font-family: var(--font-heading); font-size: 1.8rem; color: var(--color-black); }
.mobile-menu a:hover { color: var(--color-primary); }

/* ---------- Hero ---------- */
.hero {
  background: var(--gradient-hero);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(79,110,247,0.08), transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,92,252,0.06), transparent 70%);
  border-radius: 50%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text { max-width: 560px; }
.hero-text .section-badge {
  animation: fadeSlideUp var(--duration-reveal) var(--ease-out-expo) 0.2s both;
}
.hero-text h1 {
  margin-bottom: 24px;
  animation: fadeSlideUp var(--duration-reveal) var(--ease-out-expo) 0.4s both;
}
.hero-text p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
  animation: fadeSlideUp var(--duration-reveal) var(--ease-out-expo) 0.6s both;
}
.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  animation: fadeSlideUp var(--duration-reveal) var(--ease-out-expo) 0.8s both;
}

/* 3D Building */
.hero-building {
  display: flex; align-items: center; justify-content: center;
  perspective: 1000px;
  animation: fadeSlideUp var(--duration-reveal) var(--ease-out-expo) 0.5s both;
}
.hero-building-inner {
  transition: transform 0.4s var(--ease-out-quart);
  transform-style: preserve-3d;
  will-change: transform;
}
.hero-building img {
  max-height: 520px;
  width: auto;
  filter: drop-shadow(0 40px 80px rgba(20,25,60,0.15));
  transition: filter 0.4s ease;
}
.hero-building:hover img {
  filter: drop-shadow(0 50px 100px rgba(20,25,60,0.2));
}

/* Floating elements around building */
.hero-float-card {
  position: absolute;
  background: var(--gradient-card);
  border: 1px solid var(--color-border-card);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: 0 8px 32px var(--color-shadow);
  animation: floatBob 5s ease-in-out infinite;
  z-index: 3;
}
.hero-float-card.card-1 { top: 15%; right: 5%; animation-delay: 0s; }
.hero-float-card.card-2 { bottom: 20%; left: 48%; animation-delay: 1.5s; }

.hero-float-card .float-label {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--color-text-muted); font-weight: 600; margin-bottom: 4px;
}
.hero-float-card .float-value {
  font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700;
  color: var(--color-black);
}
.hero-float-card .float-value span { color: var(--color-primary); }

@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Animations ---------- */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity var(--duration-reveal) var(--ease-out-expo),
              transform var(--duration-reveal) var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.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; }

/* ---------- Section: Stats ---------- */
.section { padding: var(--section-padding); position: relative; }

.section-stats {
  background: var(--color-bg);
  padding: 100px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.stat-card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border-card);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  transition: all var(--duration-fast) var(--ease-out-expo);
  box-shadow: 0 2px 12px var(--color-shadow);
}
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px var(--color-shadow-deep);
}
.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 800;
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ---------- Section: About ---------- */
.section-about { background: var(--color-bg-subtle); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.about-text p {
  font-size: 1.05rem; line-height: 1.85;
  color: var(--color-text); margin-bottom: 20px;
}
.about-image {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
}
.about-image img {
  width: 100%; height: 480px; object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform 0.6s var(--ease-out-expo);
}
.about-image:hover img { transform: scale(1.03); }

/* ---------- Section: Services ---------- */
.section-services { background: var(--gradient-section); }
.services-header { text-align: center; margin-bottom: 64px; }
.services-header h2 { margin-bottom: 14px; }
.services-header p { color: var(--color-text-muted); max-width: 520px; margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  display: block;
  text-decoration: none;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-card);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  transition: all var(--duration-medium) var(--ease-out-expo);
  box-shadow: 0 2px 12px var(--color-shadow);
  position: relative; overflow: hidden;
  color: inherit;
}
.service-card h3 { color: var(--color-black); margin-bottom: 12px; }
.service-card p { color: var(--color-text-muted); }

/* ---------- Inner Pages ---------- */
.page-hero {
  padding: 160px 0 80px;
  background: var(--color-bg);
  text-align: center;
}
.page-hero h1 { font-size: 3.5rem; margin-bottom: 24px; color: var(--color-black); }
.page-hero p { font-size: 1.2rem; color: var(--color-text-muted); max-width: 700px; margin: 0 auto 40px; line-height: 1.7; }
.service-detail-section { padding: 80px 0; background: var(--color-bg-subtle); }
.capabilities-list { max-width: 800px; margin: 0 auto; list-style: none; }
.capabilities-list li { 
  padding: 24px; background: #fff; border-radius: var(--radius-md); box-shadow: 0 2px 10px var(--color-shadow);
  margin-bottom: 16px; border-left: 4px solid var(--color-primary);
  display: flex; align-items: center; gap: 16px; font-weight: 500; font-size: 1.1rem;
}
.capabilities-list li svg { width: 24px; height: 24px; stroke: var(--color-primary); fill: none; stroke-width: 2; flex-shrink: 0; }
.service-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-cta);
  transform: scaleX(0);
  transition: transform var(--duration-medium) var(--ease-out-expo);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px var(--color-shadow-deep);
}
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 60px; height: 60px;
  margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) ease;
}
.service-card:hover .service-icon {
  background: var(--color-primary-glow);
  transform: scale(1.08);
}
.service-icon svg {
  width: 26px; height: 26px;
  stroke: var(--color-primary); fill: none; stroke-width: 1.5;
}
.service-card h3 { margin-bottom: 12px; }
.service-card p { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.65; }

/* ---------- Section: Projects ---------- */
.section-projects { background: #f7f8fa; padding: 140px 0; }
.projects-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 64px; }
.projects-header-text h2 { margin-bottom: 10px; }
.projects-header-text p { color: var(--color-text-muted); max-width: 460px; }

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

.project-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-card);
  border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer;
  box-shadow: 0 4px 20px var(--color-shadow);
  transition: all 0.5s var(--ease-out-expo);
  animation: cardFloat 6s ease-in-out infinite;
}
.project-card:nth-child(1) { animation-delay: 0s; }
.project-card:nth-child(2) { animation-delay: 1s; }
.project-card:nth-child(3) { animation-delay: 2s; }
.project-card:nth-child(4) { animation-delay: 0.5s; }
.project-card:nth-child(5) { animation-delay: 1.5s; }
.project-card:nth-child(6) { animation-delay: 2.5s; }

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.project-card:hover {
  transform: translateY(-12px) !important;
  box-shadow: 0 20px 60px var(--color-shadow-deep);
  animation-play-state: paused;
}

.project-card-image {
  position: relative; overflow: hidden; aspect-ratio: 4/3;
}
.project-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}
.project-card:hover .project-card-image img { transform: scale(1.06); }

.project-card-overlay {
  position: absolute; inset: 0;
  background: rgba(26,29,46,0);
  transition: background 0.4s ease;
  display: flex; align-items: center; justify-content: center;
}
.project-card:hover .project-card-overlay {
  background: rgba(26,29,46,0.35);
}

.project-card-view-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  color: var(--color-black);
  font-family: var(--font-heading); font-size: 0.82rem; font-weight: 600;
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  opacity: 0; transform: translateY(10px);
  transition: all 0.4s var(--ease-out-expo);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.project-card:hover .project-card-view-btn {
  opacity: 1; transform: translateY(0);
}
.project-card-view-btn:hover {
  background: var(--color-primary); color: #fff;
}
.project-card-view-btn svg {
  width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2;
}

.project-card-info { padding: 24px 24px 28px; }
.project-card-location {
  font-family: var(--font-heading);
  font-size: 0.7rem; color: var(--color-primary);
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 6px; font-weight: 700;
  display: flex; align-items: center; gap: 5px;
}
.project-card-location svg {
  width: 12px; height: 12px; stroke: var(--color-primary); fill: none; stroke-width: 2;
}
.project-card-name {
  font-family: var(--font-heading); font-size: 1.2rem;
  color: var(--color-black); font-weight: 700; margin-bottom: 6px;
}
.project-card-type { font-size: 0.88rem; color: var(--color-text-muted); }

/* ---------- Section: News ---------- */
.section-news { background: var(--color-bg); padding: 120px 0; }
.news-header { text-align: center; margin-bottom: 64px; }
.news-header h2 { margin-bottom: 14px; }
.news-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}
.news-featured, .news-small {
  display: flex;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--color-shadow);
  transition: all 0.5s var(--ease-out-expo);
}
.news-featured { flex-direction: column; }
.news-small { flex-direction: row; align-items: center; }
.news-side { display: flex; flex-direction: column; gap: 32px; }

.news-featured:hover, .news-small:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px var(--color-shadow-deep);
}

.news-image { position: relative; overflow: hidden; height: 320px; }
.news-small-image { position: relative; overflow: hidden; width: 220px; height: 100%; min-height: 200px; flex-shrink: 0; }
.news-image img, .news-small-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}
.news-featured:hover .news-image img, .news-small:hover .news-small-image img {
  transform: scale(1.05);
}

.news-content { padding: 36px; display: flex; flex-direction: column; flex-grow: 1; }
.news-small-content { padding: 32px 28px; display: flex; flex-direction: column; flex-grow: 1; }

.news-date {
  font-family: var(--font-heading); font-size: 0.75rem;
  color: var(--color-primary); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.news-featured h3 { font-size: 1.6rem; margin-bottom: 24px; color: var(--color-black); }
.news-small h4 { font-size: 1.2rem; margin-bottom: 20px; color: var(--color-black); }

.news-read-more {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-size: 0.85rem; font-weight: 700;
  color: var(--color-text-muted); transition: color var(--duration-fast) ease;
}
.news-read-more svg {
  width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2;
  transition: transform var(--duration-fast) ease;
}
.news-featured:hover .news-read-more, .news-small:hover .news-read-more {
  color: var(--color-primary);
}
.news-featured:hover .news-read-more svg, .news-small:hover .news-read-more svg {
  transform: translateX(6px);
}

/* ---------- Section: Insights ---------- */
.section-insights { background: var(--color-bg-subtle); padding: 120px 0; }
.insights-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 64px; }
.insights-header-text h2 { margin-bottom: 10px; }

.insights-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.insight-card {
  display: flex; flex-direction: column;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--color-shadow);
  transition: all 0.5s var(--ease-out-expo);
}
.insight-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px var(--color-shadow-deep);
}
.insight-image { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.insight-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}
.insight-card:hover .insight-image img { transform: scale(1.05); }

.insight-content { padding: 32px 28px; display: flex; flex-direction: column; flex-grow: 1; }
.insight-category {
  font-family: var(--font-heading); font-size: 0.75rem;
  color: var(--color-text-muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.insight-card h3 { font-size: 1.3rem; margin-bottom: 24px; color: var(--color-black); }
.insight-read-more {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-size: 0.85rem; font-weight: 700;
  color: var(--color-primary);
}
.insight-read-more svg {
  width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2;
  transition: transform var(--duration-fast) ease;
}
.insight-card:hover .insight-read-more svg { transform: translateX(6px); }
.project-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
  z-index: var(--z-modal);
  opacity: 0; visibility: hidden;
  transition: all 0.4s ease;
}
.project-modal-backdrop.active { opacity: 1; visibility: visible; }

.project-modal {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: calc(var(--z-modal) + 1);
  background: #fff;
  border-radius: var(--radius-xl);
  width: 90vw; max-width: 920px; max-height: 90vh;
  overflow: hidden;
  opacity: 0; visibility: hidden;
  transition: all 0.5s var(--ease-out-expo);
  box-shadow: 0 32px 80px rgba(20,25,60,0.2);
}
.project-modal.active {
  opacity: 1; visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.project-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,0.06);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10;
  transition: all var(--duration-fast) ease;
}
.project-modal-close:hover { background: var(--color-black); border-color: var(--color-black); }
.project-modal-close svg {
  width: 16px; height: 16px; stroke: var(--color-black); fill: none; stroke-width: 2;
  transition: stroke var(--duration-fast) ease;
}
.project-modal-close:hover svg { stroke: #fff; }

.project-modal-image { width: 100%; height: 380px; object-fit: cover; }
.project-modal-content { padding: 40px 48px; }
.project-modal-location {
  font-family: var(--font-heading); font-size: 0.72rem; color: var(--color-primary);
  text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 10px;
  font-weight: 700; display: flex; align-items: center; gap: 6px;
}
.project-modal-location svg {
  width: 14px; height: 14px; stroke: var(--color-primary); fill: none; stroke-width: 2;
}
.project-modal-name {
  font-family: var(--font-heading); font-size: 2rem;
  color: var(--color-black); margin-bottom: 18px; font-weight: 800;
}
.project-modal-desc {
  font-size: 1rem; color: var(--color-text);
  line-height: 1.8; margin-bottom: 32px; max-width: 640px;
}
.project-modal-stats {
  display: flex; gap: 48px; padding-top: 24px;
  border-top: 1px solid var(--color-border);
}
.project-modal-stat h4 {
  font-family: var(--font-heading); font-size: 1.3rem;
  color: var(--color-black); font-weight: 800; margin-bottom: 2px;
}
.project-modal-stat span {
  font-size: 0.72rem; color: var(--color-text-muted);
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
}
body.modal-open { overflow: hidden; }

/* ---------- Section: Global ---------- */
.section-global { background: var(--color-bg-subtle); }
.global-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.global-text h2 { margin-bottom: 20px; }
.global-text > p {
  color: var(--color-text-muted); margin-bottom: 36px;
  line-height: 1.85; font-size: 1.02rem;
}
.global-regions { display: flex; flex-direction: column; gap: 14px; }
.region-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 22px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-card);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) ease;
  box-shadow: 0 2px 8px var(--color-shadow);
}
.region-item:hover {
  transform: translateX(6px);
  box-shadow: 0 6px 20px var(--color-shadow-deep);
  border-color: rgba(79,110,247,0.15);
}
.region-dot {
  width: 8px; height: 8px;
  background: var(--color-primary);
  border-radius: 50%; flex-shrink: 0;
}
.region-item h4 { font-size: 0.95rem; margin-bottom: 2px; }
.region-item p { font-size: 0.82rem; color: var(--color-text-muted); }

.global-map-container { position: relative; }
.world-map-svg { width: 100%; height: auto; }
.world-map-svg .region-active {
  fill: var(--color-primary); opacity: 0.15;
  transition: opacity var(--duration-fast) ease;
}
.world-map-svg .region-active:hover { opacity: 0.3; }
.world-map-svg .region-inactive { fill: var(--color-text-light); opacity: 0.06; }

.map-pin {
  position: absolute; width: 10px; height: 10px;
  background: var(--color-primary); border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(79,110,247,0.3);
  border: 2px solid #fff;
}
.map-pin::after {
  content: ''; position: absolute; inset: -5px;
  border: 1px solid rgba(79,110,247,0.2);
  border-radius: 50%;
  animation: pinPulse 2.5s ease-in-out infinite;
}
@keyframes pinPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(2); opacity: 0; }
}

/* ---------- Section: Contact ---------- */
.section-contact {
  background: var(--gradient-cta);
  text-align: center; padding: 140px 0;
  position: relative; overflow: hidden;
}
.section-contact::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
}
.section-contact .section-badge {
  background: rgba(255,255,255,0.15); color: #fff;
}
.section-contact .section-badge::before { background: #fff; }

.contact-content { position: relative; z-index: 2; }
.contact-content h2 { color: #fff; margin-bottom: 20px; max-width: 650px; margin-left: auto; margin-right: auto; }
.contact-content > p {
  color: rgba(255,255,255,0.7); max-width: 480px;
  margin: 0 auto 40px; line-height: 1.8;
}
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.contact-actions .btn-primary {
  background: #fff; color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.contact-actions .btn-primary:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.15); }
.contact-actions .btn-outline { border-color: rgba(255,255,255,0.3); color: #fff; }
.contact-actions .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

.contact-details { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.contact-detail { display: flex; align-items: center; gap: 12px; }
.contact-detail-icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.2); border-radius: 50%;
}
.contact-detail-icon svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 1.5; }
.contact-detail-text { text-align: left; }
.contact-detail-text span {
  display: block; font-size: 0.65rem; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
}
.contact-detail-text p { font-size: 0.9rem; color: rgba(255,255,255,0.9); }

/* ---------- Footer ---------- */
.footer {
  background: var(--color-bg-subtle);
  border-top: 1px solid var(--color-border);
  padding: 72px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px; margin-bottom: 56px;
}
.footer-brand .nav-logo { display: inline-block; margin-bottom: 4px; }
.footer-brand p { color: var(--color-text-muted); font-size: 0.9rem; line-height: 1.7; margin-top: 10px; max-width: 320px; }

.footer-col h4 {
  font-family: var(--font-heading); color: var(--color-black);
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 20px; font-weight: 700;
}
.footer-col a {
  display: block; font-size: 0.9rem; color: var(--color-text-muted);
  padding: 4px 0; transition: color var(--duration-fast) ease;
}
.footer-col a:hover { color: var(--color-primary); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; border-top: 1px solid var(--color-border);
}
.footer-bottom p { font-size: 0.78rem; color: var(--color-text-light); }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border); border-radius: 50%;
  transition: all var(--duration-fast) ease;
}
.footer-social a:hover { border-color: var(--color-primary); background: var(--color-primary-light); }
.footer-social svg { width: 15px; height: 15px; fill: var(--color-text-muted); }
.footer-social a:hover svg { fill: var(--color-primary); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  :root { --section-padding: 80px 0; --container-padding: 0 24px; }
  .nav { padding: 16px 24px; }
  .nav.scrolled { padding: 12px 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 100px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-text { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-building img { max-height: 360px; }
  .hero-float-card { display: none; }
  .about-grid, .global-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .projects-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .project-modal { width: 95vw; }
  .project-modal-content { padding: 28px 24px; }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; }
  .contact-details { flex-direction: column; align-items: center; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .project-modal-image { height: 220px; }
  .project-modal-stats { flex-direction: column; gap: 16px; }
}
