:root {
  --enagic-blue:#004da1;
  --white: white;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

html, body {
  padding-top: 30px;
  width: 100%;
  height: 100%; 
  scroll-behavior: smooth;
  font-family: "Noto Sans", Helvetica, Arial, sans-serif;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: clamp(0.55rem, 0.8vw, 1rem);
  background: var(--bg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.03);
}

.logo {
  display: flex;
  align-items: center;
  margin-left: 10px;
}

.logo img {
  height: 36px;
  width: auto;
}

.mobile-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-home-link {
  display: none;
  font-size: 18px;
  text-decoration: none;
  color: var(--enagic-blue);
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.3s ease;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 10px;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--enagic-blue);
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.3s ease;
  font-size: 1rem;
}

.nav-links a::after,
.mobile-home-link a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(to right, #094e8e, #0b39cf);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover::after {
  width: 100%;
}

.header.scrolled {
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(6px);
}

.hamburger {
  display: none !important;
  font-size: 24px;
  cursor: pointer;
  user-select: none;
  color: var(--white);
  background-color: var(--enagic-blue);
  margin: 5px 4px;
  padding: 2px 10px;
  border-radius: 8px;
  width: 40px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {

  .hamburger{
    display: block !important;
  }

  .mobile-home-link {
    display: inline-block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 70px;
    right: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 0;
    overflow: hidden;
    gap: 7px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 4px 16px;
    border-bottom: 1px solid #f8f6f6;
    text-align: right;
    font-weight: 600;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .hamburger {
    display: block;
  }

  .logo {
    font-size: 20px;
  }
}


.section-heading {
    font-size: 2.8rem;
    font-weight: 800;
    color: #004da1;
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.certifications-container .section-subtext {
    font-size: 1.05rem;
    line-height: 1.45;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: #1c1b1b;
    opacity: 0.95;
    letter-spacing: 0.2px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .certifications-container .section-subtext {
    font-size: clamp(1rem, 2.3vw, 1rem);
    font-weight: 400;
    line-height: 1.6;
  }
}

.certifications-section {
  padding: 2rem 1rem;
}

.certifications-container {
  max-width: 1350px;
  margin: 0 auto;
  text-align: center;
}

.certifications-container .section-heading {
  margin-bottom: 1.5rem;
}

.certifications-container .section-subtext {
  margin: 0 auto 4rem;
  max-width: 1150px;
  text-align: center;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
}

.cert-badge {
  background: #fff;
  border-radius: 16px;
  padding: 1.2rem 2rem;
  border: 1px solid #eaf2ff;
  box-shadow: 0 4px 12px rgba(0, 77, 161, 0.03);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.cert-badge::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(83, 76, 210, 0.1) 0%, rgba(83, 76, 210, 0) 70%);
  border-radius: 50%;
  transition: width 0.5s ease, height 0.5s ease;
}

.cert-badge:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 77, 161, 0.08);
  border-color: #d1e3ff;
}

.cert-badge:hover::before {
  width: 300px;
  height: 300px;
}

.cert-icon {
  height: 200px;
  margin-bottom: 2rem;
  z-index: 1;
}

.cert-badge h4 {
  color: #443dbb;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  z-index: 1;
}

.cert-badge p {
  color: #667;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
  z-index: 1;
  flex-grow: 1;
}
@media (max-width: 768px) {

  .certifications-section {
    padding: 3rem 1.2rem;
  }

  .certifications-container .section-heading {
    font-size: clamp(1.8rem, 2.4vw, 1.2rem);
    margin-bottom: 0.5rem;
  }

  .certifications-container .section-subtext {
    font-size: clamp(0.8rem, 2.3vw, 1rem);
    margin-bottom: 3rem;
  }

  .certifications-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .cert-badge {
    padding: 1rem;
    border-radius: 12px;
  }

  .cert-icon {
    height: 90px;
    margin-bottom: 1rem;
  }

  .cert-badge h4 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }

  .cert-badge p {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .cert-badge:hover::before {
    width: 200px;
    height: 200px;
  }
}

