/* ============================================
   ZMAC Construction — Design System
   ============================================ */

/* --- Base Reset & Typography --- */
html,
body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  background-color: #000;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}

/* --- Keyframe Animations --- */
@keyframes slow-zoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.15);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

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

  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* --- Animation Utility Classes --- */
.animate-slow-zoom {
  animation: slow-zoom 30s linear infinite alternate;
}

.animate-in {
  animation-fill-mode: both;
}

.fade-in {
  animation-name: fade-in;
}

.slide-in-from-bottom {
  animation-name: slide-up;
}

.slide-in-from-left {
  animation-name: slide-right;
}

.slide-in-from-right {
  animation-name: slide-left;
}

.animate-pulse-slow {
  animation: pulse-slow 3s infinite;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.duration-700 {
  animation-duration: 700ms;
}

.duration-1000 {
  animation-duration: 1000ms;
}

.delay-100 {
  animation-delay: 100ms;
}

.delay-200 {
  animation-delay: 200ms;
}

.delay-300 {
  animation-delay: 300ms;
}

.delay-400 {
  animation-delay: 400ms;
}

.delay-500 {
  animation-delay: 500ms;
}

.delay-600 {
  animation-delay: 600ms;
}

.delay-700 {
  animation-delay: 700ms;
}

.delay-800 {
  animation-delay: 800ms;
}

/* --- Scroll-triggered animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* --- Text Utilities --- */
.text-outline {
  -webkit-text-stroke: 1px white;
  color: transparent;
}

.text-gradient {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modern-gradient {
  background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
}

/* --- Glass / Surface Effects --- */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card-dark {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Breadcrumb Navigation --- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.breadcrumb a {
  color: #9CA3AF;
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: #FFD700;
}

.breadcrumb .separator {
  color: #4B5563;
}

.breadcrumb .current {
  color: #FFD700;
}

/* --- Service Card Grid --- */
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px -15px rgba(255, 215, 0, 0.15);
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #FFD700;
  transform: scaleX(0);
  transition: transform 0.5s ease;
}

.service-card:hover::after {
  transform: scaleX(1);
}

/* --- FAQ Accordion --- */
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.5rem 0;
  background: none;
  border: none;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s;
}

.faq-question:hover {
  color: #FFD700;
}

.faq-question .icon {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.3s;
  flex-shrink: 0;
  color: #FFD700;
}

.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

.faq-answer p {
  color: #9CA3AF;
  font-size: 1rem;
  line-height: 1.75;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, #FFD700 0%, #F59E0B 100%);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  animation: float 8s ease-in-out infinite;
}

/* --- Process Steps --- */
.process-step {
  position: relative;
  padding-left: 4rem;
}

.process-step::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #FFD700;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.875rem;
  font-family: 'Space Grotesk', sans-serif;
}

/* --- City Grid Cards --- */
.city-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(145deg, #18181b, #0f0f0f);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem;
  transition: all 0.4s ease;
}

.city-card:hover {
  border-color: rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
}

.city-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FFD700, transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

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

/* --- Feature Grid Icons --- */
.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: rgba(255, 215, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon svg,
.feature-icon i {
  width: 1.5rem;
  height: 1.5rem;
  color: #FFD700;
}

/* --- Header Nav Dropdown --- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.625rem 1rem;
  color: #9CA3AF;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 0.5rem;
  transition: all 0.2s;
  text-decoration: none;
}

.nav-dropdown-menu a:hover {
  color: #FFD700;
  background: rgba(255, 215, 0, 0.08);
}

/* --- Stat Counter --- */
.stat-item {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #FFD700;
  line-height: 1;
}

.stat-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #6B7280;
  margin-top: 0.5rem;
}

/* --- Testimonial Card --- */
.testimonial-card {
  background: linear-gradient(145deg, #1a1a1a, #111);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
  padding: 2.5rem;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: rgba(255, 215, 0, 0.2);
  line-height: 1;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .breadcrumb {
    font-size: 0.6rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .process-step {
    padding-left: 3.5rem;
  }

  .process-step::before {
    width: 2.5rem;
    height: 2.5rem;
  }
}

@media (max-width: 480px) {
  .nav-dropdown-menu {
    position: fixed;
    left: 1rem;
    right: 1rem;
    transform: none;
    min-width: auto;
  }
}