/* ===== Custom Styles for Shear Designs By Farante ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #8a1c2d, #C9A87C);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #a82539, #d49a1f);
}

/* Selection color */
::selection {
  background: rgba(196, 50, 74, 0.4);
  color: #fff;
}

/* ===== Animations ===== */

/* Hero entrance animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50% { opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

/* Hero elements */
.hero-badge {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

#hero h1 {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.5s;
}

#hero p {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.8s;
}

#hero > div:last-child > div {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 1.0s;
}

.scroll-indicator {
  animation: fadeIn 1s ease forwards 1.5s;
  opacity: 0;
}

.scroll-line {
  animation: scrollLine 2s ease-in-out infinite;
}

/* ===== Section Labels ===== */
.section-label {
  position: relative;
  display: inline-block;
}
.section-label::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, #C9A87C, transparent);
}
.section-label::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 40px;
  width: 20px;
  height: 1px;
  background: linear-gradient(to right, rgba(201,168,124,0.5), transparent);
}

/* ===== Service Cards ===== */
.service-card {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
}
.service-card:hover {
  transform: translateY(-6px);
}

/* ===== Gallery Items ===== */
.gallery-item {
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-item:hover {
  transform: scale(1.02);
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Navbar ===== */
.nav-scrolled {
  background: rgba(10, 10, 10, 0.92) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 124, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== Mobile Menu ===== */
.mobile-menu-open #mobileMenu {
  opacity: 1 !important;
  pointer-events: all !important;
}
.mobile-menu-open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.mobile-menu-open .menu-line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-open .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 20px;
}

.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.mobile-menu-open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ===== Select styling ===== */
select option {
  background: #1a1a1a;
  color: #fff;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 640px) {
  .section-label::before {
    width: 30px;
  }
  .section-label::after {
    display: none;
  }
}

/* ===== Gold shimmer animation ===== */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.gold-shimmer {
  background: linear-gradient(90deg, #C9A87C 0%, #F5D78E 25%, #C9A87C 50%, #F5D78E 75%, #C9A87C 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

/* ===== Floating animation ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

/* ===== Pulse ring ===== */
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(201, 168, 124, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(201, 168, 124, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 168, 124, 0); }
}

.pulse-ring {
  animation: pulseRing 2s ease-out infinite;
}
