/* ===============================
   BACKGROUND ORBS
================================ */

.page-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: floatOrb 25s ease-in-out infinite;
}

.bg-orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(57,255,138,0.06), transparent 70%);
  top: 10%;
  left: 5%;
}

.bg-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(57,255,138,0.04), transparent 70%);
  top: 50%;
  right: 10%;
  animation-delay: 8s;
}

.bg-orb-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(255,255,255,0.025), transparent 70%);
  bottom: 15%;
  left: 50%;
  animation-delay: 16s;
}

@keyframes floatOrb {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(40px,-40px) scale(1.05); }
  66% { transform: translate(-40px,40px) scale(0.95); }
}

/* ===============================
   BASE CARD + AUTOGLOW
================================ */

.card-3d,
.auto-glow {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  animation: autoGlow 8s ease-in-out infinite;
}

@keyframes autoGlow {
  0%,100% {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
  50% {
    box-shadow:
      0 0 1px rgba(57,255,138,0.01),
      0 4px 12px rgba(0,0,0,0.16);
    border-color: rgba(57,255,138,0.02);
  }
}

.card-3d:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(57,255,138,0.25);
  box-shadow: 0 0 5px rgba(57,255,138,0.08), 0 8px 20px rgba(0,0,0,0.3);
}

/* ===============================
   STAGGER + SCROLL ANIMATION
================================ */

.stagger-item {
  animation:
    staggerFadeIn 0.9s ease forwards,
    autoGlow 8s ease-in-out infinite;
}

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

.stagger-item:nth-child(1) { animation-delay: 0.1s, 0s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s, 0s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s, 0s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s, 0s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s, 0s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s, 0s; }

/* ===============================
   SPECIAL ANIMATIONS
================================ */

.idle-float {
  animation: idleFloat 4s ease-in-out infinite;
}

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

/* ===============================
   ICONS
================================ */

.icon-svg {
  width: 48px;
  height: 48px;
  stroke: var(--accent-green);
  fill: none;
  stroke-width: 2;
  transition: all 0.3s ease;
}

.card-3d:hover .icon-svg {
  transform: scale(1.08);
  filter: drop-shadow(0 0 16px rgba(57,255,138,0.5));
}

/* ===============================
   VISIBILITY SAFETY
================================ */

.force-visible,
.force-visible * {
  opacity: 1;
  visibility: visible;
  display: block;
}

/* ===============================
   SECTIONS USING AUTOGLOW
================================ */

#gallery .card-3d,
#our-story .card-3d,
#why-choose .card-3d,
#collaboration .card-3d,
#events-timeline > div > div.card-3d {
  animation: autoGlow 8s ease-in-out infinite;
}

/* Timeline items must NOT glow */
.timeline-event {
  animation: none;
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 768px) {
  .bg-orb { filter: blur(60px); }
  .bg-orb-1,
  .bg-orb-2,
  .bg-orb-3 {
    width: 250px;
    height: 250px;
  }
}

/* Added countdown box styling with hover effect */
.countdown-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(57, 255, 138, 0.2);
  border-radius: 12px;
  padding: 1.2rem 1.8rem;
  min-width: 100px;
  transition: all 0.4s ease;
  animation: autoGlow 6s ease-in-out infinite;
}

/* Reduced countdown hover glow */
.countdown-box:hover {
  border-color: rgba(57, 255, 138, 0.5);
  box-shadow: 0 0 8px rgba(57, 255, 138, 0.1);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-5px);
}

/* Stay Updated - Newsletter input and button */
#stay-updated input,
#stay-updated button,
#stay-updated input[type="email"],
#stay-updated button[type="submit"] {
  animation: autoGlow 8s ease-in-out infinite !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  transition: all 0.4s ease !important;
}

#stay-updated input:hover,
#stay-updated button:hover {
  border-color: rgba(57, 255, 138, 0.3) !important;
  box-shadow: 0 0 25px rgba(57, 255, 138, 0.2) !important;
}


.footer-social {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  animation: autoGlow 8s ease-in-out infinite !important;
}

/* Reduced footer social hover glow */
.footer-social a:hover {
  background: rgba(57, 255, 138, 0.1);
  border-color: #39ff8a;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(57, 255, 138, 0.15);
}

/* Added automatic hover animation to footer social icons */
.footer-social a,
footer [style*="border-radius: 50%"] {
  animation: autoGlow 8s ease-in-out infinite !important;
}