/* ========================================
   Knauer Brothers Garage — Custom Styles
   ======================================== */

/* Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== HERO ===== */
.hero-gradient {
  background: linear-gradient(135deg, #020617 0%, #0f172a 30%, #134e4a 70%, #0d9488 100%);
}

/* Geometric decorations */
.geo-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
  animation: geoFloat 8s ease-in-out infinite;
}

.geo-circle-1 {
  width: 400px;
  height: 400px;
  background: #2dd4bf;
  top: -100px;
  right: -80px;
  animation-delay: 0s;
}

.geo-circle-2 {
  width: 250px;
  height: 250px;
  background: #5eead4;
  bottom: 10%;
  left: 5%;
  animation-delay: -3s;
}

.geo-circle-3 {
  width: 150px;
  height: 150px;
  background: #99f6e4;
  top: 30%;
  right: 15%;
  animation-delay: -5s;
}

.geo-square {
  position: absolute;
  opacity: 0.06;
  animation: geoRotate 12s linear infinite;
}

.geo-square-1 {
  width: 120px;
  height: 120px;
  background: #2dd4bf;
  border-radius: 20px;
  top: 20%;
  left: 8%;
  animation-delay: 0s;
}

.geo-square-2 {
  width: 80px;
  height: 80px;
  background: #5eead4;
  border-radius: 14px;
  bottom: 25%;
  right: 10%;
  animation-delay: -4s;
}

.geo-triangle {
  position: absolute;
  opacity: 0.05;
  animation: geoFloat 10s ease-in-out infinite;
}

.geo-triangle-1 {
  width: 0;
  height: 0;
  border-left: 70px solid transparent;
  border-right: 70px solid transparent;
  border-bottom: 120px solid #2dd4bf;
  top: 60%;
  left: 15%;
  animation-delay: -2s;
}

.geo-dots {
  position: absolute;
  top: 15%;
  right: 25%;
  display: grid;
  grid-template-columns: repeat(4, 12px);
  gap: 16px;
  opacity: 0.12;
}

.geo-dots::before,
.geo-dots::after {
  content: '';
  width: 6px;
  height: 6px;
  background: #5eead4;
  border-radius: 50%;
}

.geo-dots span {
  width: 6px;
  height: 6px;
  background: #5eead4;
  border-radius: 50%;
}

@keyframes geoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes geoRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== NAVIGATION ===== */
.nav-fixed {
  transition: box-shadow 0.3s ease;
}

.nav-fixed.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #2dd4bf;
  transition: all 0.2s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

/* ===== SERVICE CARDS ===== */
.service-card {
  perspective: 1000px;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Prefers reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Stagger children */
.service-card:nth-child(1) .reveal,
.grid > div:nth-child(1) .reveal { transition-delay: 0.05s; }
.service-card:nth-child(2) .reveal,
.grid > div:nth-child(2) .reveal { transition-delay: 0.1s; }
.service-card:nth-child(3) .reveal,
.grid > div:nth-child(3) .reveal { transition-delay: 0.15s; }
.service-card:nth-child(4) .reveal,
.grid > div:nth-child(4) .reveal { transition-delay: 0.2s; }
.service-card:nth-child(5) .reveal,
.grid > div:nth-child(5) .reveal { transition-delay: 0.25s; }
.service-card:nth-child(6) .reveal,
.grid > div:nth-child(6) .reveal { transition-delay: 0.3s; }

/* ===== MOBILE MENU ===== */
.mobile-nav-link {
  transition: all 0.2s ease;
}

#mobile-menu {
  animation: menuSlideDown 0.25s ease;
}

@keyframes menuSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== FORM FOCUS STATES ===== */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* ===== BUTTON HOVER EFFECTS ===== */
button[type="submit"],
a[href^="tel"] {
  position: relative;
  overflow: hidden;
}

button[type="submit"]::before,
a[href^="tel"]::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

button[type="submit"]:active::before,
a[href^="tel"]:active::before {
  width: 300px;
  height: 300px;
}

/* ===== IMAGE HOVER ===== */
.rounded-2xl.overflow-hidden {
  overflow: hidden;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 640px) {
  .geo-circle-1 {
    width: 200px;
    height: 200px;
  }

  .geo-circle-2 {
    width: 120px;
    height: 120px;
  }

  .geo-circle-3,
  .geo-square-2,
  .geo-triangle-1 {
    display: none;
  }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* ===== SELECTION ===== */
::selection {
  background: rgba(13, 148, 136, 0.3);
  color: #f0fdfa;
}
