/* ============================================
   Long Island Vision Management — Custom Styles
   ============================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

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

.shape-circle-1 {
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.06) 0%, transparent 70%);
  top: -100px;
  right: -150px;
}

.shape-circle-2 {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 104, 176, 0.08) 0%, transparent 70%);
  bottom: 10%;
  left: -100px;
}

.shape-rect-1 {
  width: 120px;
  height: 120px;
  border: 2px solid rgba(245, 166, 35, 0.12);
  border-radius: 24px;
  top: 25%;
  right: 5%;
  transform: rotate(15deg);
}

.shape-triangle-1 {
  width: 0;
  height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 86px solid rgba(192, 104, 176, 0.08);
  bottom: 20%;
  right: 15%;
  transform: rotate(-20deg);
}

.shape-dots {
  background-image: radial-gradient(rgba(245, 166, 35, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
  width: 200px;
  height: 200px;
  top: 40%;
  left: 3%;
  opacity: 0.6;
}

/* ─── Floating Cards ─── */
.floating-card {
  animation: float 4s ease-in-out infinite;
}

.card-1 {
  animation-delay: 0s;
}

.card-2 {
  animation-delay: 1.3s;
}

.card-3 {
  animation-delay: 2.6s;
}

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

/* ─── Service Cards ─── */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #F5A623, #C068B0);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover::before {
  opacity: 1;
}

/* ─── Reason Cards ─── */
.reason-card {
  position: relative;
}

/* ─── Testimonial Cards ─── */
.testimonial-card {
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 166, 35, 0.2);
}

/* ─── Navbar Scroll State ─── */
.nav-scrolled {
  background: rgba(26, 11, 24, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(107, 45, 91, 0.3);
}

/* ─── Scroll Reveal (progressive enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

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

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ─── Back to Top ─── */
#backToTop {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#backToTop.visible {
  opacity: 1;
  pointer-events: all;
}

/* ─── Form Select Arrow ─── */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline x1='6' y1='9' x2='12' y2='15' x3='18' y2='9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ─── Mobile Menu Transitions ─── */
#mobileMenu {
  max-height: 0;
}

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

/* ─── Responsive Adjustments ─── */
@media (max-width: 768px) {
  .floating-card {
    display: none;
  }

  .shape-circle-1,
  .shape-circle-2,
  .shape-rect-1,
  .shape-triangle-1,
  .shape-dots {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .floating-card {
    display: none;
  }
}
