:root {
  --blue: #005ca9;
  --light-blue: #74d0f1;
  --bg: #f1f9ff;
  --dark: #003f5c;
  --white: #ffffff;
  --med-blue:#003f5c;
  --enagic-blue:#004da1;
}

img:not(.logo-img):not(.footer-logo-inline):not(.btn-icon):not(.cert-icon){
  width: 100%;
  height: auto;
  display: block;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  font-family: "Noto Sans", Helvetica, Arial, sans-serif;
  scroll-behavior: smooth;
  background: linear-gradient(135deg, #e3edf5 0%, #fefefe 100%);
  color: #002766;
}

*, *::before, *::after {
  box-sizing: inherit;
}

* {
  transition: all 0.2s ease-in-out;
}

h1, h2, h4 {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.hero, .intro, .benefits, .machines, .contact-container, .certifications-section{
  background: #ffffff;
}

.hero-right h1, .benefits-h2, .machines h2, .contact h2 {
  background: #004da1;
}

.text-content h2, 
.benefits-h2, 
.machines-h2, 
.section-heading , 
.contact h2{
  color: var(--enagic-blue);
  font-size: 2.8rem;
  font-weight: 800;
}

@media (max-width: 768px) {

  .text-content h2, 
  .benefits-h2, 
  .machines-h2, 
  .certifications-container .section-heading , 
  .contact h2{
    font-size: clamp(1.6rem, 1vw, 1rem);
  }
}

.text-content p,
.benefit-list p,
.machine p,
.certifications-section .certifications-container .section-subtext,
.contact p{
  font-size: 1rem;
  color: #444;
  font-weight: 400;
  line-height: 1.6;
}

.hero-right .button,
.intro .text-content .button, 
.machines .machine .button,
.contact .contact-container .contact-actions .btn {
  background : var(--enagic-blue);
  border-radius: 0.7rem ;
}

/* ========== DESKTOP NAVBAR ========== */
header { 
  color: black;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0.5rem 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0.3, 0.2);
  backdrop-filter: blur(6px);
  box-sizing: border-box;
  background: rgb(255, 255, 255);
}

.logo {
  display: flex;
  align-items: center;
  height: 60px;
}

.logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}

nav-container {
  background-color: var(--dark);
}

nav {
  display: flex;
  gap: 1.2rem;
}

nav a {
  color: white;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}

nav 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;
}

.text-content h2::after,
.benefits h2::after, 
.machines h2::after,
.section-heading h2::after  {
  content: "";
  position: absolute;
  bottom: 0;
  background: linear-gradient(to right, #094e8e, #0b39cf);
  border-radius: 10px;
  transform: translateX(-50%);
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: #a2e6ff; 
}

/* ========== HERO ========== */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 0 5vw;
  box-sizing: border-box;
}

.hero-left {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-left img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  transform: scale(1.2);
  margin-top: 70px;
}

.hero-right {
  flex: 1;
  padding-left: 2vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-right h1 {
  font-size: 3.6rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  line-break: auto;
  line-height: 1.3;
}

.hero-right p {
  font-size: 1.35rem;
  color: #444;
  margin-top: 0rem;
  margin-bottom: 2rem;
  white-space: nowrap;
}

.hero-right .button {
  color: white;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.25);
  transition: all 0.3s ease;
}

.hero-right .button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 212, 255, 0.35);
}

.hero-right {
  animation: fadeInUp 1.2s ease-out both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

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

.hero-right button:hover {
  box-shadow: 0 0 20px rgba(0, 223, 216, 0.6);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* ========== INTRO SECTION ========== */

.intro {
  padding: 4rem 2rem;
}

.content-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.image-content img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  object-fit: cover;
}

.text-content {
  flex: 1;
  max-width: 550px;
}

.text-content h2 {
  margin-bottom: 1rem;
  line-height: 1.2;
  background: none;
  letter-spacing: -0.5px;
  padding-bottom: 0.5rem;
  -webkit-background-clip: text;
}

.text-content p {
  margin-bottom: 1rem;
}

.text-content .button {
  display: inline-block;
  margin-top: 1rem;
  background-color: #004da1;
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.text-content .button:hover {
  background-color: #0057c2;
}

@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
    gap: 2rem;
    padding: 0;
  }

  .image-content img {
    width: 100%;
    max-width: 100%;
  }

  .text-content {
    text-align: center;
    padding: 0 1rem;
  }
}

/* ========== BENEFITS SECTION ========== */
.benefits {
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.benefits-h2 {
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-bottom: 8px;
  margin-bottom: 1rem;
  position: relative;
}

.benefits-h2::after {
  left: 50%;
  width: 80px;
  height: 4px;
  transition: width 0.3s ease;
}

.benefits-h2:hover::after {
  width: 120px;
}

.benefit-list {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.benefit-list div {
  background: rgba(255, 255, 255, 0.95);;
  padding: 0.8rem;
  border-radius: 16px;
  max-width: 350px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(0, 124, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.benefit-list div::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient( circle at center, rgba(0, 212, 255, 0.06),transparent 60% );
  transform: rotate(25deg);
  pointer-events: none;
  z-index: 0;
}

.benefit-list div:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 149, 255, 0.15);
}

.benefit-list h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  background: #004da1;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 1;
}

