/* ============================================================
   Gongjie Zhang — Personal Homepage
   Elegant dark theme with refined typography
   ============================================================ */

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

:root {
  --bg:         #0b0f14;
  --bg-surface: #111820;
  --bg-card:    #151d27;
  --bg-hover:   #1a2535;
  --border:     rgba(255,255,255,.06);
  --border-hi:  rgba(255,255,255,.12);
  --text:       #b8c4d0;
  --text-dim:   #6b7a8d;
  --text-bright:#e2e8f0;
  --accent:     #64b5f6;
  --accent-hi:  #90caf9;
  --accent-glow: rgba(100,181,246,.12);
  --teal:       #4dd0b8;
  --teal-glow:  rgba(77,208,184,.10);
  --amber:      #f0b429;
  --font-mono:  'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius:     8px;
  --radius-lg:  12px;
  --shadow-sm:  0 1px 2px rgba(0,0,0,.3);
  --shadow-md:  0 4px 16px rgba(0,0,0,.3);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.4);
  --transition: .2s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-hi); }

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

::selection { background: rgba(100,181,246,.2); color: #fff; }

/* ---------- Layout ---------- */
.site-wrapper {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  min-height: 100vh;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  width: 280px;
  min-width: 280px;
  padding: 2.5rem 1.25rem;
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-surface);
}

.avatar-wrap {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.25rem;
  position: relative;
  box-shadow: 0 0 0 3px var(--bg-surface), 0 0 0 4px var(--border-hi);
  transition: box-shadow .3s ease;
}
.avatar-wrap:hover {
  box-shadow: 0 0 0 3px var(--bg-surface), 0 0 0 4px var(--accent), 0 0 20px var(--accent-glow);
}
.avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }

.sidebar h1 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-bright);
  text-align: center;
  margin-bottom: .3rem;
  letter-spacing: -.01em;
}
.sidebar .subtitle {
  font-size: .8rem;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: .1rem;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.sidebar .affiliation {
  font-size: .78rem;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Sidebar social links */
.sidebar-links {
  list-style: none;
  width: 100%;
  margin-bottom: 1.25rem;
}
.sidebar-links li { margin-bottom: .2rem; }
.sidebar-links a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .65rem;
  border-radius: var(--radius);
  font-size: .8rem;
  color: var(--text-dim);
  transition: all var(--transition);
}
.sidebar-links a:hover {
  background: var(--bg-hover);
  color: var(--text-bright);
}
.sidebar-links svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  fill: currentColor;
  opacity: .7;
}
.sidebar-links a:hover svg { opacity: 1; }

/* Sidebar nav */
.sidebar-nav {
  list-style: none;
  width: 100%;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: auto;
}
.sidebar-nav li { margin-bottom: .15rem; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .75rem;
  border-radius: var(--radius);
  font-size: .84rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: all var(--transition);
  position: relative;
}
.sidebar-nav a:hover {
  background: var(--bg-hover);
  color: var(--text-bright);
}
.sidebar-nav a.active {
  background: var(--accent-glow);
  color: var(--accent);
}
.sidebar-nav a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}
.sidebar-nav .nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: .5;
}
.sidebar-nav a:hover .nav-icon,
.sidebar-nav a.active .nav-icon { opacity: .9; }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main {
  flex: 1;
  padding: 2.5rem 3rem;
  max-width: calc(100% - 280px);
  min-width: 0;
  overflow-y: auto;
}

/* ---------- Page Header ---------- */
.page-header {
  margin-bottom: 2.5rem;
}
.page-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -.02em;
  position: relative;
  padding-bottom: 1rem;
}
.page-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 1px;
}

