/* Custom styles for Ms. J. Renia Beauty Salon */

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

/* Geometric shapes for hero */
.hero-geo {
  position: absolute;
  pointer-events: none;
}

.shape-circle-1 {
  width: 400px;
  height: 400px;
  border: 2px solid rgba(45, 212, 191, 0.15);
  border-radius: 50%;
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
  width: 200px;
  height: 200px;
  background: rgba(45, 212, 191, 0.08);
  border-radius: 50%;
  bottom: 10%;
  left: 5%;
  animation: float 6s ease-in-out infinite reverse;
}

.shape-circle-3 {
  width: 120px;
  height: 120px;
  border: 2px solid rgba(45, 212, 191, 0.2);
  border-radius: 50%;
  top: 40%;
  right: 15%;
  animation: float 7s ease-in-out infinite;
}

.shape-triangle {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid rgba(45, 212, 191, 0.1);
  top: 20%;
  left: 8%;
  animation: spin 20s linear infinite;
}

.shape-square {
  width: 80px;
  height: 80px;
  border: 2px solid rgba(45, 212, 191, 0.15);
  border-radius: 12px;
  bottom: 20%;
  right: 8%;
  transform: rotate(45deg);
  animation: float 5s ease-in-out infinite;
}

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

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

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

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.2), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

/* Gallery items */
.gallery-item {
  position: relative;
  cursor: pointer;
}

/* Testimonial cards */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Navbar scroll effect */
nav.scrolled {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile menu */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.mobile-link:hover {
  color: #2dd4bf;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-geo {
    animation: none;
  }

  .gallery-item img {
    transition: 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;
  border-radius: 0.25rem;
}

/* Selection */
::selection {
  background: rgba(45, 212, 191, 0.3);
  color: #0f172a;
}

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

::-webkit-scrollbar-track {
  background: #0f172a;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #2dd4bf;
}
