/* CSS Variables */
:root {
  --primary: #2d5a27;
  --secondary: #4a7c59;
  --accent: #8bb574;
  --light: #e8f5e8;
  --white: #ffffff;
  --text: #2c3e50;
  --text-light: #7f8c8d;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --transition: all 0.3s ease;
  --tooltip-bg: rgba(18, 20, 22, 0.95);
  --tooltip-color: #fff;
  --tooltip-radius: 8px;
  --tooltip-padding: 6px 10px;
  --tooltip-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] {
  --primary: #a6d388;
  --secondary: #6ba584;
  --accent: #4a7c59;
  --light: #1a2634;
  --white: #243447;
  --text: #ffffff;
  --text-light: #d1d8e0;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  --tooltip-bg: #fff;
  --tooltip-color: rgba(10, 12, 10, 0.9);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(135deg, var(--light) 0%, var(--white) 100%);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 20px;
  overflow: visible;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logo i {
  font-size: 1.5rem;
  color: var(--secondary);
}

.logo h1 {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.badge {
  background: var(--accent);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Navigation */
.nav {
  display: flex;
  gap: 6px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: var(--text-light);
  border-radius: var(--radius);
  cursor: pointer !important;
  transition: all 0.2s ease-in-out;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto !important;
  position: relative;
  z-index: 1;
}

.nav-btn i {
  font-size: 1rem;
}

.nav-btn:hover {
  background: var(--light);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.nav-btn.active {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(45, 90, 39, 0.25);
}

/* Dropdowns */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  pointer-events: auto;
}

.nav-dropdown .dropdown-toggle .fa-chevron-down {
  font-size: 0.7rem;
  margin-left: 2px;
  transition: transform 0.3s ease;
}

.nav-dropdown.active .dropdown-toggle .fa-chevron-down {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  background: var(--white) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
  min-width: 180px !important;
  display: none !important;
  margin-top: 5px !important;
  z-index: 99999 !important;
  overflow: visible !important;
}

.nav-dropdown.active .dropdown-menu {
  display: block !important;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
  text-align: left;
  transition: background 0.2s ease;
  pointer-events: auto;
}

.dropdown-item:hover {
  background: var(--light);
}

.dropdown-item:first-child {
  border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 8px 8px;
}

/* Main Content */
.main {
  padding: 2rem 0;
  min-height: calc(100vh - 140px);
}

.page {
  display: none;
}

.page.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hidden {
  display: none !important;
}

/* Page Header */
.page-header {
  margin-bottom: 2rem;
  text-align: center;
}

.page-header h2 {
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 3rem;
}

.hero h2 {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* Enhanced About Section Styles */
.about-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* About Hero */
.about-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 4rem 2rem;
  border-radius: var(--radius);
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.3;
}

.about-hero-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
  color: #ffffff;
}

.about-hero-content p {
  font-size: 1.3rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.9;
  color: #ffffff;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.hero-stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  color: #ffffff;
}

/* About Sections */
.about-section {
  margin-bottom: 4rem;
  padding: 3rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header i {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 1rem;
  display: block;
}

.section-header h3 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Mission Section */
.mission-section {
  border-left: 5px solid var(--accent);
}

.mission-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.mission-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.mission-image {
  position: relative;
  height: 200px;
}

.floating-elements {
  position: relative;
  height: 100%;
}

.floating-element {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 3s ease-in-out infinite;
}

.floating-element i {
  font-size: 1.5rem;
  color: var(--text-light);
}

.element-1 {
  top: 20px;
  left: 20px;
  animation-delay: 0s;
}

.element-2 {
  top: 60px;
  right: 30px;
  animation-delay: 1s;
}

.element-3 {
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 2s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--light);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  transform: scale(1.1);
}

.feature-card:hover .feature-icon i {
  color: var(--white);
}

.feature-icon i {
  font-size: 2rem;
  color: var(--primary);
  transition: var(--transition);
}

.feature-card h4 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.feature-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--text-light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Story Section */
.story-section {
  background: linear-gradient(135deg, var(--light) 0%, var(--white) 100%);
}

.story-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.story-timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}

.timeline-item {
  display: flex;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-year {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  margin-right: 2rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.timeline-content {
  flex: 1;
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.timeline-content h4 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.timeline-content p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.team-card {
  text-align: center;
  padding: 2rem;
  background: var(--light);
  border-radius: var(--radius);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.team-avatar {
  width: 100px;
  height: 100px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}

.team-card:hover .team-avatar {
  background: var(--primary);
  transform: scale(1.1);
}

.team-card:hover .team-avatar i {
  color: var(--white);
}

.team-avatar i {
  font-size: 2.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.team-card h4 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.team-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Footer */
.footer {
  background: var(--primary);
  color: var(--white);
  padding: 1.5rem 0 0.75rem;
  margin-top: 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.footer-section h4 {
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-size: 0.95rem;
}

.footer-section p {
  color:#ffffff;
  line-height: 1.4;
  font-size: 0.85rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.3rem;
}

.footer-section a {
  color: #ffffff;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.85rem;
}

.footer-section a:hover {
  color: var(--accent);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.5rem;
}

.footer-logo h3 {
  color: #ffffff;
  font-size: 1.1rem;
}

.footer-logo i {
  font-size: 1.1rem;
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
  color: #ffffff;
  font-size: 0.9rem;
}

.social-links a:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.85rem;
}

.footer-bottom i {
  color: #e74c3c;
}

/* Dark mode footer text override */
[data-theme="dark"] .footer {
  color: var(--white);
}

[data-theme="dark"] .footer-section p,
[data-theme="dark"] .footer-section a,
[data-theme="dark"] .footer-logo h3,
[data-theme="dark"] .footer-bottom,
[data-theme="dark"] .social-links a {
  color: var(--white);
}

[data-theme="dark"] .footer-section a:hover {
  color: #ffffff;
}

/* Dark theme dropdown styles */
[data-theme="dark"] .dropdown-menu {
  background: var(--card-bg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

[data-theme="dark"] .dropdown-item {
  color: var(--text);
}

[data-theme="dark"] .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Beautiful Growing Plant Animation */
.growing-plant {
  position: fixed;
  right: 40px;
  bottom: 40px;
  width: 120px;
  height: 220px;
  z-index: 1000;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.plant-pot {
  position: absolute;
  bottom: 0;
  width: 70px;
  height: 50px;
  background: linear-gradient(135deg, #8b4513 0%, #a0522d 30%, #cd853f 100%);
  border-radius: 12px 12px 6px 6px;
  transform-origin: bottom;
  animation: potAppear 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  box-shadow: inset 0 -4px 6px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.plant-pot::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  border-radius: 2px;
}

.plant-stem {
  position: absolute;
  bottom: 50px;
  left: 50%;
  width: 8px;
  height: 0;
  background: linear-gradient(to top, #2d5a27 0%, #4a7c59 40%, #8bb574 100%);
  border-radius: 4px;
  transform: translateX(-50%);
  animation: growStem 2.5s cubic-bezier(0.19, 1, 0.22, 1) 1s forwards;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-leaf {
  position: absolute;
  background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 50%, #8bb574 100%);
  border-radius: 50% 0 50% 50%;
  transform-origin: left bottom;
  opacity: 0;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.leaf-1 {
  width: 35px;
  height: 25px;
  top: 60px;
  left: 45%;
  transform: rotate(-25deg) scale(0);
  animation: unfoldLeaf 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 3s forwards;
}

.leaf-2 {
  width: 32px;
  height: 22px;
  top: 85px;
  left: 48%;
  transform: rotate(15deg) scale(0);
  animation: unfoldLeaf 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 3.3s forwards;
}

.leaf-3 {
  width: 38px;
  height: 26px;
  top: 110px;
  left: 46%;
  transform: rotate(-15deg) scale(0);
  animation: unfoldLeaf 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 3.6s forwards;
}

.leaf-4 {
  width: 34px;
  height: 24px;
  top: 135px;
  left: 49%;
  transform: rotate(20deg) scale(0);
  animation: unfoldLeaf 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 3.9s forwards;
}

.leaf-5 {
  width: 30px;
  height: 20px;
  top: 160px;
  left: 47%;
  transform: rotate(-10deg) scale(0);
  animation: unfoldLeaf 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 4.2s forwards;
}

.flower-bud {
  position: absolute;
  top: 175px;
  left: 50%;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #8bb574 0%, #4a7c59 100%);
  border-radius: 50% 50% 50% 20%;
  transform: translateX(-50%) scale(0) rotate(-45deg);
  animation: growBud 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) 4.5s forwards;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.flower {
  position: absolute;
  top: 170px;
  left: 50%;
  width: 28px;
  height: 28px;
  opacity: 0;
  transform: translateX(-50%) scale(0);
  animation: bloomFlower 2s cubic-bezier(0.34, 1.56, 0.64, 1) 5s forwards;
}

.flower-petal {
  position: absolute;
  width: 12px;
  height: 16px;
  background: linear-gradient(135deg, #ffb6c1 0%, #ff69b4 30%, #ff1493 100%);
  border-radius: 50% 50% 50% 0;
  transform-origin: bottom center;
  box-shadow: 0 2px 4px rgba(255, 105, 180, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.petal-1 {
  transform: rotate(0deg);
}
.petal-2 {
  transform: rotate(60deg);
}
.petal-3 {
  transform: rotate(120deg);
}
.petal-4 {
  transform: rotate(180deg);
}
.petal-5 {
  transform: rotate(240deg);
}
.petal-6 {
  transform: rotate(300deg);
}

.flower-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, #ffd700 0%, #ffa500 100%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px #ffd700;
}

.plant-sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #ffd700 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  filter: blur(0.5px);
}

.sparkle-1 {
  top: 70px;
  right: 15px;
  animation: sparkleFloat 3s ease-in-out 6s infinite;
}

.sparkle-2 {
  top: 120px;
  left: 10px;
  animation: sparkleFloat 3s ease-in-out 6.5s infinite;
}

.sparkle-3 {
  top: 165px;
  right: 8px;
  animation: sparkleFloat 3s ease-in-out 7s infinite;
}

/* Enhanced Animations */
@keyframes potAppear {
  0% {
    transform: scale(0) rotate(-15deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.1) rotate(5deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes growStem {
  0% {
    height: 0;
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    height: 170px;
    opacity: 1;
  }
}

@keyframes unfoldLeaf {
  0% {
    transform: rotate(var(--rotation, 0deg)) scale(0);
    opacity: 0;
  }
  60% {
    transform: rotate(calc(var(--rotation, 0deg) + 8deg)) scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: rotate(var(--rotation, 0deg)) scale(1);
    opacity: 1;
  }
}

@keyframes growBud {
  0% {
    transform: translateX(-50%) scale(0) rotate(-45deg);
    opacity: 0;
  }
  70% {
    transform: translateX(-50%) scale(1.1) rotate(-30deg);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) scale(1) rotate(-45deg);
    opacity: 1;
  }
}

@keyframes bloomFlower {
  0% {
    transform: translateX(-50%) scale(0) rotate(0deg);
    opacity: 0;
  }
  50% {
    transform: translateX(-50%) scale(1.1) rotate(180deg);
    opacity: 0.8;
  }
  100% {
    transform: translateX(-50%) scale(1) rotate(360deg);
    opacity: 1;
  }
}

@keyframes sparkleFloat {
  0%,
  100% {
    opacity: 0;
    transform: translateY(0px) scale(0);
  }
  25% {
    opacity: 1;
    transform: translateY(-8px) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-16px) scale(1.1);
  }
  75% {
    opacity: 0.3;
    transform: translateY(-24px) scale(0.8);
  }
}

/* Gentle sway animation for the whole plant */
@keyframes gentleSway {
  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }
  25% {
    transform: translateX(1px) rotate(0.5deg);
  }
  75% {
    transform: translateX(-1px) rotate(-0.5deg);
  }
}

.growing-plant {
  animation: gentleSway 8s ease-in-out infinite;
}

/* Dark theme adjustments */
[data-theme="dark"] .plant-stem {
  background: linear-gradient(to top, #8bb574 0%, #4a7c59 60%, #2d5a27 100%);
}

[data-theme="dark"] .main-leaf {
  background: linear-gradient(135deg, #8bb574 0%, #4a7c59 50%, #2d5a27 100%);
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .flower-petal {
  background: linear-gradient(135deg, #ff69b4 0%, #ff1493 30%, #dc143c 100%);
  box-shadow: 0 2px 6px rgba(255, 20, 147, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Responsive design */
@media (max-width: 768px) {
  .growing-plant {
    right: 20px;
    bottom: 20px;
    width: 80px;
    height: 160px;
    transform: scale(0.8);
  }

  @keyframes growStem {
    100% {
      height: 110px;
    }
  }

  .leaf-1 {
    top: 45px;
  }
  .leaf-2 {
    top: 65px;
  }
  .leaf-3 {
    top: 85px;
  }
  .leaf-4 {
    top: 105px;
  }
  .leaf-5 {
    top: 125px;
  }
  .flower-bud {
    top: 135px;
  }
  .flower {
    top: 130px;
  }
}

/* Hover effects */
@media (hover: hover) {
  .growing-plant:hover {
    animation: gentleSway 4s ease-in-out infinite;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
  }

  .growing-plant:hover .flower {
    transform: translateX(-50%) scale(1.1);
    transition: transform 0.3s ease;
  }
}

/* Falling Leaves Background Animation */
.falling-leaves {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.leaf {
  position: absolute;
  top: -50px;
  font-size: 24px;
  opacity: 0;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite;
}

/* Different leaf types */
.leaf-type-1 {
  animation-name: fall1, sway1;
  color: #8bb574;
}
.leaf-type-2 {
  animation-name: fall2, sway2;
  color: #4a7c59;
}
.leaf-type-3 {
  animation-name: fall3, sway3;
  color: #2d5a27;
}
.leaf-type-4 {
  animation-name: fall4, sway4;
  color: #8bb574;
}
.leaf-type-5 {
  animation-name: fall5, sway5;
  color: #4a7c59;
}

/* Leaf icons */
.leaf::before {
  content: "🍃";
  filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.2));
}

.leaf-type-2::before {
  content: "🍂";
}
.leaf-type-3::before {
  content: "🌿";
}
.leaf-type-4::before {
  content: "🍁";
}
.leaf-type-5::before {
  content: "🥬";
}

/* Falling animations with different durations and delays */
@keyframes fall1 {
  0% {
    top: -50px;
    opacity: 0;
    transform: rotate(0deg);
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    top: 100vh;
    opacity: 0;
    transform: rotate(360deg);
  }
}

@keyframes fall2 {
  0% {
    top: -50px;
    opacity: 0;
    transform: rotate(0deg);
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    top: 100vh;
    opacity: 0;
    transform: rotate(-360deg);
  }
}

@keyframes fall3 {
  0% {
    top: -50px;
    opacity: 0;
    transform: rotate(0deg);
  }
  10% {
    opacity: 0.9;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    top: 100vh;
    opacity: 0;
    transform: rotate(180deg);
  }
}

@keyframes fall4 {
  0% {
    top: -50px;
    opacity: 0;
    transform: rotate(0deg);
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    top: 100vh;
    opacity: 0;
    transform: rotate(-180deg);
  }
}

@keyframes fall5 {
  0% {
    top: -50px;
    opacity: 0;
    transform: rotate(0deg);
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    top: 100vh;
    opacity: 0;
    transform: rotate(270deg);
  }
}

/* Swaying animations */
@keyframes sway1 {
  0%,
  100% {
    transform: translateX(0px) rotate(0deg);
  }
  25% {
    transform: translateX(-20px) rotate(5deg);
  }
  50% {
    transform: translateX(10px) rotate(-3deg);
  }
  75% {
    transform: translateX(-15px) rotate(2deg);
  }
}

@keyframes sway2 {
  0%,
  100% {
    transform: translateX(0px) rotate(0deg);
  }
  25% {
    transform: translateX(25px) rotate(-4deg);
  }
  50% {
    transform: translateX(-15px) rotate(6deg);
  }
  75% {
    transform: translateX(20px) rotate(-2deg);
  }
}

@keyframes sway3 {
  0%,
  100% {
    transform: translateX(0px) rotate(0deg);
  }
  25% {
    transform: translateX(-30px) rotate(3deg);
  }
  50% {
    transform: translateX(20px) rotate(-5deg);
  }
  75% {
    transform: translateX(-25px) rotate(4deg);
  }
}

@keyframes sway4 {
  0%,
  100% {
    transform: translateX(0px) rotate(0deg);
  }
  25% {
    transform: translateX(15px) rotate(-6deg);
  }
  50% {
    transform: translateX(-25px) rotate(4deg);
  }
  75% {
    transform: translateX(18px) rotate(-3deg);
  }
}

@keyframes sway5 {
  0%,
  100% {
    transform: translateX(0px) rotate(0deg);
  }
  25% {
    transform: translateX(-18px) rotate(7deg);
  }
  50% {
    transform: translateX(22px) rotate(-4deg);
  }
  75% {
    transform: translateX(-12px) rotate(5deg);
  }
}

/* Dark theme adjustments for leaves */
[data-theme="dark"] .leaf-type-1 {
  color: #8bb574;
  filter: brightness(1.2);
}
[data-theme="dark"] .leaf-type-2 {
  color: #4a7c59;
  filter: brightness(1.3);
}
[data-theme="dark"] .leaf-type-3 {
  color: #2d5a27;
  filter: brightness(1.4);
}
[data-theme="dark"] .leaf-type-4 {
  color: #8bb574;
  filter: brightness(1.1);
}
[data-theme="dark"] .leaf-type-5 {
  color: #4a7c59;
  filter: brightness(1.2);
}

/* Performance optimization */
@media (prefers-reduced-motion: reduce) {
  .leaf {
    animation: none !important;
  }
}

#scrollupBtn {
  background-color: var(--secondary);
  color: whitesmoke;
  cursor: default;
  position: fixed;
  bottom: 15px;
  right: 20px;
  border: none;
  outline: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  padding: 5px;
  font-size: 20px;
  z-index: 1100; /* above plant animation */
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: opacity 0.25s ease, transform 0.25s ease,
    background-color 0.2s ease;
  pointer-events: none;
}

/* Visible state */
#scrollupBtn.show-scroll {
  opacity: 1;
  transform: translateY(0) scale(1);
  cursor: pointer;
  pointer-events: auto;
}

#scrollupBtn:hover {
  background-color: var(--accent);
  transform: translateY(-2px) scale(1.02);
}
select {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border: 2px solid #bdc3c7;
  border-radius: 8px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #ecf0f1;
  color: #2e7d32;
  box-shadow: 0 2px 4px rgba(44, 62, 80, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease;
}

select:hover {
  border-color: #95a5a6;
  box-shadow: 0 4px 8px rgba(44, 62, 80, 0.15);
}

select:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.add-new-plant {
  color: var(--accent)
}
