@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ────────────────────────────────────── */
:root {
  --gold:       #C9A84C;
  --gold-light: #E5C97A;
  --gold-neon:  #FFD700;
  --velvet:     #0a0008;
  --bg:         #000000;
  --white:      #FFFFFF;
  --gray:       #888888;
  --success:    #4caf50;
  --error:      #ff4d4d;
  --border:     rgba(27, 27, 25, 0.18);
}

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

html { 
  scroll-behavior: smooth; 
  overflow-x: hidden; 
  background: #000; /* Ensure base is black if transparency is used */
}

body {
  background: transparent;
  color: var(--white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: -0.015em;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── React/Three-Fiber Root ──────────────────────────── */
#react-bg-root {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
#bg-canvas { display: none; } /* Hide legacy canvas */

/* ── Layout wrapper ──────────────────────────────────── */
main, nav, footer, .page-content {
  position: relative;
  z-index: 1;
}

/* ── Glow Typography ─────────────────────────────────── */
.text-gold {
  color: var(--gold);
}
.text-gold-glow {
  color: var(--gold-neon);
  text-shadow:
    0 0 10px rgba(255,215,0,0.7),
    0 0 30px rgba(255,215,0,0.4),
    0 0 70px rgba(255,215,0,0.15);
}
.text-white-glow {
  color: #fff;
  text-shadow:
    0 0 12px rgba(255,255,255,0.6),
    0 0 40px rgba(255,255,255,0.2);
}
.display-heading {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  -webkit-text-stroke: 0 !important;
}
.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Navigation ──────────────────────────────────────── */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}
#main-nav.scrolled {
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}
.main-logo {
  height: 100px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(201,168,76,0.45));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s;
  flex-shrink: 0;
}
.logo-wrap:hover .main-logo {
  filter: drop-shadow(0 0 24px rgba(255,215,0,0.7));
}
.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.logo-t {
  font-family: 'Inter', sans-serif;
  font-size: 1.7rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  border-bottom: 2px solid #fff;
  padding-bottom: 6px;
}
.logo-t-letter {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.0rem;
  font-weight: 900;
  line-height: 1;
  vertical-align: baseline;
  display: inline-block;
  margin-right: -0.04em;
}
.logo-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  line-height: 1.2;
  opacity: 1;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold-neon);
  box-shadow: 0 0 6px var(--gold-neon);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--gold-neon); }
.nav-links a:hover::after { width: 100%; }

/* Hamburger / Crown Menu */
.nav-hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--white);
}
.nav-hamburger .crown-icon {
  width: 28px;
  height: 28px;
  transition: transform 0.3s, filter 0.3s, stroke 0.3s;
}
.nav-hamburger.open .crown-icon {
  transform: scale(0.9);
  filter: drop-shadow(0 0 10px rgba(255,215,0,0.6));
  stroke: var(--gold-neon);
}
.nav-hamburger .menu-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Mobile menu */
#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0,0,0,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
  font-family: 'Inter', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s, text-shadow 0.3s;
}
#mobile-menu a:hover {
  color: var(--gold-neon);
  text-shadow: 0 0 20px rgba(255,215,0,0.5);
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 3rem 6rem;
}
.hero-inner {
  max-width: 1100px;
}
.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: var(--gold);
}
.display-heading {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  color: #FFFFFF;
  -webkit-text-stroke: 0 !important;
}
.hero h1 .accent {
  font-size: clamp(2rem, 10vw, 8rem);
  color: var(--gold-neon);
  display: inline-block;
  white-space: nowrap;
  text-shadow:
    0 0 30px rgba(255,215,0,0.8),
    0 0 80px rgba(255,215,0,0.4);
}
.hero-sub {
  font-size: clamp(0.95rem, 2.5vw, 1.3rem);
  line-height: 1.7;
  max-width: 800px;
  text-wrap: balance;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0.9;
  -webkit-text-stroke: 0 !important;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 2.5rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  background: transparent;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}
.btn-primary:hover {
  color: #000;
  box-shadow: 0 0 30px rgba(201,168,76,0.5);
  letter-spacing: 0.25em;
}
.btn-primary:hover::before { 
  transform: scaleX(1); 
  transform-origin: left;
}

