/* ============================================
   SAEED BIN MUBARAK AL HAJERI - CORPORATE WEBSITE
   Master Stylesheet
   ============================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
  --navy: #0a1628;
  --navy-light: #112240;
  --navy-mid: #0d1d3a;
  --blue-deep: #1a2a4a;
  --blue-accent: #2a4a7f;
  --gold: #c9a84c;
  --gold-light: #dfc06b;
  --gold-champagne: #f0dca0;
  --gold-subtle: rgba(201, 168, 76, 0.15);
  --white: #ffffff;
  --off-white: #f8f9fc;
  --grey-light: #e8ecf2;
  --grey-mid: #b0b8c8;
  --grey-dark: #6b7a90;
  --text-primary: #0a1628;
  --text-secondary: #3a4a60;
  --text-light: #8a96a8;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-bg-dark: rgba(10, 22, 40, 0.6);
  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 8px 30px rgba(10, 22, 40, 0.1);
  --shadow-lg: 0 20px 60px rgba(10, 22, 40, 0.15);
  --shadow-gold: 0 8px 30px rgba(201, 168, 76, 0.15);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

.container-wide {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- SECTION SPACING ---------- */
.section {
  padding: 120px 0;
  position: relative;
}

.section-sm { padding: 80px 0; }
.section-lg { padding: 160px 0; }

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.section-dark p {
  color: var(--grey-mid);
}

.section-light {
  background: var(--off-white);
}

/* ---------- LABEL / TAG ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--gold);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
}

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

.btn-dark:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-arrow::after {
  content: '→';
  transition: transform 0.3s ease;
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* ---------- NAVIGATION ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* Target both .container and .container-wide inside navbar */
.navbar .container,
.navbar .container-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.nav-logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.nav-logo-text span {
  color: var(--gold);
}

.nav-logo-sub {
  font-size: 0.65rem;
  color: var(--grey-mid);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
  margin-top: 2px;
  line-height: 1;
}

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

.nav-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
  text-align: center;
  line-height: 1;
}

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

.nav-links a.active {
  color: var(--gold);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  border-radius: 2px;
  display: block;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu overlay backdrop */
.nav-overlay {
  display: none;
}

@media (max-width: 1024px) {
  .nav-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* ---------- GLASSMORPHISM CARDS ---------- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 40px;
  transition: var(--transition);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.3);
}

.glass-card-light {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(200, 210, 230, 0.4);
  border-radius: var(--radius-md);
  padding: 40px;
  transition: var(--transition);
}

.glass-card-light:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ---------- HERO SECTIONS ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.92) 0%, rgba(10, 22, 40, 0.7) 50%, rgba(10, 22, 40, 0.85) 100%);
  z-index: 1;
}

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

.page-hero {
  min-height: 65vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.page-hero .hero-overlay {
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.5) 0%, rgba(10, 22, 40, 0.95) 100%);
}

/* ---------- STATS ---------- */
.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--grey-mid);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* ---------- CARDS ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px;
  transition: var(--transition);
  border: 1px solid var(--grey-light);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold-subtle), rgba(201, 168, 76, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.card-gold-border {
  border-top: 3px solid var(--gold);
}

/* ---------- IMAGE CONTAINERS ---------- */
.img-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s ease;
}

.img-container:hover img {
  transform: scale(1.03);
}

.img-cover img {
  object-fit: cover;
}

/* ---------- GOLD DIVIDER ---------- */
.gold-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 20px 0;
}

/* ---------- QUOTE ---------- */
.quote-block {
  position: relative;
  padding: 40px 0 40px 40px;
  border-left: 3px solid var(--gold);
}

.quote-block::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 8rem;
  color: var(--gold-subtle);
  font-family: Georgia, serif;
  line-height: 1;
}

.quote-text {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 500;
  font-style: italic;
  color: var(--navy);
  line-height: 1.6;
}

.section-dark .quote-text {
  color: var(--white);
}