/* ---------- Section Headings ---------- */
.main h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-bright);
  margin: 2.5rem 0 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  letter-spacing: -.01em;
}
.main h3::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--teal);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ---------- Bio List (indented two-pillar list) ---------- */
.bio-list {
  list-style: none;
  margin: .6rem 0 1rem 1.2rem;
  padding-left: 0;
}
.bio-list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: .6rem;
  font-size: .9rem;
  line-height: 1.75;
}
.bio-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ============================================================
   CARDS (Research entries)
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: all var(--transition);
  position: relative;
}
.card:hover {
  border-color: var(--border-hi);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.card-title {
  font-weight: 600;
  font-size: .95rem;
  color: var(--text-bright);
  margin-bottom: .5rem;
  line-height: 1.5;
}
.card-title a {
  color: var(--text-bright);
  transition: color var(--transition);
}
.card-title a:hover { color: var(--accent); }

.card-meta {
  font-size: .78rem;
  color: var(--text-dim);
  margin-bottom: .75rem;
  line-height: 1.6;
}

.card-body {
  font-size: .87rem;
  color: var(--text);
  line-height: 1.75;
}
.card-body p { margin-bottom: .6rem; }

.card-links {
  margin-top: .75rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.card-links a {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .25rem .65rem;
  background: rgba(100,181,246,.06);
  border: 1px solid rgba(100,181,246,.15);
  border-radius: 20px;
  font-size: .72rem;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .02em;
  transition: all var(--transition);
}
.card-links a:hover {
  background: rgba(100,181,246,.12);
  border-color: rgba(100,181,246,.3);
  color: var(--accent-hi);
}

.card-img {
  margin: .75rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ============================================================
   BIO / ABOUT
   ============================================================ */
.bio-text {
  font-size: .92rem;
  line-height: 1.85;
  color: var(--text);
}
.bio-text p { margin-bottom: 1rem; }
.bio-text strong { color: var(--text-bright); font-weight: 600; }

.pinned-msg {
  background: rgba(240,180,41,.05);
  border: 1px solid rgba(240,180,41,.15);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .7rem 1rem .7rem 1.1rem;
  font-size: .82rem;
  color: var(--amber);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.pinned-msg .pin-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: .8;
}

.robot-photo {
  margin: 1.5rem 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 420px;
  border: 1px solid var(--border);
}

/* ============================================================
   LISTS (Awards, Service)
   ============================================================ */
.award-list, .service-list {
  list-style: none;
}
.award-list li, .service-list li {
  position: relative;
  padding: .55rem 0 .55rem 1.5rem;
  margin-bottom: 0;
  font-size: .87rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.award-list li:last-child, .service-list li:last-child { border-bottom: none; }

.award-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}
.service-list li::before {
  content: '';
  position: absolute;
  left: .15rem;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: transparent;
}

.award-list li strong {
  color: var(--text-bright);
  font-weight: 600;
  font-size: .82rem;
  font-family: var(--font-mono);
}

/* ============================================================
   PUBLICATIONS LIST
   ============================================================ */
.pub-entry {
  margin-bottom: .5rem;
  padding: .65rem 0;
  font-size: .85rem;
  line-height: 1.7;
  border-bottom: 1px solid var(--border);
}
.pub-entry:last-child { border-bottom: none; }
.pub-entry .pub-authors { color: var(--text-dim); }
.pub-entry .pub-authors strong { color: var(--text-bright); font-weight: 600; }
.pub-entry .pub-title { color: var(--text-bright); font-weight: 500; }
.pub-entry .pub-venue { color: var(--text-dim); font-style: italic; }

.year-heading {
  font-size: .78rem;
  font-weight: 600;
  color: var(--teal);
  font-family: var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 4rem 0 .6rem; /* Increased top margin to add more space */
  display: flex;
  align-items: center;
  gap: .75rem;
}
.year-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-hi);
}

/* First author highlight */
.me { color: var(--text-bright); font-weight: 600; }

/* ============================================================
   PATENT BLOCKS
   ============================================================ */
.patent-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  transition: all var(--transition);
}
.patent-block:hover {
  border-color: var(--border-hi);
  box-shadow: var(--shadow-sm);
}
.patent-block h4 {
  font-size: .88rem;
  color: var(--text-bright);
  margin-bottom: .6rem;
  font-weight: 600;
  line-height: 1.5;
}
.patent-block p {
  font-size: .8rem;
  color: var(--text-dim);
  margin-bottom: .3rem;
  line-height: 1.6;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-line {
  font-size: .88rem;
  color: var(--text);
}
.contact-line .label {
  color: var(--text-dim);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-right: .4rem;
}

/* ============================================================
   DISCLAIMER
   ============================================================ */
.disclaimer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: .72rem;
  color: var(--text-dim);
  line-height: 1.7;
  opacity: .7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: .72rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  opacity: .6;
}

/* ============================================================
   CURSOR BLINK
   ============================================================ */
.cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--accent);
  margin-left: 3px;
  animation: blink 1.1s ease-in-out infinite;
  vertical-align: text-bottom;
  border-radius: 1px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ============================================================
   VIDEO
   ============================================================ */
