/* =======================================
   BRONTOSAURUS WORLD – style.css
   ======================================= */

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

:root {
  --green-deep:    #0d2b1f;
  --green-dark:    #122e22;
  --green-mid:     #1a4232;
  --green-accent:  #2d6a4f;
  --green-light:   #52b788;
  --green-glow:    #74c69d;
  --gold:          #d4a843;
  --gold-light:    #f4c56a;
  --amber:         #e9822c;
  --cream:         #f5efe0;
  --white:         #ffffff;
  --text-primary:  #e8f5ee;
  --text-muted:    #8db8a0;
  --font-display:  'Cinzel', serif;
  --font-body:     'Outfit', sans-serif;
  --radius:        16px;
  --radius-lg:     28px;
  --transition:    0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background: var(--green-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.7;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--green-dark); }
::-webkit-scrollbar-thumb { background: var(--green-accent); border-radius: 4px; }

/* ---- FLOATING LEAVES ---- */
#leaves {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.leaf {
  position: absolute;
  font-size: 1.4rem;
  opacity: 0.18;
  animation: leafFall linear infinite;
  user-select: none;
}
@keyframes leafFall {
  0%   { transform: translateY(-60px) rotate(0deg);   opacity: 0; }
  10%  { opacity: 0.18; }
  90%  { opacity: 0.12; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* ---- NAVBAR ---- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 3rem;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: rgba(13, 43, 31, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.nav-brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none;
}
.nav-emoji { font-size: 1.8rem; animation: bobHead 3s ease-in-out infinite; }
@keyframes bobHead { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }
.nav-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold-light);
  letter-spacing: 0.05em;
}
.nav-links {
  display: flex; list-style: none; gap: 2rem;
}
.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--green-glow);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--green-glow); }
.nav-links a:hover::after { width: 100%; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--green-glow); border-radius: 2px; transition: var(--transition); }

/* ---- HERO ---- */
#hero {
  position: relative;
  height: 100vh; min-height: 700px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.08);
  transition: transform 0.1s linear;
  will-change: transform;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(13,43,31,0.82) 0%,
    rgba(13,43,31,0.55) 50%,
    rgba(13,43,31,0.85) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  animation: heroEntrance 1.2s cubic-bezier(0.2, 0, 0, 1) both;
}
@keyframes heroEntrance {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-glow);
  margin-bottom: 1.2rem;
  opacity: 0.9;
}
.hero-title {
  display: flex; flex-direction: column; align-items: center;
  margin-bottom: 1.5rem;
}
.hero-title-top {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.hero-title-main {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--green-glow) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(116,198,157,0.4));
  animation: shimmer 4s linear infinite;
  background-size: 200%;
}
@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-title-sub {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-top: 0.5rem;
}
.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}
.hero-cta {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}
.btn-primary {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: linear-gradient(135deg, var(--green-accent), var(--green-light));
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  border: none; cursor: pointer;
  box-shadow: 0 4px 24px rgba(45,106,79,0.5);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 32px rgba(82,183,136,0.5);
}
.btn-roar {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: transparent;
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid var(--gold);
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-roar::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
  z-index: -1;
}
.btn-roar:hover { color: var(--green-deep); }
.btn-roar:hover::before { transform: scaleX(1); }
.btn-roar.shaking { animation: shake 0.5s ease; }
@keyframes shake {
  0%,100%{ transform: translateX(0); }
  20%    { transform: translateX(-6px); }
  40%    { transform: translateX(6px); }
  60%    { transform: translateX(-4px); }
  80%    { transform: translateX(4px); }
}

.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.scroll-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green-glow);
  animation: scrollBounce 1.5s ease-in-out infinite;
  box-shadow: 0 0 12px var(--green-glow);
}
@keyframes scrollBounce {
  0%,100% { transform: translateY(0); opacity: 1; }
  50%     { transform: translateY(10px); opacity: 0.4; }
}

