/* ══════════════════════════════════
   AI CITY SECTION - Right Aligned Content
══════════════════════════════════ */

.ai-infra {
  position: relative;
  padding: 140px 20px;
  overflow: hidden;
}

/* ── BACKGROUND IMAGE ── */
.ai-bg {
  position: absolute;
  inset: 0;
  background: url("../assets/images/ai-city2.png") center/cover no-repeat;
  filter: brightness(0.7) saturate(0.9);
  transform: scale(1.05);
  animation: aiSlowZoom 20s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes aiSlowZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.1); }
}

/* ── OVERLAY ── */
.ai-overlay {
  position: absolute;
  inset: 0;
  
  z-index: 1;
}

/* ── GLASS CONTAINER ── */
.ai-container {
  position: relative;
  z-index: 2;

  max-width: 1100px;
  margin: 0 auto;

  min-height: 500px;
  padding: 60px;

  border-radius: 24px;

  /* Glass effect using the existing background */
  
  /* Push content to the right side */
  display: flex;
  justify-content: flex-end;
  align-items: center;

  /* Scroll animation start */
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s ease, transform 1s ease;
}

.ai-container.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RIGHT CONTENT BLOCK ── */
.ai-content-right {
  width: 55%;
  max-width: 550px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ── HEADER ── */
.ai-header {
  text-align: left;
}

.ai-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #e5c36a;
  margin-bottom: 12px;

  /* Animation */
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.ai-container.visible .ai-label {
  opacity: 1;
  transform: translateX(0);
}

.ai-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  margin: 0 0 14px 0;
  letter-spacing: 0.03em;
  text-transform: uppercase;

  /* Animation */
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease 0.35s, transform 0.6s ease 0.35s;
}

.ai-container.visible .ai-header h2 {
  opacity: 1;
  transform: translateX(0);
}

.ai-header-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin: 0;

  /* Animation */
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s;
}

.ai-container.visible .ai-header-desc {
  opacity: 1;
  transform: translateX(0);
}

/* ── STATS GRID ── */
.ai-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;

  /* Animation */
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease 0.65s, transform 0.6s ease 0.65s;
}

.ai-container.visible .ai-stats {
  opacity: 1;
  transform: translateX(0);
}

.ai-stat {
  padding: 16px;
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);

  transition: all 0.3s ease;
  cursor: default;
}

.ai-stat:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(229, 195, 106, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.ai-stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  margin: 0 0 6px 0;
}

.ai-stat-suffix {
  font-size: 1rem;
  color: #e5c36a;
}

.ai-stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.04em;
  margin: 0;
  text-transform: uppercase;
}

/* ── FEATURES LIST ── */
.ai-features-list {
  display: flex;
  flex-direction: column;
  gap: 12px;

  /* Animation */
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease 0.8s, transform 0.6s ease 0.8s;
}

.ai-container.visible .ai-features-list {
  opacity: 1;
  transform: translateX(0);
}

.ai-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
  transition: color 0.3s ease, transform 0.3s ease;
}

.ai-feature-item:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.ai-bullet {
  color: #e5c36a;
  font-size: 1rem;
  line-height: 1.5;
  flex-shrink: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .ai-container {
    padding: 50px 40px;
  }

  .ai-content-right {
    width: 65%;
  }
}

@media (max-width: 768px) {
  .ai-infra {
    padding: 80px 16px;
  }

  .ai-container {
    justify-content: center;
    padding: 40px 28px;
    min-height: auto;
  }

  .ai-content-right {
    width: 100%;
    max-width: 100%;
  }

  .ai-header h2 {
    font-size: 2rem;
  }

  .ai-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .ai-infra {
    padding: 60px 12px;
  }

  .ai-container {
    padding: 30px 20px;
    border-radius: 16px;
  }

  .ai-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .ai-stat {
    padding: 14px 12px;
    border-radius: 10px;
  }

  .ai-stat-value {
    font-size: 1.3rem;
  }

  .ai-stat-label {
    font-size: 0.65rem;
  }

  .ai-header h2 {
    font-size: 1.6rem;
  }

  .ai-feature-item {
    font-size: 0.78rem;
  }
}

@media (max-width: 380px) {
  .ai-stats {
    grid-template-columns: 1fr;
  }

  .ai-container {
    padding: 24px 16px;
  }

  .ai-header h2 {
    font-size: 1.4rem;
  }
}