* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2d5a27;
  --primary-light: #4a7c59;
  --primary-dark: #1a3d1a;
  --secondary-color: #8bc34a;
  --accent-color: #ff6b35;
  --background-color: #f8fdf8;
  --surface-color: #ffffff;
  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --text-light: #bdc3c7;
  --border-color: #e8f5e8;
  --shadow-light: 0 2px 10px rgba(45, 90, 39, 0.1);
  --shadow-medium: 0 4px 20px rgba(45, 90, 39, 0.15);
  --shadow-heavy: 0 8px 30px rgba(45, 90, 39, 0.2);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--background-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  cursor: pointer;
  transition: var(--transition);
}

.nav-brand:hover {
  transform: scale(1.02);
}

.nav-brand i {
  font-size: 1.8rem;
  color: var(--secondary-color);
}

.nav-menu {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--primary-color);
  background-color: var(--border-color);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--primary-color);
  background-color: var(--border-color);
  box-shadow: var(--shadow-light);
}

.nav-link i {
  font-size: 1.1rem;
  opacity: 0.8;
}

.nav-link.active i {
  opacity: 1;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  padding: 8px;
  border-radius: 6px;
  transition: var(--transition);
}

.nav-toggle:hover {
  background-color: var(--border-color);
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Main Content */
.main-content {
  margin-top: 70px;
  min-height: calc(100vh - 70px);
}

.section {
  display: none;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section.active {
  display: block;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 80vh;
  padding: 40px 0;
}

.hero-content {
  max-width: 500px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
}

.floating-card {
  position: absolute;
  background: var(--surface-color);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--primary-color);
  animation: float 3s ease-in-out infinite;
}

.floating-card:nth-child(1) {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.floating-card:nth-child(2) {
  top: 30%;
  right: 5%;
  animation-delay: 1s;
}

.floating-card:nth-child(3) {
  bottom: 30%;
  left: 10%;
  animation-delay: 2s;
}

.floating-card:nth-child(4) {
  bottom: 10%;
  right: 15%;
  animation-delay: 1.5s;
}

.floating-card i {
  font-size: 1.2rem;
  color: var(--secondary-color);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background: var(--surface-color);
  color: var(--primary-color);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--border-color);
  transform: translateY(-2px);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* Search */
.search-container {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.search-input {
  width: 100%;
  padding: 16px 20px 16px 50px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  background: var(--surface-color);
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  max-height: 300px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}

.search-result-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.search-result-item:hover {
  background: var(--border-color);
}

.search-result-item:last-child {
  border-bottom: none;
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.card {
  background: var(--surface-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  cursor: pointer;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

/* Remove the ::before pseudo-element that adds the plant emoji */
.card-image::before {
  display: none;
}

/* Style for actual images in cards */
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.card-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-style: italic;
}

.card-description {
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag {
  background: var(--border-color);
  color: var(--primary-color);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Identify Section */
.identify-container {
  max-width: 800px;
  margin: 0 auto;
}

.upload-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  padding: 60px 20px;
  text-align: center;
  background: var(--surface-color);
  transition: var(--transition);
  cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
  border-color: var(--primary-color);
  background: var(--border-color);
}

.upload-content h3 {
  color: var(--primary-color);
  margin: 20px 0 10px;
  font-size: 1.5rem;
}

.upload-content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.upload-icon {
  font-size: 3rem;
  color: var(--secondary-color);
}

.identify-result {
  margin-top: 30px;
  background: var(--surface-color);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-light);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.result-header h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.result-content {
  line-height: 1.8;
}

.plant-info {
  display: grid;
  gap: 20px;
}

.info-section {
  background: var(--border-color);
  padding: 20px;
  border-radius: var(--border-radius);
}

.info-section h4 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-section ul {
  list-style: none;
  padding-left: 0;
}

.info-section li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.info-section li:before {
  content: "•";
  color: var(--secondary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface-color);
  border-radius: var(--border-radius);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-color);
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--border-color);
}

.faq-question h3 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin: 0;
}

.faq-icon {
  color: var(--secondary-color);
  transition: var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active .faq-answer {
  padding: 0 20px 20px;
  max-height: 500px;
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
}

.pagination button {
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  background: var(--surface-color);
  color: var(--text-secondary);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.pagination button:hover:not(:disabled) {
  background: var(--border-color);
  color: var(--primary-color);
}

.pagination button.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Modal - FIXED STYLING */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  backdrop-filter: blur(8px);
  animation: modalFadeIn 0.3s ease-out;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--surface-color);
  border-radius: var(--border-radius);
  width: 90vw;
  max-width: 700px;
  min-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-heavy);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 1px solid var(--border-color);
  background: var(--border-color);
}

.modal-header h3 {
  color: var(--primary-color);
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--surface-color);
  color: var(--primary-color);
  transform: scale(1.1);
}

.modal-body {
  padding: 30px;
  min-height: 200px;
}

/* Loading */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Chat Section Styles */
.chat-container {
  max-width: 800px;
  margin: 0 auto 20px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 400px;
  max-height: 500px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 80%;
  animation: slideIn 0.3s ease-out;
}

.chat-message.user {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-message.bot {
  align-self: flex-start;
  align-items: flex-start;
}

.message-content {
  padding: 16px 20px;
  border-radius: 20px;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.6;
  box-shadow: var(--shadow_light);
  max-width: 100%;
  overflow: hidden;
  white-space: pre-wrap;
}


.chat-message.user .message-content {
  background: var(--primary-color);
  color: white;
  border-bottom-right-radius: 6px;
}

.chat-message.bot .message-content {
  background: var(--surface-color);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 6px;
}

.message-timestamp {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 6px;
  padding: 0 8px;
}

.chat-typing {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  border-bottom-left-radius: 6px;
  box-shadow: var(--shadow-light);
  max-width: 80%;
  align-self: flex-start;
  margin-bottom: 20px;
}

.typing-content {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dots .dot {
  width: 6px;
  height: 6px;
  background: var(--secondary-color);
  border-radius: 50%;
  animation: bounce 1.4s infinite;
}

.typing-dots .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots .dot:nth-child(3) {
  animation-delay: 0.4s;
}

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

.chat-input-container {
  position: sticky;
  bottom: 0;
  background: var(--background-color);
  padding: 20px 0;
  z-index: 10;
}

.chat-input-area {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--surface-color);
  border: 2px solid var(--border-color);
  border-radius: 25px;
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
}

.chat-input-area:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
}

#chat-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  padding: 8px 12px;
  font-size: 1rem;
  color: var(--text-primary);
  font-family: inherit;
}

