@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --black: #000000;
  --dark: #0A0A0A;
  --dark-card: #0F0F0F;
  --dark-border: rgba(255, 255, 255, 0.06);
  --white: #FFFFFF;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.3);
  --gold: #C9A84C;
}

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

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-primary);
  background: var(--black);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, .heading-serif {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
}

/* =========================================
   NAVBAR — Always dark
   ========================================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--dark-border);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.5);
}

.navbar-hero {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
}

.navbar-hero.scrolled {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--dark-border);
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

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

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 24px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.lang-select {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* =========================================
   LOGO
   ========================================= */

.logo-img {
  height: 100px;
  width: auto;
  object-fit: contain;
  filter: invert(1) brightness(1.15);
}

.logo-icon {
  height: 62px;
  width: auto;
  object-fit: contain;
  filter: invert(1) brightness(1.2);
  margin-right: -4px;
}

.logo-text {
  height: 34px;
  width: auto;
  object-fit: contain;
  filter: invert(1) brightness(1.2);
}

/* =========================================
   HERO
   ========================================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #000;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 0.55;
  filter: saturate(0.7) brightness(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 1;
}

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

.hero-mini {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 4rem;
  overflow: hidden;
  background: #000;
}

.hero-mini .hero-bg {
  opacity: 0.55;
  filter: saturate(0.75) brightness(1.05);
}

.hero-mini .hero-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

/* =========================================
   IMAGE EFFECTS
   ========================================= */

.image-fade {
  position: relative;
  overflow: hidden;
}

.image-fade::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.05) 40%,
    rgba(0, 0, 0, 0.3) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.image-fade img {
  filter: saturate(0.75) brightness(0.95);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.8s ease;
}

.image-fade:hover img {
  transform: scale(1.06);
  filter: saturate(0.85) brightness(1);
}

.image-vignette {
  -webkit-mask-image: radial-gradient(ellipse 95% 95% at center, black 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 95% 95% at center, black 60%, transparent 100%);
}

.image-soft {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
}

.image-blend {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* =========================================
   BUTTONS
   ========================================= */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 2px;
  background: var(--white);
  color: #000;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid var(--white);
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 2px;
  background: transparent;
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 2px;
  background: var(--white);
  color: #000;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-decoration: none;
  border: 1px solid var(--white);
  transition: all 0.25s ease;
}

.btn-dark:hover {
  background: rgba(255, 255, 255, 0.9);
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 2px;
  background: transparent;
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
}

.btn-outline-dark:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.5);
}

/* =========================================
   SECTION LABEL
   ========================================= */

.section-label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: var(--gold);
}

/* =========================================
   STAT
   ========================================= */

.stat-number {
  font-family: 'DM Serif Display', Georgia, serif;
  font-variant-numeric: tabular-nums;
}

.stat-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  align-self: stretch;
}

/* =========================================
   LINK ARROW
   ========================================= */

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  color: var(--gold);
  letter-spacing: 0.3px;
  transition: gap 0.3s ease, opacity 0.2s ease;
}

.link-arrow:hover {
  gap: 14px;
}

/* =========================================
   ANIMATIONS
   ========================================= */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
}

.slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* =========================================
   DARK CARDS
   ========================================= */

.dark-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 2px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.dark-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* =========================================
   NEWS CARD
   ========================================= */

.news-card {
  overflow: hidden;
  border-radius: 2px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.12);
}

.news-card .image-fade img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover .image-fade img {
  transform: scale(1.06);
}

/* =========================================
   VALUE ICON
   ========================================= */

.value-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  color: var(--gold);
  flex-shrink: 0;
}

/* =========================================
   FOOTER
   ========================================= */

.footer-link {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #fff;
}

/* =========================================
   MOBILE MENU
   ========================================= */

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--black);
  z-index: 999;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu a {
  color: #fff;
  text-decoration: none;
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  font-weight: 400;
  transition: opacity 0.2s;
}

.mobile-menu a:hover {
  opacity: 0.6;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #fff;
  transition: all 0.3s ease;
}

.hamburger.active span {
  background: #fff !important;
}

.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(6px, -6px);
}

@media (max-width: 1024px) {
  .hamburger {
    display: flex;
    position: absolute;
    right: 1rem;
  }

  .navbar > div {
    justify-content: center;
    position: relative;
  }
}

/* =========================================
   SCROLL TO TOP
   ========================================= */