/* ---- NAME ORIGIN SECTION ---- */
.name-section {
  background: linear-gradient(90deg, var(--green-dark), var(--green-mid), var(--green-dark));
  padding: 3rem 2rem;
  border-top: 1px solid rgba(82,183,136,0.2);
  border-bottom: 1px solid rgba(82,183,136,0.2);
  position: relative; z-index: 1;
}
.name-grid {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 2rem; flex-wrap: wrap; text-align: center;
}
.name-part { display: flex; flex-direction: column; gap: 0.3rem; }
.name-greek {
  font-size: 2rem; font-weight: 700;
  color: var(--gold-light);
  font-family: serif;
}
.name-phonetic {
  font-size: 0.8rem; font-style: italic;
  color: var(--text-muted); letter-spacing: 0.1em;
}
.name-meaning {
  font-size: 1.1rem; font-weight: 600; color: var(--green-glow);
}
.name-plus, .name-equals {
  font-size: 2.5rem; color: var(--green-accent); font-weight: 700;
}
.name-result { display: flex; flex-direction: column; gap: 0.3rem; }
.name-final {
  font-family: var(--font-display);
  font-size: 2rem; color: var(--gold);
}
.name-year { font-size: 0.8rem; color: var(--text-muted); }

/* ---- SHARED SECTION STYLES ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

section { padding: 6rem 2rem; position: relative; z-index: 1; }

.section-tag {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--green-glow);
  background: rgba(82,183,136,0.12);
  border: 1px solid rgba(82,183,136,0.3);
  padding: 0.3rem 1rem; border-radius: 50px;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--cream);
}
.section-sub {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 520px; margin-bottom: 3rem;
}
.highlight {
  background: linear-gradient(120deg, var(--green-glow), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- ABOUT ---- */
#about { background: radial-gradient(ellipse at 60% 50%, rgba(26,66,50,0.5) 0%, transparent 70%); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.about-image-col { position: relative; }
.about-img-wrap {
  position: relative; border-radius: var(--radius-lg); overflow: visible;
}
.about-img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transition: transform 0.6s ease;
}
.about-img-wrap:hover .about-img { transform: scale(1.02); }
.about-img-glow {
  position: absolute; inset: -20px;
  background: radial-gradient(ellipse, rgba(82,183,136,0.2) 0%, transparent 70%);
  pointer-events: none;
  border-radius: var(--radius-lg);
}
.about-badge {
  position: absolute; bottom: -12px; right: -12px;
  background: linear-gradient(135deg, var(--green-accent), var(--green-light));
  color: #fff; font-weight: 700; font-size: 0.9rem;
  padding: 0.6rem 1.3rem; border-radius: 50px;
  box-shadow: 0 4px 20px rgba(45,106,79,0.5);
}
.about-text-col .section-tag { display: block; }
.about-para {
  color: var(--text-muted); font-size: 1rem; margin-bottom: 1rem; line-height: 1.8;
}
.about-para strong { color: var(--green-glow); }
.about-para em { color: var(--gold-light); font-style: italic; }
.about-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.tag {
  font-size: 0.82rem; font-weight: 600;
  padding: 0.35rem 0.9rem; border-radius: 50px;
  background: rgba(82,183,136,0.1);
  border: 1px solid rgba(82,183,136,0.25);
  color: var(--green-glow);
  transition: background var(--transition);
}
.tag:hover { background: rgba(82,183,136,0.2); }

