/* Custom styles for Banbury Driving & Language School */

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

/* Base font settings */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Geometric animated shapes */
.geo-shape {
  position: absolute;
  opacity: 0.08;
  pointer-events: none;
}

.shape-circle-1 {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 3px solid white;
  top: -100px;
  right: -100px;
  animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: white;
  bottom: 20%;
  left: 5%;
  animation: float-medium 15s ease-in-out infinite;
}

.shape-circle-3 {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid white;
  top: 40%;
  right: 10%;
  animation: float-slow 18s ease-in-out infinite reverse;
}

.shape-square-1 {
  width: 100px;
  height: 100px;
  background: white;
  top: 15%;
  left: 8%;
  animation: rotate-slow 25s linear infinite;
}

.shape-square-2 {
  width: 60px;
  height: 60px;
  border: 2px solid white;
  bottom: 25%;
  right: 15%;
  animation: rotate-slow 20s linear infinite reverse;
}

.shape-triangle-1 {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 100px solid white;
  top: 60%;
  left: 3%;
  animation: float-medium 12s ease-in-out infinite;
}

.shape-diamond-1 {
  width: 80px;
  height: 80px;
  background: white;
  top: 30%;
  right: 5%;
  transform: rotate(45deg);
  animation: rotate-slow 30s linear infinite;
}

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

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

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

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

.reveal[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
}

.reveal[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal[data-reveal] .service-card:nth-child(1) { transition-delay: 0.1s; }
.reveal[data-reveal] .service-card:nth-child(2) { transition-delay: 0.2s; }
.reveal[data-reveal] .service-card:nth-child(3) { transition-delay: 0.3s; }
.reveal[data-reveal] .feature-card:nth-child(1) { transition-delay: 0.1s; }
.reveal[data-reveal] .feature-card:nth-child(2) { transition-delay: 0.2s; }
.reveal[data-reveal] .feature-card:nth-child(3) { transition-delay: 0.3s; }
.reveal[data-reveal] .feature-card:nth-child(4) { transition-delay: 0.4s; }

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile menu */
#mobileMenu {
  animation: slideDown 0.3s ease;
}

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

/* Service cards hover */
.service-card {
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

/* Feature cards hover */
.feature-card {
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .geo-shape {
    animation: none;
  }
  
  .reveal {
    opacity: 1;
    transform: none;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #14b8a6;
  outline-offset: 2px;
}

/* Form select arrow */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}
