/* ==================== GYAN SETU PREMIUM DESIGN SYSTEM ==================== */
/* Colors, gradients, shadows, animations, and typography hierarchy */

:root {
  --gs-navy: #1E3A8A;
  --gs-navy-light: #2D5AAE;
  --gs-sky: #0EA5E9;
  --gs-green: #16A34A;
  --gs-green-light: #22C55E;
  --gs-yellow: #EAB308;
  --gs-ink: #0F172A;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
}

h1, h2, h3, h4, h5, h6, .font-poppins {
  font-family: 'Sora', 'Segoe UI', sans-serif;
  letter-spacing: -0.02em;
}

/* PREMIUM AMBIENT BACKGROUND */
.site-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  transition: all 0.5s ease-in-out;
}

.site-background::before {
  content: '';
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(circle at 18% 18%, rgba(14, 165, 233, 0.10), transparent 30%),
    radial-gradient(circle at 78% 16%, rgba(22, 163, 74, 0.09), transparent 26%),
    radial-gradient(circle at 52% 78%, rgba(234, 179, 8, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(248, 250, 252, 0.96));
  filter: blur(10px);
  transform-origin: center;
}

.bubble-shell {
  position: absolute;
  display: block;
  will-change: transform;
}

.bubble {
  display: block;
  position: relative;
  border-radius: 9999px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.12) 35%, rgba(14, 165, 233, 0.10) 68%, rgba(22, 163, 74, 0.08));
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: bubble-drift 18s ease-in-out infinite alternate, bubble-glow 12s ease-in-out infinite;
  will-change: transform, opacity, filter;
}

.bubble::after {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: inherit;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.6), transparent 55%);
}

.bubble-shell-one {
  top: 8%;
  left: -6%;
}

.bubble-shell-two {
  top: 14%;
  right: 4%;
}

.bubble-shell-three {
  bottom: 12%;
  left: 8%;
}

.bubble-shell-four {
  bottom: 8%;
  right: 14%;
}

.bubble-shell-five {
  top: 42%;
  left: 46%;
}

.bubble-one {
  width: 24rem;
  height: 24rem;
  opacity: 0.40;
}

.bubble-two {
  width: 18rem;
  height: 18rem;
  opacity: 0.30;
}

.bubble-three {
  width: 16rem;
  height: 16rem;
  opacity: 0.26;
}

.bubble-four {
  width: 22rem;
  height: 22rem;
  opacity: 0.28;
}

.bubble-five {
  width: 14rem;
  height: 14rem;
  opacity: 0.22;
}

@keyframes bubble-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -22px, 0) scale(1.03);
  }
  100% {
    transform: translate3d(-10px, 16px, 0) scale(0.98);
  }
}

@keyframes bubble-glow {
  0%, 100% {
    filter: saturate(1) blur(0px);
  }
  50% {
    filter: saturate(1.18) blur(0.5px);
  }
}

/* PREMIUM GRADIENTS */
.gradient-hero { background: linear-gradient(135deg, #1E3A8A 0%, #0EA5E9 100%); }
.gradient-green { background: linear-gradient(135deg, #16A34A 0%, #22C55E 100%); }
.gradient-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(30, 58, 138, 0.8), rgba(14, 165, 233, 0.6)); }

/* ANIMATIONS */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  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 scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
  50% { box-shadow: 0 0 0 10px rgba(22, 163, 74, 0); }
}

.animate-fade-in-up { animation: fadeInUp 0.8s ease-out; }
.animate-slide-in-left { animation: slideInLeft 0.8s ease-out; }
.animate-slide-in-right { animation: slideInRight 0.8s ease-out; }
.animate-scale-in { animation: scaleIn 0.6s ease-out; }
.animate-pulse-glow { animation: pulse-glow 2s infinite; }

/* REVEAL ON SCROLL */
.reveal,
.reveal-auto {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.in-view,
.reveal-auto.in-view { opacity: 1; transform: translateY(0); }

.reveal-auto {
  will-change: transform, opacity;
}

.hero-section,
main > section,
main > div,
.card-premium,
.shadow-premium {
  position: relative;
}

/* SHADOW EFFECTS */
.shadow-premium {
  box-shadow: var(--shadow-xl);
  transition: box-shadow 0.3s ease;
}
.shadow-premium:hover { box-shadow: var(--shadow-2xl); }

/* PREMIUM CARDS */
.card-premium {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 12px;
}
.card-premium:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(22, 163, 74, 0.2);
}

/* BUTTONS */
.btn-primary {
  background: var(--gs-green);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--gs-green-light);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gs-green);
  color: var(--gs-green);
  border-radius: 8px;
  padding: 10px 22px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background: var(--gs-green);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* FORM INPUTS */
input, textarea, select {
  border: 2px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  font-family: inherit !important;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--gs-green) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1) !important;
  background: rgba(22, 163, 74, 0.02) !important;
}

/* HERO */
.hero-section {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  isolation: isolate;
}

.hero-section > .hero-content,
.hero-section > .relative.z-10 {
  z-index: 2;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.45);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: none;
  transform-style: flat;
  animation: none;
}

.home-hero-panel {
  background:
    linear-gradient(135deg, rgba(23, 80, 26, 0.28) 0%, rgba(23, 80, 26, 0.18) 55%, rgba(255, 255, 255, 0.12) 100%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.06));
  background-size: 220% 220%;
  animation: home-hero-shift 16s ease-in-out infinite;
}

.home-hero-panel::before {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 38%),
    radial-gradient(circle at 80% 30%, rgba(23, 80, 26, 0.16), transparent 35%),
    radial-gradient(circle at 50% 80%, rgba(14, 165, 233, 0.10), transparent 32%);
  opacity: 1;
}

.hero-section > .hero-content::before,
.hero-section > .relative.z-10::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.04);
  opacity: 1;
  pointer-events: none;
  z-index: -2;
}

.hero-section > .hero-content::after,
.hero-section > .relative.z-10::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  z-index: -1;
}

.hero-section > .hero-content > *,
.hero-section > .relative.z-10 > * {
  position: relative;
  z-index: 1;
}

main .hero-section img,
main .card-premium img,
main img.object-cover {
  transform-origin: center center;
  transition: transform 0.28s ease-out;
  will-change: transform;
}

.hero-section > .hero-content:hover,
.hero-section > .relative.z-10:hover {
  transform: translateY(-2px);
}

.hero-image { background-position: center; background-size: cover; background-attachment: fixed; }
.hero-content { position: relative; z-index: 10; }

@keyframes home-hero-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* HEADER */
header {
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}
header.scrolled { box-shadow: var(--shadow-lg); }
