/* ============================================================
   AL DOHA MEP — STYLES.CSS
   Complete unified stylesheet for all pages
   ============================================================ */

/* 1. VARIABLES & RESET */
:root {
  --bg:         #09090b;
  --bg-2:       #0e1018;
  --card:       #111318;
  --card-h:     #161c28;
  --border:     #1e2330;
  --gold:       #c8882e;
  --gold-l:     #e8a84a;
  --gold-dim:   rgba(200, 136, 46, 0.15);
  --gold-glow:  rgba(200, 136, 46, 0.25);
  --text:       #ddd8d0;
  --muted:      #6b7390;
  --white:      #ffffff;
  --font-d:     'Barlow Condensed', sans-serif;
  --font-b:     'DM Sans', sans-serif;
  --max:        1320px;
  --nav-h:      72px;
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-b); }

/* 2. TYPOGRAPHY */
h1, h2, h3, h4 {
  font-family: var(--font-d);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  line-height: 1.05;
}

h1 { font-size: clamp(3.5rem, 8vw, 7rem); }
h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); margin-bottom: 16px; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.1rem; letter-spacing: 1px; }

.highlight { color: var(--gold); }

/* 3. NAVIGATION */
#main-nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-h);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  z-index: 1000;
  background: rgba(9,9,11,0);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid rgba(255,255,255,0);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
}

#main-nav.scrolled,
#main-nav.nav-solid,
#main-nav.nav-open {
  background: rgba(9,9,11,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  position: relative;
  z-index: 1002;
}

.nav-panel {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-logo a {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: brightness(1.6);
}

.nav-logo span {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: var(--white);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  position: relative;
  z-index: 1002;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.nav-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.nav-toggle span {
  width: 18px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

#main-nav.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

#main-nav.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

#main-nav.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-cta {
  padding: 9px 22px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 2px;
  transition: background 0.3s, color 0.3s;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--bg);
}

/* 4. HERO */
.hero-wrapper {
  height: 250vh;
  position: relative;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

#webgl-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 30%, rgba(232,168,74,0.14), transparent 38%),
    linear-gradient(180deg, #0b0d12 0%, #09090b 58%, #160f09 100%);
}

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

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  padding: 0 24px;
}

body.hero-enhanced .hero-content {
  opacity: 0;
  transform: translateY(40px);
  pointer-events: none;
}

body.hero-enhanced .hero-content.visible { pointer-events: auto; }

.hero-eyebrow {
  font-family: var(--font-d);
  font-size: 0.85rem;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-content h1 { color: var(--white); margin-bottom: 24px; }

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 44px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-d);
  opacity: 1;
  transition: opacity 0.4s;
}

.hint-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: lineDrop 1.5s infinite;
}

@keyframes lineDrop {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* 5. SHARED SECTION STYLES */
.section-header {
  max-width: var(--max);
  margin: 0 auto 70px;
  padding: 0 6%;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-d);
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
  padding: 4px 12px;
  border: 1px solid var(--gold-dim);
  border-radius: 2px;
}

.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin-top: 12px;
}

/* 6. CTA BUTTONS */
.cta-primary {
  display: inline-block;
  padding: 14px 36px;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 2px;
  border: none;
  transition: background 0.3s, transform 0.2s;
}

.cta-primary:hover {
  background: var(--gold-l);
  transform: translateY(-2px);
}

.cta-ghost {
  display: inline-block;
  padding: 13px 36px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid var(--border);
  transition: border-color 0.3s, color 0.3s;
}

.cta-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* 7. STATS STRIP */
.stats-strip {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 50px 6%;
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 20px 60px;
  flex-shrink: 0;
}

.stat-main {
  font-family: var(--font-d);
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.stat-pre { font-size: 0.5em; color: var(--gold); margin-right: 2px; }
.stat-suf { font-size: 0.55em; color: var(--gold); }
.stat-num { color: var(--white); }

.stat-badge {
  font-family: var(--font-d);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 4px;
  margin-bottom: 0;
}

.stat-lbl {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-d);
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
  flex-shrink: 0;
}

