/* Custom styles for Mike's Auto Driving School */

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

/* Custom font loading */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@600;700;800&display=swap');

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #0d9488, #2dd4bf);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #0f766e, #0d9488);
}

/* Custom selection color */
::selection {
  background: #ccfbf1;
  color: #0f766e;
}

/* Custom focus styles */
*:focus-visible {
  outline: 3px solid #2dd4bf;
  outline-offset: 2px;
  border-radius: 4px;
}

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

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

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.pulse-soft {
  animation: pulse-soft 3s ease-in-out infinite;
}

/* Custom card hover effects */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(13, 148, 136, 0.15);
}

/* Custom button styles */
.btn-primary {
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(13, 148, 136, 0.3);
}

.btn-secondary {
  border: 2px solid #0d9488;
  color: #0d9488;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #0d9488;
  color: white;
  transform: translateY(-2px);
}

/* Custom navigation */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Custom badge styles */
.badge {
  background: linear-gradient(135deg, #ccfbf1, #99f6e4);
  color: #0f766e;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Custom divider */
.divider {
  height: 4px;
  width: 80px;
  background: linear-gradient(90deg, #0d9488, #2dd4bf);
  border-radius: 2px;
}

/* Custom input styles */
input, textarea {
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

input:focus, textarea:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
  outline: none;
}

/* Custom testimonial card */
.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(13, 148, 136, 0.1);
}

/* Custom footer */
.footer-gradient {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Hero image styles */
.hero-image {
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(13, 148, 136, 0.2);
}

/* Mobile menu animation */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.mobile-menu.open {
  max-height: 400px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-image {
    border-radius: 16px;
    margin-top: 2rem;
  }
  
  .float-animation {
    animation: none;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
}
