:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  background:
    radial-gradient(circle at 10% 20%, rgba(59,130,246,0.30) 0, transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(56,189,248,0.35) 0, transparent 55%),
    radial-gradient(circle at 0% 80%, rgba(96,165,250,0.30) 0, transparent 55%),
    radial-gradient(circle at 100% 80%, rgba(129,140,248,0.35) 0, transparent 55%),
    linear-gradient(to bottom, #020617 0%, #020617 40%, #000 100%);
  color: #e5e7eb;
}
/* Themed versions */
body.theme-night {
  /* use existing dark ocean look */
  background:
    radial-gradient(circle at 10% 20%, rgba(59,130,246,0.30) 0, transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(56,189,248,0.35) 0, transparent 55%),
    radial-gradient(circle at 0% 80%, rgba(96,165,250,0.30) 0, transparent 55%),
    radial-gradient(circle at 100% 80%, rgba(129,140,248,0.35) 0, transparent 55%),
    linear-gradient(to bottom, #020617 0%, #020617 40%, #000 100%);
  color: #e5e7eb;
}

body.theme-day {
  background:
    radial-gradient(circle at 15% 20%, rgba(96,165,250,0.35) 0, transparent 55%),
    radial-gradient(circle at 85% 15%, rgba(45,212,191,0.35) 0, transparent 55%),
    radial-gradient(circle at 10% 85%, rgba(250,250,115,0.30) 0, transparent 55%),
    linear-gradient(to bottom, #e0f2fe 0%, #bae6fd 35%, #fef9c3 100%);
  color: #0f172a;
}

main {
  margin: auto;
  width: 100%;
  max-width: 900px;
  padding: 2rem 1.5rem 3rem;
  box-sizing: border-box;
}

.hero {
  text-align: center;
  margin-bottom: 1.75rem;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 0.25rem;
}

.hero-subtitle {
  margin: 0.25rem 0 0.5rem;
  opacity: 0.9;
}

.hero-tagline {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 0.25rem;
}

.hero-note {
  font-size: 0.8rem;
  opacity: 0.75;
  margin-top: 0.35rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
/* Beach Day: lighten the hero pill badge */
body.theme-day .pill {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(148, 163, 184, 0.7);
  color: #0f172a;
}

.pill-emoji {
  font-size: 1.1rem;
}

.hero-photo-wrapper {
  display: flex;
  justify-content: center;
  margin: 0.5rem 0 0.75rem;
  position: relative;
}

.hero-photo {
  margin: 0;
}

.hero-photo img {
  max-width: 180px;
  border-radius: 999px;
  border: 3px solid rgba(56,189,248,0.7);
  box-shadow: 0 10px 25px rgba(15,23,42,0.7);
  display: block;
}

/* Sharks that orbit all the way around the photo */
.shark-swim {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  z-index: 2;
}

.shark {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 1.8rem;
  opacity: 0.9;
  cursor: pointer;
}

/* three slightly different swim timings */
.shark-1 {
  animation: swim-around 9s linear infinite;
}

.shark-2 {
  animation: swim-around 11s linear infinite reverse;
}

.shark-3 {
  animation: swim-around 10s linear infinite;
  animation-delay: 1.5s;
}

/* circular orbit centered on the image */
@keyframes swim-around {
  from {
    transform: translate(-50%, -50%) rotate(0deg) translate(95px) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg) translate(95px) rotate(-360deg);
  }
}

/* party mode (toggled from JS) */
.shark.party {
  animation: shark-party 0.4s ease-in-out infinite alternate;
}

/* can keep this or not; not currently used for sharks, but harmless */
@keyframes shark-bob {
  from { transform: translateY(0) rotate(-4deg); }
  to { transform: translateY(-6px) rotate(4deg); }
}

@keyframes shark-party {
  from { transform: translate(-50%, -50%) scale(1) rotate(-10deg); }
  to   { transform: translate(-50%, -60%) scale(1.1) rotate(10deg); }
}

.theme-toggle {
  margin: 0 auto 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}

body.theme-day .theme-toggle {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  border-color: rgba(59, 130, 246, 0.6);
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.mk-win {
  margin-top: 1.25rem;
  text-align: center;
}

.cta-button {
  border: none;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: #22c55e;
  color: #022c22;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.35);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.1s ease;
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.45);
  background: #16a34a;
}

.mk-hint {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  opacity: 0.8;
}

.nav-button {
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  cursor: pointer;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}

.nav-button span.icon {
  font-size: 1.1rem;
}

.nav-button:hover {
  background: rgba(30, 64, 175, 0.85);
  transform: translateY(-1px);
}

.nav-button.active {
  background: #22c55e;
  color: #022c22;
  border-color: rgba(190, 242, 100, 0.8);
}
/* Beach Day: lighter nav buttons */
body.theme-day .nav-button {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.7);
}

body.theme-day .nav-button.active {
  background: #0f172a;
  color: #e5e7eb;
  border-color: rgba(30, 64, 175, 0.7);
}

.content {
  /* Single column; tabs control what’s visible */
  display: block;
}

/* Default: all sections visible if JS fails */
.section {
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.4rem;
  margin: 0 0 0.6rem;
}

.section-tagline {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.card-list {
  display: grid;
  gap: 0.75rem;
}

.card {
  background: rgba(15, 23, 42, 0.94);
  border-radius: 0.9rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 12px 30px rgba(15,23,42,0.45);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

.card-title {
  font-weight: 600;
  font-size: 0.98rem;
}

.card-tag {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(30, 64, 175, 0.3);
  border: 1px solid rgba(96, 165, 250, 0.5);
}

.card-body {
  font-size: 0.9rem;
  opacity: 0.95;
}

.card-body ul {
  padding-left: 1.1rem;
  margin: 0.35rem 0 0;
}

.card-body li {
  margin: 0.1rem 0;
}

.about-card {
  background: rgba(15, 23, 42, 0.94);
  border-radius: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-sizing: border-box;
  box-shadow: 0 12px 30px rgba(15,23,42,0.45);
}

.about-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  margin-bottom: 0.25rem;
}

.about-main {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  font-size: 0.85rem;
}

.about-item-label {
  opacity: 0.7;
}

.about-item-value {
  font-weight: 500;
}

.about-card .card {
  margin-top: 1rem;
}

/* Beach Day: lighten cards and about box */
body.theme-day .card,
body.theme-day .about-card {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(148, 163, 184, 0.7);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15);
}

/* Beach Day: darker text inside content */
body.theme-day .section-title,
body.theme-day .section-tagline,
body.theme-day .card-title,
body.theme-day .card-body,
body.theme-day .about-main,
body.theme-day .about-item-label,
body.theme-day .about-item-value,
body.theme-day .mk-hint,
body.theme-day footer {
  color: #0f172a;
}

footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* JS-enabled: tab behavior */
.js-enabled .section {
  display: none;
  margin-bottom: 0;
  animation: fadeIn 0.2s ease-in;
}

.js-enabled .section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Full-screen confetti overlay */
#confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 50;
}

.confetti-piece {
  position: absolute;
  top: -10px;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  opacity: 0.9;
  animation-name: confetti-fall;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

@keyframes confetti-fall {
  to {
    transform: translateY(110vh) rotateZ(360deg);
    opacity: 0;
  }
}

/* Extra phone tweaks */
@media (max-width: 600px) {
  main {
    padding: 1.25rem 1rem 2rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle,
  .hero-tagline {
    font-size: 0.9rem;
  }

  .hero-photo img {
    max-width: 140px;
  }

  nav {
    gap: 0.4rem;
  }

  .nav-button {
    width: 100%;
    justify-content: center;
    font-size: 0.9rem;
    padding: 0.55rem 0.9rem;
  }

  .card {
    padding: 0.75rem 0.85rem;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr); /* stack the about items */
  }
}
