/* ==========================================================================
   DESIGN SYSTEM & CORE STYLES - PT MELYONI MINERAL NUSANTARA
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Tokens */
  --bg-deep: #080a0f;
  --bg-card: #11141b;
  --bg-card-hover: #161c27;
  --primary-gold: #d4af37;
  --primary-gold-rgb: 212, 175, 55;
  --accent-bronze: #c19a6b;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --white: #ffffff;
  
  /* Layout & Spacing */
  --header-height: 80px;
  --container-max-width: 1280px;
  
  /* Borders & Shadows */
  --border-gold: 1px solid rgba(var(--primary-gold-rgb), 0.2);
  --border-gold-hover: 1px solid rgba(var(--primary-gold-rgb), 0.5);
  --border-soft: 1px solid rgba(255, 255, 255, 0.05);
  --glow-gold: 0 0 20px rgba(var(--primary-gold-rgb), 0.15);
  --glow-gold-strong: 0 0 35px rgba(var(--primary-gold-rgb), 0.3);
  
  /* Fonts */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', sans-serif;
}

/* Base resets & layouts */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: rgba(var(--primary-gold-rgb), 0.2);
  border-radius: 5px;
  border: 2px solid var(--bg-deep);
  transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--primary-gold-rgb), 0.5);
}

/* Shared Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500; /* More elegant light weight for serif */
  letter-spacing: 0.01em;
  color: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Helper Utilities */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.text-gold {
  color: var(--primary-gold);
}

.serif-italic {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
}

.section-tag {
  font-family: var(--font-body); /* Modern sans-serif contrast for tags */
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em; /* Wider tracking for tags */
  color: var(--primary-gold);
  margin-bottom: 0.75rem;
  display: inline-block;
  position: relative;
  padding-left: 1.5rem;
}

.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0.8rem;
  height: 2px;
  background-color: var(--primary-gold);
}

.section-title {
  font-size: 3.25rem; /* Larger and more editorial Cormorant size */
  font-weight: 400; /* Elegant light serif face */
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 650px;
  margin-bottom: 3.5rem;
}

/* Custom Gold Gradient Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-gold), var(--accent-bronze));
  color: var(--bg-deep);
  border: none;
  box-shadow: var(--glow-gold);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-gold-strong);
  filter: brightness(1.1);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: var(--border-gold);
}

.btn-secondary:hover {
  background: rgba(var(--primary-gold-rgb), 0.05);
  border-color: var(--primary-gold);
  transform: translateY(-3px);
}

/* ==========================================================================
   NAVIGATION BAR (Glassmorphism)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: all 0.4s ease;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background-color: rgba(8, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--border-soft);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  height: 70px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  display: flex;
  flex-direction: column;
}

.logo-subtext {
  font-size: 0.65rem;
  color: var(--primary-gold);
  font-weight: 600;
  letter-spacing: 0.25em;
  margin-top: -2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.5rem;
}

/* Hide the redundant 'Kontak' menu link on desktop as we have the action button */
.nav-menu li:last-child {
  display: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-gold);
}

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

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

/* Language and Quick Action buttons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lang-switch {
  display: flex;
  gap: 0.5rem;
  border: var(--border-soft);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.25rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.lang-btn {
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  cursor: pointer;
  color: var(--text-muted);
}

.lang-btn.active {
  background: var(--primary-gold);
  color: var(--bg-deep);
}

/* Mobile Menu Toggle Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  transition: all 0.3s ease;
}

/* ==========================================================================
   HERO SECTION (Cinematic Entry)
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/hero_bg.png');
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.05);
  animation: slowZoom 25s infinite alternate ease-in-out;
}

@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(8, 10, 15, 0.6) 0%,
    rgba(8, 10, 15, 0.75) 50%,
    rgba(8, 10, 15, 1) 100%
  ),
  linear-gradient(
    to right,
    rgba(8, 10, 15, 0.8) 0%,
    rgba(8, 10, 15, 0.4) 60%,
    rgba(8, 10, 15, 0.9) 100%
  );
  z-index: -1;
}

/* Adding delicate topographic lines as background effect */
.topo-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.08;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--primary-gold) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 850px;
  padding-top: var(--header-height);
}

