*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #005398;
  --navy-dark: #193C53;
  --navy-deeper: #0a2334;
  --navy-card: #00295e;
  --yellow: #FFC810;
  --orange: #EC6625;
  --orange-hover: #c35500;
  --green: #227032;
  --white: #ffffff;
  --cream: #F1E5E2;
  --brown-section: #864E2E;
  --brown-dark: #4a3a2d;
  --tan: #917D6F;
  --gray-section: #E8E8E8;
  --font-display: 'Baloo 2', cursive;
  --font-body: 'Nunito', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
}

/* ── NAV (shared) ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  background: var(--navy-dark);
  border-bottom: 2px solid rgba(245, 197, 24, 0.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.nav-logo .logo-placeholder {
  width: 45px;
  height: 45px;
  background: none; 
  border-radius: 0;   
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo .logo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain; 
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width 0.25s ease;
}

.nav-links a:hover { color: var(--yellow); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--yellow); }
.nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--yellow);
  border-radius: 999px;
}

.nav-toggle span + span {
  margin-top: 5px;
}

/* ── ABOUT INTRO ── */
.about-intro {
  padding: 150px 32px 60px;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-intro-image {
  flex-shrink: 0;
  width: 250px;
  height: 250px;
  background: var(--navy-card);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
}

.about-intro-image span {
  display: block;
  width: 100%;
  height: 100%;
}

.about-intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;        /* match the container's border-radius */
}

.about-intro-text h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--yellow);
  font-weight: 800;
  margin-bottom: 14px;
}

.about-intro-text p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
}

/* ── HISTORY SECTION ── */
.history-section {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 32px 45px;
}

.history-card {
  background: var(--navy-card);
  border-radius: 20px;
  padding: 42px 34px 34px;
  border: 1px solid rgba(245, 197, 24, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.history-card h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--yellow);
  font-weight: 700;
  margin-bottom: 18px;
}

.history-card p {
  max-width: 680px;
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.84);
}

.history-float {
  position: absolute;
  top: -18px;
  right: 48px;
  width: 160px;
  z-index: 3;
  pointer-events: none;
}

.history-float img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.12));
}

/* ── QUOTE ── */
.quote-section {
  padding: 60px 32px;
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
}

.quote-divider {
  display: block;
  margin: 0 auto 30px;
  color: var(--yellow);
  font-size: 1.5rem;
  letter-spacing: 2px;
  opacity: 0.6;
}

.quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--yellow);
  line-height: 1.4;
}

.quote-divider-bottom {
  display: block;
  color: var(--yellow);
  font-size: 1.5rem;
  letter-spacing: 2px;
  opacity: 0.6;
}

/* ── MIFFY'S NAME ── */
.name-section {
  padding: 40px 32px 80px;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 36px;
}

.name-image {
  flex-shrink: 0;
  width: 200px;
  height: 220px;
  background: none;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.name-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.name-text h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--yellow);
  font-weight: 700;
  margin-bottom: 16px;
}

.name-text p {
  font-size: 0.9rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.82);
}

/* ── CHARACTERS ── */
.characters-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 32px 90px;
}

.characters-header {
  text-align: center;
  margin-bottom: 24px;
}

.characters-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--yellow);
  font-weight: 700;
  margin-bottom: 6px;
}

.characters-header p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
}

.characters-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 6px 18px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.22) transparent;
}

.characters-carousel::-webkit-scrollbar {
  height: 10px;
}

.characters-carousel::-webkit-scrollbar-track {
  background: transparent;
}

.characters-carousel::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.22);
  border-radius: 999px;
}

.character-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: var(--navy-card);
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.character-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.22);
  border-color: rgba(255,255,255,0.18);
}

.character-image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.character-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.character-info {
  padding: 16px 16px 18px;
}

.character-info h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--yellow);
  margin-bottom: 6px;
}

.character-info p {
  font-size: 0.86rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.82);
}

/* ── FOOTER ── */
.site-footer {
  background: var(--navy-deeper);
  border-top: 2px solid rgba(245, 197, 24, 0.12);
  padding: 48px 32px 24px;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.footer-brand h3,
.footer-links h4,
.footer-note h4 {
  font-family: var(--font-display);
  color: var(--yellow);
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.footer-links h4,
.footer-note h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.footer-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin-bottom: 12px;
}

.footer-brand p,
.footer-note p,
.footer-links a,
.footer-bottom p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li + li {
  margin-top: 8px;
}

.footer-links a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--yellow);
}

.footer-source {
  margin-top: 10px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.58);
}

.footer-bottom {
  max-width: 1000px;
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.58);
}

@media (max-width: 800px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer {
    text-align: center;
  }

  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.75rem; }

  .about-intro {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .about-intro-image {
    width: 150px;
    height: 150px;
  }

  .history-section {
    padding: 40px 20px 40px;
  }

  .history-card {
    padding: 80px 24px 28px;
  }

  .history-float {
    width: 110px;
    right: 22px;
    top: -10px;
  }

  .name-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .name-image {
    width: 150px;
    height: 180px;
  }

    nav {
    padding: 12px 20px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--navy-dark);
    border-bottom: 2px solid rgba(245, 197, 24, 0.15);
    padding: 10px 20px 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li + li {
    margin-top: 10px;
  }

  .nav-links a {
    display: block;
    font-size: 0.9rem;
    padding: 6px 0;
  }

  .footer-note {
    display: none;
  }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.about-intro { animation: fadeUp 0.6s ease-out both; }
.history-section { animation: fadeUp 0.6s 0.15s ease-out both; }
.quote-section { animation: fadeUp 0.6s 0.3s ease-out both; }
.name-section { animation: fadeUp 0.6s 0.45s ease-out both; }