@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.page-wrapper {
  animation: fadeIn 0.5s ease-out;
}

.loading {
  text-align: center;
  padding: 100px 20px;
  min-height: 50vh;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loading p {
  color: #9ca3af;
  font-size: 1.125rem;
  margin-top: 20px;
}

#error-content {
  text-align: center;
  padding: 100px 20px;
  min-height: 50vh;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#error-content h2 {
  color: #ef4444;
  font-size: 1.875rem;
  margin-bottom: 16px;
}

#error-content p {
  color: #9ca3af;
  font-size: 1.125rem;
}

.spinner {
  border: 4px solid #222;
  border-radius: 50%;
  border-top: 4px solid var(--primary-900);
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

#city-content {
  animation: fadeIn 0.6s ease-out;
  display: none;
}

.city-header {
  text-align: center;
  margin-bottom: 0;
  padding: 80px 40px 60px;
  background: linear-gradient(160deg, #f0f4ff 0%, #ffffff 60%, #f8f0ff 100%);
  border-bottom: 1px solid rgba(5, 75, 171, 0.08);
  animation: fadeInUp 0.8s ease-out;
}

.city-icon {
  width: 130px;
  height: 130px;
  margin: 0 auto 28px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: 0 8px 40px rgba(5, 75, 171, 0.18);
  border: 4px solid rgba(5, 75, 171, 0.1);
  animation: pulse 2s infinite;
  transition: transform 0.3s ease;
}

.city-icon:hover {
  transform: scale(1.1) rotate(5deg);
}

.city-icon img {
  max-width: 100px;
  height: auto;
  border-radius: 15px;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: var(--primary-900);
  margin: 16px 0 8px;
  line-height: 1.15;
  font-weight: 700;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.city-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 18px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.city-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--tertiary-700);
  font-size: 0.95rem;
  font-weight: 500;
  background: rgba(5, 75, 171, 0.06);
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(5, 75, 171, 0.12);
  transition: all 0.3s ease;
}

.city-meta span i {
  color: var(--primary-900);
  font-size: 0.85rem;
}

.city-meta span:hover {
  background: rgba(5, 75, 171, 0.12);
  color: var(--primary-900);
  transform: translateY(-2px);
}

.city-content {
  background: white;
  padding: 70px 100px;
  margin-bottom: 0;
  animation: fadeInUp 1s ease-out 0.6s both;
  border-bottom: 1px solid rgba(5, 75, 171, 0.06);
}

.city-content > div {
  max-width: 1100px;
  margin: 0 auto;
}

.city-content p {
  font-size: 1.08rem;
  line-height: 1.85;
  color: rgba(0, 0, 0, 0.8);
  margin-bottom: 1.4rem;
}

.city-content h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  color: var(--primary-900);
  margin: 2.2rem 0 0.9rem;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(5, 75, 171, 0.1);
  line-height: 1.3;
}

.city-content ul {
  margin: 0 0 1.4rem 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.city-content ul li {
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.78);
  line-height: 1.6;
  padding: 8px 12px 8px 32px;
  position: relative;
  background: rgba(5, 75, 171, 0.04);
  border-radius: 8px;
  border-left: 3px solid var(--primary-900);
}

.city-content ul li::before {
  content: '✓';
  position: absolute;
  left: 10px;
  color: var(--primary-900);
  font-weight: 700;
  font-size: 0.85rem;
}

.services-section {
  padding: 60px 20px;
  background: white;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.services-section h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 50px;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--primary-400);
  border-radius: 20px;
  padding: 40px 30px;
  display: block;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:nth-child(1) {
  animation: fadeInUp 1s ease-out 0.7s both;
}

.service-card:nth-child(2) {
  animation: fadeInUp 1s ease-out 0.8s both;
}

.service-card:nth-child(3) {
  animation: fadeInUp 1s ease-out 0.9s both;
}

.service-card:nth-child(4) {
  animation: fadeInUp 1s ease-out 1s both;
}

.service-card:nth-child(5) {
  animation: fadeInUp 1s ease-out 1.1s both;
}

.service-card:nth-child(6) {
  animation: fadeInUp 1s ease-out 1.2s both;
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: var(--primary-900);
}

