.service-hero {
  height: 55vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}

.service-hero-content h1 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding: 35px;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards;
  background: rgba(22, 22, 22, 0.3);
}

.service-hero-content p {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  max-width: 600px;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.6;
  padding: 10px;
  margin: 0 auto;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out 0.3s forwards;
  background: rgba(22, 22, 22, 0.3);
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.services-section {
  padding: 30px 30px;
  text-align: center;
  background: #f9f9f9;
}

.services-intro {
  max-width: 1440px;
  text-align: right;
  padding: 10px 25px;
  margin: 10px auto;
  background: #fff;
  border-radius: 20px;
  line-height: 2;
}

.services-intro p {
  font-size: 18px;
  color: #555;
}

.services-intro ul,
.services-intro ol {
  margin: 1rem 0;
  padding-right: 2rem;
}

.services-intro ul li,
.services-intro ol li {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
}

.services-intro ul li::marker {
  color: #fbbf24;
  font-size: 1.2rem;
}

.services-intro ol li::marker {
  color: #fbbf24;
  font-weight: 600;
}

.services-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(250px, 1fr));
  gap: 15px;
}

.service-item {
  position: relative;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.service-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-item:hover {
  transform: scale(1.05);
}

.service-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(21, 21, 21, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #fff;
}

.service-item:hover .service-overlay {
  opacity: 1;
}

.service-overlay span {
  font-size: 20px;
  margin-bottom: 5px;
}

.service-overlay p {
  font-size: 14px;
  padding: 0 10px;
}

.service-modal {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
}

.modal-close {
  position: absolute;
  top: 20px;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

.modal-nav {
  position: absolute;
  bottom: 20px;
  display: flex;
  gap: 20px;
}

.modal-nav button {
  font-family: 'slick';
  font-size: 40px;
  line-height: 1;
  color: white;
  opacity: 0.7;
  transition: all 0.3s ease;
  border: none;
  background: none;
  cursor: pointer;
  padding: 5px;
}
[lang="en"] .modal-nav button {
  transform: rotate(180deg);
  }
.modal-nav button:focus {
  outline: none;
  border: none;
}

.modal-nav button:hover {
  color: #fbbf24;
}

.service-details-section {
  padding: 40px 20px;
  max-width: 1440px;
  margin: 0 auto;
  text-align: right;
}

.service-details-section h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #222;
}

.service-details-section p {
  line-height: 2;
  font-size: 18px;
  margin-bottom: 20px;
  color: #555;
}

.service-details-section .details-title {
  background: #f7f8fa;
  padding: 45px;
  border-radius: 20px;
  color: #222;
  font-weight: bold;
}

.service-details-section ul,
.service-details-section ol {
  margin: 1rem 0;
  padding-right: 2rem;
}

.service-details-section ul li,
.service-details-section ol li {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
}

.service-details-section ul li::marker {
  color: #fbbf24;
  font-size: 1.2rem;
}

.service-details-section ol li::marker {
  color: #fbbf24;
  font-weight: 600;
}

@media (max-width: 991px) {
  .services-gallery {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
  }

  .service-hero-content h1 {
    font-size: 36px;
  }

  .service-hero-content p {
    font-size: 18px;
  }
.service-details-section .details-title {
  padding: 15px;
}
  .services-section, .service-details-section {
    padding: 10px;
  }

  .services-intro {
    margin: 0 10px 20px 0;
  }
}

@media (max-width: 767px) {
  .services-gallery {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .service-item {
    height: 150px;
  }

  .service-overlay span {
    font-size: 16px;
  }
  .service-details-section h2 {
    font-size: 1.3rem;
  }

  .service-overlay p {
    font-size: 12px;
  }

  .service-hero-content h1 {
    font-size: 32px;
  }

  .service-hero-content p {
    font-size: 16px;
  }

  .modal-content {
    max-width: 95%;
  }
}

/* Dark Mode Styles */
[data-theme="dark"] .service-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
}

[data-theme="dark"] .service-hero-content h1 {
  color: var(--text-color);
  background: rgba(31, 34, 36, 0.4);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .service-hero-content p {
  color: var(--text-muted);
  background: rgba(31, 34, 36, 0.4);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .services-section {
  background: var(--background-color);
}

[data-theme="dark"] .services-intro {
  background: var(--card-bg);
  color: var(--text-muted);
}

[data-theme="dark"] .services-intro p {
  color: var(--text-muted);
}

[data-theme="dark"] .services-intro ul li,
[data-theme="dark"] .services-intro ol li {
  color: var(--text-muted);
}

[data-theme="dark"] .services-intro ul li::marker,
[data-theme="dark"] .services-intro ol li::marker {
  color: #3b82f6;
}

[data-theme="dark"] .service-overlay {
  background: rgba(31, 34, 36, 0.7);
  color: var(--text-color);
}

[data-theme="dark"] .service-overlay span {
  color: var(--text-color);
}

[data-theme="dark"] .service-overlay p {
  color: var(--text-muted);
}

[data-theme="dark"] .service-modal {
  background: rgba(0, 0, 0, 0.95);
}

[data-theme="dark"] .modal-close {
  color: var(--text-muted);
}

[data-theme="dark"] .modal-close:hover {
  color: var(--link-color);
}

[data-theme="dark"] .modal-nav button {
  color: var(--text-muted);
}

[data-theme="dark"] .modal-nav button:hover {
  color: #3b82f6;
}

[data-theme="dark"] .service-details-section h2 {
  color: var(--text-color);
}

[data-theme="dark"] .service-details-section p {
  color: var(--text-muted);
}

[data-theme="dark"] .service-details-section .details-title {
  background: var(--card-bg);
  color: var(--text-color);
}

[data-theme="dark"] .service-details-section ul li,
[data-theme="dark"] .service-details-section ol li {
  color: var(--text-muted);
}

[data-theme="dark"] .service-details-section ul li::marker,
[data-theme="dark"] .service-details-section ol li::marker {
  color: #3b82f6;
}
[lang="en"] .services-intro {
    direction: ltr;
    text-align: left;
}
[lang="en"] .service-details-section {
    direction: ltr;
    text-align: left;
}