﻿@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600&family=Josefin+Sans:wght@300;500;600&display=swap');

:root {
  --midnight: #101820;
  --deep-teal: #172932;
  --panel: rgba(23, 41, 50, 0.88);
  --gold: #caa76a;
  --pale-gold: #f3e5c3;
  --accent: #3e5f63;
  --accent-bright: #e8c589;
  --ink: #1d2c33;
  --shadow: rgba(0, 0, 0, 0.35);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes drawLine {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-on-scroll.delay-1 {
  animation-delay: 0.1s;
}

.animate-on-scroll.delay-2 {
  animation-delay: 0.2s;
}

.animate-on-scroll.delay-3 {
  animation-delay: 0.3s;
}

.animate-on-scroll.delay-4 {
  animation-delay: 0.4s;
}

body {
  min-height: 100vh;
  font-family: 'Josefin Sans', Arial, sans-serif;
  line-height: 1.85;
  background: linear-gradient(135deg, var(--midnight), var(--deep-teal));
  color: var(--pale-gold);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
  position: relative;
}

/* Subtle grain texture overlay for Art Deco authenticity */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.035;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

body.page-loaded {
  opacity: 1;
}

body.page-exiting {
  opacity: 0;
}

/* Smooth section transitions */
section {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

main {
  transition: opacity 0.3s ease;
}

/* Alternating section backgrounds for visual hierarchy */
section:nth-of-type(even) {
  background: rgba(23, 41, 50, 0.3);
}

section:nth-of-type(odd) {
  background: rgba(16, 24, 32, 0.25);
}

/* Hero gets special treatment */
.hero {
  background: transparent;
}

/* Page transition overlay */
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--midnight), var(--deep-teal));
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}

.page-transition-overlay.active {
  opacity: 1;
  pointer-events: all;
}

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

a:hover {
  color: var(--pale-gold);
}

/* Layout helpers */
.deco-panel {
  background: var(--panel);
  border: 2px solid var(--gold);
  box-shadow: 0 15px 25px var(--shadow);
  position: relative;
  --corner-size: 16px;
}

.deco-panel::before,
.deco-panel::after {
  content: '';
  position: absolute;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: var(--gold);
  opacity: 0.45;
  pointer-events: none;
}

.deco-panel::before {
  left: 22px;
}

.deco-panel::after {
  right: 22px;
}

/* Art Deco corner ornaments using border-image */
.deco-panel {
  border-image:
    linear-gradient(
      to bottom,
      var(--gold) 0%, var(--gold) var(--corner-size),
      transparent var(--corner-size), transparent calc(100% - var(--corner-size)),
      var(--gold) calc(100% - var(--corner-size)), var(--gold) 100%
    ) 2;
}

/* Corner accents via box-shadow on large screens */
@media (min-width: 769px) {
  .deco-panel {
    box-shadow:
      0 15px 25px var(--shadow),
      /* Top-left */
      8px 8px 0 -6px var(--gold),
      8px 24px 0 -6px var(--gold),
      24px 8px 0 -6px var(--gold),
      /* Top-right */
      calc(100% - 8px) 8px 0 -6px var(--gold),
      calc(100% - 8px) 24px 0 -6px var(--gold),
      calc(100% - 24px) 8px 0 -6px var(--gold),
      /* Bottom-left */
      8px calc(100% - 8px) 0 -6px var(--gold),
      8px calc(100% - 24px) 0 -6px var(--gold),
      24px calc(100% - 8px) 0 -6px var(--gold),
      /* Bottom-right */
      calc(100% - 8px) calc(100% - 8px) 0 -6px var(--gold),
      calc(100% - 8px) calc(100% - 24px) 0 -6px var(--gold),
      calc(100% - 24px) calc(100% - 8px) 0 -6px var(--gold);
  }
}

.section-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 30px;
}

.section-shell h2 {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: 2.4rem;
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.section-note {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
  color: var(--pale-gold);
  opacity: 0.85;
}

/* Drop cap styling - inline for all text */
.about-text p:first-of-type::first-letter,
.personal-story p:first-of-type::first-letter {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: 1.8em;
  color: var(--gold);
  font-weight: 600;
}

/* Drop cap styling for centered text */
.section-note::first-letter {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: 1.8em;
  color: var(--gold);
  font-weight: 600;
}

/* Navigation */



.logo {
  display: inline-flex;
  align-items: center;
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: 2rem;
  letter-spacing: 0.35rem;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo:hover {
  color: var(--pale-gold);
}

.logo img {
  height: 72px;
  width: auto;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.55));
}

.nav-links .nav-home {  display: inline-flex;  align-items: center;  gap: 8px;  padding-bottom: 4px;}

