/* Custom styles for Jarocho's Auto Repair */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Geometric decorative shapes */
.geo-shape {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.geo-circle-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
  top: 10%;
  right: -100px;
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.08) 0%, transparent 70%);
  bottom: 20%;
  left: -50px;
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

.geo-square-1 {
  width: 120px;
  height: 120px;
  background: rgba(16, 185, 129, 0.04);
  top: 40%;
  left: 5%;
  border-radius: 20px;
  transform: rotate(45deg);
  animation: spin-slow 20s linear infinite;
}

.geo-triangle-1 {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid rgba(16, 185, 129, 0.04);
  top: 60%;
  right: 8%;
  animation: float 6s ease-in-out infinite;
}

.geo-dots {
  width: 200px;
  height: 200px;
  background-image: radial-gradient(circle, rgba(16, 185, 129, 0.1) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  bottom: 10%;
  right: 15%;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morph 8s ease-in-out infinite;
}

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

@keyframes spin-slow {
  from { transform: rotate(45deg); }
  to { transform: rotate(405deg); }
}

@keyframes morph {
  0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  25% { border-radius: 58% 42% 45% 55% / 55% 58% 42% 45%; }
  50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
  75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

/* Navbar scroll effect */
#navbar.scrolled {
  background: rgba(254, 253, 248, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Mobile menu */
#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

#mobileMenu.open {
  max-height: 400px;
}

.mobile-menu-link {
  display: block;
  padding: 0.5rem 0;
}

/* Service cards hover */
.service-card {
  position: relative;
  overflow: hidden;
}

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

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

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hamburger animation */
.menu-line {
  display: block;
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 20px;
  margin-left: 0;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
  border-color: #059669 !important;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15) !important;
}

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

::-webkit-scrollbar-track {
  background: #fefdf8;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #34d399;
}