/* Shimmer & Glow specifically for CTAs */
.btn-cta {
  box-shadow: 0 0 15px rgba(201,168,76,0.2);
  border-width: 2px;
}
.btn-cta::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  animation: shimmer 4s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}
.btn-cta:hover {
  box-shadow: 0 0 40px rgba(201,168,76,0.6);
  transform: translateY(-2px);
}

/* ── Marquee ─────────────────────────────────────────── */
.marquee-wrap {
  overflow: hidden;
  border-top: none;
  border-bottom: none;
  padding: 1.5rem 0;
  background: transparent;
}
.marquee-track {
  display: flex;
  gap: 3rem;
  padding-right: 3rem;
  width: max-content;
  animation: marquee 37.5s linear infinite;
  white-space: nowrap;
}
.marquee-track span {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #ffffff;
  letter-spacing: 0.1em;
}
.marquee-track .dot {
  color: var(--gold);
  font-size: 0.5rem;
  vertical-align: middle;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Sections ─────────────────────────────────────────── */
.section {
  padding: 5rem 4rem !important;
  max-width: 1300px;
  margin: 5rem auto !important;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 10;
}

/* Explicitly remove hero content box outlines if they exist */
.hero-content-box {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4rem;
  gap: 2rem;
}
.section-header h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.gold-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
  margin: 2rem 0;
  opacity: 0.4;
}

/* ── Services grid ────────────────────────────────────── */
.disciplines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
}
.service-card {
  background: #000;
  padding: 2.5rem 2rem;
  transition: background 0.3s;
}
.service-card:hover {
  background: rgba(201,168,76,0.04);
}
.service-num {
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}
.service-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}
.service-card:hover h3 { color: var(--gold-neon); }
.service-card p {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ── Portfolio grid ───────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.portfolio-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #111;
}
.portfolio-card img,
.portfolio-card video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}
.portfolio-card:hover img,
.portfolio-card:hover video { transform: scale(1.05); filter: brightness(0.9); }
.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.portfolio-card:hover .portfolio-card-overlay { opacity: 1; }
.portfolio-card-overlay span {
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.portfolio-card-overlay h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
}