/* ---- STATS ---- */
#stats {
  background: linear-gradient(180deg, var(--green-dark) 0%, var(--green-deep) 100%);
}
#stats .section-title, #stats .section-tag { text-align: center; display: block; margin: 0 auto 0.5rem; }
#stats .section-title { margin-bottom: 3rem; }
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.stat-card {
  background: rgba(26,66,50,0.5);
  border: 1px solid rgba(82,183,136,0.15);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  opacity: 0; transform: translateY(30px);
  animation: fadeUp 0.6s ease forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(82,183,136,0.15);
  border-color: rgba(82,183,136,0.4);
}
.stat-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.stat-bar-wrap {
  width: 100%; height: 6px;
  background: rgba(82,183,136,0.12);
  border-radius: 3px; margin-bottom: 1rem;
  overflow: hidden;
}
.stat-bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--green-accent), var(--green-glow));
  border-radius: 3px;
  transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
}
.stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 900;
  color: var(--gold-light);
  margin-bottom: 0.3rem;
}
.stat-value span { font-size: 1rem; color: var(--green-glow); }
.stat-label { font-size: 0.9rem; font-weight: 700; color: var(--cream); margin-bottom: 0.4rem; }
.stat-compare { font-size: 0.78rem; color: var(--text-muted); font-style: italic; }

/* ---- GALLERY ---- */
#gallery { background: radial-gradient(ellipse at 30% 60%, rgba(26,66,50,0.4) 0%, transparent 60%); }
#gallery .section-tag, #gallery .section-title, #gallery .section-sub { text-align: center; display: block; margin-left: auto; margin-right: auto; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 260px 260px;
  gap: 1rem;
}
.gallery-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.gallery-card.tall { grid-row: span 2; }
.gallery-card.wide { grid-column: span 2; }
.gallery-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-card:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,43,31,0.95) 0%, rgba(13,43,31,0.2) 60%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0; transition: opacity var(--transition);
}
.gallery-card:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h3 {
  font-family: var(--font-display);
  font-size: 1.2rem; color: var(--gold-light);
  margin-bottom: 0.4rem;
}
.gallery-overlay p { font-size: 0.85rem; color: var(--text-muted); }

/* ---- LIFE TIMELINE ---- */
#life {
  background: linear-gradient(180deg, var(--green-deep) 0%, var(--green-dark) 100%);
}
#life .section-tag { display: block; text-align: center; margin: 0 auto 0.5rem; }
#life .section-title { text-align: center; margin-bottom: 3.5rem; }
.life-timeline {
  max-width: 720px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 0;
  position: relative;
}
.life-timeline::before {
  content: '';
  position: absolute; left: 2.2rem; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--green-accent), transparent);
}
.life-event {
  display: flex; gap: 2rem; align-items: flex-start;
  padding: 1.5rem 1.5rem 1.5rem 0;
  opacity: 0; transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.life-event.visible { opacity: 1; transform: translateX(0); }
.life-icon {
  width: 4.5rem; height: 4.5rem; flex-shrink: 0;
  font-size: 2rem;
  background: var(--green-mid);
  border: 2px solid var(--green-accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px rgba(45,106,79,0.4);
  position: relative; z-index: 1;
  transition: transform var(--transition), box-shadow var(--transition);
}
.life-event:hover .life-icon {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(82,183,136,0.5);
}
.life-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem; color: var(--gold-light);
  margin-bottom: 0.5rem;
}
.life-content p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.75; }

