/* ============================================
   ALISTER HIBBERT – ULTRA-PREMIUM WEBSITE
   Theme: Quant Intelligence Meets Global Markets
   ============================================ */

/* --- CSS VARIABLES --- */
:root {
  --black: #000000;
  --deep-black: #050510;
  --midnight: #0a0a1a;
  --dark-blue: #0d1117;
  --panel: #0f1923;
  --panel-border: rgba(0, 200, 255, 0.08);
  --neon-blue: #00c8ff;
  --neon-blue-dim: rgba(0, 200, 255, 0.15);
  --emerald: #00e88f;
  --emerald-dim: rgba(0, 232, 143, 0.12);
  --gold: #d4a853;
  --gold-dim: rgba(212, 168, 83, 0.12);
  --white: #f0f0f5;
  --gray: #8a8a9a;
  --light-gray: #c0c0d0;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --transition: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  background: var(--deep-black);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--neon-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--emerald);
}

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

::selection {
  background: var(--neon-blue);
  color: var(--black);
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--deep-black);
}
::-webkit-scrollbar-thumb {
  background: var(--neon-blue-dim);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-blue);
}

/* --- PASSWORD SCREEN --- */
.password-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.8s var(--transition), transform 1s var(--transition);
}

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

.password-container {
  text-align: center;
  position: relative;
  z-index: 2;
}

.password-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3;
}

.password-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 60px;
  opacity: 0;
  animation: fadeIn 1s 0.3s forwards;
}

.password-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--neon-blue);
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeIn 1s 0.6s forwards;
}

.password-input-wrap {
  position: relative;
  margin-bottom: 25px;
  opacity: 0;
  animation: fadeIn 1s 0.9s forwards;
}

.password-input-wrap input {
  background: transparent;
  border: 1px solid rgba(0, 200, 255, 0.2);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 1rem;
  padding: 16px 30px;
  width: 320px;
  text-align: center;
  letter-spacing: 6px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.password-input-wrap input:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 30px rgba(0, 200, 255, 0.1);
}

.password-input-wrap input::placeholder {
  color: var(--gray);
  letter-spacing: 3px;
  font-size: 0.75rem;
}

.password-submit {
  background: transparent;
  border: 1px solid var(--neon-blue);
  color: var(--neon-blue);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 14px 50px;
  cursor: pointer;
  transition: all 0.4s ease;
  opacity: 0;
  animation: fadeIn 1s 1.2s forwards;
}

.password-submit:hover {
  background: var(--neon-blue);
  color: var(--black);
  box-shadow: 0 0 40px rgba(0, 200, 255, 0.3);
}

.password-error {
  color: #ff4060;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  margin-top: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.password-error.visible {
  opacity: 1;
}

.access-granted {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.access-granted.active {
  opacity: 1;
}

.access-granted .grant-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--emerald);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.6s var(--transition);
}

.access-granted.active .grant-text {
  opacity: 1;
  transform: translateY(0);
}

/* --- NAVIGATION --- */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 60px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 5, 16, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--panel-border);
  transition: transform 0.4s var(--transition);
}

/* Nav is always sticky/visible */

.nav-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.3s ease;
}

.nav-brand:hover {
  color: var(--neon-blue);
}

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

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray);
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--neon-blue);
  transition: width 0.4s var(--transition);
}

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

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

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--white);
  margin: 6px 0;
  transition: all 0.3s ease;
}

.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);
}

/* --- PAGE HEADER / HERO --- */
.page-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 60px 80px;
}

.page-hero-inner {
  max-width: 1400px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--neon-blue);
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.8s 0.3s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s 0.5s forwards;
}

.hero-title .accent {
  color: var(--neon-blue);
}

.hero-title .accent-gold {
  color: var(--gold);
}

.hero-title .accent-emerald {
  color: var(--emerald);
}

.hero-subtitle {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 50px;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.8s 0.7s forwards;
}

.hero-meta {
  display: flex;
  gap: 50px;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.8s 0.9s forwards;
}

.hero-meta-item {
  border-left: 1px solid var(--neon-blue-dim);
  padding-left: 20px;
}

.hero-meta-item .label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 5px;
}

.hero-meta-item .value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--neon-blue);
  font-weight: 300;
}

/* --- CANVAS BG --- */
.bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* --- SECTIONS --- */
.section {
  padding: 120px 60px;
  position: relative;
  z-index: 2;
}

.section-narrow {
  max-width: 1200px;
  margin: 0 auto;
}

.section-wide {
  max-width: 1400px;
  margin: 0 auto;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--neon-blue);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 25px;
}

.section-desc {
  color: var(--gray);
  font-size: 1rem;
  max-width: 650px;
  line-height: 1.8;
  margin-bottom: 60px;
}

/* --- GRID LAYOUTS --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

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

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

/* --- PANELS / CARDS --- */
.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease, transform 0.4s var(--transition);
}