.hero-title {
  font-size: 5rem;
  line-height: 1.05;
  font-weight: 300; /* Sophisticated light weight for serif */
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 650px;
  line-height: 1.6;
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
  opacity: 0;
}

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

.hero-stats {
  display: flex;
  margin-top: 5rem;
  gap: 4rem;
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
  opacity: 0;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-gold);
  line-height: 1.1;
  display: flex;
  align-items: center;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

/* ==========================================================================
   ABOUT US SECTION
   ========================================================================== */
.about {
  padding: 8rem 0;
  position: relative;
  background-color: var(--bg-deep);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  border: var(--border-soft);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.about-map-placeholder {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(var(--primary-gold-rgb), 0.15) 0%, transparent 60%),
              var(--bg-card);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  position: relative;
}

/* SVG Topological Grid Background */
.map-grid-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
}

.about-map-content {
  position: relative;
  text-align: center;
  z-index: 5;
}

.map-marker {
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: var(--primary-gold);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--primary-gold);
  cursor: pointer;
}

.map-marker::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: transparent;
  border: 1px solid var(--primary-gold);
  border-radius: 50%;
  top: 0;
  left: 0;
  animation: markerPulse 2s infinite ease-out;
}

.marker-kaltim {
  top: 45%;
  left: 48%;
}

.marker-manado {
  top: 38%;
  left: 68%;
}

@keyframes markerPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(3.5); opacity: 0; }
}

.map-label {
  position: absolute;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  background-color: rgba(var(--primary-gold-rgb), 0.2);
  border: var(--border-gold);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transform: translate(-50%, -130%);
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.marker-kaltim .map-label {
  left: 50%;
}

.marker-manado .map-label {
  left: 50%;
}

.about-content {
  display: flex;
  flex-direction: column;
}

.about-core-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.value-card {
  background-color: var(--bg-card);
  border: var(--border-soft);
  padding: 2rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--primary-gold-rgb), 0.3);
  background-color: var(--bg-card-hover);
}

.value-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(var(--primary-gold-rgb), 0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary-gold);
  border: var(--border-gold);
}

.value-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.value-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ==========================================================================
   EXPLORATION PROJECTS (Tabs Interface)
   ========================================================================== */
.projects {
  padding: 8rem 0;
  background-color: rgba(17, 20, 27, 0.4);
  border-top: var(--border-soft);
  border-bottom: var(--border-soft);
}

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

.projects-nav {
  display: flex;
  gap: 1rem;
  border: var(--border-soft);
  padding: 0.35rem;
  border-radius: 6px;
  background: var(--bg-deep);
}