/* ---- FACTS ---- */
#facts { background: radial-gradient(ellipse at 70% 50%, rgba(26,66,50,0.45) 0%, transparent 70%); }
#facts .section-tag, #facts .section-title { text-align: center; display: block; margin: 0 auto 0.5rem; }
#facts .section-title { margin-bottom: 3rem; }
.facts-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  perspective: 1000px;
}
.fact-card {
  height: 240px; cursor: pointer;
  border-radius: var(--radius);
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.fact-card.flipped { transform: rotateY(180deg); }
.fact-inner {
  width: 100%; height: 100%;
  position: relative; transform-style: preserve-3d;
}
.fact-front, .fact-back {
  position: absolute; inset: 0;
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 1.8rem; text-align: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.fact-front {
  background: rgba(26,66,50,0.6);
  border: 1px solid rgba(82,183,136,0.2);
}
.fact-back {
  background: linear-gradient(135deg, var(--green-accent), var(--green-mid));
  border: 1px solid rgba(116,198,157,0.4);
  transform: rotateY(180deg);
}
.fact-num {
  font-family: var(--font-display);
  font-size: 0.75rem; color: var(--green-glow);
  letter-spacing: 0.15em; margin-bottom: 0.8rem;
}
.fact-emoji { font-size: 2.4rem; margin-bottom: 0.8rem; display: block; }
.fact-front p { color: var(--cream); font-size: 0.95rem; font-weight: 600; line-height: 1.5; }
.fact-hint { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.8rem; }
.fact-back p { color: #fff; font-size: 0.9rem; line-height: 1.65; }

/* ---- QUIZ ---- */
#quiz {
  background: linear-gradient(180deg, var(--green-dark) 0%, var(--green-deep) 100%);
}
#quiz .section-tag, #quiz .section-title, #quiz .section-sub { text-align: center; display: block; margin-left: auto; margin-right: auto; }
.quiz-box {
  max-width: 680px; margin: 0 auto;
  background: rgba(26,66,50,0.5);
  border: 1px solid rgba(82,183,136,0.2);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.quiz-header {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem;
}
.quiz-progress-track {
  flex: 1; height: 8px;
  background: rgba(82,183,136,0.15);
  border-radius: 4px; overflow: hidden;
}
.quiz-progress-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--green-accent), var(--green-glow));
  border-radius: 4px;
  transition: width 0.5s ease;
}
.quiz-count { font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; }
.quiz-q {
  font-size: 1.25rem; font-weight: 600;
  color: var(--cream); margin-bottom: 1.8rem; line-height: 1.5;
}
.quiz-opts {
  display: flex; flex-direction: column; gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.quiz-opt {
  padding: 0.9rem 1.3rem;
  background: rgba(13,43,31,0.8);
  border: 1.5px solid rgba(82,183,136,0.2);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
}
.quiz-opt:hover:not(:disabled) {
  border-color: var(--green-glow);
  background: rgba(82,183,136,0.1);
  transform: translateX(4px);
}
.quiz-opt.correct {
  border-color: var(--green-glow);
  background: rgba(116,198,157,0.2);
  color: var(--green-glow);
}
.quiz-opt.wrong {
  border-color: #e87c5a;
  background: rgba(232,130,100,0.12);
  color: #e87c5a;
}
.quiz-msg {
  font-size: 1rem; font-weight: 600; min-height: 1.5rem;
  margin-bottom: 1rem;
}
.quiz-msg.ok  { color: var(--green-glow); }
.quiz-msg.err { color: #e87c5a; }
.btn-next {
  display: block; width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, var(--green-accent), var(--green-light));
  color: #fff; font-family: var(--font-body);
  font-size: 1rem; font-weight: 700;
  border: none; border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-next:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(82,183,136,0.4); }
.quiz-end {
  text-align: center;
}
.quiz-end .score {
  font-family: var(--font-display);
  font-size: 4rem; color: var(--gold-light);
  display: block; margin-bottom: 0.5rem;
}
.quiz-end p { color: var(--text-muted); font-size: 1rem; }
.quiz-end .btn-primary { margin-top: 1.5rem; }

/* ---- FOOTER ---- */
footer {
  background: var(--green-dark);
  border-top: 1px solid rgba(82,183,136,0.15);
  padding: 4rem 2rem;
  text-align: center;
  position: relative; z-index: 1;
}
.footer-inner { max-width: 600px; margin: 0 auto; }
.footer-dino-walk {
  font-size: 3rem;
  display: inline-block;
  margin-bottom: 1rem;
  animation: dinoWalk 2s ease-in-out infinite;
}
@keyframes dinoWalk {
  0%,100% { transform: translateX(0) rotate(0deg); }
  25%      { transform: translateX(-8px) rotate(-4deg); }
  75%      { transform: translateX(8px) rotate(4deg); }
}
.footer-title {
  font-family: var(--font-display);
  font-size: 2rem; color: var(--gold-light); margin-bottom: 0.8rem;
}
.footer-quote {
  font-style: italic; color: var(--text-muted);
  font-size: 1rem; margin-bottom: 1.5rem;
  line-height: 1.6;
}
.footer-copy { font-size: 0.8rem; color: rgba(141,184,160,0.5); }

/* ---- BACK TO TOP ---- */
.back-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 50px; height: 50px;
  background: var(--green-mid);
  border: 2px solid var(--green-accent);
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  opacity: 0; transform: translateY(20px);
  transition: all var(--transition);
  z-index: 99;
}
.back-top.show { opacity: 1; transform: translateY(0); }
.back-top:hover {
  background: var(--green-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(82,183,136,0.3);
}

/* ---- RIPPLE on click ---- */
.ripple {
  position: fixed; pointer-events: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(116,198,157,0.5);
  transform: translate(-50%,-50%) scale(0);
  animation: rippleOut 0.6s ease-out forwards;
  z-index: 9999;
}
@keyframes rippleOut {
  to { transform: translate(-50%,-50%) scale(8); opacity: 0; }
}

/* ---- GALLERY TAG ---- */
.gallery-tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  background: rgba(82,183,136,0.25);
  border: 1px solid rgba(116,198,157,0.5);
  color: var(--green-glow);
  padding: 0.2rem 0.7rem; border-radius: 20px;
  margin-bottom: 0.5rem;
}

