html {
  scroll-behavior: smooth;
}

/* --- Entrance & Ambient Animations --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatSlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, 14px) scale(1.05); }
}

@keyframes floatReverse {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-18px, -12px) scale(1.06); }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

.orb-float-slow {
  animation: floatSlow 9s ease-in-out infinite;
}

.orb-float-reverse {
  animation: floatReverse 11s ease-in-out infinite;
}

/* Button Sheen Hover Effect */
.btn-sheen {
  position: relative;
  overflow: hidden;
}
.btn-sheen::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transition: left 0.55s ease;
}
.btn-sheen:hover::after {
  left: 130%;
}

/* Subtle River Wave Divider */
.wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 28px;
  line-height: 0;
}
.wave-divider svg {
  width: 100%;
  height: 100%;
}

/* Scroll Reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- High-Contrast Card & Module Harmonization --- */
.tool-card {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}
.tool-card:hover {
  transform: translateY(-4px);
  border-color: #006A4E;
  box-shadow: 0 14px 28px -10px rgba(3, 43, 32, 0.14);
}

.tool-card h2,
#templates h2,
#templates h3,
#opportunities h2,
#opportunities h3,
#opportunities h4 {
  color: #032B20 !important;
}

/* High-visibility dark ink for all descriptions and labels */
.tool-card p,
.tool-card label,
#templates p,
#templates span,
#opportunities p {
  color: #1E293B !important;
}

.tool-card select,
.tool-card input[type="number"],
#opportunities select {
  background-color: #F7FAF9 !important;
  border: 1.5px solid #94A3B8 !important;
  color: #0B1F1A !important;
  font-weight: 600;
}

.tool-card .bg-slate-950 {
  background-color: #E6F4F0 !important;
  border: 1.5px solid #A7F3D0 !important;
}

.tool-card #totalResult,
.tool-card #monthlyTaxResult {
  color: #032B20 !important;
}

.tool-card #feeResult {
  color: #B91C1C !important;
}

.tool-card #annualTaxResult,
.tool-card #cgpaOutput {
  color: #006A4E !important;
}

/* Template cards & job cards */
#templateGrid > div,
#liveJobsGrid > div,
#opportunities a.group {
  background-color: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  box-shadow: 0 2px 6px rgba(3, 43, 32, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#templateGrid > div:hover,
#opportunities a.group:hover {
  transform: translateY(-3px);
  border-color: #006A4E !important;
  box-shadow: 0 12px 24px -10px rgba(3, 43, 32, 0.12);
}

/* High-contrast Filter Buttons */
.filter-btn {
  background-color: #FFFFFF !important;
  color: #0B1F1A !important;
  border: 1.5px solid #94A3B8 !important;
  transition: all 0.18s ease;
}

.filter-btn:hover {
  border-color: #006A4E !important;
  background-color: #E6F4F0 !important;
}

.filter-btn.active {
  background-color: #006A4E !important;
  color: #FFFFFF !important;
  border-color: #006A4E !important;
}

/* High-contrast Ad Slots */
.ad-container {
  min-height: 82px;
  border-radius: 1rem;
  overflow: hidden;
}

.ad-container > div {
  background-color: #E6F4F0 !important;
  border: 1.5px dashed #006A4E !important;
}

.ad-container span {
  color: #032B20 !important;
}

.ad-container p {
  color: #0B1F1A !important;
}

.ad-container a {
  background-color: #032B20 !important;
  color: #FFFFFF !important;
  border-color: #032B20 !important;
}

.ad-container a:hover {
  background-color: #006A4E !important;
}