/* Water-inspired gradient background and typography */
:root {
  --bg1: #0ea5e9;  /* sky */
  --bg2: #0369a1;  /* deep water */
  --bg3: #22d3ee;  /* aqua */
  --text: #e6f6ff;
  --muted: #cde9f7;
}

* { box-sizing: border-box; }
html, body {
  height: 100%;
}
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  /* Prettier multi-layer animated ocean gradient */
  background:
    radial-gradient(1200px 800px at 12% 18%, rgba(34, 211, 238, 0.35), transparent 60%),
    radial-gradient(1000px 700px at 85% 85%, rgba(14, 165, 233, 0.30), transparent 60%),
    conic-gradient(from 200deg at 50% 110%, #022c43, #053f5e 20%, #0b466a 38%, #0ea5e9 60%, #115e67 78%, #022c43 100%);
  background-size: 140% 140%, 160% 160%, 200% 200%;
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Subtle reflective sheen overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 40% at 50% -10%, rgba(255, 255, 255, 0.09), transparent 60%),
    radial-gradient(50% 30% at 110% 60%, rgba(255, 255, 255, 0.06), transparent 60%);
  mix-blend-mode: screen;
}

.container {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

.title {
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw + 0.5rem, 3.5rem);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  text-shadow: 0 6px 30px rgba(0,0,0,0.35);
  perspective: 800px; /* adds depth to #verb 3D flip */
  text-align: left;
  justify-self: center;
}

#verb {
  display: inline-block;
  background: linear-gradient(90deg, #a5f3fc, #ffffff, #a5f3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.2));
  min-width: 4.5em; /* Reserve space for longest word "Cultivate" */
  text-align: left;
}

.subtitle {
  font-size: clamp(1rem, 1.5vw + 0.5rem, 1.5rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.contact {
  font-size: clamp(0.95rem, 1.2vw + 0.4rem, 1.15rem);
  color: var(--muted);
  margin: 0;
}

.contact a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Animated drift for the background */
@media (prefers-reduced-motion: no-preference) {
  body {
    animation: oceanDrift 40s ease-in-out infinite alternate;
  }
}

@keyframes oceanDrift {
  0% {
    background-position: 0% 0%, 100% 100%, 50% 50%;
    filter: hue-rotate(0deg) saturate(1.05);
  }
  100% {
    background-position: 20% 10%, 80% 90%, 60% 55%;
    filter: hue-rotate(-8deg) saturate(1.18);
  }
}

/* Flip animation for the changing verb */
@keyframes flipOut {
  0% { transform: rotateX(0deg) translateY(0); opacity: 1; }
  100% { transform: rotateX(90deg) translateY(-4px); opacity: 0; }
}

@keyframes flipIn {
  0% { transform: rotateX(-90deg) translateY(4px); opacity: 0; }
  100% { transform: rotateX(0deg) translateY(0); opacity: 1; }
}

#verb.flip-out {
  animation: flipOut 280ms ease forwards;
}

#verb.flip-in {
  animation: flipIn 360ms ease forwards;
}

/* Water Bubbles */
#bubbles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.bubble {
  position: absolute;
  bottom: -100px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
  border-radius: 50%;
  opacity: 0;
  box-shadow: 
    inset 0 0 8px rgba(255, 255, 255, 0.3),
    0 2px 10px rgba(0, 0, 0, 0.1);
  animation: rise linear forwards;
  will-change: transform, opacity;
}

.bubble::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 15%;
  width: 35%;
  height: 35%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), transparent);
  border-radius: 50%;
  filter: blur(1px);
}

@keyframes rise {
  0% {
    transform: translateY(0) translateX(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
    transform: translateY(-10vh) translateX(0) scale(1);
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-120vh) translateX(var(--drift)) scale(0.8);
    opacity: 0;
  }
}
