* {
  font-family: "Inter", sans-serif;
}

::selection {
  background: #d1fae5;
  color: #064e3b;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0f1b2d;
}

::-webkit-scrollbar-thumb {
  background: #2d4773;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #37578e;
}

/* ---- Page Load Animation ---- */
.page-enter {
  opacity: 0;
  transform: translateY(20px);
  animation: pageIn 0.6s ease forwards;
}

@keyframes pageIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Reveal on Scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}
.reveal-delay-5 {
  transition-delay: 0.5s;
}

/* ---- Hero ---- */
.hero-gradient {
  background: linear-gradient(
    155deg,
    #0d1f3c 0%,
    #122a4a 25%,
    #1a365d 50%,
    #1e4070 75%,
    #234a7a 100%
  ) !important;
}

.hero-pattern {
  background-image:
    radial-gradient(
      circle at 20% 50%,
      rgba(16, 185, 129, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(16, 185, 129, 0.05) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 60% 80%,
      rgba(100, 131, 180, 0.1) 0%,
      transparent 50%
    );
}

.hero-gradient h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-gradient p,
.hero-gradient span {
  color: #047857 !important;
}

.hero-gradient .stat-counter {
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hero-gradient .text-navy-200,
.hero-gradient .text-navy-300 {
  color: #94a8cc !important;
}

/* ---- Green Glow ---- */
.green-glow {
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.15);
}

/* ---- Card Hover ---- */
.card-hover {
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0 !important;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15, 27, 45, 0.1);
  border-color: #cbd5e1 !important;
}

/* ---- Navigation ---- */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

.nav-scrolled .nav-link {
  color: #1a2744 !important;
  text-shadow: none;
  font-weight: 500;
}

.nav-scrolled .nav-link:hover {
  color: #0a1628 !important;
  background: #f0f3f9 !important;
}

.nav-scrolled .nav-link.active-link {
  color: #047857 !important;
  background: #ecfdf5 !important;
  font-weight: 600;
}

/* ---- Dropdown ---- */
.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-scrolled .dropdown-menu {
  background: #ffffff;
  border-color: #e2e8f0;
}

/* ---- Stat Counter ---- */
.stat-counter {
  font-variant-numeric: tabular-nums;
}

/* ---- Section Label ---- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #047857 !important;
  background: #d1fae5 !important;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid #a7f3d0 !important;
}

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  padding: 16px 24px;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  background: #047857 !important;
  box-shadow: 0 8px 24px rgba(4, 120, 87, 0.3);
}

.toast-error {
  background: #dc2626;
}

/* ---- Mobile Menu ---- */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-overlay {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

#mobileMenu a.text-navy-700 {
  color: #1a2744 !important;
  font-weight: 500;
}

#mobileMenu a.text-navy-500 {
  color: #475569 !important;
}

/* ---- Animations ---- */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.pulse-ring::before {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid #10b981;
  border-radius: 50%;
  animation: pulse-ring 2s ease-out infinite;
}

/* ---- Cert Badge ---- */
.cert-badge {
  transition: all 0.3s ease;
}

.cert-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

/* ---- Product Card ---- */
.product-card {
  position: relative;
  overflow: hidden;
}

.product-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10b981, #34d399);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.product-card:hover::after {
  transform: scaleX(1);
}

.product-card span.absolute.top-4 {
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ============================================
   COLOR VISIBILITY FIXES
   ============================================ */

/* Body Text */
.text-navy-600 {
  color: #334155 !important;
}
.text-navy-500 {
  color: #475569 !important;
}
.text-navy-400 {
  color: #64748b !important;
}

/* Heading Text */
.text-navy-900,
h1.text-navy-900,
h2.text-navy-900,
h3.text-navy-900,
h4.text-navy-900 {
  color: #0a1628 !important;
}

/* Backgrounds */
.bg-gray-50 {
  background-color: #f8fafc !important;
}
section.bg-gray-50 {
  background-color: #f1f5f9 !important;
}
.bg-navy-50 {
  background-color: #eef2f7 !important;
}

/* Borders */
.border-gray-100 {
  border-color: #e2e8f0 !important;
}
.border-gray-200 {
  border-color: #cbd5e1 !important;
}

/* Buttons */
.bg-brand-500 {
  background-color: #059669 !important;
}
.bg-brand-500:hover {
  background-color: #047857 !important;
}
.bg-navy-900 {
  background-color: #0f1b2d !important;
}
.bg-navy-900:hover {
  background-color: #0a1628 !important;
}

/* Green Gradient Text */
.bg-gradient-to-r.from-brand-400.to-brand-300 {
  background: linear-gradient(to right, #34d399, #6ee7b7) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

/* Icon Colors */
.bg-brand-100 {
  background-color: #d1fae5 !important;
}
.bg-brand-50 {
  background-color: #ecfdf5 !important;
}
.text-brand-600 {
  color: #047857 !important;
}
.text-brand-700 {
  color: #065f46 !important;
}

/* CTA Section */
section.bg-gradient-to-br {
  background: linear-gradient(to bottom right, #047857, #065f46) !important;
}

/* Footer */
footer {
  background-color: #070e1a !important;
}
footer .text-navy-300 {
  color: #94a8cc !important;
}
footer .text-navy-400 {
  color: #7a8fac !important;
}
footer .text-navy-500 {
  color: #5e7390 !important;
}
footer .text-navy-200 {
  color: #c8d6e8 !important;
}
footer .text-navy-100 {
  color: #dce5f0 !important;
}
footer h4 {
  color: #d1dae6 !important;
}
footer a.text-navy-400:hover {
  color: #ffffff !important;
}
footer .border-white\/10 {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Phenora Dark Section */
#page-phenora .hero-gradient,
.bg-navy-900.rounded-2xl,
.bg-navy-900.rounded-xl {
  background-color: #122240 !important;
}

/* Legal Prose */
.prose strong {
  color: #0a1628 !important;
  font-weight: 700 !important;
}

/* Back to Top */
#backToTop {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Custom Classes */
.koushik1 {
  border: 1px solid #047857;
  border-radius: 15px;
}

.koushik2 {
  padding: 40px 60px;
}

/* ---- Dual Logo Switching ---- */
.nav-logo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.logo-default {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.logo-scrolled {
  opacity: 0;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* When nav is scrolled, swap which logo is visible */
.nav-scrolled .logo-default {
  opacity: 0;
}

.nav-scrolled .logo-scrolled {
  opacity: 1;
  pointer-events: auto;
}

/* ---- Dual Logo Switching ---- */
.logo-default {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.logo-scrolled {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  margin-top: 25px;
}

.nav-scrolled .logo-default {
  opacity: 0;
  pointer-events: none;
}

.nav-scrolled .logo-scrolled {
  opacity: 1;
  pointer-events: auto;
}