.service-card h3 {
  color: var(--primary-900);
  margin-bottom: 15px;
  font-size: 1.5rem;
  font-weight: 600;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

.service-card:hover h3 {
  color: var(--primary-900);
}

.service-card p {
  color: rgba(0, 0, 0, 0.65);
  line-height: 1.7;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.cta-section {
  padding: 80px 20px;
  text-align: center;
  background: white;
  animation: fadeInUp 1s ease-out 1.6s both;
}

.cta-section h2 {
  color: var(--primary-900);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta-section p {
  color: rgba(0, 0, 0, 0.65);
  font-size: 1.125rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background: var(--primary-900);
  color: #fff;
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--primary-900);
}

.cta-button:hover {
  background: var(--primary-900);
  transform: scale(1.05);
}

.error-message {
  text-align: center;
  padding: 100px 20px;
  animation: fadeInUp 0.6s ease-out;
}

.error-message h1 {
  font-size: 3rem;
  color: #ef4444;
  margin-bottom: 20px;
}

.error-message p {
  font-size: 1.25rem;
  color: #9ca3af;
  margin-bottom: 30px;
}

.error-message a {
  color: var(--primary-900);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.error-message a:hover {
  color: var(--primary-900);
}

/* ─── Rich Service Items (index.html style) ─────────────────────────── */
.city-services-section {
  position: relative;
  width: 100%;
  background: white;
  padding: 40px 0;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.city-services-section .services-wrap {
  padding: 0 100px;
  max-width: 1400px;
  margin: 0 auto;
}

.heading-wrap {
  text-align: center;
  margin-bottom: 50px;
}

.section-heading {
  font-size: clamp(3.8rem, 9vw, 5rem);
  font-weight: 500;
  color: var(--primary-900);
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-sub {
  display: block;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  color: var(--tertiary-700);
  margin: 20px auto 0;
  line-height: 1.6;
  text-align: justify;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}


.service-item {
  position: relative;
  padding-bottom: 2.5rem;
  background: rgba(5, 75, 171, 0.08);
  border-radius: 16px;
  padding: 30px 20px 2.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  border: 2px solid transparent;
  overflow: hidden;
}

.service-item:hover {
  background: rgba(5, 75, 171, 0.15);
  transform: translateY(-5px);
  border-color: rgba(5, 75, 171, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.service-caption {
  text-align: center;
  font-size: 22px;
  font-weight: 500;
  color: var(--primary-900);
  line-height: 1.3;
}

.service-description {
  font-size: 14px;
  color: var(--tertiary-700);
  line-height: 1.5;
  opacity: 0.9;
  text-align: justify;
  margin-bottom: 1rem;
}

.service-item a {
  color: var(--secondary-900);
  text-decoration: none;
  position: absolute;
  left: 16px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.service-item a:hover {
  color: var(--secondary-800);
  text-decoration: none;
}

.service-item a i.fa-arrow-right {
  font-size: 0.85em;
  line-height: 1;
}

/* ─── Industries Section ─────────────────────────────────────────────── */
.city-industries-section {
  position: relative;
  width: 100%;
  background: white;
  padding: 40px 0;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}


@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .city-heading {
    font-size: 2rem;
  }

  .city-header {
    padding: 60px 20px 40px;
  }

  .city-content {
    padding: 40px 20px;
  }

  .city-content ul {
    grid-template-columns: 1fr;
  }

  .city-meta {
    gap: 10px;
  }

  .services-section {
    padding: 40px 15px;
  }

  .services-section h2 {
    font-size: 1.75rem;
  }

  .city-services-section {
    padding: 40px 0;
  }

  .city-services-section .services-wrap {
    padding: 0 20px;
  }

  .section-heading {
    font-size: 1.75rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .city-industries-section .services-wrap {
    padding: 0 20px;
  }

  .section-title {
    font-size: 2rem;
  }

  .cta-section {
    padding: 60px 20px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  .city-icon {
    width: 100px;
    height: 100px;
  }

  .city-header {
    padding: 50px 16px 32px;
  }

  .city-content {
    padding: 32px 16px;
  }

  .city-meta span {
    font-size: 0.82rem;
    padding: 5px 12px;
  }

  .services-section h2,
  .section-heading {
    font-size: 1.5rem;
  }

  .service-card h3 {
    font-size: 1.125rem;
  }
}