/* 8. SERVICES */
.services-section {
  padding: 120px 0;
  background: var(--bg);
}

.services-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 6%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  position: relative;
  background: var(--bg);
  padding: 50px 36px 50px;
  overflow: hidden;
  transition: background 0.4s var(--ease);
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.5s var(--ease);
}

.service-card:hover { background: var(--card); }
.service-card:hover::after { width: 100%; }

.service-num {
  font-family: var(--font-d);
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 32px;
}

.service-icon-wrap {
  width: 64px;
  height: 64px;
  margin-bottom: 28px;
  color: var(--gold);
  opacity: 0.7;
  transition: opacity 0.3s;
}

.service-card:hover .service-icon-wrap { opacity: 1; }

.svc-svg { width: 100%; height: 100%; }

.service-card h3 {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.1;
}

.svc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.svc-list li {
  font-size: 0.85rem;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
  transition: color 0.3s;
}

.svc-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 1px;
  background: var(--gold);
}

.service-card:hover .svc-list li { color: var(--text); }

/* SVG path animation */
.dp {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  transition: stroke-dashoffset 1.2s var(--ease);
}
.service-card.animated .dp { stroke-dashoffset: 0; }

/* 9. FEATURED PROJECTS */
.featured-section {
  padding: 120px 0;
  background: var(--bg-2);
}

.project-grid {
  max-width: var(--max);
  margin: 0 auto 60px;
  padding: 0 6%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  position: relative;
  height: 440px;
  overflow: hidden;
  cursor: pointer;
  background: var(--card);
}

.card-image {
  position: absolute;
  inset: 0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: transform 0.7s var(--ease), opacity 0.4s;
}

.project-card:hover .card-image img {
  transform: scale(1.07);
  opacity: 0.85;
}

.card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s;
}

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

.card-tag {
  display: block;
  font-family: var(--font-d);
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.card-info h3 {
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 6px;
}

.card-value {
  font-family: var(--font-d);
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 1px;
}

.section-cta {
  text-align: center;
  padding: 0 6%;
}

/* 10. FAQ */
.faq-section {
  padding: 120px 0;
  background: var(--bg);
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 6%;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  cursor: pointer;
  transition: color 0.3s;
}

.faq-q span {
  font-family: var(--font-d);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text);
  transition: color 0.3s;
}

.faq-q:hover span { color: var(--gold); }
.faq-item.open .faq-q span { color: var(--gold); }

.faq-toggle {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, background 0.3s;
}

.faq-item.open .faq-toggle {
  border-color: var(--gold);
  background: var(--gold-dim);
}

.faq-toggle span {
  display: block;
  width: 10px;
  height: 1px;
  background: var(--muted);
  position: relative;
  transition: background 0.3s;
}

.faq-toggle span::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 1px;
  background: inherit;
  transform: rotate(90deg);
  transition: transform 0.3s var(--ease);
}

.faq-item.open .faq-toggle span { background: var(--gold); }
.faq-item.open .faq-toggle span::before { transform: rotate(0deg); }

.faq-a {
  height: 0;
  overflow: hidden;
}

.faq-a p {
  padding-bottom: 28px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
  padding-right: 52px;
}

/* 11. INQUIRY FORM */
.inquiry-section {
  padding: 120px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.inquiry-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 6%;
}

.inquiry-header {
  margin-bottom: 60px;
}

.inquiry-header .section-tag { margin-bottom: 14px; }
.inquiry-header p { color: var(--muted); margin-top: 12px; }

.inquiry-form { display: flex; flex-direction: column; gap: 24px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form-group label {
  font-size: 0.75rem;
  font-family: var(--font-d);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 14px 18px;
  color: var(--text);
  font-family: var(--font-b);
  font-size: 0.95rem;
  transition: border-color 0.3s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7390' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder { color: #3a4055; }

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

/* Custom checkboxes */
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.3s;
  user-select: none;
}

.check-item:hover { color: var(--text); }

.check-item input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }

.check-box {
  width: 18px;
  height: 18px;
  border: 1px solid var(--border);
  border-radius: 2px;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.3s, background 0.3s;
}

