/* KTVC Custom Styling & Theme Variables */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #0b4f30;       /* Premium Forest/Emerald Green */
  --primary-light: #126b43;
  --primary-dark: #073520;
  --secondary: #d4a373;     /* Warm Gold / Ochre Accent */
  --secondary-light: #e6ccb2;
  --secondary-dark: #b5835a;
  --dark: #1b1e1c;          /* Off-black for premium text/backgrounds */
  --light: #f8f9fa;         /* Crisp near-white */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Base Adjustments */
html {
  font-family: var(--font-body);
  scroll-behavior: smooth;
  color: #333333;
}

body {
  background-color: var(--light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* Utility Styles & Custom Animations */
.text-primary-theme { color: var(--primary); }
.bg-primary-theme { background-color: var(--primary); }
.text-secondary-theme { color: var(--secondary); }
.bg-secondary-theme { background-color: var(--secondary); }
.border-primary-theme { border-color: var(--primary); }
.border-secondary-theme { border-color: var(--secondary); }

/* Glassmorphism Card Effect */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px 0 rgba(11, 79, 48, 0.05);
}

.glass-card-dark {
  background: rgba(27, 30, 28, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Custom Keyframe Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(212, 163, 115, 0.4);
  }
  50% {
    box-shadow: 0 0 25px rgba(212, 163, 115, 0.8);
  }
}

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

/* Animation Classes (Controlled by JS Intersection Observer) */
.animate-on-scroll {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-fade-in-up {
  transform: translateY(30px);
}

.animate-slide-left {
  transform: translateX(-40px);
}

.animate-slide-right {
  transform: translateX(40px);
}

.animate-scale-up {
  transform: scale(0.95);
}

.animated {
  opacity: 1 !important;
  transform: none !important;
}

/* Hover and Interactive Micro-transitions */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px -10px rgba(11, 79, 48, 0.15);
}

.hover-glow:hover {
  animation: pulseGlow 2s infinite;
}

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

/* Mega Menu Custom Transition styling */
.mega-menu-content {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.group:hover .mega-menu-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Custom CSS Carousel Track (Infinite scrolling partners banner) */
.partners-track {
  display: flex;
  width: calc(250px * 12);
  animation: scrollPartners 25s linear infinite;
}

.partners-track:hover {
  animation-play-state: paused;
}

@keyframes scrollPartners {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 6));
  }
}