footer {
  background-color:#004da1;
  backdrop-filter: blur(2px);
  text-align: center;
  color: white;
  padding: 1rem;
}

.footer-desktop-line {
  margin-top: 6px;
  color: white;
  font-size: 15px;
}

.footer-desktop-line a {
  color: #fff;
  text-decoration: underline;
  line-height: 1.5;
  margin: 0 6px;
  transition: color 0.3s ease;
}

.footer-desktop-line a:hover {
  color: #e0f0ff;
}

.footer-logo-inline {
  height: 20px;
  width: auto;
  vertical-align: middle;
  margin: 0 0.2rem;
  object-fit: contain;
}

.footer-line-1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
  color: white;
}

.footer-line-1 a {
  color: white;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.footer-line-1 a:hover {
  color: #e0f0ff;
}

.footer-line-2 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  color: white;
}

.footer-mobile-stack {
  display: none;
}

@media (max-width: 768px) {

  .footer-mobile-stack {
    display: block;
    font-size: 14px;
    font-weight: 500;
  }

  .footer-desktop-stack {
    display: none;
  }
}

.scroll-text {
  display: none;
  font-size: 0.87rem;
  color: #848383;
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
  margin-top: 6px; 
  margin-bottom: 8px;
  padding: 4px 0;
  white-space: nowrap;
  font-weight: 500;
}

@keyframes bounceRight {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(10px);
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

body {
    font-family: "Noto Sans", Helvetica, Arial, sans-serif;
    background: #ffffff;
    color: #222;
    line-height: 1.6;
    overflow-x: hidden;
}

section {
    padding: 60px 20px;
}

.types-hero {
    background: #ffffff;
    text-align: center;
    padding: 15px 20px;
}

.hero-text {
    max-width: 700px;
    margin: auto;
}

.types-hero h1 {
    font-size: 2.8rem;
    color: var(--enagic-blue);
    margin-bottom: 10px;
    font-weight:800;
}

.types-hero p {
    font-size: 0.9rem;
    color: #444;
    text-align: center;
    line-height: 1.7;
}

.types-hero p span {
    font-weight: bold;
    color: #083e62;
    font-size: 1.1rem;
}

.water-cards {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    padding: 10px 0;
    max-width: 100%;
    justify-content: space-evenly;
}

.water-card {
    background: rgb(255, 255, 255);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    perspective: 1000px;
    flex: 1 1 18%;
    min-width: 240px;
    max-width: 280px;
}

.water-card-back {
    display: none;
}

.water-card.show-back .water-card-front {
    display: none;
}

.water-card.show-back .water-card-back {
    display: block;
    animation: fadeIn 0.4s ease;
    transition: all 0.5s ease;
    backface-visibility: hidden;
}

.water-card img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
}

.water-card h3 {
    margin: 10px 0 5px;
    font-size: 1.2rem;
    color: #0071bc;
}

.ph {
    font-weight: bold;
    color: #242323;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

#card-1 .ph, #card-1 .back {
  color: #43077e;
}

#card-2 .ph, #card-2 .back {
  color: #580fa1;
}

#card-3 .ph , #card-3 .back {
  color: #1eb043;
}

#card-4 .ph, #card-4 .back {
  color: #fce943;
}

#card-5 .ph, #card-5 .back {
  color: #ff9d34;
}

button {
    background-color: #0071bc;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 12px;
}

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

@media (max-width: 768px) {
  .water-cards {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .water-card {
    flex: 0 0 80%;
    max-width: 80%;
    margin-bottom: 10px;
  }

  .types-hero h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-wrap: nowrap;
  }

  .types-hero p {
    font-size: 0.9rem;
    color: #444;
    text-align: centre;
  }   

  .scroll-text {
    display: block;
  }
}