/* =========================================
   Dr. Maheshwar Dayal, IPS — Profile Website
   Design System & Styles
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --bg-primary: #0a1628;
  --bg-secondary: #0e1b33;
  --bg-card: #12213e;
  --bg-card-hover: #182a4a;
  --bg-nav: rgba(10, 22, 40, 0.92);

  --gold: #c9a84c;
  --gold-light: #e8d5a0;
  --gold-dark: #a8883a;
  --gold-glow: rgba(201, 168, 76, 0.15);
  --gold-border: rgba(201, 168, 76, 0.25);
  --gold-border-hover: rgba(201, 168, 76, 0.5);

  --text-primary: #e8e6e3;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --white: #ffffff;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 4px 20px rgba(201, 168, 76, 0.1);

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --nav-height: 72px;
  --section-padding: 100px 0;
  --container-width: 1100px;

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-reveal: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

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

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

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

::selection {
  background: var(--gold);
  color: var(--bg-primary);
}

/* --- Container --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section Common --- */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section--alt {
  background-color: var(--bg-secondary);
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section__divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

/* =========================================
   NAVIGATION
   ========================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background-color var(--transition-base), 
              box-shadow var(--transition-base),
              backdrop-filter var(--transition-base);
}

.nav--scrolled {
  background-color: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--gold-border);
}

.nav__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--gold);
  transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link--active {
  color: var(--gold);
}

.nav__link--active::after,
.nav__link:hover::after {
  width: 100%;
}

/* Hamburger Menu */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 1010;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--gold);
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

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

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

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

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

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 22, 40, 0.98) 0%,
    rgba(10, 22, 40, 0.85) 25%,
    rgba(10, 22, 40, 0.5) 50%,
    rgba(10, 22, 40, 0.35) 70%,
    rgba(10, 22, 40, 0.5) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px 80px;
  max-width: 800px;
}

.hero__badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  padding: 8px 20px;
  border: 1px solid var(--gold-border);
  background: rgba(201, 168, 76, 0.06);
}

.hero__name {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero__title {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--gold-light);
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}

.hero__line {
  width: 50px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 24px;
}

.hero__tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero__scroll svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold);
  opacity: 0.6;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* =========================================
   ABOUT / INTRO
   ========================================= */
.about__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about__text {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about__text:last-child {
  margin-bottom: 0;
}

.about__quote {
  margin: 40px auto 0;
  padding: 32px 40px;
  border-left: 3px solid var(--gold);
  background: var(--gold-glow);
  border-radius: 0 8px 8px 0;
  max-width: 650px;
  text-align: left;
}

.about__quote-text {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-light);
  line-height: 1.6;
  margin-bottom: 8px;
}

.about__quote-attr {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: normal;
}

/* =========================================
   CAREER TIMELINE
   ========================================= */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* Center vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--gold-border) 5%,
    var(--gold-border) 95%,
    transparent
  );
  transform: translateX(-50%);
}

.timeline__item {
  display: flex;
  align-items: flex-start;
  position: relative;
  margin-bottom: 48px;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

/* Alternating layout */
.timeline__item:nth-child(odd) {
  flex-direction: row;
  padding-right: calc(50% + 40px);
}

.timeline__item:nth-child(even) {
  flex-direction: row-reverse;
  padding-left: calc(50% + 40px);
}

/* Timeline dot */
.timeline__dot {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--gold);
  transform: translateX(-50%);
  z-index: 2;
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.timeline__item:hover .timeline__dot {
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
}

.timeline__dot--current {
  background: var(--gold);
  width: 16px;
  height: 16px;
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.2);
}

/* Timeline card */
.timeline__card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  padding: 24px 28px;
  width: 100%;
  transition: border-color var(--transition-base), 
              box-shadow var(--transition-base),
              transform var(--transition-base);
}

.timeline__card:hover {
  border-color: var(--gold-border-hover);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.timeline__role {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline__org {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 10px;
}

.timeline__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.timeline__quote {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gold-border);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--gold-light);
  line-height: 1.5;
}

.timeline__image {
  margin-top: 16px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--gold-border);
}

.timeline__image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}

.timeline__card:hover .timeline__image img {
  transform: scale(1.03);
}

/* =========================================
   EDUCATION & TRAINING
   ========================================= */
.education__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 950px;
  margin: 0 auto;
  align-items: stretch;
}

.education__column {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  padding: 28px 30px;
}

.education__list {
  flex: 1;
  justify-content: space-between;
}

.education__column-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gold-border);
}

.education__list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.education__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 6px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
  transition: transform var(--transition-base);
}

.education__item:last-child {
  border-bottom: none;
}

.education__item:hover {
  transform: translateX(4px);
}

.education__icon {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
}

.education__item-text {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.education__item-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* =========================================
   AWARDS
   ========================================= */
.awards__card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 40px;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.awards__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.awards__medal {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.08);
  border: 2px solid var(--gold-border);
}

.awards__medal svg {
  width: 28px;
  height: 28px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
}

.awards__name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.awards__desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}

/* =========================================
   GALLERY
   ========================================= */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 950px;
  margin: 0 auto;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  border: 1px solid transparent;
  transition: border-color var(--transition-base);
  /* button reset */
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  background: none;
  font: inherit;
  text-align: left;
  color: inherit;
}

