/* ===== Custom Styles for Imagenes Cosmetic Center ===== */

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1a1412;
}
::-webkit-scrollbar-thumb {
  background: #c4704b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a85a3a;
}

/* Selection */
::selection {
  background: rgba(196, 112, 75, 0.3);
  color: #f5f0eb;
}

/* ===== Navbar ===== */
#navbar {
  transition: background-color 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
  background-color: rgba(26, 20, 18, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(212, 184, 150, 0.1);
}

/* ===== Hero Scroll Animation ===== */
@keyframes scrollDot {
  0% { top: 0; opacity: 1; }
  50% { opacity: 0.5; }
  100% { top: 32px; opacity: 1; }
}

.animate-scroll {
  animation: scrollDot 1.5s ease-in-out infinite;
}

/* ===== Service Cards ===== */
.service-card {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 0;
  border: 1px solid transparent;
  transition: border-color 0.5s ease;
  pointer-events: none;
}

.service-card:hover::after {
  border-color: rgba(196, 112, 75, 0.3);
}

/* ===== Gallery ===== */
.gallery-item {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

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

/* ===== Mobile Menu ===== */
.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ===== Menu Button Animation ===== */
.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

#menuBtn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(3px, -3px);
  width: 1.5rem;
}

/* ===== Fade In Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Form Focus Styles ===== */
input:focus,
textarea:focus,
select:focus {
  border-color: #c4704b !important;
  box-shadow: 0 0 0 3px rgba(196, 112, 75, 0.15);
}

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

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .service-card {
    border-radius: 0 !important;
  }

  .testimonial-card {
    border-radius: 0 !important;
  }
}

/* ===== Loading State ===== */
button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ===== Custom Select Dropdown ===== */
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='%238a7e76' 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 1rem center;
  padding-right: 2.5rem;
}