/* ---------- TIMELINE ---------- */
.timeline {
  position: relative;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold), var(--gold-light), var(--gold));
  top: 0;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 60px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
  text-align: right;
}

.timeline-content {
  width: 45%;
  padding: 30px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--grey-light);
  transition: var(--transition);
}

.timeline-content:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  background: var(--gold);
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 4px var(--gold-subtle);
  z-index: 2;
}

.timeline-year {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- HORIZONTAL SCROLL ---------- */
.h-scroll-wrapper {
  overflow-x: auto;
  padding: 20px 0 40px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}

.h-scroll-wrapper::-webkit-scrollbar {
  height: 4px;
}

.h-scroll-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.h-scroll-wrapper::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}

.h-scroll-track {
  display: flex;
  gap: 30px;
  padding: 0 40px;
  width: max-content;
}

.h-scroll-card {
  width: 350px;
  flex-shrink: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 36px;
  transition: var(--transition);
}

.h-scroll-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.03) 0%, transparent 50%, rgba(201, 168, 76, 0.02) 100%);
  pointer-events: none;
}

.footer-main {
  padding: 80px 0 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.footer-brand p {
  color: var(--grey-mid);
  margin-top: 16px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 24px;
  font-weight: 600;
}

.footer-links a {
  display: block;
  color: var(--grey-mid);
  padding: 6px 0;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 8px;
}

.footer-newsletter input {
  width: 100%;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
  margin-bottom: 12px;
}

.footer-newsletter input::placeholder {
  color: var(--grey-dark);
}

.footer-newsletter input:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.1);
}

.footer-newsletter button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.footer-newsletter button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  color: var(--grey-dark);
  font-size: 0.85rem;
}

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

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

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-gold);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
}

/* ---------- SCROLL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-children.active > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.active > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.active > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children.active > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children.active > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-children.active > *:nth-child(6) { transition-delay: 0.5s; }

.stagger-children.active > * {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- GRID LAYOUTS ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.grid-asymmetric {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.grid-asymmetric-reverse {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}

/* ---------- PASSWORD GATE ---------- */
.password-gate {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.password-gate.hidden {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

.gate-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a1628 0%, #112240 40%, #1a2a4a 70%, #0a1628 100%);
  z-index: 0;
}

.gate-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="g" cx="50%" cy="50%"><stop offset="0%" stop-color="%23c9a84c" stop-opacity="0.08"/><stop offset="100%" stop-color="transparent"/></radialGradient></defs><circle r="50" cx="50" cy="50" fill="url(%23g)"/></svg>') center/cover;
  animation: gatePulse 8s ease-in-out infinite;
}

@keyframes gatePulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.gate-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.gate-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 6s ease-in-out infinite;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  20% { opacity: 0.6; }
  80% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-20vh) scale(1); }
}

.gate-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 480px;
  padding: 0 30px;
}

.gate-glass {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.gate-emblem {
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--navy);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.3);
}

.gate-title {
  font-size: 1.4rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 8px;
}

.gate-subtitle {
  font-size: 0.85rem;
  color: var(--grey-mid);
  margin-bottom: 36px;
  letter-spacing: 0.05em;
}

.gate-input-wrap {
  position: relative;
  margin-bottom: 20px;
}

.gate-input-wrap input {
  width: 100%;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
  text-align: center;
  letter-spacing: 0.15em;
}

.gate-input-wrap input::placeholder {
  color: var(--grey-dark);
  letter-spacing: 0.1em;
}

.gate-input-wrap input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.15);
}

.gate-submit {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gate-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.gate-error {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gate-error.show {
  opacity: 1;
}

/* ---------- PAGE LOADING ---------- */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--navy);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}

.page-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-bar {
  width: 120px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.loader-bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: var(--gold);
  border-radius: 3px;
  animation: loaderSlide 1.2s ease-in-out infinite;
}

@keyframes loaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ---------- PARALLAX ---------- */
.parallax-bg {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 140%;
  z-index: 0;
}

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

/* ---------- ROLE CARDS (Diplomatic page) ---------- */
.role-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--grey-light);
  transition: var(--transition);
}