.gallery__item:hover {
  border-color: var(--gold-border-hover);
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: 16px 20px;
}

.gallery__item:hover .gallery__item-overlay {
  opacity: 1;
}

.gallery__caption {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
  cursor: zoom-out;
}

.lightbox--active {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  cursor: default;
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.lightbox__close svg {
  width: 18px;
  height: 18px;
  stroke: var(--white);
}

.lightbox__caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 500px;
}

/* =========================================
   CONTACT
   ========================================= */
.contact__content {
  text-align: center;
  max-width: 550px;
  margin: 0 auto;
}

.contact__text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.contact__role {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text-primary);
}

.contact__email-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: background var(--transition-base), color var(--transition-base), box-shadow var(--transition-base);
}

.contact__email-link:hover {
  background: var(--gold);
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.25);
}

.contact__email-link svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--gold-border);
  text-align: center;
}

.footer__text {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* =========================================
   SCROLL REVEAL ANIMATIONS
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
}

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

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

.reveal--visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.reveal--visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.reveal--visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.reveal--visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.reveal--visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.reveal--visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.reveal--visible > *:nth-child(6) { transition-delay: 0.3s; }
.reveal-stagger.reveal--visible > *:nth-child(7) { transition-delay: 0.35s; }
.reveal-stagger.reveal--visible > *:nth-child(8) { transition-delay: 0.4s; }
.reveal-stagger.reveal--visible > *:nth-child(9) { transition-delay: 0.45s; }

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

/* Hero content animation */
.hero__content > * {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s ease forwards;
}

.hero__content > *:nth-child(1) { animation-delay: 0.3s; }
.hero__content > *:nth-child(2) { animation-delay: 0.5s; }
.hero__content > *:nth-child(3) { animation-delay: 0.65s; }
.hero__content > *:nth-child(4) { animation-delay: 0.8s; }
.hero__content > *:nth-child(5) { animation-delay: 0.95s; }

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

/* =========================================
   SKIP LINK
   ========================================= */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 2100;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--bg-primary);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 0 0 6px 6px;
  transition: top var(--transition-base);
}

.skip-link:focus {
  top: 0;
  color: var(--bg-primary);
}

/* =========================================
   STATS STRIP
   ========================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 56px auto 0;
}

.stats__item {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.stats__item:hover {
  border-color: var(--gold-border-hover);
  transform: translateY(-3px);
}

.stats__num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 8px;
}

.stats__label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  line-height: 1.4;
}

/* =========================================
   LIGHTBOX NAV ARROWS
   ========================================= */
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition-fast);
  z-index: 2010;
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lightbox__nav svg {
  width: 22px;
  height: 22px;
  stroke: var(--white);
}

.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }

/* =========================================
   FOCUS VISIBLE (keyboard accessibility)
   ========================================= */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.gallery__item:focus-visible {
  outline-offset: -2px;
  border-color: var(--gold-border-hover);
}

/* =========================================
   REDUCED MOTION
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal,
  .reveal--left,
  .reveal--right,
  .reveal-stagger > *,
  .hero__content > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =========================================
   RESPONSIVE — TABLET (≤ 768px)
   ========================================= */
@media (max-width: 768px) {
  :root {
    --section-padding: 72px 0;
    --nav-height: 64px;
  }

  /* Navigation */
  .nav__hamburger {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 0 40px;
    border-left: 1px solid var(--gold-border);
    transition: right var(--transition-base);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5);
  }

  .nav__links--open {
    right: 0;
  }

  .nav__link {
    font-size: 1rem;
  }

  /* Hero */
  .hero__name {
    font-size: 2.4rem;
  }

  .hero__title {
    font-size: 1rem;
  }

  .hero__tagline {
    font-size: 0.95rem;
  }

  /* Section */
  .section__title {
    font-size: 2rem;
  }

  /* Timeline */
  .timeline::before {
    left: 16px;
  }

  .timeline__item:nth-child(odd),
  .timeline__item:nth-child(even) {
    flex-direction: row;
    padding-right: 0;
    padding-left: 48px;
  }

  .timeline__dot {
    left: 16px;
  }

  /* Education */
  .education__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Gallery */
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gallery__item--wide {
    grid-column: span 1;
  }

  /* About */
  .about__quote {
    padding: 24px 28px;
  }

  /* Stats */
  .stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 40px;
  }

  /* Lightbox nav */
  .lightbox__nav {
    width: 40px;
    height: 40px;
  }

  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
}

/* =========================================
   RESPONSIVE — MOBILE (≤ 480px)
   ========================================= */
@media (max-width: 480px) {
  :root {
    --section-padding: 56px 0;
  }

  .container {
    padding: 0 16px;
  }

  .hero__name {
    font-size: 1.9rem;
  }

  .hero__badge {
    font-size: 0.65rem;
    letter-spacing: 2.5px;
    padding: 6px 14px;
  }

  .hero__title {
    font-size: 0.9rem;
  }

  .hero__content {
    padding-bottom: 60px;
  }

  .section__title {
    font-size: 1.6rem;
  }

  .section__header {
    margin-bottom: 40px;
  }

  .timeline__card {
    padding: 18px 20px;
  }

  .timeline__role {
    font-size: 1.05rem;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .awards__card {
    padding: 36px 24px;
  }

  .about__quote {
    padding: 20px 20px;
  }

  .contact__email-link {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}