.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 900;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* =========================================
   FORM
   ========================================= */

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  transition: border-color 0.2s ease;
  outline: none;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.form-input:focus {
  border-color: var(--gold);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

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

/* =========================================
   TIMELINE
   ========================================= */

.timeline-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 2.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-item:last-child {
  border-left: 1px solid transparent;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

/* =========================================
   JOB CARD
   ========================================= */

.job-card {
  border: 1px solid var(--dark-border);
  border-radius: 2px;
  padding: 1.5rem 2rem;
  background: var(--dark-card);
  transition: all 0.3s ease;
}

/* =========================================
   REGION TABS (Markets page)
   ========================================= */

.region-tab {
  padding: 10px 22px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.region-tab:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.7);
}

.region-tab.active {
  background: rgba(201, 168, 76, 0.1);
  border-color: var(--gold);
  color: var(--gold);
}

.region-panel {
  min-height: 80px;
}

.job-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

/* =========================================
   GLOBE CONTAINER
   ========================================= */

#globe-container {
  position: relative;
  width: 100%;
  cursor: grab;
}

#globe-container:active {
  cursor: grabbing;
}

#globe-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.hero #globe-container {
  pointer-events: auto;
}

.hero #globe-container::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to right,
    #000 0%,
    rgba(0, 0, 0, 0.7) 20%,
    transparent 50%
  );
}

@media (max-width: 1024px) {
  .hero #globe-container {
    opacity: 0.35;
  }
  .hero #globe-container::before {
    background: radial-gradient(ellipse at center, transparent 20%, #000 80%);
  }
}

/* =========================================
   RESPONSIVE — TABLET (≤ 1024px)
   ========================================= */

@media (max-width: 1024px) {
  .hero {
    padding-top: 80px;
  }

  #flat-map {
    max-width: 100%;
  }
}

/* =========================================
   HERO — Mobile centering (content overlay on globe)
   ========================================= */

@media (max-width: 1023px) {
  .hero .hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 1.5rem;
    width: 100%;
    max-width: none;
  }

  .hero .hero-content > div {
    width: 100%;
    max-width: 420px;
  }

  .hero .hero-content .btn-primary,
  .hero .hero-content .btn-outline {
    width: fit-content;
  }
}

/* =========================================
   RESPONSIVE — MOBILE (≤ 768px)
   ========================================= */

@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: 72px;
  }

  .hero-mini {
    min-height: 45vh;
    padding-bottom: 2.5rem;
  }

  .btn-primary,
  .btn-outline,
  .btn-dark,
  .btn-outline-dark {
    padding: 14px 28px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }

  .logo-img {
    height: 75px;
  }

  .logo-icon {
    height: 50px;
  }

  .logo-text {
    height: 32px;
  }

  .section-label {
    font-size: 11px;
    letter-spacing: 2.5px;
    margin-bottom: 1rem;
  }

  .link-arrow {
    font-size: 14px;
  }

  .value-icon {
    width: 44px;
    height: 44px;
  }

  .dark-card {
    padding: 1.25rem !important;
  }

  .news-card .p-7 {
    padding: 1.25rem;
  }

  .mobile-menu a {
    font-size: 24px;
  }

  .mobile-menu {
    gap: 1.5rem;
  }

  .scroll-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
  }

  .form-input {
    padding: 12px 14px;
    font-size: 16px;
  }

  .timeline-item {
    padding-left: 1.5rem;
    padding-bottom: 2rem;
  }

  .job-card {
    padding: 1.25rem;
  }

  .region-tab {
    padding: 8px 16px;
    font-size: 12px;
  }

  .footer-link {
    font-size: 13px;
  }

  .stat-divider {
    display: none;
  }

  .hero #globe-container {
    opacity: 0.7;
    pointer-events: none;
  }

  .hero #globe-container::before {
    display: none;
  }

  #flat-map {
    max-width: 100%;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    width: calc(100% + 1rem);
  }

  #flat-map canvas {
    border-radius: 4px;
  }
}

/* =========================================
   RESPONSIVE — SMALL PHONE (≤ 480px)
   ========================================= */

@media (max-width: 480px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .logo-img {
    height: 60px;
  }

  .logo-icon {
    height: 42px;
  }

  .logo-text {
    height: 26px;
  }

  .mobile-menu a {
    font-size: 22px;
  }

  .hero #globe-container {
    opacity: 0.65;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up, .fade-in, .slide-left, .slide-right {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .image-fade img, .news-card img {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

::selection {
  background: var(--gold);
  color: #000;
}
