/* 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;
}

/* Color Scheme Variables */
:root {
  --color-primary: #006633;
  --color-primary-light: #008844;
  --color-primary-dark: #004D26;
  --color-secondary: #D4AF37;
  --color-secondary-light: #E5C754;
  --color-secondary-dark: #B8962E;
}

/* Dark theme overrides */
html.dark-theme body {
  background-color: #0f172a !important; /* Slate 900 */
  color: #f1f5f9 !important; /* Slate 100 */
}

html.dark-theme .bg-white {
  background-color: #1e293b !important; /* Slate 800 */
}

html.dark-theme .bg-gse-offwhite {
  background-color: #0f172a !important; /* Slate 900 */
}

html.dark-theme .bg-gse-cream {
  background-color: #1e293b !important; /* Slate 800 */
}

html.dark-theme .text-gse-charcoal {
  color: #f1f5f9 !important; /* Slate 100 */
}

html.dark-theme .text-gse-gray {
  color: #94a3b8 !important; /* Slate 400 */
}

html.dark-theme .border-gse-border {
  border-color: #334155 !important; /* Slate 700 */
}

html.dark-theme .border-gse-border\/50 {
  border-color: rgba(51, 65, 85, 0.5) !important;
}

/* Navigation Solid Header in Dark Theme */
html.dark-theme .nav-solid {
  background-color: rgba(15, 23, 42, 0.95) !important;
  border-bottom: 1px solid #334155 !important;
}

html.dark-theme .nav-solid .nav-link {
  color: #f1f5f9 !important;
}

html.dark-theme .nav-solid .nav-link:hover {
  color: var(--color-secondary, #D4AF37) !important;
}

html.dark-theme .nav-solid .header-title {
  color: #ffffff !important;
}

html.dark-theme .nav-solid .header-subtitle {
  color: #94a3b8 !important;
}

/* Mobile Menu in Dark Theme */
html.dark-theme #mobile-menu {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

html.dark-theme #mobile-menu a {
  color: #f1f5f9 !important;
}

html.dark-theme #mobile-menu a:hover {
  background-color: #334155 !important;
}

html.dark-theme #mobile-menu .bg-gse-offwhite {
  background-color: #0f172a !important;
  border-color: #334155 !important;
}

/* Form Controls in Dark Theme */
html.dark-theme input,
html.dark-theme textarea,
html.dark-theme select {
  background-color: #0f172a !important;
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}

html.dark-theme input:focus,
html.dark-theme textarea:focus,
html.dark-theme select:focus {
  border-color: var(--color-primary, #006633) !important;
  box-shadow: 0 0 0 2px rgba(0, 102, 51, 0.2) !important;
}

/* Green overlay/highlights inside Dark Theme */
html.dark-theme .bg-gse-green\/10 {
  background-color: rgba(0, 102, 51, 0.25) !important;
}

html.dark-theme .text-gse-green {
  color: var(--color-primary-light, #008844) !important;
}

/* Custom Scrollbars in Dark Theme */
html.dark-theme ::-webkit-scrollbar-track {
  background: #0f172a;
}

html.dark-theme ::-webkit-scrollbar-thumb {
  background: var(--color-primary, #006633);
}

html.dark-theme ::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-dark, #004D26);
}

/* Card hover shadow adjustments in dark theme */
html.dark-theme .card-hover-lift:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
}

/* Complete Google Translate bar and frame removal */
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
.goog-te-banner,
.skiptranslate,
iframe.skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

html {
  top: 0 !important;
}

body {
  top: 0 !important;
  position: static !important;
}

.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

/* Style for language dropdown active items */
.lang-active {
  font-weight: 600;
  color: var(--color-secondary, #D4AF37) !important;
}

/* Hero background floating particles drifting keyframes */
@keyframes driftSlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -50px) scale(1.1); }
}

@keyframes driftSlower {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-45px, 45px) scale(0.95); }
}

@keyframes pulseSlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 0.6; }
}

.animate-drift-slow {
  animation: driftSlow 15s ease-in-out infinite;
}

.animate-drift-slower {
  animation: driftSlower 20s ease-in-out infinite;
}

.animate-pulse-slow {
  animation: pulseSlow 8s ease-in-out infinite;
}