.nav-links .nav-home img {  width: 20px;  height: 20px;  object-fit: contain;  display: block;  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));}

.nav-links .nav-home span {
  letter-spacing: 0.2rem;
  text-transform: uppercase;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-bright);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Active page background highlight */
.nav-links a.active {
  background: rgba(202, 167, 106, 0.15);
  border-radius: 4px;
  padding: 8px 12px;
  margin: -8px -12px;
}

/* Hero */
.hero {
  margin: 0 auto 60px;
  max-width: 1280px;
  padding: 120px 40px;
  overflow: hidden;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

/* Gradient overlay for hero text readability */
.hero {
  background: linear-gradient(
    135deg,
    rgba(16, 24, 32, 0.6) 0%,
    rgba(23, 41, 50, 0.4) 50%,
    transparent 100%
  );
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  top: 40px;
  bottom: 40px;
  width: 2px;
  background: var(--gold);
  opacity: 0.35;
}

.hero::before {
  left: 120px;
}

.hero::after {
  right: 120px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 960px;
  margin: 0 auto;
}

.hero-media {
  flex: 0 0 280px;
}

.hero-portrait {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid var(--gold);
  box-shadow: 0 12px 18px var(--shadow);
  transition: filter 0.3s ease;
}

.hero-portrait:hover {
  filter: brightness(1.05) contrast(1.05);
}

.hero-content {
  flex: 1;
  text-align: left;
}


.hero-kicker {
  letter-spacing: 0.35rem;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--gold);
}

.hero h2 {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: 3.4rem;
  letter-spacing: 0.25rem;
  margin-bottom: 10px;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 35px;
  opacity: 0.85;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  border: 2px solid var(--gold);
  color: var(--pale-gold);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.25rem;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--gold), var(--pale-gold));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn:hover::before {
  opacity: 1;
}

.btn:hover {
  color: var(--ink);
}

/* Curriculum Vitae */
.about-page,
.cv-highlight,
.personal-story {
  margin-bottom: 40px;
}

.cv-highlight {
  text-align: center;
}