.check-box::after {
  content: '';
  position: absolute;
  top: 3px; left: 6px;
  width: 5px; height: 9px;
  border-right: 1.5px solid var(--bg);
  border-bottom: 1.5px solid var(--bg);
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s;
}

.check-item input:checked ~ .check-box {
  background: var(--gold);
  border-color: var(--gold);
}

.check-item input:checked ~ .check-box::after { transform: rotate(45deg) scale(1); }

.form-foot {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.alt-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.alt-contact span {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--font-d);
  letter-spacing: 1px;
}

.alt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 2px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}

.alt-wa {
  background: rgba(37, 211, 102, 0.1);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.25);
}

.alt-wa:hover { background: rgba(37, 211, 102, 0.2); }

.alt-phone {
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid rgba(200,136,46,0.25);
}

.alt-phone:hover { background: rgba(200,136,46,0.2); }

/* 12. CONTACT */
.contact-section {
  padding: 120px 0;
  background: var(--bg);
}

.contact-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 6%;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-info .section-tag { margin-bottom: 14px; }
.contact-info h2 { margin-bottom: 40px; }

.contact-list { display: flex; flex-direction: column; gap: 0; }

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--gold-dim);
  border: 1px solid rgba(200,136,46,0.2);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}

.c-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-d);
  margin-bottom: 4px;
}

.contact-row a {
  color: var(--text);
  font-size: 0.95rem;
  transition: color 0.3s;
}

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

.contact-map {
  height: 420px;
  border: 1px solid var(--border);
  overflow: hidden;
  filter: grayscale(1) invert(0.9) hue-rotate(180deg);
  opacity: 0.8;
  transition: opacity 0.3s;
}

.contact-map:hover { opacity: 1; }
.contact-map iframe { width: 100%; height: 100%; }

/* 13. FOOTER */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 80px 6% 0;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}

.footer-brand { display: flex; flex-direction: column; gap: 20px; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo img {
  height: 44px;
  width: 44px;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: brightness(1.5);
}

.footer-name {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  color: var(--white);
  line-height: 1.4;
}

.footer-tagline {
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 1px;
  font-family: var(--font-d);
  margin-top: 2px;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 300px;
}

.license-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 1px;
  border-radius: 2px;
  width: fit-content;
  transition: border-color 0.3s, color 0.3s;
}

.license-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-col h4 {
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 12px; }

.footer-col a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--gold); }

.footer-contact li { display: flex; flex-direction: column; }

.footer-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--gold-dim);
  border: 1px solid rgba(200,136,46,0.25);
  border-radius: 2px;
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: var(--gold);
  font-family: var(--font-d);
  text-transform: uppercase;
  width: fit-content;
  margin-top: 4px;
}

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #3a4055;
}

.footer-bottom a {
  color: var(--gold);
  transition: opacity 0.3s;
}

.footer-bottom a:hover { opacity: 0.8; }

/* 14. MODAL */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  padding: 20px;
  backdrop-filter: blur(4px);
}

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

.modal-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s var(--ease);
}

.modal-backdrop.active .modal-box { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, color 0.3s;
  z-index: 1;
}

.modal-close:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.modal-head {
  padding: 32px 32px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-head h3 {
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 4px;
}

.modal-head p { font-size: 0.85rem; color: var(--muted); }

.modal-body {
  padding: 24px 32px 32px;
}

.modal-body img {
  width: 100%;
  border-radius: 2px;
  border: 1px solid var(--border);
}

.license-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
}

/* 15. PROJECTS PAGE (TIMELINE) */
.projects-page {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(232,168,74,0.12), transparent 42%),
    linear-gradient(180deg, #09090b 0%, #0e1018 100%);
}

.timeline-container {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 42px) 0 80px;
  position: relative;
  overflow: hidden;
}

.horizontal-scroll-wrapper {
  width: 100%;
  position: relative;
}

.timeline-focus-zone {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 126px;
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 14;
}

.timeline-focus-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(232,168,74,0.18), transparent 72%);
  filter: blur(6px);
}

