/* Custom Styles & Animation Enhancements */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.animate-float {
  animation: float 3.333s ease-in-out infinite;
}

#three-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Page background: luminous clinical blue with bright core */
.hero-bg {
  background:
    radial-gradient(ellipse 60% 55% at 62% 38%, #ffffff 0%, rgba(255, 255, 255, 0.85) 30%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(ellipse 50% 60% at 0% 60%, rgba(120, 175, 245, 0.45) 0%, rgba(120, 175, 245, 0) 70%),
    radial-gradient(ellipse 45% 70% at 100% 30%, rgba(90, 150, 240, 0.55) 0%, rgba(90, 150, 240, 0) 70%),
    linear-gradient(180deg, #eaf3fe 0%, #dcebfd 60%, #cfe2fb 100%);
  background-attachment: fixed;
}

#site-header.scrolled {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(11, 42, 122, 0.08);
}

/* Nav */
.nav-link {
  position: relative;
  padding: 0.5rem 0.4rem;
  transition: color 0.2s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 3px;
  border-radius: 3px;
  background: #f5a90a;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav-link:hover { color: #1e63d6; }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

/* Headline gold */
.gold-text {
  background: linear-gradient(180deg, #ffc93c 0%, #f5a90a 55%, #e08e00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn-gold,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.8rem;
  border-radius: 9999px;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #0b2a7a;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-gold {
  background: linear-gradient(180deg, #ffd04d 0%, #f5a90a 100%);
  box-shadow: 0 10px 24px rgba(245, 169, 10, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(245, 169, 10, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.75);
  border: 2px solid #0b2a7a;
}
.btn-outline:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 10px 24px rgba(11, 42, 122, 0.15);
}

/* Pillars */
.pillar {
  text-align: center;
  cursor: pointer;
}
.pillar-icon {
  width: 5.25rem;
  height: 5.25rem;
  margin: 0 auto 0.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  color: #0b2a7a;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #e4effd 55%, #cfe1fa 100%);
  box-shadow: 0 8px 20px rgba(30, 99, 214, 0.15), inset 0 -4px 10px rgba(30, 99, 214, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pillar:hover .pillar-icon {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 26px rgba(30, 99, 214, 0.25), inset 0 -4px 10px rgba(30, 99, 214, 0.08);
}
.pillar p {
  font-size: 0.95rem;
  line-height: 1.2;
  color: #0b2a7a;
}

/* Hero: compact sizing so text, molecule and doctors fit side by side */
.hero-actions .btn-gold,
.hero-actions .btn-outline {
  /* 30% smaller than the previous hero button size */
  padding: 0.525rem 0.945rem;
  font-size: 0.644rem;
  gap: 0.42rem;
}
.hero-actions .text-xl {
  font-size: 0.875rem;
  line-height: 1;
}
.hero-actions .text-sm {
  font-size: 0.6125rem;
}
.hero-pillars .pillar-icon {
  width: 4rem;
  height: 4rem;
  font-size: 1.6rem;
}
.hero-pillars .pillar p {
  font-size: 0.8rem;
}

/* Hero doctors: enlarged another 20% and shifted right by 15% of the column */
@media (min-width: 1024px) {
  .hero-doctors {
    width: 590.8032%;
    max-width: none;
    /* Center the enlarged image, then offset it right by 15% of its parent column */
    margin-left: -230.4016%;
  }
}

/* Bottom blue band */
.band {
  margin-top: 70px;
  background: linear-gradient(180deg, #1a5fd8 0%, #1146b8 45%, #0a2f8f 100%);
}

/* Feature cards */
.card {
  position: relative;
  overflow: hidden;
  min-height: 160px;
  border-radius: 14px;
  padding: 1.6rem 1.4rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 10px 28px rgba(5, 25, 90, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(5, 25, 90, 0.45);
}
.card-img {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 52%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}
.card:hover .card-img { transform: scale(1.06); }
.card-shade {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 70%;
  pointer-events: none;
}
.card h3 {
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.2rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.card p {
  margin-top: 0.45rem;
  font-size: 0.95rem;
}
.card-blue { background: #0d3aa8; color: #fff; }
.card-gold { background: #ffc73a; color: #0b2a7a; }
.card-light { background: #eef4fd; color: #0b2a7a; }

.card-arrow {
  position: relative;
  z-index: 10;
  margin-top: 1rem;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 9999px;
  background: #fff;
  color: #0b2a7a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  box-shadow: 0 4px 10px rgba(5, 25, 90, 0.25);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.card:hover .card-arrow { transform: translateX(3px); }
.card-blue:hover .card-arrow,
.card-light:hover .card-arrow { background: #f5a90a; color: #fff; }
.card-gold:hover .card-arrow { background: #0b2a7a; color: #fff; }

.vial-hit {
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.2s;
}
.vial-hit:hover { background: rgba(30, 99, 214, 0.08); }

@media (max-width: 640px) {
  .pillar-icon { width: 4.25rem; height: 4.25rem; font-size: 1.7rem; }
}
