/* =============================
   GLOBAL TYPOGRAPHY & BASICS
============================= */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
}

/* =============================
   NAVIGATION LINKS
============================= */

.nav-link {
  position: relative;
  padding-bottom: 4px;
  color: #065f46;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #047857;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0%;
  height: 2px;
  background: linear-gradient(to right, #059669, #0ea5e9);
  transition: width 0.35s ease;
  border-radius: 4px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  font-weight: 600;
  color: #047857;
}

/* =============================
   MOBILE MENU
============================= */

.mobile-link {
  display: block;
  padding: 14px 22px;
  border-bottom: 1px solid #e6f4ef;
  font-size: 16px;
  color: #064e3b;
  font-weight: 500;
  transition: background 0.2s ease;
}

.mobile-link:hover {
  background: #f0fdf4;
}

/* Mobile menu animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slideDown {
  animation: slideDown 0.35s ease forwards;
}

/* =============================
   HEADER (DEFAULT + SCROLLED)
============================= */

header {
  transition:
    background 0.35s ease,
    backdrop-filter 0.35s ease,
    box-shadow 0.35s ease;
}

/* Header on scroll (glass effect) */
/* Header on scroll – very subtle shade */
.header-scrolled {
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.96) 0%,   /* pure white under logo */
    rgba(255, 255, 255, 0.94) 50%,  /* neutral white */
    rgba(16, 185, 129, 0.04) 100%   /* very light emerald hint */
  );

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(16, 185, 129, 0.10);
}


/* Header menu visibility fix */
.header-scrolled .nav-link {
  color: #064e3b;
}

.header-scrolled .nav-link:hover {
  color: #047857;
}

.header-scrolled .nav-link.active {
  color: #065f46;
}

.header-scrolled #menuBtn svg {
  stroke: #064e3b;
}

/* Mobile menu background */
.header-scrolled #mobileMenu {
  background: rgba(255, 255, 255, 0.96);
}

/* =============================
   HERO SECTION
============================= */

.hero-img {
  background-image: url('../../assets/hero-chemicals.png');
  background-size: cover;
  background-position: center;
  animation: zoomSlow 18s ease-in-out infinite;
}

@keyframes zoomSlow {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* =============================
   FADE / SCROLL ANIMATIONS
============================= */

.fade-in {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 1.4s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================
   BUTTONS & EFFECTS
============================= */

.btn-glow {
  transition: box-shadow 0.3s ease;
}

.btn-glow:hover {
  box-shadow: 0 0 22px rgba(0, 255, 180, 0.6);
}

/* Scroll to top */
.scroll-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #047857;
  color: white;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  z-index: 999;
  transition: background 0.3s ease;
}

.scroll-btn:hover {
  background: #065f46;
}

/* =============================
   PRODUCT WATERMARK
============================= */

.product-watermark {
  position: absolute;
  right: -8px;
  top: -8px;
  font-weight: 900;
  color: rgba(16, 185, 129, 0.12);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 0;
  font-size: clamp(3.5rem, 12vw, 7rem);
  transform: rotate(-6deg);
}

/* =============================
   LEAFLET MAP
============================= */

#map {
  height: 600px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.leaflet-control-attribution {
  display: none !important;
}

.marker-bounce {
  animation: bounce 0.6s ease-in-out infinite alternate;
}

@keyframes bounce {
  from { margin-top: 0; }
  to { margin-top: -8px; }
}

/* =============================
   GLOBAL FLOATING BUBBLES
============================= */

.global-bubbles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.global-bubbles .bubble {
  position: absolute;
  bottom: -80px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(3px);
  animation: bubbleFloat linear infinite;
  opacity: 0.55;
}

@keyframes bubbleFloat {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
    transform: translateY(-40vh) translateX(20px);
  }
  100% {
    transform: translateY(-90vh) translateX(-30px);
    opacity: 0;
  }
}
