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

:root {
  --navy: #0B1D33;
  --navy-deep: #071425;
  --navy-mid: #0f2744;
  --white: #ffffff;
  --off-white: #F7F7F5;
  --warm-grey: #9A968F;
  --light-grey: #E8E6E3;
  --text-body: #4A4A4A;
  --gold: #C4A265;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ========== NAVIGATION ========== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 60px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s ease;
}

nav.scrolled {
  background: rgba(11, 29, 51, 0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.nav-logo svg { height: 36px; width: auto; }

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: rgba(255,255,255,0.95); }
.nav-links a:hover::after { width: 100%; }

/* ========== HERO ========== */
.hero {
  height: 100vh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(15,39,68,0.6) 0%, transparent 70%),
    radial-gradient(circle at 20% 80%, rgba(196,162,101,0.03) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  opacity: 0;
  animation: heroReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

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

@keyframes heroScrollReveal {
  from { opacity: 0; transform: translateX(-50%) translateY(30px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.hero-logo { margin-bottom: 40px; }

.hero-tagline {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-top: 12px;
  opacity: 0;
  animation: heroReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: heroScrollReveal 1s ease 1.5s forwards;
}

.hero-scroll span {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* ========== SECTION SHARED ========== */
.section {
  padding: 140px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--warm-grey);
  margin-bottom: 24px;
}

.section-heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 32px;
}

.section-body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-body);
  max-width: 640px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: stretch;
}

.about-map {
  background: var(--white);
  position: relative;
  overflow: hidden;
  align-self: stretch;
}

.about-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
  transform: scale(1.3) translateY(25%);
  opacity: 0.9;
}

/* Map Markers */
.map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 10;
  cursor: pointer;
}

.marker-dot {
  width: 8px;
  height: 8px;
  background: var(--navy);
  border-radius: 50%;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 10px rgba(11, 29, 51, 0.8), 0 0 20px rgba(11, 29, 51, 0.4);
}

.marker-ping {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: transparent;
  border: 1px solid var(--navy);
  border-radius: 50%;
  animation: markerPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes markerPing {
  0% {
    width: 8px;
    height: 8px;
    opacity: 0.8;
  }
  100% {
    width: 40px;
    height: 40px;
    opacity: 0;
  }
}

/* Futuristic Tooltip */
.marker-tooltip {
  position: absolute;
  bottom: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(7, 20, 37, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(196, 162, 101, 0.3);
  padding: 14px 20px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.marker-tooltip::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.marker-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 10px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

.map-marker:hover .marker-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.map-marker:hover .marker-dot {
  background: var(--navy-deep);
  box-shadow: 0 0 15px rgba(11, 29, 51, 0.9), 0 0 30px rgba(11, 29, 51, 0.5);
}

.tooltip-city {
  display: block;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.tooltip-country {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 60px;
  padding-top: 60px;
  border-top: 1px solid var(--light-grey);
}

.stat-number {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--warm-grey);
  font-weight: 400;
}

/* ========== DIVIDER ========== */
.divider {
  height: 1px;
  background: var(--light-grey);
  max-width: 1400px;
  margin: 0 auto;
}

/* ========== PROJECTS ========== */
.projects-section {
  background: var(--off-white);
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 80px;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  group: true;
}

.project-card:first-child {
  grid-row: span 2;
}

.project-image {
  width: 100%;
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
}

.project-card:not(:first-child) {
  display: flex;
}

.project-card:not(:first-child) .project-image {
  aspect-ratio: unset;
  flex: 1;
}

.project-image-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-image-bg {
  transform: scale(1.04);
}

.project-image-bg.p1 {
  background: linear-gradient(160deg, #1a2f4a 0%, #0d1926 60%, #162a42 100%);
}
.project-image-bg.p2 {
  background: linear-gradient(160deg, #2a3d52 0%, #0f2035 60%, #1d3450 100%);
}
.project-image-bg.p3 {
  background: linear-gradient(160deg, #1f3348 0%, #0a1825 60%, #182d44 100%);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,20,37,0.85) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
}

.project-type {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.project-name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 6px;
}

.project-location {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
}

.project-detail {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.35);
  margin-top: 8px;
  line-height: 1.6;
}

/* ========== SERVICES ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--light-grey);
  margin-top: 80px;
}

.service-card {
  background: var(--white);
  padding: 56px 44px;
  transition: background 0.4s ease;
  cursor: default;
}

.service-card:hover {
  background: var(--navy);
}

.service-number {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--warm-grey);
  margin-bottom: 32px;
  transition: color 0.4s ease;
}

.service-card:hover .service-number { color: rgba(255,255,255,0.2); }

.service-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 20px;
  transition: color 0.4s ease;
}

.service-card:hover .service-title { color: var(--white); }

.service-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-body);
  transition: color 0.4s ease;
}

.service-card:hover .service-desc { color: rgba(255,255,255,0.5); }

/* ========== TEAM ========== */
.team-section {
  background: var(--off-white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 80px;
}

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

.team-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(155deg, var(--navy-mid), var(--navy-deep));
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

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

.team-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,20,37,0.15) 0%, transparent 40%);
  pointer-events: none;
}

.team-photo-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 32px;
  color: rgba(255,255,255,0.08);
  letter-spacing: 4px;
}

.team-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 6px;
}

.team-role {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--warm-grey);
  margin-bottom: 16px;
}

.team-bio {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-body);
  text-align: left;
}

/* ========== CONTACT / FOOTER ========== */
.contact-section {
  background: var(--navy);
  padding: 140px 60px;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(196,162,101,0.04), transparent 60%);
}

.contact-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
  position: relative;
  z-index: 1;
}

.contact-heading {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 24px;
}

.contact-subtitle {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.4);
  max-width: 400px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 48px;
}

.contact-block h4 {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 14px;
  font-weight: 400;
}

.contact-block p {
  font-weight: 300;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255,255,255,0.65);
}

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

.contact-block a:hover { color: var(--gold); }

/* Footer bar */
.footer {
  background: var(--navy-deep);
  padding: 28px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer p {
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.2);
  font-weight: 300;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover { color: rgba(255,255,255,0.5); }

/* ========== CTA BUTTON ========== */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 16px 40px;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: all 0.4s ease;
  margin-top: 40px;
}

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

.btn-dark {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-dark:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-map { aspect-ratio: 16/9; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card:first-child { grid-row: auto; }
  .project-card:first-child .project-image { aspect-ratio: 16/9; }
  .project-card:not(:first-child) .project-image { aspect-ratio: 16/9; }
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 60px; }
  .section { padding: 100px 32px; }
  .section-heading { font-size: 36px; }
  nav { padding: 0 32px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 28px; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .section-heading { font-size: 30px; }
  .contact-heading { font-size: 32px; }
  .footer { flex-direction: column; gap: 16px; text-align: center; }
  
  /* Map adjustments for mobile */
  .about-map img {
    object-position: 50% center;
    transform: scale(1.2) translateY(-15%);
  }
  
  .marker-dot {
    width: 6px;
    height: 6px;
  }
  
  .marker-ping {
    width: 6px;
    height: 6px;
  }
  
  @keyframes markerPing {
    0% { width: 6px; height: 6px; opacity: 0.8; }
    100% { width: 30px; height: 30px; opacity: 0; }
  }
  
  .marker-tooltip {
    padding: 10px 14px;
    bottom: calc(100% + 12px);
  }
  
  .tooltip-city {
    font-size: 14px;
  }
  
  .tooltip-country {
    font-size: 9px;
    letter-spacing: 2px;
  }
}