.research-video {
  max-width: 512px;
  border-radius: var(--radius);
  margin: .75rem 0;
  border: 1px solid var(--border);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .site-wrapper {
    max-width: 100%;
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    min-width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 1.5rem 1rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .avatar-wrap { width: 90px; height: 90px; }
  .sidebar-info { text-align: center; flex-basis: 100%; }
  .sidebar h1 { font-size: 1.1rem; }
  .sidebar-links, .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    justify-content: center;
  }
  .sidebar-nav {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
  }
  .sidebar-nav a.active::before { display: none; }
  .main {
    max-width: 100%;
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .site-wrapper {
    flex-direction: column;
  }
  .sidebar {
    padding: 1.25rem 1rem;
    gap: .75rem;
  }
  .avatar-wrap { width: 80px; height: 80px; }
  .sidebar h1 { font-size: 1rem; }
  .sidebar .subtitle { font-size: .75rem; }
  .sidebar .affiliation { font-size: .72rem; }
  .sidebar-links a, .sidebar-nav a {
    padding: .3rem .5rem;
    font-size: .75rem;
    gap: .4rem;
  }
  .sidebar-links svg, .sidebar-nav .nav-icon {
    width: 14px;
    height: 14px;
  }
  .main {
    padding: 1.25rem 1rem;
  }
  .page-header h2 {
    font-size: 1.5rem;
    padding-bottom: .75rem;
  }
  .bio-text {
    font-size: .88rem;
  }
  .card {
    padding: 1.25rem;
  }
  .card-title {
    font-size: .9rem;
  }
  .card-meta {
    font-size: .75rem;
  }
  .card-body {
    font-size: .84rem;
  }
  .pub-entry {
    font-size: .8rem;
  }
  .year-heading {
    font-size: .75rem;
  }
  .award-list li, .service-list li {
    font-size: .82rem;
    padding: .45rem 0 .45rem 1.3rem;
  }
  .patent-block {
    padding: 1rem 1.25rem;
  }
  .patent-block h4 {
    font-size: .84rem;
  }
  .patent-block p {
    font-size: .76rem;
  }
  .contact-line {
    font-size: .84rem;
  }

  /* Improve card layout on small screens */
  .card-body {
    display: flex;
    flex-direction: column;
    gap: .75rem;
  }

  /* Better spacing for card images on mobile */
  .card-img, .research-video {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .sidebar {
    padding: 1rem .75rem;
    gap: .5rem;
  }
  .avatar-wrap { width: 70px; height: 70px; }
  .sidebar h1 { font-size: .95rem; }
  .sidebar .subtitle { font-size: .7rem; }
  .sidebar .affiliation { font-size: .68rem; }
  .sidebar-links a, .sidebar-nav a {
    padding: .25rem .4rem;
    font-size: .7rem;
    gap: .3rem;
  }
  .main {
    padding: 1rem .75rem;
  }
  .page-header h2 { font-size: 1.3rem; }
  .page-header h2::after { width: 40px; }
  .main h3 {
    font-size: 1rem;
    margin: 2rem 0 .8rem;
  }
  .main h3::before { height: 16px; }
  .bio-text {
    font-size: .85rem;
  }
  .bio-list {
    margin: .5rem 0 1rem 1rem;
  }
  .bio-list li {
    font-size: .85rem;
    margin-bottom: .5rem;
  }
  .robot-photo {
    max-width: 100%;
  }
  .card {
    padding: 1rem;
  }
  .card-title {
    font-size: .85rem;
  }
  .card-meta {
    font-size: .72rem;
  }
  .card-body {
    font-size: .82rem;
  }
  .card-links a {
    font-size: .7rem;
    padding: .2rem .5rem;
  }
  .card-img {
    max-width: 100%;
  }
  .research-video {
    max-width: 100%;
  }
  .pub-entry {
    font-size: .78rem;
    padding: .5rem 0;
  }
  .award-list li, .service-list li {
    font-size: .78rem;
    padding: .4rem 0 .4rem 1.2rem;
  }
  .year-heading {
    font-size: .72rem;
    margin: 2rem 0 .5rem;
  }
  .patent-block {
    padding: .85rem 1rem;
  }
  .patent-block h4 {
    font-size: .8rem;
  }
  .patent-block p {
    font-size: .74rem;
  }
  .disclaimer {
    font-size: .7rem;
    margin-top: 2rem;
  }
  .site-footer {
    font-size: .68rem;
    padding: 1rem;
  }

  /* Mobile-specific adjustments for better readability */
  body {
    font-size: 14px;
  }

  /* Stack card elements vertically on very small screens */
  .card-body {
    flex-direction: column;
  }

  /* Adjust video controls for mobile */
  .research-video {
    width: 100%;
  }
}

/* Extra small devices (phones, 320px and down) */
@media (max-width: 320px) {
  .avatar-wrap { width: 60px; height: 60px; }
  .sidebar h1 { font-size: .9rem; }
  .main {
    padding: .75rem .5rem;
  }
  .page-header h2 {
    font-size: 1.2rem;
    line-height: 1.4;
  }

  /* Truncate the long header text on very small screens */
  @media (max-width: 360px) {
    .page-header h2 {
      font-size: 1rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 100%;
    }
  }
  .bio-text {
    font-size: .82rem;
  }
  .card {
    padding: .85rem;
  }
  .pub-entry {
    font-size: .76rem;
  }
  .award-list li, .service-list li {
    font-size: .76rem;
    padding: .35rem 0 .35rem 1.1rem;
  }
}

/* Top navigation menu */
.top-nav {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 0 1rem;
  margin-bottom: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 99;
  overflow-x: auto;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.top-nav::-webkit-scrollbar {
  display: none;  /* Chrome, Safari, Opera */
}

.top-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  gap: 0.5rem;
  white-space: nowrap;
}

.top-nav-list li {
  margin: 0;
}

.top-nav-list a {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
}

.top-nav-list a:hover {
  background: var(--bg-hover);
  color: var(--text-bright);
}

.top-nav-list a.active {
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(100, 181, 246, 0.3);
}

/* Touch targets for mobile navigation */
@media (max-width: 768px) {
  .top-nav-list a {
    padding: 0.75rem 1rem;
    min-height: 44px;
  }
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  position: sticky;
  top: 0;
  background: var(--bg-surface);
  padding: 1rem;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

#menuToggle {
  background: none;
  border: none;
  color: var(--text-bright);
  cursor: pointer;
  padding: .5rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}

#menuToggle:hover {
  background: var(--bg-hover);
}

/* Show mobile menu toggle on small screens */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  /* Show top navigation as a dropdown on mobile */
  .top-nav {
    display: none;
  }

  .nav-active .top-nav {
    display: block;
    position: static;
    border-radius: var(--radius);
    margin: 0.5rem 1rem;
    box-shadow: var(--shadow-sm);
  }

  .top-nav-list {
    flex-direction: column;
    max-height: 40vh;
    overflow-y: auto;
    background: var(--bg-card);
    border-radius: var(--radius);
  }

  .top-nav-list a {
    border-radius: 0;
    margin: 0;
    border-bottom: 1px solid var(--border);
  }

  .top-nav-list a:last-child {
    border-bottom: none;
  }

  /* Maintain proper spacing */
  .top-nav-list li {
    width: 100%;
  }

  .top-nav-list a {
    border-radius: var(--radius);
    margin: 0.25rem 0.5rem;
  }
}

