/* ===== Knotswagon Care — Custom Styles ===== */

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

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2d7a3a, #1a6b2c);
  border-radius: 9999px;
}

/* ===== Glass Card ===== */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(45, 122, 58, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(45, 122, 58, 0.1);
}

/* ===== Hero Overlay ===== */
.hero-overlay {
  background: linear-gradient(135deg,
      rgba(15, 23, 42, 0.92) 0%,
      rgba(15, 23, 42, 0.7) 50%,
      rgba(15, 23, 42, 0.5) 100%);
}

/* ===== Gradient Text ===== */
.gradient-text {
  background: linear-gradient(135deg, #2d7a3a 0%, #4CAF50 50%, #2d7a3a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Button Glow ===== */
.btn-glow {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #2d7a3a, #1a6b2c, #2d7a3a);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: blur(8px);
}

.btn-glow:hover::before {
  opacity: 1;
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(45, 122, 58, 0.35);
}

/* ===== Scroll Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger-children>* {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-children.active>*:nth-child(1) {
  transition-delay: 0.1s;
}

.stagger-children.active>*:nth-child(2) {
  transition-delay: 0.2s;
}

.stagger-children.active>*:nth-child(3) {
  transition-delay: 0.3s;
}

.stagger-children.active>*:nth-child(4) {
  transition-delay: 0.4s;
}

.stagger-children.active>*:nth-child(5) {
  transition-delay: 0.5s;
}

.stagger-children.active>*:nth-child(6) {
  transition-delay: 0.6s;
}

.stagger-children.active>* {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Nav styling ===== */
.nav-scrolled {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Nav link hover underline */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2d7a3a, #4CAF50);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

/* ===== Service icon container ===== */
.service-icon {
  background: linear-gradient(135deg, rgba(45, 122, 58, 0.15), rgba(45, 122, 58, 0.05));
  border: 1px solid rgba(45, 122, 58, 0.2);
  transition: all 0.3s ease;
}

.glass-card:hover .service-icon {
  background: linear-gradient(135deg, rgba(45, 122, 58, 0.25), rgba(45, 122, 58, 0.1));
  border-color: rgba(45, 122, 58, 0.4);
  transform: scale(1.1);
}

/* ===== Stats counter ===== */
.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #2d7a3a, transparent);
}

/* ===== Testimonial card ===== */
.testimonial-card {
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 6rem;
  line-height: 1;
  color: rgba(45, 122, 58, 0.12);
  font-family: Georgia, serif;
  pointer-events: none;
}

/* ===== Floating particles ===== */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(45, 122, 58, 0.3);
  border-radius: 50%;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

/* ===== Simple Float Animation ===== */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

.animate-float {
  animation: float 5s ease-in-out infinite;
}

/* ===== Pulse ring ===== */
@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }

  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.pulse-ring {
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ===== Mobile menu ===== */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

/* ===== About image styling ===== */
.about-image-wrapper {
  position: relative;
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: linear-gradient(135deg, #2d7a3a, transparent, #2d7a3a);
  border-radius: 1rem;
  z-index: -1;
  opacity: 0.5;
}

/* ===== CTA Section ===== */
.cta-bg {
  background: linear-gradient(135deg, rgba(45, 122, 58, 0.1) 0%, rgba(15, 23, 42, 1) 50%, rgba(45, 122, 58, 0.05) 100%);
}

/* ===== Footer links ===== */
.footer-link {
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-link:hover {
  color: #2d7a3a;
  padding-left: 4px;
}