/* ── Article cards ────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.article-card {
  border: 1px solid var(--border);
  padding: 2rem;
  transition: border-color 0.3s, background 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.article-card:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.03);
}
.article-date {
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.article-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.article-card p {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ── Service page hero ────────────────────────────────── */
.page-hero {
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
  padding: 10rem 3rem 5rem;
}
.page-hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(3rem, 8vw, 8.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

/* ── Contact form ─────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 640px;
}
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 0.85rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(201,168,76,0.15);
}
.form-group select option {
  color: #000;
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 140px; }
.captcha-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  background: rgba(201,168,76,0.03);
}
.captcha-question {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  color: var(--gold-neon);
}
.captcha-box input {
  width: 80px;
  text-align: center;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.5);
  color: var(--white);
  padding: 0.5rem;
  font-size: 1rem;
}
.captcha-error {
  border: 1px solid rgba(255, 77, 77, 0.6) !important;
  box-shadow: 0 0 10px rgba(255, 77, 77, 0.15);
}

/* ── Flash messages ───────────────────────────────────── */
.flash-container {
  position: fixed;
  top: 5rem; right: 1.5rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.flash {
  padding: 1rem 1.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-left: 3px solid;
  max-width: 340px;
  animation: slideIn 0.3s ease;
}
.flash-success {
  background: rgba(0,255,100,0.08);
  border-color: #00ff64;
  color: #00ff64;
}
.flash-error {
  background: rgba(255,50,50,0.08);
  border-color: #ff3232;
  color: #ff6464;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Footer ───────────────────────────────────────────── */
footer {
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 4rem 3rem;
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 3rem;
  position: relative;
  z-index: 1;
}
.footer-brand img {
  height: 64px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 8px rgba(201,168,76,0.4));
}
.footer-brand p {
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.7;
  max-width: 280px;
}
.footer-links h4, .footer-contact h4, .footer-payment h4, .footer-social h4 {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a, .footer-contact a {
  font-size: 0.82rem;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover, .footer-contact a:hover { color: var(--gold); }
.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.payment-icons svg, .social-icons-suite svg {
  width: 24px;
  height: 24px;
  fill: var(--gray);
  color: var(--gray);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.payment-icons div:hover svg, .social-icons-suite a:hover svg {
  fill: var(--gold);
  color: var(--gold);
  filter: drop-shadow(0 0 10px rgba(201,168,76,0.8));
  transform: translateY(-3px);
}
.social-icons-suite {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}
.payment-icons svg:hover {
  fill: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.footer-bottom {
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--gray);
  position: relative;
  z-index: 1;
}

/* ── Admin styles ─────────────────────────────────────── */
.admin-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  width: 280px;
  background: rgba(255, 255, 255, 0.02) !important;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 10;
}
.admin-sidebar .logo-wrap {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.admin-sidebar .logo-wrap img {
  height: 48px;
  filter: drop-shadow(0 0 15px rgba(201,168,76,0.6));
}
.admin-sidebar a {
  padding: 1.1rem 1.5rem;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}
.admin-sidebar a:hover {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}
.admin-sidebar a.active {
  background: var(--gold);
  color: #000 !important;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
}
.admin-main {
  flex: 1;
  padding: 4rem;
  overflow-y: auto;
  background: transparent !important;
}
.admin-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 3rem;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.admin-header h1 {
  font-family: 'Inter', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.stat-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.stat-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s, background 0.3s;
}
.stat-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.06);
}
.stat-card .value {
  font-family: 'Inter', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--gold-neon);
  text-shadow: 0 0 25px rgba(255,215,0,0.5);
  line-height: 1;
  margin-bottom: 0.6rem;
}
.stat-card .label {
  font-size: 0.7rem;
  color: #FFFFFF;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
}
.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.5rem;
  font-size: 0.9rem;
}
.admin-table th {
  text-align: left;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 800;
  padding: 1.25rem 1.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}
.admin-table td {
  padding: 1.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  color: #FFFFFF;
  font-weight: 500;
  vertical-align: middle;
}
.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.05);
}
.admin-table td:first-child { border-radius: 12px 0 0 12px; }
.admin-table td:last-child { border-radius: 0 12px 12px 0; }
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.badge-pub  { border: 1px solid #00ff64; color: #00ff64; }
.badge-draft{ border: 1px solid #666; color: #666; }

.btn-sm {
  padding: 0.35rem 0.85rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}
.btn-sm-gold  { border-color: var(--gold); color: var(--gold); }
.btn-sm-gold:hover { background: var(--gold); color: #000; }
.btn-sm-red   { border-color: #ff3232; color: #ff6464; }
.btn-sm-red:hover { background: #ff3232; color: #fff; }
.btn-sm-green { border-color: #00ff64; color: #00ff64; }
.btn-sm-green:hover { background: #00ff64; color: #000; }

/* Admin form */
.admin-form { max-width: 760px; display: flex; flex-direction: column; gap: 1.5rem; }

/* ── Admin login page ─────────────────────────────────── */
.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.login-box {
  width: 100%;
  max-width: 440px;
  border: 1px solid var(--border);
  padding: 3rem;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.login-box h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  color: var(--gold-neon);
  text-shadow: 0 0 20px rgba(255,215,0,0.4);
}

/* ── 404 ─────────────────────────────────────────────── */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
}
.error-code {
  font-family: 'Inter', sans-serif;
  font-size: clamp(6rem, 25vw, 22rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(201,168,76,0.3);
  position: relative;
}
.error-code::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--gold-neon);
  text-shadow: 0 0 60px rgba(255,215,0,0.3);
  -webkit-text-stroke: 0;
  animation: glitch 4s infinite;
}
@keyframes glitch {
  0%,95%,100% { clip-path: inset(0 0 100% 0); opacity: 0; }
  96% { clip-path: inset(20% 0 60% 0); opacity: 0.8; transform: translateX(-4px); }
  97% { clip-path: inset(60% 0 10% 0); opacity: 0.8; transform: translateX(4px); }
  98% { clip-path: inset(40% 0 30% 0); opacity: 0.6; }
}

/* ── Scroll reveal ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cards { grid-template-columns: repeat(3, 1fr); }
  footer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1070px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 768px) {
  #main-nav { padding: 0.75rem 1rem; }
  .logo-wrap { gap: 0.5rem; }
  .main-logo { height: 50px !important; }
  .logo-t { font-size: 1.1rem !important; }
  .logo-t-letter { font-size: 1.3rem !important; }
  .logo-sub { font-size: 0.45rem !important; letter-spacing: 0.2em !important; }
  .hero-inner { padding-top: 5rem; }
  .display-heading { 
    font-size: clamp(2rem, 11vw, 4.5rem); 
    line-height: 1.1;
    text-shadow: 
      0 0 20px rgba(0, 0, 0, 0.9),
      0 0 40px rgba(0, 0, 0, 0.6),
      2px 2px 5px rgba(0, 0, 0, 0.8);
  }
  .display-heading .accent {
    font-size: 1.1em; /* Scales relative to heading */
    white-space: nowrap;
    text-shadow: 
      0 0 25px rgba(0, 0, 0, 1),
      0 0 50px rgba(0, 0, 0, 0.8),
      0 0 20px rgba(255, 215, 0, 0.4);
  }
  .hero-sub {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
    line-height: 1.6;
    text-wrap: balance;
    text-shadow: 
      0 0 15px rgba(0, 0, 0, 0.9),
      0 0 30px rgba(0, 0, 0, 0.6),
      1px 1px 3px rgba(0, 0, 0, 0.8);
  }
  .hero { padding: 0 1.5rem; }
  .section { 
    padding: 3rem 1.5rem !important; 
    margin: 2rem 1rem !important; 
    border-radius: 16px; 
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  }
  .disciplines-grid { 
    grid-template-columns: 1fr !important; 
  }
  .articles-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .marquee-track span {
    font-size: 0.85rem !important;
  }
  .marquee-track {
    gap: 1.5rem !important;
  }
  .bottom-cta-banner {
    padding: 4rem 1.5rem !important;
  }
  .bottom-cta-banner h2 {
    font-size: clamp(2.2rem, 10vw, 3.5rem) !important;
    margin-bottom: 1.5rem !important;
  }
  footer { grid-template-columns: 1fr; padding: 3rem 1.5rem; }
  .footer-bottom { padding: 1.5rem; flex-direction: column; gap: 0.5rem; }
}

/* ── Pulsing Golden Glow Button ──────────────────────── */
.btn-pulse-glow {
  animation: pulse-gold 3s infinite cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.3);
  border: 2px solid #C9A84C !important;
  color: #C9A84C !important;
  font-weight: 700 !important;
  transition: all 0.3s ease;
  position: relative;
  z-index: 100;
}

@keyframes pulse-gold {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 25px 12px rgba(201, 168, 76, 0.15);
    transform: scale(1.03);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.5);
    transform: scale(1);
  }
}

