/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Hero Section */
.hero-section {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for mobile */
  background: radial-gradient(ellipse at center, #410b7c 0%, #2a0550 40%, #0e0030 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: clamp(2rem, 6vh, 3.75rem) clamp(1.25rem, 5vw, 2.5rem);
  position: relative;
  isolation: isolate;
}

/* Subtle animated background pattern */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: 200px 200px, 150px 150px;
  animation: backgroundFloat 20s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes backgroundFloat {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(-10px, -5px) rotate(1deg);
  }
}

@media (max-width: 768px) {
  .hero-section::before {
    display: none;
  }
}

.hero-section > * {
  position: relative;
  z-index: 2;
}

/* Layout Components */
.top-content {
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  max-width: 75rem;
  width: 100%;
  gap: clamp(1rem, 3vh, 2rem);
  padding-top: clamp(1rem, 3vh, 2rem);
}

.van-image-space {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 50rem;
  min-height: clamp(200px, 25vh, 350px);
  margin: clamp(1.5rem, 4vh, 3rem) 0;
  position: relative;
}

/* Placeholder for van image - remove this when you add your image */
.van-image-space::after {
  content: 'https://technicairmechanical.com//wp-content/uploads/2025/07/NEW-LOOK.-SAME-RELIABILITY.-2.png';
  color: rgba(254, 183, 49, 0.4);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  text-align: center;
  border: 2px dashed rgba(254, 183, 49, 0.3);
  border-radius: 1rem;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-content {
  flex: none;
  width: 100%;
  max-width: 62.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, 3vh, 2rem);
  padding-bottom: clamp(1rem, 3vh, 2rem);
}

/* Typography */
.main-heading {
  font-family: 'Impact', 'Arial Black', sans-serif;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  color: #FEB731;
  text-transform: uppercase;
  letter-spacing: clamp(0.02em, 0.1vw, 0.05em);
  line-height: 1.1;
  text-shadow: 
    2px 2px 8px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(254, 183, 49, 0.3);
  font-weight: 900;
  margin-bottom: 0;
  word-spacing: 0.1em;
}