.timeline-focus-zone span {
  position: absolute;
  bottom: -52px;
  font-family: var(--font-d);
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(232,168,74,0.82);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(232,168,74,0.2);
  background: rgba(9,9,11,0.76);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.timeline-focus-line {
  width: 2px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    rgba(232,168,74,0),
    rgba(232,168,74,0.95) 16%,
    rgba(232,168,74,0.95) 84%,
    rgba(232,168,74,0)
  );
  box-shadow: 0 0 24px rgba(232,168,74,0.28);
}

.timeline-track {
  display: flex;
  gap: 120px;
  position: relative;
  padding: 118px calc(50vw - 12px) 122px;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    to right,
    rgba(232,168,74,0.18) 0%,
    rgba(232,168,74,0.72) 50%,
    rgba(232,168,74,0.18) 100%
  );
  box-shadow: 0 0 28px rgba(232,168,74,0.16);
  z-index: 0;
}

.timeline-node {
  position: relative;
  z-index: 1;
  width: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-node:hover,
.timeline-node.active {
  z-index: 6;
}

.node-dot {
  width: 16px;
  height: 16px;
  background: rgba(9,9,11,0.96);
  border-radius: 50%;
  border: 2px solid rgba(232,168,74,0.56);
  box-shadow: 0 0 0 8px rgba(200,136,46,0.12);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  cursor: pointer;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.timeline-node:hover .node-dot,
.timeline-node.active .node-dot {
  background: #f2c16f;
  border-color: #f7d28f;
  box-shadow:
    0 0 0 10px rgba(200,136,46,0.15),
    0 0 28px rgba(232,168,74,0.38);
  transform: scale(1.22);
}

/* Ongoing pulse */
.timeline-node.ongoing .node-dot {
  background: var(--gold);
  border-color: var(--gold);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--gold-glow); }
  50%       { box-shadow: 0 0 0 8px transparent; }
}

.node-label {
  position: absolute;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-d);
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: rgba(221,216,208,0.74);
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.3s var(--ease), opacity 0.3s var(--ease);
}

.timeline-node:hover .node-label,
.timeline-node.active .node-label {
  color: rgba(232,168,74,0.92);
}

.node-content {
  position: absolute;
  left: 50%;
  width: min(320px, 38vw);
  padding: 18px 20px;
  border: 1px solid rgba(232,168,74,0.24);
  background: rgba(14,16,24,0.94);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0,0,0,0.42);
  text-align: left;
  opacity: 0.58;
  transform: translateX(-50%) scale(0.95);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  pointer-events: auto;
}

.node-content::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(232,168,74,0.6), transparent);
}

.timeline-node:hover .node-content,
.timeline-node.active .node-content {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  border-color: rgba(232,168,74,0.44);
  box-shadow: 0 26px 80px rgba(0,0,0,0.5);
  pointer-events: auto;
}

/* ODD -> UP */
.timeline-node:nth-child(odd) .node-content {
  bottom: 64px;
  top: auto;
}

.timeline-node:nth-child(odd) .node-content::after {
  bottom: -32px;
  transform: translateX(-50%);
}

/* EVEN -> DOWN */
.timeline-node:nth-child(even) .node-content {
  top: 64px;
  bottom: auto;
}

.timeline-node:nth-child(even) .node-content::after {
  top: -32px;
  transform: translateX(-50%) rotate(180deg);
}

.timeline-node:hover .node-content,
.timeline-node.active .node-content {
  border-color: rgba(232,168,74,0.44);
}

.node-year {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(232,168,74,0.2);
  background: rgba(232,168,74,0.1);
  font-family: var(--font-d);
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: rgba(232,168,74,0.92);
  text-transform: uppercase;
}

.node-content h3 {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 4px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.node-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s var(--ease), opacity 0.35s var(--ease);
}

.timeline-node:hover .node-details,
.timeline-node.active .node-details {
  max-height: 220px;
  opacity: 1;
}

.node-details p {
  font-size: 0.82rem;
  color: #9ca5bf;
  margin-top: 8px;
  line-height: 1.6;
}