.cv-highlight .cv-content {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cv-highlight p {
  font-size: 1.05rem;
}

/* Personal Story */
.personal-story {
  text-align: center;
}

.personal-story p {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.85;
}

.about.section-shell {
  margin-bottom: 50px;
}

.about.section-shell + .contact.section-shell {
  margin-top: 40px;
}

/* Projects */
.project-carousel {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: stretch;
  gap: 24px;
  margin: 0 auto 60px;
  max-width: 1280px;
  width: 100%;
}

.project-stage {
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0 12px;
}

.project-track {
  width: min(720px, 100%);
  margin: 0 auto;
  position: relative;
}

.project-stage .project-card {
  width: 100%;
  margin: 0;
}

.project-carousel.manual-ready .project-card {
  display: none;
}

.project-carousel.manual-ready .project-card.is-active {
  display: block;
}

.carousel-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-size: 1.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.carousel-control span {
  line-height: 1;
}

.carousel-control:hover,
.carousel-control:focus-visible {
  background: var(--gold);
  color: var(--midnight);
  outline: none;
}

.carousel-control:disabled {
  border-color: rgba(202, 167, 106, 0.35);
  color: rgba(202, 167, 106, 0.35);
  cursor: not-allowed;
}

@media (max-width: 720px) {
  .project-carousel {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 16px;
  }

  .carousel-control {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 24px auto 60px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.carousel-dot:hover,
.carousel-dot:focus-visible {
  background: var(--pale-gold);
  transform: scale(1.15);
  outline: none;
}

.carousel-dot.is-active {
  background: var(--gold);
  transform: scale(1.25);
}


.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
  grid-auto-rows: 1fr;
}

/* Ensure cards have equal heights */
.project-grid .project-card {
  display: flex;
  flex-direction: column;
}

.project-grid .project-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.deco-card {
  background: rgba(11, 18, 24, 0.75);
  border: 2px solid var(--gold);
  padding: 36px 34px;
  position: relative;
  overflow: hidden;
}

.deco-card::before,
.deco-card::after {
  content: '';
  position: absolute;
  border: 1px solid var(--gold);
  opacity: 0.45;
  z-index: 0;
}

.deco-card::before {
  top: 18px;
  bottom: 18px;
  left: 26px;
  right: 26px;
}

.deco-card::after {
  top: 34px;
  bottom: 34px;
  left: 42px;
  right: 42px;
}

.project-card-body {
  position: relative;
  z-index: 1;
  padding: 20px 26px;
}


.project-card {
  max-width: 90vw;
  min-height: 280px;
  padding: 0;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.project-card.deco-card::before,
.project-card.deco-card::after {
  display: none;
}

.project-card-content {
  position: relative;
  margin: 16px;
  padding: 18px 20px;
  z-index: 1;
}

.project-card-content::before,
.project-card-content::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.project-card-content::after {
  inset: 12px;
  opacity: 0.25;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--gold);
}

/* Stagger animation for project cards */
.project-grid .project-card:nth-child(1) {
  animation-delay: 0.1s;
}

.project-grid .project-card:nth-child(2) {
  animation-delay: 0.2s;
}

.project-grid .project-card:nth-child(3) {
  animation-delay: 0.3s;
}

.project-grid .project-card:nth-child(4) {
  animation-delay: 0.4s;
}

.project-grid .project-card:nth-child(5) {
  animation-delay: 0.5s;
}

.project-grid .project-card:nth-child(6) {
  animation-delay: 0.6s;
}

.project-card h3 {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: 1.7rem;
  letter-spacing: 0.2rem;
  margin-bottom: 12px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.project-card p,
.project-card ul {
  position: relative;
  z-index: 1;
}

.project-card ul {
  list-style: none;
  margin: 16px 0 12px;
}

.project-card li {
  margin-bottom: 6px;
}

/* About Page */
.about-page {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.about-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  justify-items: center;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
}

.about-container > * {
  width: 100%;
  max-width: 480px;
}

.portrait-frame {
  padding: 22px;
  border: 2px solid var(--gold);
  background: rgba(10, 18, 24, 0.65);
  border-radius: 12px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: none;
}

.profile-pic {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 12px 18px var(--shadow);
  max-height: 100%;
  transition: filter 0.3s ease;
}

.profile-pic:hover {
  filter: brightness(1.05) contrast(1.05);
}

.about-text {
  background: rgba(10, 18, 24, 0.65);
  padding: 32px;
  border: 2px solid var(--gold);
  box-shadow: 0 10px 18px var(--shadow);
  border-radius: 12px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-text strong {
  color: var(--accent-bright);
}

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

.about-text ul {
  padding-left: 20px;
  margin: 0;
}

@media (min-width: 820px) {
  .about-container {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 36px;
    justify-items: stretch;
  }

  .about-container > * {
    max-width: none;
  }

  .portrait-frame {
    align-self: stretch;
    height: 100%;
  }

  .about-text {
    align-self: stretch;
  }
}
/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-bottom: 30px;
  grid-auto-rows: 1fr;
}

.contact-grid .contact-card {
  display: flex;
  flex-direction: column;
}

.contact-card {
  padding: 0;
}

.contact-card.deco-card::before,
.contact-card.deco-card::after {
  display: none;
}

.contact-card-content {
  position: relative;
  margin: 16px;
  padding: 18px 22px;
  z-index: 1;
}

.contact-card-content::before,
.contact-card-content::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.contact-card-content::after {
  inset: 10px;
  opacity: 0.25;
}

.contact-card h3 {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: 1.6rem;
  letter-spacing: 0.18rem;
  margin-bottom: 12px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.contact-card p {
  position: relative;
  z-index: 1;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 28px;
  margin: 80px 30px 40px;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    var(--gold) 20%,
    var(--gold) 80%,
    transparent
  );
  opacity: 0.5;
}

.site-footer p {
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  font-size: 0.75rem;
}

/* Responsive - Improved spacing and transitions */

/* Extra large screens */
@media (min-width: 1440px) {
  .section-shell {
    max-width: 1440px;
    padding: 80px 40px;
  }

  .hero {
    max-width: 1440px;
    padding: 140px 60px;
  }

  .project-carousel {
    max-width: 1440px;
  }
}

/* Tablet landscape */
@media (max-width: 900px) {
  .section-shell {
    padding: 65px 28px;
  }

  .hero {
    padding: 100px 32px;
  }
}

/* Tablet portrait */
@media (max-width: 768px) {
  .hero::before,
  .hero::after,
  .deco-panel::before,
  .deco-panel::after {
    display: none;
  }

  .hero {
    padding: 80px 28px;
  }

  .hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
  }

  .hero-media {
    max-width: 280px;
  }

  .hero-content {
    text-align: center;
  }

  .section-shell {
    padding: 55px 26px;
  }

  .site-footer {
    margin: 45px 24px 32px;
    padding: 24px;
  }
}

/* Mobile landscape */
@media (max-width: 640px) {
  .section-shell {
    padding: 50px 22px;
  }

  .hero {
    padding: 70px 22px;
  }

  .hero-media {
    max-width: 240px;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  .section-shell {
    padding: 45px 18px;
  }

  .hero {
    padding: 60px 18px;
  }

  .hero-inner {
    gap: 28px;
  }

  .hero-media {
    max-width: 220px;
  }

  .site-footer {
    margin: 40px 18px 28px;
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}










/* About nav link icon+text */
.nav-links a.nav-about { display: inline-flex; align-items: center; gap: 8px; line-height: 1; }
.nav-links a.nav-about img { width: 30px; height: 30px; object-fit: contain; vertical-align: middle; }
.nav-links a.nav-home img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  vertical-align: middle;
  }





/* Projects nav link icon+text */
.nav-links a.nav-projects { display: inline-flex; align-items: center; gap: 8px; line-height: 1; }
.nav-links a.nav-projects img { width: 30px; height: 30px; object-fit: contain; vertical-align: middle; }

/* Contact nav link icon+text */
.nav-links a.nav-contact { display: inline-flex; align-items: center; gap: 8px; line-height: 1; }
.nav-links a.nav-contact img { width: 30px; height: 30px; object-fit: contain; vertical-align: middle; }


.nav-links .nav-home,
.nav-links a.nav-about,
.nav-links a.nav-projects,
.nav-links a.nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
/* Header layout */
.site-header {
  padding: 20px 30px;
  border-top: 2px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.4s ease;
}

.site-header.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  width: 90px;
  height: 100vh;
  padding: 20px 0;
  background: rgba(23, 41, 50, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.3);
  border-top: none;
  border-right: 2px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-header.scrolled .header-wrap {
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.site-header.scrolled .logo {
  display: flex;
  justify-content: center;
  width: 100%;
}

.site-header.scrolled .logo img {
  height: 48px;
}

.site-header.scrolled .nav-bar {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  width: 100%;
  flex: none;
  margin: 0;
  display: flex;
  justify-content: center;
}

.site-header.scrolled .nav-bar::before,
.site-header.scrolled .nav-bar::after {
  display: none;
}

.site-header.scrolled .nav-links {
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
}

.site-header.scrolled .nav-links a {
  font-size: 0.85rem;
  position: relative;
}

.site-header.scrolled .nav-links a span {
  display: none;
}

/* Tooltip on hover for sticky sidebar */

.site-header.scrolled .nav-links a::before {
  /* Reserve space for the active indicator and tooltip */
  content: '';
  position: absolute;
  left: -28px;
  top: 50%;
  width: 4px;
  height: 28px;
  background: transparent;
  border-radius: 2px;
  transform: translateY(-50%);
}

.site-header.scrolled .nav-links a:hover::before {
  /* Tooltip shows on hover */
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 20px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(23, 41, 50, 0.95);
  color: var(--pale-gold);
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid var(--gold);
  white-space: nowrap;
  opacity: 1;
  pointer-events: none;
  font-size: 0.85rem;
  letter-spacing: 0.1rem;
  z-index: 1000;
  width: auto;
  height: auto;
}

.site-header.scrolled .nav-links img {
  width: 32px;
  height: 32px;
}

/* Active indicator in sticky sidebar */
.site-header.scrolled .nav-links a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-header.scrolled .nav-links a.active {
  background: transparent;
  margin: 0;
  padding: 0;
}

.site-header.scrolled .nav-links a.active::before {
  content: '';
  left: -28px;
  width: 4px;
  height: 28px;
  background: var(--accent-bright);
  transform: translateY(-50%);
}

.site-header.scrolled .nav-links a.active:hover::before {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 20px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(23, 41, 50, 0.95);
  color: var(--pale-gold);
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid var(--gold);
  white-space: nowrap;
  font-size: 0.85rem;
  letter-spacing: 0.1rem;
  width: auto;
  height: auto;
  margin-top: 0;
}

.site-header.scrolled .nav-links a.active::after {
  display: none;
}

.site-header .header-wrap {  display: flex;  align-items: center;  gap: 30px;
}

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

.site-header .logo img {  height: 72px;
  width: auto;
  display: block;
}

.site-header .nav-bar {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 60px 16px 24px;
  margin-left: 30px;
  border: none;
  background: var(--panel);
  box-shadow: none;
  min-width: 0;
}

.site-header .nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header .nav-links li {
  margin: 0;
}

.site-header .nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.site-header .nav-links img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .site-header {
    padding: 18px 24px;
  }

  .site-header .nav-bar {
    padding: 14px 20px;
  }

  .site-header .nav-links {
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 16px 18px;
  }

  .site-header .header-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .site-header .logo {
    justify-content: center;
  }

  .site-header .nav-bar {
    width: 100%;
    padding: 14px 16px;
  }

  .site-header .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .site-header .nav-links a {
    justify-content: center;
  }
}




