/* ==========================================================================
   V2 ENHANCEMENTS - Visual Upgrades & Effects
   ========================================================================== */

/* Enhanced Color Palette - Green Theme */
:root {
  /* Green gradient colors matching original site */
  --gradient-primary: linear-gradient(135deg, #8dc63f 0%, #6fa82e 100%);
  --gradient-secondary: linear-gradient(135deg, #a8d96e 0%, #8dc63f 100%);
  --gradient-accent: linear-gradient(135deg, #6fa82e 0%, #5a8a24 100%);
  --gradient-success: linear-gradient(135deg, #8dc63f 0%, #b8e986 100%);
  --gradient-warm: linear-gradient(135deg, #8dc63f 0%, #c8e6a0 100%);
  --gradient-cool: linear-gradient(135deg, #6fa82e 0%, #8dc63f 100%);

  /* Glassmorphism with green tint */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(141, 198, 63, 0.25);
  --glass-shadow: 0 8px 32px 0 rgba(111, 168, 46, 0.25);

  /* Enhanced shadows with green glow */
  --shadow-glow: 0 0 20px rgba(141, 198, 63, 0.4);
  --shadow-glow-hover: 0 0 30px rgba(141, 198, 63, 0.6);
}

/* Animated Gradient Background for Hero Section */
.hero-slider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg,
    rgba(141, 198, 63, 0.2) 0%,
    rgba(111, 168, 46, 0.2) 25%,
    rgba(168, 217, 110, 0.2) 50%,
    rgba(200, 230, 160, 0.2) 75%,
    rgba(141, 198, 63, 0.2) 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Glassmorphism Cards */
.service-card,
.card {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--glass-border) !important;
  box-shadow: var(--glass-shadow) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: #333 !important;
}

.service-card:hover,
.card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: var(--shadow-glow-hover) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(141, 198, 63, 0.5) !important;
}

/* Ensure text readability in cards */
.service-card p,
.service-card h3,
.card p,
.card h2,
.card h3,
.card li {
  color: #333 !important;
}

/* Animated Gradient Text for Headings */
h1, h2, .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientText 5s ease infinite;
}

@keyframes gradientText {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Enhanced Page Header with Gradient */
.page-header {
  background: var(--gradient-primary) !important;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 50%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* Glowing Buttons */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

/* Floating Elements Animation */
.animate-fadeInUp,
.animate-slideInLeft,
.animate-slideInRight {
  animation-duration: 0.8s;
  animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Enhanced Service Grid with Stagger Effect */
.services-grid .service-card:nth-child(1) { animation-delay: 0.1s; }
.services-grid .service-card:nth-child(2) { animation-delay: 0.2s; }
.services-grid .service-card:nth-child(3) { animation-delay: 0.3s; }
.services-grid .service-card:nth-child(4) { animation-delay: 0.4s; }
.services-grid .service-card:nth-child(5) { animation-delay: 0.5s; }
.services-grid .service-card:nth-child(6) { animation-delay: 0.6s; }

/* Gradient Icon Backgrounds */
.service-card i,
.fa-3x {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(141, 198, 63, 0.3));
  transition: all 0.3s ease;
}

.service-card:hover i {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 4px 8px rgba(141, 198, 63, 0.5));
}

/* Colorful Section Backgrounds */
.section:nth-of-type(odd) {
  background: linear-gradient(135deg,
    rgba(141, 198, 63, 0.08) 0%,
    rgba(200, 230, 160, 0.08) 100%);
}

.section:nth-of-type(even) {
  background: linear-gradient(135deg,
    rgba(168, 217, 110, 0.08) 0%,
    rgba(141, 198, 63, 0.08) 100%);
}

/* Enhanced Header with Gradient */
.site-header {
  background: linear-gradient(to bottom,
    rgba(255, 255, 255, 0.98),
    rgba(255, 255, 255, 0.95)) !important;
  backdrop-filter: blur(10px);
}

.header-top {
  background: var(--gradient-primary) !important;
}

/* Parallax Effect for Background Images */
.parallax-section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.parallax-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(141, 198, 63, 0.85),
    rgba(111, 168, 46, 0.85));
}

/* Microinteractions - Pulse Effect on Focus Elements */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.btn-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Enhanced List Items with Colorful Checkmarks */
.list-checkmark li::before {
  background: var(--gradient-success);
  box-shadow: 0 2px 4px rgba(67, 233, 123, 0.3);
}

/* Hover Glow Effect for Links */
a:not(.btn):hover {
  text-shadow: 0 0 8px rgba(141, 198, 63, 0.5);
}

/* Smooth Shimmer Effect */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.shimmer {
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 3s infinite;
}

/* Enhanced Footer */
.site-footer {
  background: linear-gradient(135deg,
    rgba(90, 138, 36, 0.95),
    rgba(111, 168, 46, 0.95)) !important;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%);
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Floating Particles Effect */
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  top: 0;
  left: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(141, 198, 63, 0.5);
  border-radius: 50%;
  animation: floatParticle 15s infinite;
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(100px);
    opacity: 0;
  }
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; }
.particle:nth-child(4) { left: 40%; animation-delay: 6s; }
.particle:nth-child(5) { left: 50%; animation-delay: 8s; }
.particle:nth-child(6) { left: 60%; animation-delay: 10s; }
.particle:nth-child(7) { left: 70%; animation-delay: 12s; }
.particle:nth-child(8) { left: 80%; animation-delay: 14s; }
.particle:nth-child(9) { left: 90%; animation-delay: 16s; }

/* Image Zoom with Colorful Border */
.image-zoom {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.image-zoom::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-lg);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-zoom:hover::before {
  opacity: 1;
}

/* Enhanced Scroll Progress Bar */
#scroll-progress {
  background: var(--gradient-primary) !important;
  box-shadow: var(--shadow-glow);
}

/* Counselor Cards Enhancement */
.card img {
  transition: all 0.5s ease;
  filter: grayscale(20%);
}

.card:hover img {
  filter: grayscale(0%) brightness(1.1);
  transform: scale(1.05);
}

/* CTA Section Enhancement */
.bg-primary {
  background: var(--gradient-primary) !important;
  position: relative;
}

.bg-primary::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.3;
}

/* Neon Glow Text Effect */
.neon-text {
  text-shadow:
    0 0 10px rgba(141, 198, 63, 0.8),
    0 0 20px rgba(141, 198, 63, 0.6),
    0 0 30px rgba(141, 198, 63, 0.4);
}

/* 3D Card Flip Effect for Service Cards (Optional Enhancement) */
.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.card-3d:hover {
  transform: rotateY(5deg) rotateX(5deg);
}

/* Loading Animation */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in-scale {
  animation: fadeInScale 0.6s ease-out;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .service-card,
  .card {
    backdrop-filter: blur(5px);
  }

  h1, h2 {
    animation: none; /* Reduce animations on mobile for performance */
  }
}