.node-details .gold { color: #f0c173; font-family: var(--font-d); font-size: 0.98rem; }

.scroll-hint {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 3px;
  font-family: var(--font-d);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fadeOut 1s forwards;
  animation-delay: 5s;
}

.mouse-icon {
  width: 18px;
  height: 30px;
  border: 1px solid rgba(221,216,208,0.42);
  border-radius: 12px;
  position: relative;
}

.mouse-icon::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
  0%   { top: 5px; opacity: 1; }
  100% { top: 18px; opacity: 0; }
}

@keyframes fadeOut {
  to { opacity: 0; visibility: hidden; }
}

/* 16. ABOUT PAGE */
.about-page .about-hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 100px;
  padding-left: 8%;
  overflow: hidden;
}

.about-hero-bg {
  position: absolute;
  inset: 0;
}

.about-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3);
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(9,9,11,0.4) 0%,
    rgba(9,9,11,0.5) 50%,
    rgba(9,9,11,0.95) 100%
  );
}

.about-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.about-hero-content .section-tag { margin-bottom: 20px; }

.about-hero-content h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.about-hero-content p {
  font-size: 1.15rem;
  color: var(--text);
  max-width: 480px;
  line-height: 1.8;
}

.about-hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

/* Story section */
.story-section {
  padding: 120px 0;
  background: var(--bg);
}

.story-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 6%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.story-text .section-tag { margin-bottom: 14px; }

.story-text p {
  color: var(--muted);
  margin-top: 18px;
  line-height: 1.85;
}

.story-cta { margin-top: 36px; }

.story-img-wrap {
  position: relative;
}

.story-img-wrap img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border: 1px solid var(--border);
  filter: grayscale(0.2);
}

.story-img-accent {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 40%;
  height: 60%;
  border: 1px solid var(--gold-dim);
  z-index: -1;
}

.story-caption {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.5px;
  font-style: italic;
}

/* About stats */
.about-stats {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 60px 6%;
}

/* Leadership */
.leadership-section {
  padding: 120px 0;
  background: var(--bg);
}

.leadership-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 6%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.leader-card {
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.4s;
}

.leader-card:hover { border-color: var(--gold); }

.leader-photo {
  position: relative;
  height: 420px;
  overflow: hidden;
}

.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(0.3);
  transition: transform 0.6s var(--ease), filter 0.4s;
}

.leader-card:hover .leader-photo img {
  transform: scale(1.04);
  filter: grayscale(0);
}

.leader-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9,9,11,0.8) 0%, transparent 60%);
}

.leader-info {
  padding: 32px;
  border-top: 1px solid var(--border);
}

.leader-role {
  font-family: var(--font-d);
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.leader-info h3 {
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 16px;
}

.leader-info p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.8;
}

/* Values */
.values-section {
  padding: 120px 0;
  background: var(--bg-2);
}

.values-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 6%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.value-item {
  background: var(--bg-2);
  padding: 48px 32px;
  transition: background 0.3s;
}

.value-item:hover { background: var(--card); }

.value-icon {
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 24px;
  transition: opacity 0.3s;
}

.value-item:hover .value-icon { opacity: 1; }

.value-item h4 {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 12px;
}

.value-item p { font-size: 0.875rem; color: var(--muted); line-height: 1.7; }

/* Certifications */
.certs-section {
  padding: 120px 0;
  background: var(--bg);
}

.certs-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 6%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cert-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 40px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  transition: border-color 0.3s;
}

.cert-card:hover { border-color: var(--gold); }

.cert-badge {
  width: 56px;
  height: 56px;
  background: var(--gold-dim);
  border: 1px solid rgba(200,136,46,0.3);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 1px;
  flex-shrink: 0;
}

.cert-card h4 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 10px;
}

.cert-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }

.cert-view-btn {
  display: inline-block;
  margin-top: 14px;
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 0.85rem;
  font-family: var(--font-d);
  letter-spacing: 1px;
  cursor: pointer;
  transition: letter-spacing 0.3s;
  padding: 0;
}

.cert-view-btn:hover { letter-spacing: 2px; }

