/* Custom animations and scroll effects */

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #0D5E3A;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #094028;
}

/* Scroll animation observer classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-on-scroll-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-on-scroll-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered animation delays */
.delay-100 { transition-delay: 100ms; }
.delay-150 { transition-delay: 150ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }
.delay-600 { transition-delay: 600ms; }

/* Pattern overlays */
.pattern-overlay {
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(212, 175, 55, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(212, 175, 55, 0.08) 1px, transparent 1px);
  background-size: 50px 50px;
}

.geometric-pattern {
  background-image: 
    linear-gradient(30deg, rgba(212, 175, 55, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(212, 175, 55, 0.05) 87.5%, rgba(212, 175, 55, 0.05)),
    linear-gradient(150deg, rgba(212, 175, 55, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(212, 175, 55, 0.05) 87.5%, rgba(212, 175, 55, 0.05)),
    linear-gradient(30deg, rgba(212, 175, 55, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(212, 175, 55, 0.05) 87.5%, rgba(212, 175, 55, 0.05)),
    linear-gradient(150deg, rgba(212, 175, 55, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(212, 175, 55, 0.05) 87.5%, rgba(212, 175, 55, 0.05)),
    linear-gradient(60deg, rgba(212, 175, 55, 0.08) 25%, transparent 25.5%, transparent 75%, rgba(212, 175, 55, 0.08) 75%, rgba(212, 175, 55, 0.08)),
    linear-gradient(60deg, rgba(212, 175, 55, 0.08) 25%, transparent 25.5%, transparent 75%, rgba(212, 175, 55, 0.08) 75%, rgba(212, 175, 55, 0.08));
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
}

/* Card hover lift */
.card-hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(13, 94, 58, 0.15);
}

/* Image zoom on hover */
.image-hover-zoom {
  overflow: hidden;
}

.image-hover-zoom img {
  transition: transform 0.5s ease;
}

.image-hover-zoom:hover img {
  transform: scale(1.08);
}

/* Accent line under headings */
.gold-accent-line {
  position: relative;
}

.gold-accent-line::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: #D4AF37;
  border-radius: 2px;
}

.gold-accent-line-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Header navigation transition */
.nav-transparent {
  background: transparent;
  box-shadow: none;
}

.nav-solid {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-solid .nav-link {
  color: #232B2B; /* gse-charcoal */
}

.nav-solid .nav-link:hover {
  color: #0D5E3A; /* gse-green */
}

.nav-transparent .nav-link {
  color: white;
}

.nav-transparent .nav-link:hover {
  color: #D4AF37; /* gse-gold */
}

/* Stat counter and Quote styling */
.stat-number {
  display: inline-block;
}

.quote-mark {
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: #D4AF37;
}

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

.animate-bounce-subtle {
  animation: bounceSubtle 2s infinite;
}

@keyframes pulseGold {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.animate-pulse-gold {
  animation: pulseGold 2s ease-in-out infinite;
}
