:root {
  --enagic-blue: #004da1;
  --font: "Noto Sans", Helvetica, Arial, sans-serif;
  --white: white;
}

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

body {
  color: #222;
  display: flex;
  flex-direction: column;
}

html,body {
  padding-top: 40px;
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
  font-family: var(--font);
  color: var(--text-color);
}

.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;
    margin: 0 auto 4rem;
    max-width: 1150px;
    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(0.9rem, 2.3vw, 1rem);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 3rem;
  }
}

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

.certifications-container {
  max-width: 1350px;
  margin: 0 auto;
  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-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;
  }

  .product-title-section h1{
    font-size: 1rem;
  }
}

.product-title-section h1 {
  text-align: center;
  padding: 1rem 0;
  font-size: 2.8rem;
  font-weight: 1000;
  background:  var(--enagic-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.product-wrapper {
  display: flex;
  padding: 2rem;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.machine-list {
  width: 180px;
  height: auto;
  max-height: none;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: visible;
  padding: 1rem 0;
  position: relative;
}

.logo-scroll {
  padding: 1rem 0;
  flex-grow: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: auto;
  overflow: visible;
  scroll-behavior: smooth;
  position: relative;
  z-index: 1;
}

.logo-scroll::-webkit-scrollbar {
  width: 6px;
}

.logo-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.machine-logo {
  width: 120px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0 auto;
  border: 2px solid transparent;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.machine-logo img {
  width: 100px;
  height: 60px;
  object-fit: contain;
  display: block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);   
  border-radius: 8px;       
  padding: 5px 10px;               
}

.machine-logo:hover,
.machine-logo.active {
  border: 2px solid #004da1;
  background: transparent;
  transform: scale(1.05);
  box-shadow: none;
  z-index: 1;
}

.machine-display {
  flex: 1;
  height: 500px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}


.machine-display img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 20px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.machine-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: slideIn 0.6s ease forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.machine-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 0 2rem;
}

.machine-content img {
  max-height: 100%;
  max-width: 35%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  transition: all 1s ease;
  transform: translateX(0);
}

.machine-overlay-name {
  position: absolute;
  left: calc(50% + 80px);
  max-width: 45vw;
  font-size: 8rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px #004da1;
  white-space: nowrap;
  z-index: 1;
  opacity: 0;
  transform: translateX(-100%);
  transition: all 1.2s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  line-height: 1;
  background: #004da1;
  -webkit-background-clip: text;
  background-clip: text;
  text-align: left;
}

.mobile-machine-cards {
  display: none;
}

@media (max-width: 767px) {
  .product-wrapper {
    flex-direction: column;
    gap: 1rem;
  }

  .machine-list,
  .machine-display {
    display: none;
  }

  .mobile-machine-cards {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    padding:0 1rem 1rem;
    margin-top: 0;
    margin-bottom: 2rem;
  }

  .mobile-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 1rem;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    animation: fadeSlideIn 0.6s ease-in-out forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
    .mobile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  }
  .mobile-machine-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s ease;
  }
    .mobile-card:hover .mobile-machine-img {
    transform: scale(1.05);
  }


  .mobile-card-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.4rem;
    margin-left: auto;
    padding-right: 1rem;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    max-width: 55%;
    animation: slideInRight 0.6s ease-in-out forwards;
  }

  @keyframes slideInRight {
    from {
      opacity: 0;
      transform: translateX(30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .mobile-card-name {
    font-size: clamp(0.6rem, 2.3vw, 1.1rem);
    font-weight: 800;
    background: #004da1;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    overflow: visible;
    text-align: right;
    max-width: 100%;
  }

  .mobile-card-logo {
    width: 100%;
    max-width: 100px;
    height: auto;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
  }

  .more-info-btn {
    font-size: clamp(0.65rem, 2.8vw, 0.85rem);
    padding: 0.35rem 0.9rem;
    background: #004da1;
    color: white;
    border: none;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    text-align: right;
  }
  .mobile-card-name,
  .more-info-btn {
    transition: all 0.3s ease;
  }

  .more-info-btn:hover {
    background: #004da1;
    transform: scale(1.05);
  }
}
.desktop-more-info-btn {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: #004da1;
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 24px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,198,255,0.3);
  transition: transform .3s, opacity .3s;
  opacity: .9;
  text-decoration: none;
}
.desktop-more-info-btn:hover {
  transform: scale(1.05);
  opacity: 1;
}