.btn-pulse-glow:hover {
  animation: none;
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
  background: #C9A84C !important;
  color: #000 !important;
  transform: translateY(-2px);
}

/* When pulse-glow is combined with solid-gold, text must be black */
.btn-solid-gold.btn-pulse-glow {
  color: #000 !important;
}
.btn-solid-gold.btn-pulse-glow:hover {
  color: #000 !important;
}

/* ── Apple-style Form Additions ── */
.apple-form .form-row {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
  .apple-form .form-row {
    flex-direction: column;
    gap: 1.5rem;
  }
}
.apple-form .form-group input,
.apple-form .form-group select {
  font-family: inherit;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.apple-form .form-group input:focus,
.apple-form .form-group select:focus {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

/* User requested specifically for Project Description text box */
.apple-form textarea#message {
  background: #ffffff !important;
  color: #000000 !important;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 500;
  font-size: 1rem;
  padding: 1.25rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  min-height: 180px;
}
.apple-form textarea#message:focus {
  border-color: #000000;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

/* Radio buttons matching the aesthetic */
.radio-group {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--white);
}
.radio-label input[type="radio"] {
  width: auto;
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  margin: 0;
  display: grid;
  place-content: center;
  transition: all 0.2s ease;
  position: relative;
}
.radio-label input[type="radio"]::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--white);
}
.radio-label input[type="radio"]:checked {
  border-color: var(--white);
}
.radio-label input[type="radio"]:checked::before {
  transform: scale(1);
}

.btn-solid-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 2.5rem;
  background: var(--gold);
  color: #000;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gold);
  box-shadow: 0 0 20px rgba(201,168,76,0.3);
}
.btn-solid-gold:hover {
  background: var(--gold-light);
  box-shadow: 0 0 40px rgba(201,168,76,0.8);
  transform: translateY(-2px);
}

.bottom-cta-banner {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 7rem 3rem;
  border-top: none;
  border-bottom: none;
  text-align: center;
}

