/* ================= ROOT VARIABLES ================= */
:root {
  --primary-blue: #2563eb;
  --primary-dark: #1e40af;

  --bg-dark: #0f172a; /* Main page background */
  --bg-card: #1e293b; /* Card background */
  --bg-footer: #020617; /* Footer / extra dark sections */

  --text-main: #f8fafc; /* Main text */
  --text-muted: #94a3b8; /* Secondary text */

  --accent-green: #22c55e;
  --white: #ffffff;

  --border-color: rgba(148, 163, 184, 0.15);
  --shadow-light: 0 4px 10px rgba(0, 0, 0, 0.18);
  --shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.28);
  --transition: all 0.3s ease;
}

h1 {
  text-align: center;
  margin-bottom: 5px;
}

/* ================= SERVICES SECTION ================= */

/* Optional: section background */
body {
  background: var(--bg-dark);
  color: var(--text-main);
}

/* 1. Container */
#servicesContainer {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 20px;
}

/* 2. Service Card */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  margin-top: 20px;
  flex-direction: column;
  padding-bottom: 20px;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  max-height: 450px;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-blue);
}

/* 3. Image Styling */
.service-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background-color: var(--bg-footer);
  display: block;
}

/* 4. Title */
.service-title {
  margin: 18px 16px 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}

/* 5. Description */
.service-description {
  margin: 0 16px 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.3;
  flex-grow: 1;
}

/* 6. Price + Duration */
.service-price,
.service-duration {
  margin: 1px 8px;
  font-size: 0.75rem;
  color: var(--text-main);
  font-weight: 400;
}

.service-price strong,
.service-duration strong {
  color: var(--accent-green);
}

.service-card p {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  margin-top: 0rem;
  margin-bottom: 0.5rem;
}

/* 7. Button */
.service-link {
  display: inline-block;
  margin: 12px 10px 0;
  padding: 6px 14px;
  background: var(--primary-blue);
  color: var(--white);
  text-decoration: none;
  text-align: center;
  border-radius: 10px;
  font-weight: 400;
  transition: var(--transition);
  border: none;
}

.service-link:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ---------------------- */
/* Service Request Modal  */
/* ---------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-box {
  background: #fff;
  width: 90%;
  max-width: 450px;
  padding: 20px;
  border-radius: 10px;
  animation: fadeIn 0.3s ease-in-out;
}

.modal-box h2 {
  margin-bottom: 15px;
}

.modal-box label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

.modal-box input,
.modal-box textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.modal-actions button {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn-close {
  background: #f44336;
  color: #fff;
}

.btn-submit {
  background: #0b6efd;
  color: white;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  #servicesContainer {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 16px;
  }

  .service-card {
    border-radius: 14px;
    padding: 1rem;
    max-height: 600px;
    width:350px;
    margin: 0rem auto;
    margin-bottom: 0px;
  }

  .service-image {
    height: 180px;
    margin-top: 0px;
    padding-top: 0rem;
  }

  .service-title {
    font-size: 1rem;
    padding-top: 0rem;
    padding-bottom: 0rem;
  }

  .service-description {
    font-size: 0.92rem;
  }

  .service-link {
    width: calc(100% - 32px);
    padding: 12px 16px;
  }
}
