:root {
  --bg-color: #f9f9f9;
  --text-color: #222;
  --card-bg: #fffbe6;
  --card-hover-bg: #fff3c4;
  --card-shadow: rgba(0,0,0,0.1);
  --btn-bg: #ffd700;
  --btn-hover-bg: #e6c200;
  --glow-gradient: linear-gradient(135deg, #d4af37, #a6c639);
}

body.dark-mode {
  --bg-color: #1a1a0d;
  --text-color: #eee;
  --card-bg: #3a3a1f;
  --card-hover-bg: #4d4d26;
  --card-shadow: rgba(0,0,0,0.5);
  --btn-bg: #c9a800;
  --btn-hover-bg: #b39200;
  --glow-gradient: linear-gradient(135deg, #b39200, #4c8c2b);
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: "Poppins", sans-serif;
  transition: background 0.3s ease, color 0.3s ease;
}

.services-section {
  padding: 80px 20px;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 50px;
  font-weight: 700;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 10px 20px var(--card-shadow);
  perspective: 1000px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: var(--glow-gradient);
  filter: blur(60px);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.service-card:hover::before {
  opacity: 0.6;
}

.service-card:hover {
  transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
  box-shadow: 0 20px 40px var(--card-shadow);
  z-index: 1;
}

.card-icon img {
  height: 70px;
  margin-bottom: 20px;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 2;
}

.service-card:hover .card-icon img {
  transform: scale(1.2) rotate(5deg);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.service-card p {
  font-size: 1rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.card-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.card-buttons .btn {
  background: var(--btn-bg);
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.card-buttons .btn:hover {
  background: var(--btn-hover-bg);
  color: #fff;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background: var(--card-bg);
  margin: 100px auto;
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  position: relative;
}

.modal-content h3 {
  margin-bottom: 20px;
}

.modal-content ul {
  text-align: left;
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.modal-content form input,
.modal-content form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

.modal-content form button {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: var(--btn-bg);
  color: #000;
  font-weight: 600;
  cursor: pointer;
}

.modal-content form button:hover {
  background: var(--btn-hover-bg);
  color: #fff;
}

.modal .close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}
