/* Custom styles and animations for GPSS Landing Page */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --primary-green: #10B981;
  --dark-green: #059669;
  --primary-blue: #2563EB;
  --deep-blue: #0F4C81;
  --navy-dark: #0A192F;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #1E293B;
  background-color: #F8FAFC;
  overflow-x: hidden;
}

h1, h2, h3, .font-heading {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #10B981, #06B6D4, #2563EB);
  z-index: 100;
  width: 0%;
  transition: width 0.1s ease-out;
}

/* Glassmorphism */
.glass-nav {
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.glass-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgba(16, 185, 129, 0.18), 0 10px 20px -5px rgba(37, 99, 235, 0.12);
  border-color: rgba(16, 185, 129, 0.45);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.35s ease;
}

.glass-dark:hover {
  border-color: rgba(16, 185, 129, 0.5);
  transform: translateY(-4px);
}

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, #059669 0%, #10B981 35%, #2563EB 75%, #0F4C81 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-green {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Shimmer Button Effect */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}
.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 70%
  );
  transform: rotate(30deg);
  animation: shimmer 4s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% { transform: translate(-100%, -100%) rotate(30deg); }
  20%, 100% { transform: translate(100%, 100%) rotate(30deg); }
}

/* Animations */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
  }
  50% {
    box-shadow: 0 0 28px rgba(16, 185, 129, 0.8);
  }
}

.pulse-badge {
  animation: pulseGlow 2.5s infinite;
}

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

.floating-elem {
  animation: float 4s ease-in-out infinite;
}

/* Scroll Reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Back to Top Floating Button */
#btn-back-to-top {
  position: fixed;
  bottom: 84px;
  right: 20px;
  z-index: 45;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (min-width: 768px) {
  #btn-back-to-top {
    bottom: 28px;
    right: 28px;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Modal animation */
.modal-overlay {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.modal-overlay:not(.hidden) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Range sliders */
input[type=range] {
  accent-color: #10B981;
}

/* Tab active states */
.station-tab-btn.active {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 10px 18px -3px rgba(16, 185, 129, 0.35);
  border-color: transparent;
}

.station-tab-btn:not(.active) {
  background: #f8fafc;
  color: #475569;
}
.station-tab-btn:not(.active):hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Tab Content Fade In Animation */
.tab-fade-in {
  animation: tabFadeIn 0.35s ease-out forwards;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Sticky Bottom Bar */
.mobile-bottom-bar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}