#chat-input::placeholder {
  color: var(--text-secondary);
}

#chat-send {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

#chat-send:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

#chat-send:active {
  transform: scale(0.95);
}

/* Plant info cards in chat */
.plant-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 15px;
  margin: 10px 0;
  box-shadow: var(--shadow-light);
  cursor: pointer;
  transition: var(--transition);
}

.plant-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.plant-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.plant-card-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  overflow: hidden;
}

.plant-card-image::before {
  display: none;
}

.plant-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.plant-card-info h4 {
  color: var(--primary-color);
  margin: 0 0 4px 0;
  font-size: 1.1rem;
}

.plant-card-info p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.9rem;
  font-style: italic;
}

.plant-card-details {
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Chat message content formatting */
.message-content p {
  margin: 0 0 8px 0;
}

.message-content p:last-child {
  margin-bottom: 0;
}

.message-content strong {
  color: var(--primary-color);
}

.chat-message.user .message-content strong {
  color: rgba(255, 255, 255, 0.9);
}

.message-content em {
  font-style: italic;
  color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .nav-container {
    max-width: 100%;
    padding: 0 30px;
  }
  .content-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-title {
    font-size: 3rem;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .content-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
  .chat-container {
    margin: 0 20px 20px;
  }

  /* Modal responsive adjustments */
  .modal-content {
    width: 95vw;
    min-width: 320px;
    max-width: 600px;
  }

  .modal-header {
    padding: 20px 25px;
  }

  .modal-body {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 20px;
  }
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -300px;
    width: 280px;
    height: calc(100vh - 70px);
    background: var(--surface-color);
    flex-direction: column;
    justify-content: flex-start;
    padding: 30px 20px;
    transition: var(--transition);
    box-shadow: var(--shadow-heavy);
    border-left: 1px solid var(--border-color);
    z-index: 1001;
  }
  .nav-menu.active {
    right: 0;
  }
  .nav-menu .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 15px 20px;
    margin-bottom: 8px;
    border-radius: var(--border-radius);
  }
  .nav-toggle {
    display: flex;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero-buttons {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  .floating-card {
    position: static;
    margin: 10px;
    animation: none;
  }
  .hero-image {
    height: auto;
    flex-direction: column;
  }

  /* Modal mobile adjustments */
  .modal-content {
    width: 95vw;
    min-width: 280px;
    max-height: 90vh;
  }

  .modal-header {
    padding: 18px 20px;
  }

  .modal-header h3 {
    font-size: 1.3rem;
  }

  .modal-body {
    padding: 20px;
  }

  .chat-container {
    margin: 0 15px 20px;
  }
  .chat-message {
    max-width: 85%;
  }
  .message-content {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
  .chat-input-area {
    margin: 0 15px;
    padding: 10px 16px;
  }
  .plant-card {
    margin: 15px 0;
  }
  .plant-card-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }
  .plant-card-image {
    width: 80px;
    height: 80px;
  }
  .faq-container {
    margin: 0 10px;
  }
  .faq-question {
    padding: 15px;
  }
  .faq-question h3 {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 20px 10px;
  }
  .nav-container {
    padding: 0 15px;
  }
  .hero-title {
    font-size: 2rem;
    line-height: 1.3;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .section-subtitle {
    font-size: 1rem;
  }
  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
    width: 100%;
    max-width: 280px;
  }
  .card-content {
    padding: 15px;
  }
  .card-title {
    font-size: 1.1rem;
  }
  .upload-area {
    padding: 30px 15px;
  }
  .upload-content h3 {
    font-size: 1.3rem;
  }

  /* Modal small screen adjustments */
  .modal-content {
    width: 98vw;
    min-width: 260px;
    max-height: 92vh;
  }

  .modal-header {
    padding: 15px 18px;
  }

  .modal-header h3 {
    font-size: 1.2rem;
  }

  .modal-close {
    width: 35px;
    height: 35px;
    font-size: 1.3rem;
  }

  .modal-body {
    padding: 18px;
  }

  .info-section {
    padding: 15px;
  }

  .info-section h4 {
    font-size: 1.1rem;
  }

  .chat-messages {
    padding: 15px 0;
    min-height: 300px;
    max-height: 350px;
  }
  .message-content {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
  .chat-input-container {
    padding: 15px 0;
  }
  .chat-input-area {
    margin: 0 10px;
    padding: 8px 14px;
  }
  #chat-input {
    font-size: 0.9rem;
  }
  .plant-card {
    margin: 10px 0;
    padding: 12px;
  }
  .plant-card-image {
    width: 70px;
    height: 70px;
  }
  .plant-card-info h4 {
    font-size: 1rem;
  }
  .plant-card-info p {
    font-size: 0.8rem;
  }
  .plant-card-details {
    font-size: 0.8rem;
  }
  .faq-container {
    margin: 0 5px;
  }
  .faq-question {
    padding: 12px;
  }
  .faq-question h3 {
    font-size: 0.95rem;
  }
  .faq-answer {
    font-size: 0.85rem;
  }
}

/* Extra small devices */
@media (max-width: 320px) {
  .nav-container {
    padding: 0 10px;
  }
  .section {
    padding: 15px 8px;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .section-title {
    font-size: 1.6rem;
  }

  /* Modal extra small adjustments */
  .modal-content {
    width: 99vw;
    min-width: 240px;
    max-height: 94vh;
  }

  .modal-header {
    padding: 12px 15px;
  }

  .modal-header h3 {
    font-size: 1.1rem;
  }

  .modal-body {
    padding: 15px;
  }

  .chat-input-area {
    margin: 0 5px;
    padding: 6px 12px;
  }
  .plant-card {
    padding: 10px;
  }
  .faq-question {
    padding: 10px;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mt-20 {
  margin-top: 20px;
}

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

/* Custom scrollbar for chat */
.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Slide in animation */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
