/* ===== DARK MODE ===== */
[data-theme="dark"] {
  --white: #111827;
  --off-white: #1a2235;
  --gray-light: #1e2d45;
  --gray: #9ba8bc;
  --text-dark: #f0f4ff;
  --text-body: #c5cfe0;
  --navy: #2d4a9e;
  --navy-dark: #0e1e3f;
  --shadow: 0 8px 40px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
}

[data-theme="dark"] body {
  background: #0d1526;
  color: #c5cfe0;
}

[data-theme="dark"] .about,
[data-theme="dark"] .why-us {
  background: #0d1526;
}

[data-theme="dark"] .services,
[data-theme="dark"] .contact {
  background: #111827;
}

[data-theme="dark"] .service-card,
[data-theme="dark"] .why-card,
[data-theme="dark"] .contact-item,
[data-theme="dark"] .contact-form-wrap,
[data-theme="dark"] .highlight-item {
  background: #1a2537;
  border-color: #1e2d45;
}

[data-theme="dark"] .highlight-item:hover { background: #1e2d45; }

[data-theme="dark"] .service-card.featured {
  background: var(--navy);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
  background: #0d1526;
  border-color: #1e2d45;
  color: #f0f4ff;
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
  color: #5a6a88;
}

[data-theme="dark"] h1, [data-theme="dark"] h2,
[data-theme="dark"] h3, [data-theme="dark"] h4,
[data-theme="dark"] .section-title,
[data-theme="dark"] .service-title,
[data-theme="dark"] .why-title,
[data-theme="dark"] .pillar-title,
[data-theme="dark"] .form-title {
  color: #f0f4ff;
}

[data-theme="dark"] .stat-box { background: #1a2537; }

[data-theme="dark"] .why-number { color: #1e2d45; }

[data-theme="dark"] .table-wrap,
[data-theme="dark"] .table-header { background: #1a2537; border-color: #1e2d45; }

[data-theme="dark"] th { background: #111827; color: #9ba8bc; border-color: #1e2d45; }
[data-theme="dark"] td { border-color: #1e2d45; }
[data-theme="dark"] tr:hover td { background: #1e2d45; }

[data-theme="dark"] .service-page-hero {
  background: linear-gradient(135deg, #060e1e 0%, #0e1e3f 50%, #1a2f5e 100%);
}

[data-theme="dark"] .service-detail-card {
  background: #1a2537;
  border-color: #1e2d45;
}

[data-theme="dark"] .gallery-section { background: #111827; }
[data-theme="dark"] .gallery-slide-info { background: #1a2537; }

/* Dark toggle button */
.dark-toggle {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 38px; height: 38px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
}
.dark-toggle:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}

[data-theme="dark"] .dark-toggle { background: rgba(200,164,90,0.2); border-color: rgba(200,164,90,0.4); }

/* Service page specifics */
.service-page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--blue-accent) 100%);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.service-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/svg%3E");
}
.service-page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.service-page-hero .breadcrumb a { color: rgba(255,255,255,0.55); text-decoration:none; transition:.2s; }
.service-page-hero .breadcrumb a:hover { color: var(--gold); }
.service-page-hero .breadcrumb span { color: var(--gold); }
.service-page-hero h1 { color: white; font-size: clamp(2rem,5vw,3.5rem); margin-bottom: 16px; }
.service-page-hero p { color: rgba(255,255,255,0.75); font-size:1.1rem; max-width:580px; line-height:1.8; margin-bottom:32px; }

.service-detail-section { padding: 80px 0; }
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.service-detail-grid.reverse { direction: rtl; }
.service-detail-grid.reverse > * { direction: ltr; }

.service-detail-img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}
.service-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail-card {
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  padding: 28px;
  margin-top: 24px;
}
.service-detail-card h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--navy);
}
.service-detail-card ul { list-style: none; }
.service-detail-card ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-light);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.service-detail-card ul li:last-child { border-bottom: none; }
.service-detail-card ul li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

.other-services { padding: 60px 0; background: var(--off-white); }
.other-services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.other-service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s;
  border: 1px solid var(--gray-light);
}
.other-service-card:hover {
  border-color: var(--navy);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.other-service-card .icon { font-size: 28px; margin-bottom: 8px; }
.other-service-card .name { font-size: 13px; font-weight: 600; color: var(--navy-dark); }

[data-theme="dark"] .other-services { background: #111827; }
[data-theme="dark"] .other-service-card { background: #1a2537; border-color: #1e2d45; }
[data-theme="dark"] .other-service-card .name { color: #f0f4ff; }

/* ===== GALLERY SLIDER ===== */
.gallery-section {
  padding: 80px 0;
  background: var(--off-white);
  overflow: hidden;
}

.gallery-slider-wrap {
  position: relative;
  margin-top: 40px;
}

.gallery-slider {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}

.gallery-slide {
  flex: 0 0 calc(33.333% - 14px);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--gray-light);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-slide:hover img { transform: scale(1.05); }

.gallery-slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-accent) 100%);
  color: rgba(255,255,255,0.6);
  font-size: 48px;
  gap: 12px;
}
.gallery-slide-placeholder span { font-size: 14px; font-weight: 500; }

.gallery-slide-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: white;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.gallery-slide:hover .gallery-slide-info { transform: translateY(0); }
.gallery-slide-info .title { font-size: 13px; font-weight: 600; color: var(--navy-dark); }
.gallery-slide-info .cat { font-size: 11px; color: var(--gold); font-weight: 700; letter-spacing: 1px; }

.gallery-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}
.gallery-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.gallery-btn:hover { background: var(--navy); color: white; }
.gallery-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.gallery-dots {
  display: flex;
  gap: 8px;
}
.gallery-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gray-light);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}
.gallery-dot.active {
  background: var(--navy);
  width: 24px;
  border-radius: 4px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: 12px; box-shadow: 0 0 60px rgba(0,0,0,0.5); }
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  color: white;
  font-size: 32px;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: 0.7;
  transition: .2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 14px;
  background: rgba(255,255,255,0.1);
  padding: 8px 20px;
  border-radius: 50px;
  backdrop-filter: blur(8px);
}

@media(max-width: 768px) {
  .service-detail-grid { grid-template-columns: 1fr; gap: 36px; }
  .service-detail-grid.reverse { direction: ltr; }
  .gallery-slide { flex: 0 0 calc(85% - 10px); }
  .other-services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 480px) {
  .other-services-grid { grid-template-columns: 1fr 1fr; }
}
