:root {
  --color-bg: #FDF9F1;
  --color-text: #2A3B32;
  --color-primary: #459E5D;
  /* Frog Green */
  --color-primary-dark: #35804A;
  --color-secondary: #F4A261;
  /* Warm Peach */
  --color-accent: #E9C46A;
  /* Warm Sand */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px rgba(42, 59, 50, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

/* Ambient Background Blobs */
.ambient-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background-color: var(--color-primary);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background-color: var(--color-secondary);
  bottom: -50px;
  right: -100px;
  animation-delay: -5s;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background-color: var(--color-accent);
  top: 40%;
  left: 40%;
  transform: translate(-50%, -50%);
  animation-delay: -10s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(50px, -50px) scale(1.1);
  }

  100% {
    transform: translate(-30px, 30px) scale(0.9);
  }
}

/* Glass Container */
.glass-container {
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  box-shadow: var(--glass-shadow);
  width: 100%;
  max-width: 1200px;
  min-height: 85vh;
  padding: 2.5rem 4rem;
  display: flex;
  flex-direction: column;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.logo-emoji {
  font-size: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
  border: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(69, 158, 93, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(69, 158, 93, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: rgba(69, 158, 93, 0.1);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 4rem;
}

.hero-content {
  flex: 1;
  max-width: 550px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(69, 158, 93, 0.1);
  color: var(--color-primary-dark);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.pulse {
  width: 10px;
  height: 10px;
  background-color: var(--color-primary);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 0 0 rgba(69, 158, 93, 0.7);
  animation: pulsing 1.5s infinite;
}

@keyframes pulsing {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(69, 158, 93, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(69, 158, 93, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(69, 158, 93, 0);
  }
}

h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.highlight {
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 12px;
  background-color: var(--color-accent);
  opacity: 0.4;
  z-index: -1;
  border-radius: 6px;
}

p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  color: #4A5D53;
}

.actions {
  display: flex;
  gap: 1.5rem;
}

/* Hero Visual & Animation Stage */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.stage {
  position: relative;
  width: 450px;
  height: 400px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.5), 0 20px 40px rgba(42, 59, 50, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotateX(10deg);
}

.plant {
  position: absolute;
  font-size: 3rem;
  bottom: -10px;
  z-index: 5;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.1));
}

.plant-left {
  left: 40px;
  transform: scaleX(-1);
}

.plant-right {
  right: 40px;
  font-size: 3.5rem;
}

/* The desk where the developer works */
.desk {
  position: absolute;
  bottom: 60px;
  width: 250px;
  height: 20px;
  z-index: 2;
}

.desk-surface {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #EAD7C3 0%, #D4BC9F 100%);
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), inset 0 2px 5px rgba(255, 255, 255, 0.5);
}

/* Developer & Computers */
.workspace {
  position: absolute;
  bottom: 55px;
  /* On desk */
  display: flex;
  align-items: flex-end;
  gap: -10px;
  z-index: 3;
}

.screen {
  font-size: 4rem;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.15));
  position: relative;
  z-index: 3;
}

.screen-left {
  transform: translateY(10px) rotate(-5deg);
  z-index: 2;
  font-size: 4.5rem;
}

.screen-right {
  transform: translateY(15px) rotate(5deg);
  z-index: 4;
}

.developer {
  font-size: 5rem;
  position: relative;
  z-index: 3;
  animation: typing 0.5s infinite alternate;
  transform-origin: bottom center;
  margin: 0 -20px;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.2));
}

@keyframes typing {
  0% {
    transform: translateY(0) scaleY(1);
  }

  100% {
    transform: translateY(-3px) scaleY(1.02);
  }
}

/* Hopping Frog Animation */
.frog-track {
  position: absolute;
  width: 100%;
  bottom: 100px;
  /* Behind the developer but above the desk height implicitly */
  height: 100px;
  z-index: 1;
  /* Behind developer (z-index 3) and desk (z-index 2) */
  pointer-events: none;
}

.frog {
  position: absolute;
  font-size: 2.5rem;
  left: -50px;
  /* Starts outside */
  bottom: 0;
  transition: transform 0.1s;
  animation: hop-jump 6s infinite;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.15));
  transform-origin: bottom center;
}

/* Hopper sequence: jump in, watch dev, jump away */
@keyframes hop-jump {
  0% {
    left: -50px;
    transform: scaleX(1) translateY(0);
  }

  /* Hop 1 */
  10% {
    left: -10px;
    transform: scaleX(1) translateY(-40px);
  }

  20% {
    left: 40px;
    transform: scaleX(1) translateY(0);
  }

  /* Hop 2 */
  25% {
    left: 60px;
    transform: scaleX(1) translateY(-50px);
  }

  30% {
    left: 100px;
    transform: scaleX(1) translateY(0);
  }

  /* Peek behind developer */
  35% {
    left: 130px;
    transform: scaleX(1) translateY(-30px);
  }

  40% {
    left: 150px;
    transform: scaleX(1) translateY(0);
  }

  /* Stay and watch */
  45% {
    left: 150px;
    transform: scaleX(1) translateY(0);
  }

  55% {
    left: 150px;
    transform: scaleX(-1) translateY(0);
  }

  /* Turn around */
  65% {
    left: 150px;
    transform: scaleX(1) translateY(0);
  }

  /* Turn back */
  /* Hop away */
  70% {
    left: 180px;
    transform: scaleX(1) translateY(-40px);
  }

  75% {
    left: 240px;
    transform: scaleX(1) translateY(0);
  }

  80% {
    left: 280px;
    transform: scaleX(1) translateY(-50px);
  }

  85% {
    left: 340px;
    transform: scaleX(1) translateY(0);
  }

  90% {
    left: 380px;
    transform: scaleX(1) translateY(-60px);
  }

  100% {
    left: 450px;
    transform: scaleX(1) translateY(0);
  }
}

/* Particles */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.particle {
  position: absolute;
  font-size: 1rem;
  font-weight: bold;
  color: var(--color-primary);
  opacity: 0;
  animation: float-up 3s linear forwards;
}

@keyframes float-up {
  0% {
    transform: translateY(0) scale(0.5);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-150px) scale(1.5) rotate(20deg);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    gap: 3rem;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
  }

  .actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .glass-container {
    padding: 2rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  .stage {
    width: 320px;
    height: 320px;
  }

  .scene-items {
    transform: scale(0.75);
  }
}