.benefit-list p {
  z-index: 1;
  position: relative;
}

/* ========== MACHINES SECTION ========== */
.machines h2 {
  text-align: center;
  margin-bottom: 2rem;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 2.5rem;
}

.machines h2::after {
  left: 50%;
  width: 80px;
  height: 4px;
  border-radius: 10px;
}

.machines h2:hover::after {
  width: 120px;
  transition: width 0.3s ease;
}

.machines {
  padding: 60px 20px;
}

.scroll-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 20px 0;
}

.scroll-track {
  display: flex;
  width: max-content;
  gap: 2rem;
  animation: scroll 30s linear infinite;
}

.scroll-track:hover {
  animation-play-state: paused;
}

.machine {
  flex: 0 0 auto;
  width: 220px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.machine img {
  width: 100%;
  height: 180px;
  object-fit: contain;
}

.machine:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 149, 255, 0.15);
}

.machine h4 {
  margin: 0rem 0 0;
  font-size: 1rem;
}

.machine strong {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.machine .button {
  display: inline-block;
  color: white;
  padding: 0.8rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 1rem;
  box-shadow: 0 6px 16px rgba(0, 212, 255, 0.2);
  transition: all 0.3s ease;
}

.machine .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

/* ========== CONTACT SECTION ========== */
.contact {
  padding: 3rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: var(--white) !important;
}

.contact-container {
  max-width: 900px;
  margin: auto;
  padding: 3rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  will-change: transform;
}

.contact-container:hover {
  transform: scale(1.03);
  box-shadow: 0 24px 70px rgba(0, 149, 255, 0.2);
}

.contact h2 {
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-bottom: 8px;
  margin-bottom: 1rem;
  position: relative;
}

.contact p {
  max-width: 600px;
  margin-bottom: 0;
  margin-top: 0.5rem;
}

.contact-actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
}

.btn.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: white;
  padding: 0.9rem 1.8rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 200px;
}

img.btn-icon{
  color: var(--white);
}

.btn.contact-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 149, 255, 0.3);
}

.btn-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.contact::before {
  content: "";
  position: absolute;
  width: 800px;
  height: 800px;
  top: -300px;
  left: -300px;
  z-index: 0;
}

/* ========== SECTION SCROLL ANIMATION ========== */
section {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-in-out;
}

section.show {
  opacity: 1;
  transform: translateY(0);
}

/* === NAVBAR BASE === */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 3rem;
  box-sizing: border-box;
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

#mobile-nav {
  display: flex;
  gap: 15px;
}

#mobile-nav a {
  text-decoration: none;
  color: var(--enagic-blue);
  font-size: 1.1rem;
  font-weight: 700;
}

nav #mobile-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  overflow-x: visible;
}