/* ── Notifications / Flash Messages ────────────────────── */
.flash-container {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 90%;
  max-width: 450px;
  pointer-events: none;
}

.flash {
  pointer-events: all;
  padding: 1.25rem 2rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  animation: backInDown 0.6s both;
}

.flash-success {
  border-left: 4px solid var(--success);
  animation: backInDown 0.6s both, pulse-msg 2s infinite 0.6s;
}

.flash-error {
  border-left: 4px solid var(--error);
  animation: backInDown 0.6s both, flash-msg 1.5s infinite 0.6s;
}

.flash.out {
  animation: backOutDown 0.6s both !important;
}

@keyframes backInDown {
  0% { transform: translateY(-1200px) scale(0.7) translateX(-50%); opacity: 0.7; }
  80% { transform: translateY(0px) scale(0.7) translateX(-50%); opacity: 0.7; }
  100% { transform: scale(1) translateX(-50%); opacity: 1; }
}

@keyframes backOutDown {
  0% { transform: scale(1) translateX(-50%); opacity: 1; }
  20% { transform: translateY(0px) scale(0.7) translateX(-50%); opacity: 0.7; }
  100% { transform: translateY(1200px) scale(0.7) translateX(-50%); opacity: 0.7; }
}

@keyframes pulse-msg {
  0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(76, 175, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

@keyframes flash-msg {
  from, 50%, to { opacity: 1; }
  25%, 75% { opacity: 0.6; }
}

/* ── Animated Mail ────────────────────────────────────── */
.letter-image {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 2rem auto;
}

.animated-mail {
  position: absolute;
  height: 150px;
  width: 200px;
  transition: .4s;
}

.animated-mail .body {
  position: absolute;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 100px 200px;
  border-color: transparent transparent #e95f55 transparent;
  z-index: 2;
}

.animated-mail .top-fold {
  position: absolute;
  top: 50px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 50px 100px 0 100px;
  transform-origin: 50% 0%;
  transition: transform .4s .4s, z-index .2s .4s;
  border-color: #cf4a43 transparent transparent transparent;
  z-index: 2;
}

.animated-mail .back-fold {
  position: absolute;
  bottom: 0;
  width: 200px;
  height: 100px;
  background: #cf4a43;
  z-index: 0;
}

.animated-mail .left-fold {
  position: absolute;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 50px 0 50px 100px;
  border-color: transparent transparent transparent #e15349;
  z-index: 2;
}

.animated-mail .letter {
  left: 20px;
  bottom: 0px;
  position: absolute;
  width: 160px;
  height: 60px;
  background: white;
  z-index: 1;
  overflow: hidden;
  transition: .4s .2s;
}

.animated-mail .letter .letter-border {
  height: 10px;
  width: 100%;
  background: repeating-linear-gradient(-45deg, #cb5a5e, #cb5a5e 8px, transparent 8px, transparent 18px);
}

.animated-mail .letter .letter-title {
  margin-top: 10px;
  margin-left: 5px;
  height: 10px;
  width: 40%;
  background: #cb5a5e;
}

.animated-mail .letter .letter-context {
  margin-top: 10px;
  margin-left: 5px;
  height: 10px;
  width: 20%;
  background: #cb5a5e;
}

.animated-mail .letter .letter-stamp {
  margin-top: 30px;
  margin-left: 120px;
  border-radius: 100%;
  height: 30px;
  width: 30px;
  background: #cb5a5e;
  opacity: 0.3;
}

.shadow {
  position: absolute;
  top: 200px;
  left: 50%;
  width: 400px;
  height: 30px;
  transition: .4s;
  transform: translateX(-50%);
  border-radius: 100%;
  background: radial-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.0), rgba(0,0,0,0.0));
}

/* Auto-open state for success notification */
.letter-image.active .animated-mail {
  transform: translateY(50px);
}

.letter-image.active .animated-mail .top-fold {
  transition: transform .4s, z-index .2s;
  transform: rotateX(180deg);
  z-index: 0;
}

.letter-image.active .animated-mail .letter {
  height: 180px;
}

.letter-image.active .shadow {
  width: 250px;
}

/* ── Redux UI Helpers ────────────────────────────────── */
.glass-panel {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}
.bold-900 { font-weight: 900 !important; }
.bold-800 { font-weight: 800 !important; }
.bold-700 { font-weight: 700 !important; }

