/* ========================================
   Longboat Key Locksmith Shop
   Custom Styles
======================================== */

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

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

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

.shape-circle-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  top: -100px;
  right: -100px;
  animation: float-slow 8s ease-in-out infinite;
}

.shape-circle-2 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  bottom: 20%;
  left: 5%;
  animation: float-slow 6s ease-in-out infinite reverse;
}

.shape-square-1 {
  width: 120px;
  height: 120px;
  border: 2px solid rgba(20, 184, 166, 0.2);
  top: 25%;
  right: 15%;
  transform: rotate(45deg);
  animation: spin-slow 20s linear infinite;
}

.shape-square-2 {
  width: 80px;
  height: 80px;
  border: 2px solid rgba(148, 163, 184, 0.2);
  bottom: 30%;
  left: 10%;
  transform: rotate(30deg);
  animation: spin-slow 15s linear infinite reverse;
}

.shape-triangle {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid rgba(20, 184, 166, 0.08);
  top: 40%;
  right: 5%;
  animation: float-slow 7s ease-in-out infinite;
}

.shape-dots {
  width: 100px;
  height: 100px;
  background-image: radial-gradient(circle, rgba(20, 184, 166, 0.3) 1px, transparent 1px);
  background-size: 12px 12px;
  top: 15%;
  left: 45%;
  animation: float-slow 5s ease-in-out infinite reverse;
}

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

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

/* ========================================
   Scroll Reveal Animations
   Progressive enhancement: content is
   visible by default, JS adds the animation
======================================== */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }

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

  .service-card {
    opacity: 0;
    transform: translateY(20px);
  }

  .service-card.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  }
}

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

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

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

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

/* ========================================
   Navigation Scroll State
======================================== */
nav.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ========================================
   Form Focus Styles
======================================== */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* ========================================
   Responsive Adjustments
======================================== */
@media (max-width: 767px) {
  .geometric-shape {
    display: none;
  }

  #hero {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 60px;
  }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* ========================================
   Selection Color
======================================== */
::selection {
  background: #99f6e4;
  color: #042f2e;
}
