/* ============================================
   M1m Motorsports — Custom Styles
   ============================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Geometric Background Shapes
   ============================================ */
.geo-shape {
  position: absolute;
  pointer-events: none;
}

.geo-circle-1 {
  top: 15%;
  right: 5%;
  width: 300px;
  height: 300px;
  border: 2px solid rgba(5, 150, 105, 0.1);
  border-radius: 50%;
  animation: float-slow 8s ease-in-out infinite;
}

.geo-circle-2 {
  top: 60%;
  right: 15%;
  width: 120px;
  height: 120px;
  border: 2px solid rgba(5, 150, 105, 0.08);
  border-radius: 50%;
  animation: float-slow 6s ease-in-out infinite reverse;
}

.geo-square-1 {
  top: 25%;
  left: 55%;
  width: 60px;
  height: 60px;
  background: rgba(5, 150, 105, 0.06);
  border-radius: 12px;
  transform: rotate(45deg);
  animation: float-medium 5s ease-in-out infinite;
}

.geo-triangle-1 {
  bottom: 20%;
  left: 5%;
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 52px solid rgba(5, 150, 105, 0.05);
  animation: float-medium 7s ease-in-out infinite reverse;
}

.geo-dots {
  top: 40%;
  left: 8%;
  width: 80px;
  height: 80px;
  background-image: radial-gradient(circle, rgba(5, 150, 105, 0.15) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  animation: float-slow 9s ease-in-out infinite;
}

/* ============================================
   Floating Cards Animation
   ============================================ */
.floating-card {
  animation: float-card 4s ease-in-out infinite;
}

.card-stat-1 {
  animation-delay: 0s;
}

.card-stat-2 {
  animation-delay: -1.3s;
}

.card-stat-3 {
  animation-delay: -2.6s;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
}

@keyframes float-medium {
  0%, 100% { transform: translateY(0px) rotate(45deg); }
  50% { transform: translateY(-10px) rotate(47deg); }
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #059669, #34d399);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.service-icon {
  transition: stroke 0.3s ease;
}

.service-card:hover .service-icon {
  stroke: white;
}

/* ============================================
   Why Cards
   ============================================ */
.why-icon {
  transition: stroke 0.3s ease;
}

.why-card:hover .why-icon {
  stroke: white;
}

/* ============================================
   Contact Icons
   ============================================ */
.contact-icon {
  transition: stroke 0.3s ease;
}

.group:hover .contact-icon {
  stroke: white;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-menu-link {
  display: block;
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ============================================
   Nav Scroll State
   ============================================ */
.nav-scrolled {
  box-shadow: 0 1px 20px rgba(5, 150, 105, 0.08);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 767px) {
  html {
    scroll-padding-top: 70px;
  }
}