/* Touch targets for mobile */
a, button, .sidebar-links a, .sidebar-nav a, .card-links a {
  min-height: 44px; /* Minimum recommended touch target size: 44px */
  min-width: 44px;
  padding: 11px; /* Adjust padding to ensure adequate touch target */
}

/* Adjust touch targets specifically for navigation */
.sidebar-links a, .sidebar-nav a {
  padding: 12px 16px;
  min-height: auto;
  min-width: auto;
}

/* Mobile navigation enhancements */
@media (max-width: 1024px) {
  .sidebar-links a, .sidebar-nav a {
    padding: 10px 14px;
    min-height: 44px;
    min-width: 44px;
  }

  /* Make card links more touch-friendly */
  .card-links a {
    padding: 8px 12px;
    min-height: 36px;
  }
}

@media (max-width: 480px) {
  .sidebar-links a, .sidebar-nav a {
    padding: 8px 12px;
    min-height: 40px;
  }

  .card-links a {
    padding: 6px 10px;
    font-size: .68rem;
    min-height: 34px;
  }
}

/* ============================================================
   SCROLLBAR (Webkit)
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.15); }

/* ============================================================
   PAGE TRANSITION
   ============================================================ */
.page { animation: fadeIn .35s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   GLOW GRADIENT BEHIND HEADER (subtle bg effect)
   ============================================================ */
.page-header {
  position: relative;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -30px;
  left: -40px;
  width: 200px;
  height: 100px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: .6;
}