/* 17. RESPONSIVE */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .story-inner { gap: 60px; }
  .leadership-grid { gap: 24px; }
  .certs-grid { grid-template-columns: 1fr; max-width: 560px; }
  .contact-inner { grid-template-columns: 1fr; gap: 50px; }
  .contact-map { height: 320px; }
}

@media (max-width: 768px) {
  #main-nav { padding: 0 20px; }
  .nav-toggle { display: inline-flex; }
  .nav-panel {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    margin-left: 0;
    padding: 28px 20px 36px;
    background: rgba(9,9,11,0.98);
    border-top: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-16px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
    overflow-y: auto;
  }
  #main-nav.nav-open .nav-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a {
    font-family: var(--font-d);
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--white);
  }
  .nav-logo span { display: none; }
  .nav-cta {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
  }

  h1 { font-size: clamp(2.8rem, 10vw, 4rem); }
  h2 { font-size: clamp(1.8rem, 6vw, 2.5rem); }

  .hero-wrapper { height: 300vh; }
  .hero-sub br { display: none; }

  .stats-strip { gap: 0; padding: 30px 4%; }
  .stat-item { padding: 16px 24px; }
  .stat-divider { display: none; }

  .services-section,
  .featured-section,
  .faq-section,
  .inquiry-section,
  .contact-section,
  .story-section,
  .leadership-section,
  .values-section,
  .certs-section { padding: 80px 0; }

  .services-grid { grid-template-columns: 1fr; gap: 0; }
  .service-card { padding: 40px 24px; }
  .project-grid { grid-template-columns: 1fr; padding: 0 4%; }
  .project-card { height: 340px; }
  .card-info { transform: translateY(0); opacity: 1; }

  .form-row { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .form-foot { flex-direction: column; align-items: flex-start; }

  .contact-map { height: 260px; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .story-inner { grid-template-columns: 1fr; gap: 50px; }
  .story-img-wrap img { height: 300px; }
  .story-img-accent { display: none; }

  .leadership-grid { grid-template-columns: 1fr; }
  .leader-photo { height: 320px; }

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

  /* Timeline mobile */
  .projects-page { overflow-y: auto; }

  .timeline-container {
    min-height: auto;
    padding: calc(var(--nav-h) + 40px) 6% 60px;
    display: block;
    overflow: visible;
  }

  .timeline-focus-zone { display: none; }

  .timeline-track {
    flex-direction: column;
    gap: 30px;
    border-left: 1px solid rgba(232,168,74,0.28);
    padding-left: 30px;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  .timeline-track::before { display: none; }

  .timeline-node {
    width: 100%;
    display: block;
  }

  .node-dot {
    position: absolute;
    left: -39px;
    top: 14px;
  }

  .node-label {
    position: static;
    transform: none;
    display: block;
    margin-bottom: 10px;
    color: var(--gold);
    opacity: 1;
  }

  .timeline-node:nth-child(odd) .node-content,
  .timeline-node:nth-child(even) .node-content {
    position: static;
    transform: none;
    border-color: rgba(232,168,74,0.18);
    text-align: left;
    padding: 20px;
    width: 100%;
    opacity: 1;
    margin-top: 0;
    pointer-events: auto;
  }

  .timeline-node:nth-child(odd) .node-content::after,
  .timeline-node:nth-child(even) .node-content::after { display: none; }

  .node-content h3 { text-align: left; }
  .node-details {
    max-height: none;
    opacity: 1;
  }
  .node-details p { text-align: left; }

  .scroll-hint { display: none; }
  .about-page .about-hero { height: 70vh; padding-bottom: 60px; padding-left: 6%; }
  .about-hero-content h1 { font-size: clamp(2.5rem, 10vw, 4rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hint-line,
  .mouse-icon::before,
  .timeline-node.ongoing .node-dot {
    animation: none;
  }

  .nav-panel,
  .nav-toggle span,
  .cta-primary,
  .cta-ghost,
  .project-card .card-image img,
  .card-info,
  .node-dot,
  .node-content,
  .node-details,
  .modal-box {
    transition-duration: 0.01ms !important;
  }
}