.panel:hover {
  border-color: rgba(0, 200, 255, 0.2);
  transform: translateY(-4px);
}

.panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.panel:hover::before {
  opacity: 0.5;
}

.panel-number {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--neon-blue);
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--white);
}

.panel-text {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.8;
}

.panel-icon {
  width: 50px;
  height: 50px;
  border: 1px solid var(--neon-blue-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  color: var(--neon-blue);
  font-size: 1.2rem;
}

/* --- STAT COUNTERS --- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 60px 0;
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  color: var(--neon-blue);
  font-weight: 300;
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray);
}

/* --- TIMELINE --- */
.timeline {
  position: relative;
  padding-left: 60px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--neon-blue), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s var(--transition);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -46px;
  top: 8px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--neon-blue);
  background: var(--deep-black);
  transform: rotate(45deg);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--neon-blue);
  letter-spacing: 3px;
  margin-bottom: 10px;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.timeline-text {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 600px;
}

/* --- IMAGE CONTAINERS --- */
.img-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--panel-border);
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  transition: transform 0.8s var(--transition);
}

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

.img-frame-portrait {
  aspect-ratio: 3/4;
}

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

.img-frame-landscape {
  aspect-ratio: 16/9;
}

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

.img-frame-square {
  aspect-ratio: 1/1;
}

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

.img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(to top, rgba(5,5,16,0.95), transparent);
}

.img-overlay-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.img-overlay-subtitle {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
}

/* --- QUOTE BLOCK --- */
.quote-block {
  border-left: 2px solid var(--gold);
  padding-left: 40px;
  margin: 60px 0;
}

.quote-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--light-gray);
  margin-bottom: 20px;
}

.quote-author {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}

/* --- DATA VIZ ELEMENTS --- */
.data-line {
  height: 2px;
  background: linear-gradient(90deg, var(--neon-blue), transparent);
  margin: 40px 0;
  opacity: 0.3;
}

.data-ring {
  width: 200px;
  height: 200px;
  border: 1px solid var(--neon-blue-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.data-ring::before {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(0, 200, 255, 0.05);
  border-radius: 50%;
}

/* --- INSIGHT CARDS --- */
.insight-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  padding: 35px;
  transition: all 0.4s var(--transition);
  position: relative;
  overflow: hidden;
}

.insight-card:hover {
  border-color: rgba(0, 200, 255, 0.15);
  transform: translateY(-3px);
}

.insight-card .card-date {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: var(--gray);
  margin-bottom: 15px;
}

.insight-card .card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--white);
  line-height: 1.4;
}

.insight-card .card-excerpt {
  color: var(--gray);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.insight-card .card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--neon-blue);
  border: 1px solid var(--neon-blue-dim);
  padding: 4px 12px;
}

/* --- CONTACT FORM --- */
.form-group {
  margin-bottom: 30px;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(15, 25, 35, 0.8);
  border: 1px solid var(--panel-border);
  color: var(--white);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  padding: 16px 20px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.08);
}

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

.form-submit {
  background: transparent;
  border: 1px solid var(--neon-blue);
  color: var(--neon-blue);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 16px 60px;
  cursor: pointer;
  transition: all 0.4s ease;
}

.form-submit:hover {
  background: var(--neon-blue);
  color: var(--black);
  box-shadow: 0 0 40px rgba(0, 200, 255, 0.2);
}

/* --- SOCIAL ICONS --- */
.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  width: 44px;
  height: 44px;
  border: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  transform: translateY(-2px);
}

/* --- FOOTER --- */
.site-footer {
  padding: 60px 60px 40px;
  border-top: 1px solid var(--panel-border);
  position: relative;
  z-index: 2;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--panel-border);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 15px;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: var(--gray);
}

.footer-nav {
  display: flex;
  gap: 30px;
  list-style: none;
}

.footer-nav a {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--neon-blue);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-credits {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: var(--gray);
}

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

.footer-credits a:hover {
  color: var(--neon-blue);
}

.footer-contact-line {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 1px;
  color: var(--gray);
}

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

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

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

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

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

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

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

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

/* --- STAGGER DELAYS --- */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* --- PAGE TRANSITION --- */
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--deep-black);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* --- HORIZONTAL SCROLLING TICKER --- */
.ticker-bar {
  overflow: hidden;
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
  padding: 15px 0;
  white-space: nowrap;
}

.ticker-content {
  display: inline-block;
  animation: tickerScroll 30s linear infinite;
}

.ticker-content span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gray);
  margin-right: 60px;
}

.ticker-content .highlight {
  color: var(--neon-blue);
}

/* --- BUTTON STYLES --- */
.btn-primary {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--neon-blue);
  color: var(--neon-blue);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 14px 40px;
  cursor: pointer;
  transition: all 0.4s ease;
}