@media (max-width: 768px) {

  .hamburger {
    display: block;
    z-index: 101;
    font-size: 1.5rem;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: background 0.2s ease;
    margin-right: 0.3rem;
    cursor: pointer; 
  } 

  .hamburger:hover {
    background: rgba(255, 255, 255, 0.9);
  }

  #mobile-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    background: white;
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    margin-top: 17px;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease, opacity 0.4s ease;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    z-index: 100;
    gap:0;
  }

  #mobile-nav.show {
    transform: scaleY(1);
    opacity: 1;
  }

  #mobile-nav a {
    padding: 0.7rem 1rem;
    color: #004da1;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  #mobile-nav a:last-child {
    border-bottom: none;
  }

  #mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--light-blue);
    padding-left: 2rem;
  }

  .nav-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    padding: 0 1.2rem;
    padding-top: 0rem;
    padding-bottom: 0rem;
  }
  
  header {
    padding: 0.7rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }

  #mobile-nav {
    padding-right: 1rem;
  }

  .hero {
    flex-direction: column;
    height: auto;
    padding: 4rem 1.2rem 4rem;
    gap: 1rem;
    background: linear-gradient(to bottom, #eaf7fd, #ffffff);
  }

  .hero-left {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero-left img {
    max-width: 100%;
    height: auto;
    transform: scale(1);
    margin-top: 0;
    margin-bottom: -35px;
  }

  .hero-right {
    padding: 0;
    align-items: center;
    text-align: center;
    width: 100%;
    animation: fadeInUp 1.2s ease-out both;
  }

  .hero-right h1 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 800;
    margin-bottom: 0.1rem;
    white-space: normal;
    margin-top: 0;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .heading-accent {
    width: 60px;
    height: 4px;
    background: var(--light-blue);
    margin: 0.2rem auto 1.5rem;
    border-radius: 5px;
  }

  .hero-right p {
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 2rem;
    white-space: normal;
  }

  .hero-right .button {
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    min-width: 180px;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.25);
    text-align: center;
  }

  .hero-right .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 212, 255, 0.35);
  }

  .benefits {
    padding: 3rem 1.2rem;
    text-align: center;
  }

  .benefits-h2 {
    font-weight: 900;
    overflow: hidden;
    text-wrap: no-wrap;
    text-overflow: ellipsis;
    margin-bottom: 2.2rem;
    text-align: center;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .benefits-h2::after {
    display: block;
    width: 60px;
    height: 3px;
    margin: 0.6rem auto 0;
    border-radius: 4px;
  }

  .benefit-list {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
  }

  .benefit-list div {
    width: 90%;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: -1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .benefit-list div:active {
    transform: scale(0.98);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  }

  .benefit-list h4 {
    font-size: 1.1rem;
    margin-bottom: 0rem;
    font-weight: 700;
    background: #004da1;
    text-align: center;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .benefit-list p {
    text-align: center;
    margin-top: 0.5rem;
  }

  .machines h2 {
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    white-space: nowrap;  
    overflow: hidden; 
    text-overflow: ellipsis; 
    margin-bottom: 2rem;
    padding-bottom: 10px;
    position: relative;
  }

  .machines h2::after {
    position: absolute;
    left: 50%;
    width: 60px;
    height: 3px;
    border-radius: 5px;
  }

  .scroll-track {
    animation: none !important;
  }

  .scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    background-repeat: no-repeat;
  }

  .contact {
    padding: 3rem 1.2rem;
  }

  .contact-container {
    padding: 2rem;
    border-radius: 16px;
    gap: 1.5rem;
  }

  .contact h2 {
    white-space: nowrap;
    overflow: hidden; 
    text-overflow: ellipsis; 
    text-align: center;
    margin-bottom: 0;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .contact p {
    max-width: 100%;
    text-align: center;
    padding: 0 0.5rem;
  }

  .contact-actions {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    align-items: center;
  }

  .btn.contact-btn {
    width: auto;
    min-width: 180px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    text-align: center;
  }

  .btn-icon {
    width: 18px;
    height: 18px;
  }
}

.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;
  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 {
  margin: 0;
  z-index: 1;
  flex-grow: 1;
}

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) {

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

  .certifications-container .section-heading {
    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: 160px;
    margin-bottom: 1rem;
  }

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

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

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

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

.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7); 
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.4s ease;
}

.popup-container {
  background-color: #fff;
  max-width: 560px;
  width: 90%;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  font-family: 'Segoe UI', sans-serif;
  animation: slideUp 0.4s ease;
}

.popup-title-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

.popup-header {
  background-color: #004AAD;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.5rem 1rem 0.4rem;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  gap: 1rem;
  position: relative;
}

.popup-header h2 {
  font-size: 1.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  line-height: 1.3;
}

.highlighted {
  font-weight: 700;
  color: #004AAD;
  background-color: rgba(0, 74, 173, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.no-conditions {
  color: var(--white);
  font-weight: 600;
  margin-top: 0rem;
  font-size: 0.95rem;
  display: flex;
  align-items: left;
  justify-content: center;
}

.star-icon {
  color: red;
  font-size: 1.4rem;
  margin-right: 4px;
}

.close-btn {
  font-size: 1.5rem;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.2);
  color: white;
  font-weight: bold;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.3s ease;
  margin-top: 6px;
}

.close-btn:hover {
  background-color: rgba(255,255,255,0.35);
}

.background-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  position: absolute;
  z-index: -1;
  aspect-ratio: 1 / 1;
  width: 100px;
}

.popup-image {
  width: 100%;
  height: auto;
  display: block;
}

.popup-body {
  padding: 1.2rem 1.4rem;
  text-align: center;
  color: #222;
}

.intro-text {
  font-size: 1rem;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  text-align: left;
}

.benefits-list li {
  margin-bottom: 1rem;
  font-size: 1rem;
  display: flex;
  align-items: flex-start;
}

.check-icon {
  font-weight: 700;
  font-size: 1.2rem;
  color: #004AAD;
  margin-right: 0.7rem;
  line-height: 1.2;
}

.connect-btn {
  display: inline-block;
  background-color: #004AAD;
  color: white;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.connect-btn:hover {
  background-color: #00328a;
}

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

@media (max-width: 768px) {
  .popup-header {
    padding: 0.1rem 0.8rem;
  }

  .popup-header h2 {
    font-size: 1.1rem !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    text-align: center;
  }

  .no-conditions {
    font-size: 1rem;
  }

  .close-btn {
    width: 32px;
    height: 32px;
    font-size: 1.4rem;
  }
}

@media screen and (min-width: 601px) {
  .connect-btn {
    padding: 0.8rem 1.6rem;
    font-size: 0.95rem;
  }
}