.role-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.role-card-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.role-card-header::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.1);
}

.role-card-header h4 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.role-card-header span {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.role-card-body {
  padding: 30px;
}

.role-card-body p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- INSTITUTION CARDS ---------- */
.institution-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px;
  border: 1px solid var(--grey-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.institution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.institution-card:hover::before {
  transform: scaleX(1);
}

.institution-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.institution-card h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.institution-card .inst-abbr {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

/* ---------- MEDIA / BLOG CARDS ---------- */
.media-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--grey-light);
  transition: var(--transition);
}

.media-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.media-card-img {
  height: 220px;
  overflow: hidden;
}

.media-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.media-card:hover .media-card-img img {
  transform: scale(1.05);
}

.media-card-body {
  padding: 30px;
}

.media-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 12px;
}

.media-card-body h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* ---------- CONTACT FORM ---------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: var(--off-white);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--gold-subtle);
}

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

/* ---------- MAP CONTAINER ---------- */
.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 350px;
  border: 1px solid var(--grey-light);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- RESPONSIVE ---------- */
/* --- 1400px: tighten nav for smaller desktops --- */
@media (max-width: 1400px) {
  .nav-links a {
    font-size: 0.78rem;
    padding: 8px 10px;
  }
}

/* --- 1200px: further compress nav, adjust containers --- */
@media (max-width: 1200px) {
  .container { padding: 0 30px; }
  .container-wide { padding: 0 30px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 40px; }

  .nav-links {
    gap: 0;
  }

  .nav-links a {
    font-size: 0.75rem;
    padding: 7px 8px;
  }
}

/* --- 1024px: switch to mobile hamburger menu --- */
@media (max-width: 1024px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 80px 24px 40px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1rem;
    font-weight: 500;
    padding: 14px 28px;
    width: 100%;
    text-align: center;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.75);
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(255, 255, 255, 0.06);
  }

  .nav-links a.active {
    color: var(--gold);
    background: rgba(201, 168, 76, 0.08);
  }

  .nav-toggle {
    display: flex;
  }
}

/* --- 992px: layout grids stack --- */
@media (max-width: 992px) {
  .grid-2,
  .grid-asymmetric,
  .grid-asymmetric-reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  .section { padding: 80px 0; }
  .section-lg { padding: 100px 0; }

  .timeline::before { left: 30px; }
  .timeline-item,
  .timeline-item:nth-child(odd) {
    flex-direction: column;
    padding-left: 60px;
    text-align: left;
  }
  .timeline-content { width: 100%; }
  .timeline-dot { left: 30px; }
}

/* --- 768px: mobile adjustments --- */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .container-wide { padding: 0 20px; }

  .navbar { padding: 14px 0; }
  .navbar.scrolled { padding: 8px 0; }

  .nav-logo-text { font-size: 0.95rem; }
  .nav-logo-sub { font-size: 0.6rem; letter-spacing: 0.08em; }

  .nav-links {
    width: 100%;
    max-width: 100vw;
    padding: 100px 20px 40px;
  }

  .nav-links a {
    font-size: 1.05rem;
    padding: 14px 20px;
  }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .hero { min-height: 90vh; }
  .page-hero { min-height: 50vh; }

  .glass-card, .glass-card-light { padding: 28px; }
  .card { padding: 28px; }

  .stat-number { font-size: 2.5rem; }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
}

/* --- 480px: small phones --- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .container-wide { padding: 0 16px; }
  .section { padding: 60px 0; }

  .navbar { padding: 12px 0; }
  .navbar.scrolled { padding: 6px 0; }

  .nav-logo-text { font-size: 0.9rem; }
  .nav-logo-sub { font-size: 0.55rem; }

  .gate-glass { padding: 40px 24px; }

  .btn { padding: 14px 28px; font-size: 0.9rem; }
}

/* ---------- UTILITY CLASSES ---------- */
.text-gold { color: var(--gold); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.gap-60 { gap: 60px; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
