@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;700;800&family=DM+Sans:ital,wght@0,300;0,400;1,300&display=swap');

:root {
	--sky1: #d0f0ff;
	--sky2: #b8e4f9;
	--sand: #f5e6c8;
	--ocean: #2a7fba;
	--foam: #e8f8ff;
	--accent: #f4a732;
	--dark: #1a2a3a; }

/* ── CLOUDS ── */
.clouds { position: absolute; top: 0; left: 0; width: 100%; height: 55%; pointer-events: none; z-index: 92; }
.cloud { position: absolute; background: transparent; border: 1px solid #fff; border-radius: 50px; opacity: 0.75; filter: blur(2px); }
.cloud::before, .cloud::after { content: ''; position: absolute; background: white; border-radius: 50%; }
.cloud-1 { width: 180px; height: 40px; top: 10%; left: -200px; animation: drift 22s linear infinite; }
.cloud-1::before { width: 80px; height: 60px; top: -30px; left: 20px; }
.cloud-1::after { width: 60px; height: 50px; top: -20px; left: 80px; }
.cloud-2 { width: 120px; height: 28px; top: 25%; left: -150px; animation: drift 31s 5s linear infinite; opacity: 0.5; }
.cloud-2::before { width: 55px; height: 45px; top: -22px; left: 10px; }
.cloud-2::after { width: 40px; height: 35px; top: -15px; left: 55px; }
.cloud-3 { width: 200px; height: 44px; top: 5%; left: -250px; animation: drift 27s 12s linear infinite; }
.cloud-3::before { width: 90px; height: 68px; top: -35px; left: 30px; }
.cloud-3::after { width: 70px; height: 55px; top: -25px; left: 100px; }

@keyframes drift {
	from { transform: translateX(0); }
	to { transform: translateX(calc(100vw + 300px)); } }

/* ── WAVES ── */
.waves { position: absolute; bottom: 0; left: 0; width: 100%; height:7%; pointer-events: none; z-index: 92; overflow: hidden; }
.wave { position: absolute; bottom: 0px; width: 200%; height: 70px; background: rgba(255, 255, 255, 0.5); border-radius: 50%; animation: wave-roll 4s ease-in-out infinite; left: -50%; }
.wave:nth-child(2) { animation: wave-roll9s 1s ease-in-out infinite; opacity: 0.7; height: 58px; background: rgba(255, 255, 255, 0.6); }
.wave:nth-child(3) { animation: wave-roll 7s 3s ease-in-out infinite; opacity: 0.4; height: 45px; bottom: 0; background: rgba(255, 255, 255, 0.8); }
@keyframes wave-roll { 0%, 100% { transform: translateX(0) scaleY(1); } 50% { transform: translateX(5%) scaleY(0.85); } }

/* ── BIRDS IN BACKGROUND ── */
.bg-birds { position: absolute; top: 0%; left: 0; width: 100%; pointer-events: none; z-index: 1; }
.bg-bird { position: absolute; font-size: 18px; animation: fly-by linear infinite; opacity: 0.5; }
.bg-bird:nth-child(1) { top: 0; animation-duration: 20s; animation-delay: 0s; }
.bg-bird:nth-child(2) { top: 40px; animation-duration: 26s; animation-delay: 7s; font-size: 12px; }
.bg-bird:nth-child(3) { top: 20px; animation-duration: 18s; animation-delay: 13s; font-size: 14px; }

@keyframes fly-by {
	from { transform: translateX(-80px) scaleX(-1); }
	to  { transform: translateX(calc(100vw + 80px)) scaleX(-1); } }

/* ── MAIN SCENE ── */
.mascot-seagull {position: relative; top: -430px; right: 85px; transform: rotate(-2.5deg); z-index: 99; }
.scene { position: absolute; top: 0px; z-index: 999; right: 120px; display: flex; flex-direction: column; align-items: center; gap: 0; }

/* ── SPEECH BUBBLE ── */
.s-bubble { position: relative; right: -50px; top: 50px; background: white; border-radius: 20px; padding: 9px 20px; font-family: "Asap Condensed", sans-serif; font-weight: 700; font-size: 0.9rem; color: var(--dark); box-shadow: 0 8px 32px rgba(26, 90, 138, 0.18); margin-bottom: 12px; max-width: 260px; text-align: center; transform: rotate(14deg); transition: opacity 0.4s ease; border: 2px solid rgba(26, 90, 138, 0.08); }
.s-bubble::after { content: ''; position: absolute; bottom: -29px; left: 72%; transform: translateX(-340%); border: 16px solid transparent; border-top-color: white; }
.s-bubble span { display: block; font-family: 'DM Sans', sans-serif; font-size: 0.70rem; font-weight: 300; color: #6a8ea0; margin-top: 2px; }

/* ── BIRD WRAPPER ── */
.bird-scene { position: relative; width: 465px; height: 465px; cursor: pointer; }

/* shadow on ground */
.bird-shadow { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 160px; height: 28px; background: radial-gradient(ellipse, rgba(26,90,138,0.25) 0%, transparent 70%); border-radius: 50%; animation: shadow-breathe 2.8s ease-in-out infinite; }

@keyframes shadow-breathe {
	0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.7; }
	40% { transform: translateX(-50%) scale(0.82); opacity: 0.35; } }

/* main bird image */
.bird-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; /* Bob up and down */ animation: bob 2.8s ease-in-out infinite;  transform-origin: center bottom; will-change: transform; transition: filter 0.15s ease;  filter: drop-shadow(-35px 0 16px rgba(0, 6, 4, 0.4)); }
.bird-img:hover { filter: drop-shadow(0 0 20px rgba(0, 6, 4, 0.2)); }

@keyframes bob {
	0%, 100% { transform: translateY(0)  rotate(0deg);  }
	28% { transform: translateY(-18px) rotate(-1deg); }
	55% { transform: translateY(-9px) rotate(0.6deg); } }

/* beak flap: swap between 5.png (closed) and 7.png (open) */
.bird-img.beak-open { display: block; }
.bird-img.beak-close { display: none; }

/* startle jump */
.bird-img.startle { animation: bob 2.8s ease-in-out infinite, startle 0.3s ease !important; }

@keyframes startle {
	0% { transform: translateY(0) rotate(0deg); }
	30% { transform: translateY(-32px) rotate(-3deg); }
	65% { transform: translateY(-14px) rotate(2deg); }
	100% { transform: translateY(0) rotate(0deg); } }

/* eye glint overlay */
.eye-glint { position: absolute; top: 16%; left: 40.6%; width: 7px; height: 7px; pointer-events: none; animation: bob 2.8s ease-in-out infinite; }
.eye-glint::after { content: ''; display: block; width: 7px; height: 7px; background: radial-gradient(circle, rgba(255,255,255,0.95), rgba(255,255,255,0.1) 70%, transparent); border-radius: 50%; transition: transform 0.08s ease; }

/* ── INFO PANEL ── */
.info-panel { background: rgba(255,255,255,0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1.5px solid rgba(255,255,255,0.9); border-radius: 20px; padding: 24px 28px; max-width: 520px; width: 90vw; box-shadow: 0 12px 48px rgba(26,90,138,0.14); margin-top: 18px; }
.info-panel h2 { font-family: "Asap Condensed", sans-serif; font-weight: 800; font-size: 1.25rem; color: var(--dark); margin-bottom: 14px; letter-spacing: -0.02em; }
.tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.tab { padding: 7px 16px; border-radius: 30px; border: 1.5px solid rgba(26,90,138,0.18); background: transparent; font-family: "Asap Condensed", sans-serif; font-weight: 700; font-size: 0.78rem; cursor: pointer; transition: all 0.2s; color: var(--dark); }
.tab.active { background: var(--ocean); color: white; border-color: var(--ocean); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* code block */
pre { background: #0f1f2e; color: #a8d8f0; border-radius: 12px; padding: 16px; font-size: 0.72rem; line-height: 1.6; overflow-x: auto; font-family: "Asap Condensed", sans-serif;, 'Courier New', monospace; }
.kw { color: #f4a732; }
.str { color: #7ec8a4; }
.com { color: #4a7a96; font-style: italic; }
.fn { color: #c792ea; }
.val { color: #89ddff; }

.steps { list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding: 10px 0 10px 44px; position: relative; font-size: 0.85rem; color: #2a4a5e; border-bottom: 1px solid rgba(26,90,138,0.08); line-height: 1.5; }
.steps li:last-child { border: none; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 8px; width: 26px; height: 26px; background: var(--ocean); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: "Asap Condensed", sans-serif; font-weight: 700; font-size: 0.72rem; }
.steps li a { color: var(--ocean); font-weight: 700; text-decoration: none; }
.steps li a:hover { text-decoration: underline; }
.controls { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.ctrl-btn { padding: 9px 18px; border-radius: 30px; border: 1.5px solid var(--ocean); background: transparent; color: var(--ocean); font-family: "Asap Condensed", sans-serif; font-weight: 700; font-size: 0.78rem; cursor: pointer; transition: all 0.2s; }
.ctrl-btn:hover, .ctrl-btn.active-btn { background: var(--ocean); color: white; }
.badge { display: inline-block; background: #e8f8ff; color: var(--ocean); font-family: "Asap Condensed", sans-serif; font-weight: 700; font-size: 0.68rem; padding: 3px 10px; border-radius: 30px; margin: 2px; border: 1px solid rgba(42,127,186,0.2); }
.badges { margin: 10px 0; }

 /* ── LOTTIE SLOT (option B) ── */
#lottie-slot { width: 300px; height: 300px; display: none; /* hidden until lottie JSON is loaded */ }

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
	.mascot-seagull { top: 250px; left: -90px; max-width: 100%; transform: scale(1); }
	.bird-scene { width: 240px; height: 240px; }
	.info-panel { padding: 18px; } }