@import url(https://fonts.googleapis.com/css?family=Poppins:100,100italic,200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic);
/* ---------- Base ---------- */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f9f6;
  color: #2c3e2f;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

/* ---------- Navigation ---------- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #a3cbbf;
  padding: 10px 20px;
}
nav .logo img {
  width: 150px;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
}
nav a {
  text-decoration: none;
  color: #1d2b22;
  font-weight: bold;
}
nav a:hover {
  color: #fff;
}

/* ---------- Sections ---------- */
section {
  padding: 60px 20px;
  text-align: center;
}
section h1, section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #264d36;
}
section p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
}

/* ---------- Services ---------- */
.service-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}
.service-card {
  background-color: #dcefe5;
  border-radius: 10px;
  padding: 20px;
  width: 250px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s;
  text-align: left;
}
.service-card:hover {
  transform: translateY(-5px);
}
.service-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}
.service-card h3 {
  margin: 10px 0 8px;
  color: #264d36;
  font-size: 1.2rem;
}

/* ---------- Buttons ---------- */
.btn {
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  margin: 5px 4px 0 0;
}
.edit-btn {
  background: #4caf50;
}
.delete-btn {
  background: #e53935;
}
.btn:hover {
  opacity: 0.85;
}

/* ---------- Contact ---------- */
.contact-section {
  background: #e2f0e7;
}
.contact-section ul {
  list-style: none;
  padding: 0;
}
.contact-section li {
  margin: 10px 0;
}
.contact-section a {
  color: #2c3e2f;
  text-decoration: none;
}
.contact-section a:hover {
  text-decoration: underline;
}

/* ---------- Toggle & Search ---------- */
.toggle-btn {
  background-color: #264d36;
  color: #fff;
  padding: 10px 20px;
  margin: 20px auto 0;
  display: block;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}
.toggle-btn:hover {
  background-color: #1b362a;
}
#search-input {
  padding: 10px;
  width: 50%;
  max-width: 400px;
  margin: 0 auto 20px auto;
  display: block;
  font-size: 1rem;
  border: 2px solid #264d36;
  border-radius: 5px;
}

/* ---------- Animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1.5s forwards;
}
.fade-in.delay {
  animation-delay: 1s;
}
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.leaves {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}
.leaf {
  position: absolute;
  top: -50px;
  width: 30px;
  height: 30px;
  background: url('https://i.ibb.co/NsY8dsD/leaf.png') center/cover;
  opacity: 0.7;
  animation: fall linear infinite;
}
@keyframes fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.8; }
  100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

/* ---------- Dark Mode ---------- */
.dark-mode {
  background: #1a1a1a;
  color: #e4e4e4;
}
.dark-mode nav {
  background: #333;
}
.dark-mode .contact-section {
  background: #2b2b2b;
}
.dark-mode .service-card {
  background: #3a3a3a;
}
.dark-mode #search-input {
  border-color: #e4e4e4;
}
.dark-mode .edit-btn {
  background: #2e7d32;
}
.dark-mode .delete-btn {
  background: #b71c1c;
}

/* ===== Add New Service Card ===== */
.add-new-card {
  border: 2px dashed #a3cbbf !important;
  background: linear-gradient(135deg, #f8fff9, #e8f5e8) !important;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.add-new-card:hover {
  border-color: #264d36 !important;
  background: linear-gradient(135deg, #e8f5e8, #d4edda) !important;
  transform: translateY(-2px);
}

.add-new-content {
  text-align: center;
  color: #264d36;
}

.add-icon {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #a3cbbf;
}

.add-new-card h3 {
  margin: 10px 0 5px 0;
  color: #264d36;
}

.add-new-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

/* ===== Modal Styles ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
  margin-top: 0;
  color: #264d36;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #264d36;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 2px solid #a3cbbf;
  border-radius: 5px;
  font-size: 1rem;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #264d36;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 30px;
}

.primary-btn {
  background: #264d36;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

.primary-btn:hover {
  background: #1a3326;
}

.secondary-btn {
  background: #6c757d;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

.secondary-btn:hover {
  background: #5a6268;
}

/* ===== Edit Mode Styles ===== */
.editing {
  background: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 3px;
  padding: 5px;
}

.edit-input {
  width: 100%;
  padding: 5px;
  border: 1px solid #a3cbbf;
  border-radius: 3px;
  font-size: 0.9rem;
  margin-top: 5px;
}

.card-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.card-actions .btn {
  padding: 8px 12px;
  font-size: 0.85rem;
  min-width: 60px;
}

/* ===== Notification System ===== */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  max-width: 300px;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  background: #28a745;
}

.notification.error {
  background: #dc3545;
}

.notification.info {
  background: #17a2b8;
}

/* ===== Dark Mode Updates ===== */
.dark-mode .add-new-card {
  background: linear-gradient(135deg, #2a2a2a, #3a3a3a) !important;
  border-color: #555 !important;
}

.dark-mode .add-new-card:hover {
  background: linear-gradient(135deg, #3a3a3a, #4a4a4a) !important;
  border-color: #777 !important;
}

.dark-mode .add-new-content,
.dark-mode .add-new-card h3,
.dark-mode .add-new-card p {
  color: #e4e4e4;
}

.dark-mode .modal-content {
  background: #2a2a2a;
  color: #e4e4e4;
}

.dark-mode .form-group input {
  background: #3a3a3a;
  border-color: #555;
  color: #e4e4e4;
}

.dark-mode .editing {
  background: #4a3728;
  border-color: #ffc107;
}

.dark-mode .edit-input {
  background: #3a3a3a;
  border-color: #555;
  color: #e4e4e4;
}
