:root {
  --color-primary: #629a61;
  --color-secondary: #8bc34a;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-white-trsp: rgba(255, 255, 255, 0.7);
  --color-white: #fff;
  --color-primary-dark: #1d8055;
  --color-background: rgba(217, 238, 224, 0.95);
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
  --border-radius: 16px;
  --btn-border-radius: 30px;
  --transition: 0.3s ease;

  background-color: #f6f6ea;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background-attachment: fixed;
  background-size: cover;
  background-image: url('public/background1.jpg');
  min-height: 100vh;
}

.main-container {
  background-color: rgba(217, 238, 224, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100vh - 150px);
  width: 100%;
  max-width: 85%;
  margin: 32px auto;
  padding: 32px;
  border-radius: 30px;
  box-sizing: border-box;
}

@media (max-width: 639px) {
  .main-container {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
    padding: 0;
  }
}

/* ======== header ======== */
.header {
  backdrop-filter: blur(10px);
}

.logo {
  color: var(--color-primary);
}

.nav-links a {
  color: var(--color-text);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--color-primary);
}

/* ======== sections ======== */
.section {
  background-color: var(--color-white-trsp);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  backdrop-filter: blur(5px);
}

.section-title {
  color: var(--color-primary);
}

.section-subtitle {
  color: var(--color-text-light);
}

.hero {
  background: linear-gradient(to bottom right, rgba(50, 129, 81, 0.7), rgba(155, 206, 156, 0.7));
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-medium);
}

.hero-content {
  color: var(--color-white);
}

.hero h1 {
  line-height: 1.2;
}

.hero-subtitle {
  opacity: 0.95;
}

/* ======== buttons ======== */
.btn {
  background-color: var(--color-white);
  color: var(--color-primary);
  border-radius: var(--btn-border-radius);
  font-size: 1rem;
  transition: var(--transition);
  border: none;
}

.btn:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  box-shadow: var(--shadow-medium);
}

/* ======== plants ======== */

.plant-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

@media (max-width: 1200px) {
  .plant-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1000px) {
  .plant-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .plant-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .plant-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .plant-card {
    padding: 30px;
  }
}

.plant-card {
  background-color: var(--color-background);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.plant-card:hover {
  box-shadow: var(--shadow-medium);
  border-color: var(--color-primary);
}

.plant-price {
  color: var(--color-primary);
}

.plant-desc {
  color: var(--color-text-light);
}

.availability-note {
  font-style: italic;
}

/* ======== contact ======== */
.contact-info p {
  color: var(--color-text-light);
}

.contact-info span {
  color: var(--color-primary);
}

/* ======== footer ======== */
.footer {
  background-color: rgba(255, 255, 255, 0.4);
  color: var(--color-text);
  backdrop-filter: blur(10px);
}

/* ======== mascot ======== */
.mascot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.mascot-container.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mascot-image {
  width: 120px;
  height: auto;
  cursor: pointer;
  animation: mascot-bounce 2s ease-in-out infinite;
}

@keyframes mascot-bounce {
  0%, 100% {
    transform: translateY(0) scaleY(1) rotate(0deg);
  }
  50% {
    transform: translateY(-5px) scaleY(1.1) rotate(-5deg);
  }
}

.mascot-message {
  position: absolute;
  bottom: 130px;
  right: 0;
  background-color: var(--color-white);
  color: var(--color-text);
  padding: 12px 16px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.mascot-message::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 20px;
  width: 16px;
  height: 16px;
  background-color: var(--color-white);
  transform: rotate(45deg);
}

.mascot-container:hover .mascot-message {
  opacity: 1;
  transform: translateY(0);
}

.mascot-container:hover .mascot-image {
  animation-play-state: paused;
}

@media (max-width: 639px) {
  .mascot-container {
    bottom: 10px;
    right: 10px;
  }

  .mascot-image {
    width: 80px;
  }

  .mascot-message {
    bottom: 90px;
    font-size: 0.8rem;
    max-width: 200px;
    white-space: normal;
  }
}