.btn-primary:hover {
  background: var(--neon-blue);
  color: var(--black);
  box-shadow: 0 0 30px rgba(0, 200, 255, 0.2);
}

.btn-ghost {
  display: inline-block;
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 14px 0;
  cursor: pointer;
  transition: color 0.3s ease;
  border: none;
  background: none;
}

.btn-ghost:hover {
  color: var(--neon-blue);
}

/* --- PROGRESS / BAR CHARTS --- */
.bar-chart {
  margin: 30px 0;
  width: 100%;
  display: block;
}

.bar-item {
  margin-bottom: 24px;
  width: 100%;
  display: block;
  overflow: hidden;
}

.bar-label {
  display: table;
  width: 100%;
  margin-bottom: 10px;
  table-layout: fixed;
}

.bar-label .name {
  display: table-cell;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--light-gray);
  white-space: nowrap;
  text-align: left;
  width: 80%;
}

.bar-label .percent {
  display: table-cell;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--neon-blue);
  white-space: nowrap;
  text-align: right;
  width: 20%;
}

.bar-track {
  height: 4px;
  background: rgba(255,255,255,0.08);
  position: relative;
  width: 100%;
  display: block;
  clear: both;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-blue), var(--emerald));
  width: 0;
  transition: width 1.5s var(--transition);
  display: block;
}

/* --- TAG / BADGE --- */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border: 1px solid var(--panel-border);
  color: var(--gray);
  margin: 3px;
  transition: all 0.3s ease;
}

.tag:hover {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
}

.tag.gold {
  border-color: var(--gold-dim);
  color: var(--gold);
}

.tag.emerald {
  border-color: var(--emerald-dim);
  color: var(--emerald);
}

/* --- DIVIDER --- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--panel-border), transparent);
  margin: 80px 0;
}

/* --- RESPONSIVE INLINE GRIDS --- */
.grid-inline-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.grid-inline-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

/* --- ANIMATED GRADIENT BG --- */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}

.gradient-orb.blue {
  background: var(--neon-blue);
  width: 500px;
  height: 500px;
}

.gradient-orb.emerald {
  background: var(--emerald);
  width: 400px;
  height: 400px;
}

.gradient-orb.gold {
  background: var(--gold);
  width: 300px;
  height: 300px;
}

/* --- KEYFRAMES --- */
@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes gridReveal {
  0% { opacity: 0; transform: scale(0.9); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.1); }
}

/* --- GALLERY GRID --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  cursor: pointer;
  transition: all 0.4s var(--transition);
}

.gallery-item:hover {
  border-color: rgba(0, 200, 255, 0.2);
  transform: translateY(-3px);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  object-position: center;
  background: var(--panel);
  transition: transform 0.6s var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* --- LIGHTBOX --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 85vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  background: none;
  border: 1px solid var(--panel-border);
  color: var(--white);
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
}

/* --- CONTACT INFO --- */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.contact-info-item {
  padding: 35px;
  border: 1px solid var(--panel-border);
  text-align: center;
  transition: all 0.4s var(--transition);
}

.contact-info-item:hover {
  border-color: rgba(0, 200, 255, 0.15);
  transform: translateY(-3px);
}

.contact-info-item .icon {
  font-size: 1.3rem;
  color: var(--neon-blue);
  margin-bottom: 15px;
}

.contact-info-item .info-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}

.contact-info-item .info-value {
  font-size: 0.95rem;
  color: var(--white);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
  .grid-4,
  .grid-inline-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 1024px) {
  .main-nav {
    padding: 0 30px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: rgba(5, 5, 16, 0.98);
    backdrop-filter: blur(30px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 40px;
    gap: 25px;
    transition: right 0.5s var(--transition);
    border-left: 1px solid var(--panel-border);
  }

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

  .nav-links a {
    font-size: 0.75rem;
  }

  .section {
    padding: 80px 30px;
  }

  .page-hero {
    padding: 120px 30px 60px;
  }

  .grid-2,
  .grid-inline-2 {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

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

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

  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    gap: 30px;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 15px;
  }

  .hero-meta {
    flex-wrap: wrap;
    gap: 30px;
  }

  .site-footer {
    padding: 40px 30px 30px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

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

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

  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

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

  .gallery-item img {
    height: 250px;
  }

  .section {
    padding: 60px 20px;
  }

  .page-hero {
    padding: 100px 20px 40px;
  }

  .main-nav {
    padding: 0 20px;
    height: 65px;
  }

  .quote-block {
    padding-left: 20px;
  }

  .quote-text {
    font-size: 1.2rem;
  }

  .panel {
    padding: 25px;
  }

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

  .password-input-wrap input {
    width: 260px;
    padding: 14px 20px;
  }
}

@media (max-width: 480px) {
  .stat-grid,
  .grid-inline-4 {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .hero-meta {
    flex-direction: column;
    gap: 20px;
  }

  .social-links {
    flex-wrap: wrap;
  }
}
