/*
 * iamaweeb — coming soon
 * Single stylesheet. No Bootstrap, no jQuery.
 */

/* ------------------------------------------------------------------ *
 * Base
 * ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  justify-content: center;
  color: #000;
  background-color: #fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a,
a:focus,
a:hover {
  color: inherit;
}

/* ------------------------------------------------------------------ *
 * Layout — full-height flex column
 * ------------------------------------------------------------------ */
.cover-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 1rem;
  text-align: center;
}

.cover {
  flex: 1 1 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ------------------------------------------------------------------ *
 * Header / footer
 * ------------------------------------------------------------------ */
.masthead {
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
}

.masthead-brand {
  margin: 0;
}

#navbarText {
  font-family: 'Indie Flower', cursive;
  font-weight: bolder;
  font-size: 3rem;
}

.mastfoot {
  margin-top: auto;
  color: rgba(0, 0, 0, 0.55);
}

.mastfoot p {
  margin: 0;
}

.mastfoot span {
  color: #e0245e;
}

/* ------------------------------------------------------------------ *
 * Hero
 * ------------------------------------------------------------------ */
.white-background {
  position: relative;
  width: 100%;
  overflow: hidden;
  background:
    url('./images/152_1-bg-splash.webp') no-repeat center center / cover,
    radial-gradient(circle, rgb(252, 193, 0) 50%, rgba(252, 185, 0, 1) 100%);
}

.centered {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  width: 90%;
  visibility: hidden; /* revealed by the typewriter script (or <noscript>) */
}

.centered.ready {
  visibility: visible;
}

.main-title {
  font-family: 'Bebas Neue', sans-serif;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  min-height: 1.05em; /* hold layout height while typing */
}

/* Blinking caret that follows the typing. */
.type-cursor {
  display: inline-block;
  margin-left: 0.04em;
  font-weight: 400;
  transform: translateY(-0.02em);
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.center-heading {
  font-size: clamp(1.75rem, 6vw, 3.75rem);
  line-height: 1.05;
}

.bottom-sub {
  font-size: clamp(1.1rem, 3vw, 1.75rem);
  margin-top: 0.35rem;
  opacity: 0.95;
}

/* ------------------------------------------------------------------ *
 * Corner art
 * ------------------------------------------------------------------ */
.top-left-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 35%;
  max-width: 35rem;
  aspect-ratio: 35 / 20;
  background: url('./images/top-left.webp') no-repeat center / cover;
  animation: slideInLeft 0.6s ease-out both;
  z-index: 5;
}

.bottom-right-container {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 26%;
  max-width: 25rem;
  aspect-ratio: 25 / 17;
  background: url('./images/bottom-right.webp') no-repeat center / cover;
  animation: slideInRight 0.6s ease-out both;
  z-index: 5;
}

/* ------------------------------------------------------------------ *
 * Balloons & stars
 * ------------------------------------------------------------------ */
.balloon-container {
  position: absolute;
  inset: 0;
  z-index: 10;
  transition: transform 0.35s ease-out; /* pointer parallax */
}

.balloon {
  position: absolute;
  width: 7rem;
  height: 7rem;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  will-change: transform;
  animation: float var(--float-duration, 6s) ease-in-out var(--float-delay, 0s) infinite;
}

.balloon.visible {
  opacity: 1;
}

/* Stars sparkle instead of drift. */
.balloon.star {
  width: 4.5rem;
  height: 4.5rem;
  animation-name: twinkle;
}

/* ------------------------------------------------------------------ *
 * Keyframes
 * ------------------------------------------------------------------ */
/* Gentle, organic vertical bob + slight sway. */
@keyframes float {
  0%   { transform: translateY(0)     rotate(0deg); }
  25%  { transform: translateY(-14px) rotate(2.5deg); }
  50%  { transform: translateY(-6px)  rotate(-2deg); }
  75%  { transform: translateY(-20px) rotate(1.5deg); }
  100% { transform: translateY(0)     rotate(0deg); }
}

/* Pulse + shimmer for the stars. */
@keyframes twinkle {
  0%, 100% { transform: scale(1)    rotate(0deg); filter: brightness(1); }
  50%      { transform: scale(1.2)  rotate(10deg); filter: brightness(1.4); }
}

@keyframes slideInLeft {
  from { transform: translateX(-8%); opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(8%); opacity: 0; }
  to   { transform: translateX(0);  opacity: 1; }
}

/* ------------------------------------------------------------------ *
 * Mobile
 * ------------------------------------------------------------------ */
@media screen and (max-width: 480px) {
  .white-background {
    min-height: 30rem;
  }

  .balloon {
    width: 4.5rem;
    height: 4.5rem;
  }

  .balloon.star {
    width: 3rem;
    height: 3rem;
  }

  #navbarText {
    font-size: 2.5rem;
  }
}

/* ------------------------------------------------------------------ *
 * Accessibility — respect reduced-motion
 * ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .balloon,
  .top-left-container,
  .bottom-right-container,
  .main-title {
    animation: none;
  }
  .balloon-container {
    transition: none;
  }
  .main-title { opacity: 1; }
}