.project-tab-btn {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.project-tab-btn.active {
  background: var(--primary-gold);
  color: var(--bg-deep);
  box-shadow: 0 4px 15px rgba(var(--primary-gold-rgb), 0.2);
}

/* Tab panes layout */
.project-content-pane {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-content-pane.active {
  display: grid;
  opacity: 1;
  transform: translateY(0);
}

.project-visual {
  border-radius: 8px;
  overflow: hidden;
  border: var(--border-soft);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
  aspect-ratio: 4/3;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

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

.project-details {
  display: flex;
  flex-direction: column;
}

.project-loc {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.project-grid-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.project-info-item {
  border-left: 2px solid var(--primary-gold);
  padding-left: 1rem;
}

.project-info-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-info-value {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 0.25rem;
}

/* ==========================================================================
   ESG / SUSTAINABILITY
   ========================================================================== */
.esg {
  padding: 8rem 0;
  background-color: var(--bg-deep);
  position: relative;
  overflow: hidden;
}

.esg-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.esg-content {
  display: flex;
  flex-direction: column;
}

.esg-initiatives {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.esg-item {
  display: flex;
  gap: 1.25rem;
}

.esg-item-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
}

.esg-item-title {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.esg-item-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.esg-visual {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1/1;
  border: var(--border-soft);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

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

.esg-counter-overlay {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  background: rgba(8, 10, 15, 0.85);
  border: var(--border-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 6px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  gap: 1rem;
}

.esg-stat {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.esg-stat:last-child {
  border-right: none;
}

.esg-stat-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-gold);
}

.esg-stat-desc {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* ==========================================================================
   GEOTECHNOLOGY & SCIENCE
   ========================================================================== */
.tech {
  padding: 8rem 0;
  background-color: rgba(17, 20, 27, 0.3);
  border-top: var(--border-soft);
}

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

.tech-card {
  background-color: var(--bg-card);
  border: var(--border-soft);
  border-radius: 6px;
  padding: 2.5rem;
  transition: all 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--primary-gold-rgb), 0.3);
  background-color: var(--bg-card-hover);
}

.tech-icon {
  width: 52px;
  height: 52px;
  background-color: rgba(var(--primary-gold-rgb), 0.08);
  border: var(--border-gold);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
  margin-bottom: 2rem;
}

.tech-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.tech-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   CONTACT US SECTION
   ========================================================================== */
.contact {
  padding: 8rem 0;
  background-color: var(--bg-deep);
  border-top: var(--border-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2.5rem;
}

.contact-item {
  display: flex;
  gap: 1.25rem;
}

.contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background-color: rgba(var(--primary-gold-rgb), 0.08);
  border: var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
}

.contact-item-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-item-value {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.contact-form-container {
  background-color: var(--bg-card);
  border: var(--border-soft);
  border-radius: 8px;
  padding: 3.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input {
  background-color: var(--bg-deep);
  border: var(--border-soft);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white);
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 10px rgba(var(--primary-gold-rgb), 0.1);
}

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

.form-feedback {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}

.form-feedback.success {
  color: #10b981;
  display: block;
}

.form-feedback.error {
  color: #ef4444;
  display: block;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: #05060a;
  border-top: var(--border-soft);
  padding: 5rem 0 3rem 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 5rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-gold);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-link:hover {
  color: var(--primary-gold);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.legal-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.legal-links a:hover {
  color: var(--primary-gold);
}

/* ==========================================================================
   PROGRESSIVE ENHANCEMENT: SCROLL DRIVEN REVEALS
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes revealUp {
      from {
        opacity: 0;
        transform: translateY(60px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .reveal-scroll {
      animation: revealUp auto linear backwards;
      animation-timeline: view();
      animation-range: entry 10% entry 40%;
    }
  }
}

/* IntersectionObserver JS Fallback Class (if scroll-driven timelines unsupported) */
.js-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Mobile First Strategy)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.25rem;
  }
  
  .about-grid, .projects-content-pane, .esg-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .about-visual {
    order: -1;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  .esg-visual {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

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

@media (min-width: 769px) and (max-width: 1200px) {
  .nav-menu {
    gap: 1rem;
  }
  .nav-link {
    font-size: 0.78rem;
    letter-spacing: 0.05em;
  }
  .logo-text {
    font-size: 1.1rem;
  }
  .logo-subtext {
    font-size: 0.58rem;
  }
}

/* ==========================================================================
   STRATEGIC ROADMAP TIMELINE
   ========================================================================== */
.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 4rem auto 0 auto;
  padding: 1rem 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--primary-gold), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 50%;
  position: relative;
  margin-bottom: 4rem;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 50%;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 1.5rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--bg-deep);
  border: 2px solid var(--primary-gold);
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 0 0 10px rgba(var(--primary-gold-rgb), 0.5);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  background-color: var(--primary-gold);
  box-shadow: 0 0 15px rgba(var(--primary-gold-rgb), 0.8);
}

.timeline-content {
  width: 85%;
  margin: 0 auto;
  padding: 1.75rem;
  background-color: var(--bg-card);
  border: var(--border-soft);
  border-radius: 8px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-item:hover .timeline-content {
  border-color: rgba(var(--primary-gold-rgb), 0.3);
  transform: translateY(-5px);
  box-shadow: var(--glow-gold);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 2.5rem;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 2.5rem;
}

.timeline-date {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-gold);
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

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

  .section-title {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-desc {
    font-size: 1.05rem;
  }

  .hero-stats {
    gap: 2rem;
    margin-top: 3rem;
  }

  .hero-stat-num {
    font-size: 1.75rem;
  }

  /* Hamburger Navigation */
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-deep);
    border-top: var(--border-soft);
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 2rem;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    align-items: flex-start;
  }

  .nav-menu.open {
    left: 0;
  }

  .nav-menu li:last-child {
    display: block;
  }

  .nav-actions {
    display: none; /* simplified for mobile, can be placed in menu if needed */
  }

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

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

  .form-group-row {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .contact-form-container {
    padding: 2rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  /* Timeline Mobile Overrides */
  .timeline-container::before {
    left: 20px;
    transform: none;
  }
  .timeline-item {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 45px;
    margin-bottom: 3rem;
  }
  .timeline-item:nth-child(even) {
    padding-left: 45px;
  }
  .timeline-dot {
    left: 20px;
    transform: translateX(-50%);
  }
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
}

/* ==========================================================================
   CHARTS & PERFORMANCE SECTION
   ========================================================================== */
.charts-section {
  padding: 8rem 0;
  background: var(--bg-dark);
  position: relative;
}

.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 4rem;
}

.chart-card {
  background: var(--bg-card);
  border: var(--border-soft);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.chart-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.3);
}

.chart-card-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1rem;
}

.chart-card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.chart-card-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.chart-wrapper {
  position: relative;
  width: 100%;
  height: 300px;
}

.chart-meta-row {
  display: flex;
  justify-content: space-around;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chart-meta-item {
  text-align: center;
}

.chart-meta-val {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--primary-gold);
}

.chart-meta-lbl {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

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

/* ==========================================================================
   MOBILE RESPONSIVE HOTFIX — prevent horizontal overflow & stacked collisions
   ========================================================================== */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

img, svg, video, canvas {
  max-width: 100%;
}

@media (max-width: 640px) {
  :root {
    --header-height: 64px;
  }

  body {
    width: 100%;
    overflow-x: hidden;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .header,
  .header.scrolled {
    height: var(--header-height);
  }

  .logo {
    min-width: 0;
    gap: .55rem;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }

  .logo-icon svg {
    width: 30px;
    height: 30px;
  }

  .logo-text {
    min-width: 0;
    max-width: 170px;
    font-size: .95rem;
    line-height: 1.05;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .logo-subtext {
    font-size: .48rem;
    letter-spacing: .08em;
    white-space: normal;
  }

  .menu-toggle {
    flex: 0 0 auto;
  }

  .nav-menu {
    width: 100vw;
    max-width: 100vw;
    padding: 2rem 1.25rem;
    overflow-y: auto;
  }

  .hero {
    min-height: 100svh;
    height: auto;
    padding: calc(var(--header-height) + 2rem) 0 3rem;
    align-items: flex-start;
  }

  .hero-content {
    max-width: 100%;
    padding-top: 0;
  }

  .hero-title {
    font-size: clamp(2.35rem, 12vw, 3.25rem);
    line-height: .98;
    overflow-wrap: anywhere;
  }

  .hero-desc {
    max-width: 100%;
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: .85rem;
  }

  .hero-actions .btn,
  .btn {
    width: 100%;
    min-width: 0;
    padding: .9rem 1rem;
    text-align: center;
    white-space: normal;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
  }

  .hero-stat-item {
    min-width: 0;
  }

  .hero-stat-num {
    font-size: 1.55rem;
  }

  .hero-stat-label {
    font-size: .72rem;
    overflow-wrap: anywhere;
  }

  .section-title {
    font-size: clamp(2rem, 10vw, 2.55rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .section-desc {
    max-width: 100%;
    font-size: .98rem;
    margin-bottom: 2rem;
  }

  .about-grid,
  .about-core-values,
  .projects-content-pane,
  .esg-grid,
  .tech-grid,
  .contact-grid,
  .charts-grid,
  .footer-top,
  .form-group-row,
  .project-stats,
  .esg-pillars,
  .metrics-grid,
  .investment-grid,
  .roadmap-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .about-visual,
  .esg-visual,
  .contact-form-container,
  .project-card,
  .value-card,
  .tech-card,
  .chart-card,
  .timeline-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .contact-form-container,
  .chart-card {
    padding: 1.25rem;
  }

  .timeline-container {
    max-width: 100%;
    margin-top: 2rem;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    padding-left: 2.25rem;
    padding-right: 0;
  }

  .timeline-container::before {
    left: .75rem;
  }

  .timeline-dot {
    left: .75rem;
  }

  .timeline-content {
    padding: 1.15rem;
  }

  .footer-bottom,
  .chart-meta-row {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  table,
  pre,
  code {
    max-width: 100%;
    overflow-x: auto;
  }
}