.expansion-message {
  color: rgba(255, 255, 255, 0.95);
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  font-weight: 400;
  max-width: clamp(20rem, 80vw, 40rem);
  line-height: 1.6;
  margin-bottom: clamp(2rem, 4vh, 3rem);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.mojo-highlight {
  color: #FEB731;
  font-weight: 700;
  font-style: italic;
  text-shadow: 0 0 10px rgba(254, 183, 49, 0.4);
}

.tagline {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(0.875rem, 1.8vw, 1.125rem);
  font-weight: 400;
  margin-top: clamp(0.625rem, 2vh, 1rem);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  gap: clamp(0.75rem, 2.5vw, 1.25rem);
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.cta-button {
  background: linear-gradient(135deg, #FEB731 0%, #e6a429 100%);
  color: #1a1a1a;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(0.8rem, 1.6vw, 0.9rem);
  padding: clamp(0.75rem, 2vh, 1rem) clamp(1.25rem, 3.5vw, 1.75rem);
  border: none;
  border-radius: clamp(1.25rem, 3.5vw, 1.75rem);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 1.2vw, 0.65rem);
  box-shadow: 
    0 4px 20px rgba(254, 183, 49, 0.25),
    0 2px 8px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  min-height: 2.75rem;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform, box-shadow;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  background: linear-gradient(135deg, #e6a429 0%, #d4941f 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 8px 28px rgba(254, 183, 49, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.2);
}

.cta-button:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.1s;
}

.cta-button:focus-visible {
  outline: 2px solid #FEB731;
  outline-offset: 2px;
}

/* Icons */
.icon {
  width: clamp(1.125rem, 3vw, 1.375rem);
  height: clamp(1.125rem, 3vw, 1.375rem);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.icon-red {
  background: linear-gradient(135deg, #ff4444 0%, #cc3333 100%);
  color: white;
}

.icon-green {
  background: linear-gradient(135deg, #44ff44 0%, #33cc33 100%);
  color: white;
}

.icon-yellow {
  background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
  color: #FEB731;
}

/* Stats Container */
.stats-container {
  background: rgba(0, 0, 0, 0.4);
  border-radius: clamp(1.25rem, 4vw, 2rem);
  padding: clamp(1rem, 2.5vh, 1.5rem) clamp(1.5rem, 4vw, 2rem);
  display: flex;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  width: fit-content;
  max-width: 100%;
}

.stat-item {
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(4rem, 12vw, 5.5rem);
}

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  line-height: 1;
  margin-bottom: clamp(0.25rem, 1vh, 0.5rem);
  color: #FEB731;
  text-shadow: 0 0 10px rgba(254, 183, 49, 0.3);
}

.stat-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
  line-height: 1.2;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    justify-content: flex-start;
    padding: clamp(1.5rem, 4vh, 2.5rem) 1.25rem;
    gap: clamp(1.5rem, 4vh, 2.5rem);
  }

  .top-content {
    flex: none;
    gap: clamp(1.5rem, 4vh, 2rem);
    padding-top: 0;
  }

  .van-image-space {
    min-height: clamp(150px, 20vh, 250px);
    margin: clamp(1rem, 3vh, 2rem) 0;
  }

  .van-image-space::after {
    font-size: clamp(0.875rem, 3vw, 1rem);
    padding: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: clamp(0.75rem, 2vh, 1rem);
    width: 100%;
    max-width: 20rem;
  }

  .cta-button {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    min-height: 3.5rem;
  }

  .stats-container {
    flex-wrap: wrap;
    gap: clamp(1rem, 3vw, 1.5rem);
    padding: 1rem 1.25rem;
    justify-content: space-around;
  }

  .stat-item {
    min-width: clamp(4.5rem, 20vw, 6rem);
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 1.5rem 1rem;
    min-height: 100vh;
    min-height: 100dvh;
    gap: clamp(1rem, 3vh, 1.5rem);
  }

  .main-heading {
    font-size: clamp(2.25rem, 8vw, 2.75rem);
  }

  .expansion-message {
    font-size: clamp(0.9rem, 4.5vw, 1.1rem);
  }

  .van-image-space {
    min-height: clamp(120px, 18vh, 200px);
    margin: clamp(0.75rem, 2vh, 1.5rem) 0;
  }

  .van-image-space::after {
    font-size: 0.8rem;
    padding: 1rem;
  }

  .cta-button {
    padding: 0.875rem 1.125rem;
    font-size: 0.9rem;
    min-height: 3.25rem;
  }

  .stats-container {
    padding: 0.875rem 1rem;
    gap: 0.875rem;
  }

  .stat-number {
    font-size: clamp(1.125rem, 4vw, 1.375rem);
  }

  .stat-label {
    font-size: clamp(0.6875rem, 3vw, 0.8125rem);
  }
}

@media (max-width: 360px) {
  .stats-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .stat-item {
    min-width: auto;
    width: 100%;
  }
}

/* High-DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .main-heading {
    text-shadow: 
      1px 1px 4px rgba(0, 0, 0, 0.7),
      0 0 15px rgba(254, 183, 49, 0.4);
  }
}

/* Landscape mobile optimization */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    padding: 1rem 1.25rem;
    gap: 1.25rem;
  }

  .main-heading {
    font-size: clamp(2rem, 7.5vw, 3rem);
  }

  .expansion-message {
    font-size: clamp(0.875rem, 2vw, 1rem);
  }

  .cta-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .cta-button {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    min-height: 2.75rem;
  }

  .stats-container {
    padding: 0.625rem 1rem;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-section::before {
    animation: none;
  }
}

/* Focus states for keyboard navigation */
.cta-button:focus-visible,
.stat-item:focus-visible {
  outline: 2px solid #FEB731;
  outline-offset: 2px;
  border-radius: inherit;
}

/* Print styles */
@media print {
  .hero-section {
    background: white !important;
    color: black !important;
    min-height: auto;
  }
  
  .main-heading,
  .mojo-highlight,
  .stat-number {
    color: black !important;
    text-shadow: none !important;
  }
  
  .cta-button {
    background: #f0f0f0 !important;
    color: black !important;
    box-shadow: none !important;
  }
}