/* =========================================================
   1. Root Variables (Default Theme: Playful Pastel)
   ========================================================= */
:root {
  --bg: #fff7f0;
  --panel: #ffe4f3;
  --text: #3b0764;
  --muted: #6b21a8;
  --acc: #f97316;
  --acc2: #10b981;
  --border: #f9a8d4;
  --header-height: 80px;
  --radius-xl: 20px;
}

/* =========================================================
   2. Alternative Themes
   ========================================================= */
:root[data-theme="ocean"] {
  --bg: #e0f7fa;
  --panel: #b2ebf2;
  --text: #004d40;
  --muted: #00796b;
  --acc: #0288d1;
  --acc2: #26c6da;
  --border: #4dd0e1;
}
:root[data-theme="neon"] {
  --bg: #0f0f0f;
  --panel: #1a1a1a;
  --text: #e0e0e0;
  --muted: #ff80ab;
  --acc: #ff4081;
  --acc2: #00e5ff;
  --border: #ff4081;
}

/* =========================================================
   3. Global Styles
   ========================================================= */
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Comic Neue", "Baloo 2", system-ui, sans-serif;
  scroll-behavior: smooth;
}
a {
  color: var(--acc);
  text-decoration: none;
}
a:hover {
  text-decoration: underline wavy var(--acc2);
}
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   4. Header & Navigation
   ========================================================= */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, var(--acc), var(--acc2));
  border-bottom: 4px dashed var(--border);
  padding: 10px 0;
  height: var(--header-height);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.2rem;
}
.logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at top left, var(--acc), var(--acc2));
  animation: bounce 3s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Menu (desktop default) */
.menu {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.menu a {
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  color: var(--text);
  transition: all 0.25s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.menu a:hover {
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

/* Neon theme nav overrides */
:root[data-theme="neon"] .menu a {
  background: rgba(20,20,20,0.9);
  color: var(--acc2);
  box-shadow: 0 0 8px var(--acc);
}
:root[data-theme="neon"] .menu a:hover {
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  color: #fff;
  box-shadow: 0 0 12px var(--acc2), 0 0 20px var(--acc);
}

/* --- Hamburger (mobile) --- */
.nav-toggle {
  display: none;
}
.hamburger {
  display: none; /* hidden on desktop */
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer;
  position: relative;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger span:nth-child(1) { top: 12px; }
.hamburger span:nth-child(2) { top: 19px; }
.hamburger span:nth-child(3) { top: 26px; }

/* Transform into X when checked */
.nav-toggle:checked + .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle:checked + .hamburger span:nth-child(2) {
  opacity: 0;
}
.nav-toggle:checked + .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile layout behavior */
@media (max-width: 600px) {
  .hamburger {
    display: inline-flex;
  }

  /* Hide menu by default */
  .menu {
    display: none;
  }

  /* Show menu as overlay at top */
  .nav-toggle:checked + .hamburger + .menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute;       /* overlay */
    top: var(--header-height);/* directly below sticky header */
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    padding: 16px;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    z-index: 999;             /* above content */
  }

  .menu a {
    width: 100%;
    text-align: center;
    background: transparent;
    padding: 12px;
    border-radius: 8px;
  }
  .menu a:hover {
    background: var(--acc);
    color: #fff;
  }
}

/* Extra tightening for very small phones */
@media (max-width: 430px) {
  .nav-toggle:checked + .hamburger + .menu {
    gap: 8px;
    padding: 10px;
  }
}

/* =========================================================
   5. Extras Section (Language + Theme Switch)
   ========================================================= */
.extras {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: linear-gradient(90deg, var(--acc), var(--acc2));
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.extras .lang-switch .btn {
  padding: 10px 16px;
  border-radius: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.extras .lang-switch .btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
.extras .theme-switch {
  display: flex;
  gap: 8px;
}
.extras .theme-switch button {
  padding: 8px 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  background: var(--acc);
  color: #fff;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.extras .theme-switch button:hover {
  transform: scale(1.1);
  background: var(--acc2);
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
}

/* --- Responsive Extras --- */
@media (max-width: 600px) {
  .extras {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 14px;
  }
}
@media (max-width: 430px) {
  .extras {
    gap: 12px;
    padding: 12px;
  }
}

/* =========================================================
   6. Hero Section
   ========================================================= */
.hero {
  padding: 80px 0 40px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  margin: 0 0 16px;
  background: linear-gradient(90deg, var(--acc), var(--acc2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead {
  color: var(--muted);
  font-size: clamp(18px, 2.5vw, 22px);
  max-width: 720px;
  margin: 0 auto;
}

/* =========================================================
   7. Sections & Headings
   ========================================================= */
section {
  padding: 48px 0;
  border-top: 3px dotted var(--border);
  scroll-margin-top: var(--header-height);
}
/* Remove dotted line for the first main section */
main section:first-of-type {
  border-top: none;
}
/* Ensure #home anchor scrolls correctly below sticky header */
#home {
  scroll-margin-top: calc(var(--header-height) + 40px);
}
h2 {
  font-size: 28px;
  margin: 0 0 20px;
  color: var(--acc);
}

/* =========================================================
   8. Lists
   ========================================================= */
.list {
  list-style: "🌈 ";
  padding: 0;
  margin: 0;
}
.list li {
  margin-bottom: 12px;
}

/* =========================================================
   9. Forms
   ========================================================= */
.form {
  display: grid;
  gap: 16px;
  max-width: 720px;
}
.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: var(--panel);
  color: var(--text);
  transition: transform 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  transform: scale(1.03);
  border-color: var(--acc2);
  outline: none;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}
/* Honeypot field (hidden from users) */
#website { display: none; }

/* =========================================================
   10. Buttons
   ========================================================= */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 20px;
  border: none;
  color: #fff;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: rotate(-2deg) scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Theme toggle buttons */
.theme-switch {
  display: flex;
  gap: 8px;
  margin-left: 20px;
}

.theme-switch button {
  padding: 8px 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  background: var(--acc);
  color: #fff;
  transition: transform 0.2s ease, background 0.2s ease;
}

.theme-switch button:hover {
  transform: scale(1.1);
  background: var(--acc2);
}

/* =========================================================
   11. Footer
   ========================================================= */
footer {
  text-align: center;
  padding: 30px;
  margin-top: 40px;
  background: linear-gradient(90deg, var(--acc2), var(--acc));
  color: #fff;
  font-size: 1rem;
}

footer a {
  color: #fff;
  text-decoration: underline wavy var(--bg);
}

footer a:hover {
  color: var(--bg);
}

/* =========================================================
   12. Responsive Tweaks
   ========================================================= */
@media (max-width: 600px) {
  .menu {
    justify-content: center;

