/* Styles moved from the old styles.css: toast, confetti, night sky, sun, clouds, moon, chakor and the
   say-hi form. Removed: logo spin, time-of-day tint, rainbow, butterfly, paper plane, dark-theme overrides. */
/* ---------- Easter eggs ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  max-width: min(92vw, 520px);
  padding: 12px 18px; border-radius: 14px;
  background: var(--surface-solid); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  font-size: 14px; text-align: center;
  opacity: 0; transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.fx-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 55; }

/* night sky */
.stars-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.twinkle {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.8);
  animation: twinkle var(--d) ease-in-out infinite; animation-delay: var(--delay);
}
@keyframes twinkle { 0%, 100% { opacity: 0.15; } 50% { opacity: 1; } }
.sky-fx { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.shoot {
  position: absolute; left: var(--x); top: var(--y);
  width: 160px; height: 44px; padding: 0; margin: 0;
  border: 0; background: none; cursor: pointer;
  pointer-events: auto;
  animation: shoot 2.6s linear forwards;
}
.shoot::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.55) 12%, transparent);
  border-radius: 2px;
}
.shoot::after {
  content: ""; position: absolute; left: -2px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px;
  border-radius: 50%; background: #fff; box-shadow: 0 0 10px 3px rgba(255, 255, 255, 0.85);
}
@keyframes shoot {
  0% { opacity: 0; transform: translate(0, 0) rotate(-30deg); }
  10%, 70% { opacity: 1; }
  100% { opacity: 0; transform: translate(-460px, 266px) rotate(-30deg); }
}

/* ---------- Sky: sun, clouds, moon, chakor ---------- */
.sky-layer { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }

.day-sun {
  position: absolute; z-index: 1;
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  padding: 0; border: 0; border-radius: 50%; background: none;
  cursor: pointer; pointer-events: auto;
  transition: left 2s linear, top 2s linear;
}
.day-sun::before {
  content: ""; position: absolute; inset: -34px; border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 224, 71, 0.45), rgba(253, 224, 71, 0) 68%);
  animation: sun-pulse 5s ease-in-out infinite;
}
.sun-core {
  position: absolute; inset: 8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #fffbeb, #fde047 45%, #f59e0b);
  box-shadow: 0 0 24px rgba(250, 204, 21, 0.6);
}
.shades {
  position: absolute; left: 50%; top: 50%; font-size: 30px; line-height: 1;
  transform: translate(-50%, -160%) scale(0.6); opacity: 0;
  transition: transform 0.45s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.2s;
}
.day-sun.cool .shades { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@keyframes sun-pulse { 50% { transform: scale(1.08); } }

.cloud {
  position: absolute; left: 0; z-index: 2;
  padding: 0; border: 0; background: none;
  cursor: pointer; pointer-events: auto;
  will-change: transform;
}
.cloud svg { display: block; width: 100%; fill: rgba(255, 255, 255, 0.92); filter: drop-shadow(0 6px 10px rgba(15, 23, 42, 0.12)); transition: transform 0.3s, fill 0.4s; }
.cloud:hover svg { transform: scale(1.08); }
.cloud.raining svg { fill: rgba(148, 163, 184, 0.95); }
.drop {
  position: absolute; top: 70%; width: 2px; height: 10px; border-radius: 1px;
  background: linear-gradient(transparent, #60a5fa);
  animation: drop 0.7s linear infinite;
}
@keyframes drop { from { transform: translateY(0); opacity: 1; } to { transform: translateY(110px); opacity: 0; } }

@media (max-width: 560px) {
  .day-sun { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .day-sun::before { inset: -24px; }
  .sun-core { inset: 6px; }
  .shades { font-size: 22px; }
}

/* ---------- Night: moon + chakor ---------- */
.night-moon {
  position: absolute; left: 80vw; top: 108px; z-index: 1;
  width: 72px; height: 72px; margin: -36px 0 0 -36px;
  padding: 0; border: 0; border-radius: 50%; background: none;
  cursor: pointer; pointer-events: auto;
  filter: drop-shadow(0 0 18px rgba(254, 240, 138, 0.45));
}
.night-moon svg { display: block; width: 100%; height: 100%; }
.chakor {
  position: absolute; left: 0; top: 0; z-index: 16;
  padding: 0; border: 0; background: none;
  cursor: pointer; will-change: transform;
  filter: drop-shadow(0 0 6px rgba(254, 249, 195, 0.35));
}
.chakor svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chakor .wing { display: none; transform-box: view-box; transform-origin: 28px 24px; }
.chakor.flying .wing { display: block; animation: chakor-flap 0.2s ease-in-out infinite alternate; }
.chakor.flying .legs, .chakor.flying .wing-folded { display: none; }
@keyframes chakor-flap { to { transform: scaleY(-0.7); } }
.chakor .head { transform-box: view-box; transform-origin: 40px 22px; }
.chakor.perched .head { animation: gaze 3.2s ease-in-out infinite; }
@keyframes gaze { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-7deg); } }
@media (max-width: 560px) {
  .night-moon { width: 52px; height: 52px; margin: -26px 0 0 -26px; top: 96px; }
}

/* ---------- Say hi with a name ---------- */
.hello-form { margin: 28px auto 0; max-width: 460px; text-align: left; }
.hello-form label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; text-align: center; }
.hello-form label span { color: var(--faint); }
.hello-row { display: flex; gap: 8px; }
.hello-row input {
  flex: 1; min-width: 0;
  padding: 11px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-solid); color: var(--text);
  font: 500 15px var(--font-body);
}
.hello-row input:focus { outline: 2px solid #3b82f6; outline-offset: 1px; }
.hello-form[hidden], .hello-reply[hidden] { display: none; }
.hello-reply { margin-top: 26px; }
.hello-text { font: 600 clamp(20px, 3vw, 26px)/1.35 var(--font-display); color: var(--text); max-width: 34ch; margin: 0 auto; }
.hello-text.pop { animation: hello-pop 0.6s cubic-bezier(0.3, 1.5, 0.5, 1); }
@keyframes hello-pop { from { opacity: 0; transform: translateY(10px) scale(0.96); } }
.hello-forget {
  margin-top: 12px; padding: 4px 8px;
  border: 0; background: none; color: var(--faint);
  font: 500 12.5px var(--font-body); text-decoration: underline; cursor: pointer;
}
.hello-forget:hover { color: var(--text); }
.hello-fine { font-size: 12px !important; color: var(--faint) !important; margin-top: 18px !important; }
.contact-card { transition: box-shadow 0.6s, border-color 0.6s; }
.contact-card.special {
  border-color: rgba(244, 114, 182, 0.55);
  box-shadow: 0 0 0 1px rgba(244, 114, 182, 0.25), 0 24px 60px -20px rgba(236, 72, 153, 0.55);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(244, 114, 182, 0.14), transparent 65%);
}
@media (max-width: 560px) {
  .hello-row { flex-direction: column; }
  .hello-row .btn { justify-content: center; }
}
.contact-card.special.sparkles {
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.22), 0 24px 60px -20px rgba(245, 158, 11, 0.5);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(251, 191, 36, 0.13), transparent 65%);
}
.hello-text.verse { font: italic 500 clamp(19px, 2.6vw, 24px)/1.65 Georgia, "Noto Serif", "Times New Roman", serif; max-width: 40ch; }