/* ---- SVG SCENE CARD ---- */
.gallery-svg-card { background: #0d1f16; }
.svg-scene {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.scene-svg { width: 100%; height: 100%; display: block; }

/* ---- ANATOMY SECTION ---- */
#anatomy {
  background: linear-gradient(180deg, var(--green-dark) 0%, var(--green-deep) 100%);
}
#anatomy .section-tag, #anatomy .section-title, #anatomy .section-sub {
  display: block; text-align: center;
  margin-left: auto; margin-right: auto;
}
#anatomy .section-title { margin-bottom: 0.5rem; }
.anatomy-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
  margin-top: 2.5rem;
}
.anatomy-svg-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  border: 1px solid rgba(82,183,136,0.15);
  cursor: default;
}
.anatomy-svg { display: block; width: 100%; }
.hotspot { cursor: pointer; transition: filter 0.2s; }
.hotspot:hover { filter: brightness(1.4); }
.hotspot-label { pointer-events: none; font-family: var(--font-body); }

.anatomy-info {
  background: rgba(26,66,50,0.55);
  border: 1px solid rgba(82,183,136,0.2);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.4s ease;
}
.anatomy-default {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.anatomy-panel { width: 100%; }
.anatomy-panel .a-icon { font-size: 3rem; margin-bottom: 0.8rem; display: block; }
.anatomy-panel h3 {
  font-family: var(--font-display);
  font-size: 1.4rem; color: var(--gold-light);
  margin-bottom: 0.8rem;
}
.anatomy-panel p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.75; }
.anatomy-panel .a-facts {
  margin-top: 1rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.anatomy-panel .a-fact {
  display: flex; gap: 0.6rem; align-items: center;
  font-size: 0.85rem; color: var(--green-glow);
  background: rgba(82,183,136,0.08);
  border-radius: 8px; padding: 0.4rem 0.7rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1000px) {
  .anatomy-wrap { grid-template-columns: 1fr; }
  .anatomy-info { min-height: auto; }
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .facts-grid { grid-template-columns: repeat(2,1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-card.tall { grid-row: span 1; }
  .gallery-card.wide { grid-column: span 2; }
  #navbar { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(13,43,31,0.97);
    padding: 2rem; gap: 1.5rem;
    backdrop-filter: blur(16px);
  }
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-card.wide { grid-column: span 1; }
  .name-grid { flex-direction: column; gap: 1rem; }
  .quiz-box { padding: 1.5rem; }
  section { padding: 4rem 1rem; }
}
