body { 
  margin: 0;
  font-family: Arial, sans-serif;
  background: radial-gradient(circle at top, #1e1e1e, #0d0d0d);
  color: #eaeaea;
}

header {
  padding: 20px;
}

nav a {
  display: inline-block;
  color: #bbb;
  margin-right: 15px;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav a:hover {
  color: orange;
}

.hero {
  text-align: center;
  margin-top: 20px;
  padding: 0 20px;
}

.hero p {
  color: #aaa;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.card {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 12px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.08);
}

.info {
  text-align: center;
  margin: 20px 0 40px;
  color: #9adf9a;
}

#plant {
  margin: 40px auto 80px;
  width: 120px;
  height: 220px;
  position: relative;
  cursor: pointer;
  perspective: 800px;
  animation: plantIdle 3s ease-in-out infinite;
}

#plant:active {
  transform: scale(0.98);
}

.pot {
  width: 120px;
  height: 80px;
  background: linear-gradient(#7a4a2d, #3b2418);
  border-radius: 12px;
  position: absolute;
  bottom: 0;
  z-index: 2;
  transform: rotateX(55deg) rotateZ(10deg);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.stem {
  width: 8px;
  height: 20px;
  background: #6b4f2a;
  border-radius: 5px;
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: bottom center;
  animation: stemSway 2.5s ease-in-out infinite;
  z-index: 1;
}

.stem::before,
.stem::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 10px;
  background: #2ecc71;
  border-radius: 50%;
  opacity: 0;
}

.stem::before {
  left: -18px;
  top: 10px;
  transform: rotate(-30deg);
}

.stem::after {
  right: -18px;
  top: 25px;
  transform: rotate(30deg);
}

.seed-dot {
  width: 12px;
  height: 12px;
  background: #d8b27a;
  border-radius: 50%;
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.flower {
  width: 18px;
  height: 18px;
  background: #ffd166;
  border-radius: 50%;
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  z-index: 4;
}

.seed .stem { height: 10px; background: #7a5a3a; }
.sprout .stem { height: 80px; background: #2ecc71; }
.grown .stem { height: 150px; background: #1f9d55; }

.sprout .stem::before,
.sprout .stem::after {
  opacity: 0.5;
  animation: leafPop 0.6s ease forwards;
}

.grown .stem::before,
.grown .stem::after {
  opacity: 1;
  animation: leafGrow 1s ease forwards;
}

.seed .seed-dot { opacity: 1; }
.sprout .seed-dot,
.grown .seed-dot { opacity: 0; }

.grown .flower {
  opacity: 1;
  animation: flowerPulse 1.8s ease-in-out infinite;
}

.grown .pot {
  transform: scale(1.08) rotateX(55deg) rotateZ(10deg);
  box-shadow: 0 25px 40px rgba(0,0,0,0.6);
}

@keyframes plantIdle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

@keyframes stemSway {
  0%, 100% { transform: translateX(-50%) rotate(0deg); }
  50% { transform: translateX(-50%) rotate(3deg); }
}

@keyframes leafPop {
  from { transform: scale(0) rotate(-30deg); }
  to { transform: scale(1) rotate(-30deg); }
}

@keyframes leafGrow {
  0% { transform: scale(0.6) rotate(-30deg); }
  100% { transform: scale(1.2) rotate(-30deg); }
}

@keyframes flowerPulse {
  0%, 100% { transform: translateX(-50%) scale(1.1); }
  50% { transform: translateX(-50%) scale(1.4); }
}

@media (min-width: 600px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    margin-top: 40px;
  }
}

