/* ==========================================================================
   STYLE NAVBAR ASLI (KONTRAST & JELAS SESUAI STRUKTUR AWAL)
   ========================================================================== */
.navbar {
  width: 100%;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed; 
  top: 0;
  left: 0;
  z-index: 100;
}

/* Memastikan warna teks menu utama tetap tajam dan terbaca jelas (hanya untuk layar desktop) */
@media screen and (min-width: 769px) {
  .navbar a,
  .navbar .nav-links a,
  .navbar .menu a {
    color: #114E60 !important;   
    font-weight: 600 !important;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .navbar a:hover,
  .navbar .nav-links a:hover,
  .navbar .menu a:hover {
    color: #059669 !important;   
  }
}


/* ==========================================================================
   GAYA RESET & STRUKTUR UTAMA BERANDA
   ========================================================================== */
.hero-section {
  width: 100%;
  min-height: 620px;         
  height: 90vh;              
  display: flex;
  align-items: center;
  background-color: #F4F9F9; 
  position: relative;
  overflow: hidden;
}

.hero-wrapper {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  align-items: center;
  justify-content: space-between;
}

.hero-page {
  width: 100%;
  padding: 100px 0 60px;
  background: none;
  overflow: hidden;
}

.hero-page__content {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUpIn 0.75s ease-out 0.25s forwards;
}

.hero-page__title {
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  line-height: 1.05;
  font-weight: 800;
  color: #114E60;
  margin-bottom: 18px;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-page__subtitle {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #1f5b67;
  max-width: 720px;
  margin: 0 auto;
  border: none;
}

.hero__word {
  display: inline-block;
  opacity: 0;
  animation: word-reveal 0.6s ease-out forwards;
}

.hero__word:nth-child(1) {
  animation-delay: 0.1s;
}

.hero__word:nth-child(2) {
  animation-delay: 0.2s;
}

.hero__word:nth-child(3) {
  animation-delay: 0.3s;
}

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

@media screen and (max-width: 768px) {
  .hero-page {
    padding: 70px 0 40px;
  }

  .hero-page__title {
    font-size: 2.3rem;
  }
}


/* --- KOLOM KIRI (TEKS UTAMA - AMAN TERPISAH DARI AREA VIDEO) --- */
.hero-left {
  width: 42%;                /* Sedikit dikecilkan agar memberikan ruang kosong yang lega di tengah */
  z-index: 10;               
  position: relative;
  display: flex;
  flex-direction: column;
}

/* --- DEKORASI ELEMEN TEKS --- */
.badge {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 12px;
  background-color: rgba(37, 204, 247, 0.15);
  color: #114E60;
  font-weight: 600;
  font-size: 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
  color: #114E60;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #557A85;
  margin-bottom: 35px;
}

.hero-action {
  display: flex;
  gap: 15px;
}

/* --- STYLING TOMBOL INTERAKTIF --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background-color: #059669; 
  color: #FFFFFF;            
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.25); 
}

.btn-primary:hover {
  transform: translateY(-3px);
  background-color: #047857; 
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.btn-secondary {
  border: 2px solid #114E60;     
  color: #114E60;                
  background-color: transparent; 
}

.btn-secondary:hover {
  background-color: #114E60;     
  border-color: #114E60;         
  color: #FFFFFF;                
  transform: translateY(-3px);     
  box-shadow: 0 6px 20px rgba(17, 78, 96, 0.2);
}


/* ==========================================================================
   KOLOM KANAN: ATAS DAN KANAN LURUS SIKU, OVAL ABSTRAK HANYA DI KIRI BAWAH
   ========================================================================== */
.hero-section .hero-wrapper .hero-right {
  position: absolute;
  top: 0;                    /* KUNCI: Menempel lurus rata tanpa celah ke atas */
  right: 0;                  /* KUNCI: Menempel lurus rapat ke dinding layar paling kanan */
  width: 53%;                /* Lebar dikunci di 53% agar TIDAK AKAN PERNAH menabrak teks kiri */
  height: 85% !important;    /* Menjaga area bawah tetap menggantung rapi */
  z-index: 1;
  display: block !important;
}

hero-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 53%;
  height: 85% !important;
}

.hero-right .medical-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 15% 20%, rgba(255,255,255,0.12), transparent 8%),
              radial-gradient(circle at 70% 15%, rgba(255,255,255,0.08), transparent 10%),
              radial-gradient(circle at 40% 70%, rgba(255,255,255,0.06), transparent 12%),
              repeating-linear-gradient(45deg, rgba(255,255,255,0.06), rgba(255,255,255,0.06) 1px, transparent 1px, transparent 20px);
}

.hero-left,
.hero-right {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUpIn 0.85s ease-out forwards;
}

.hero-left {
  animation-delay: 0.18s;
}

.hero-right {
  animation-delay: 0.32s;
}

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

@keyframes waveFlow {
  0% {
    transform: translateY(0px) skewY(0deg) rotate(0deg);
    border-radius: 0% 0% 0% 85% / 0% 0% 0% 85%;
  }
  50% {
    transform: translateY(-10px) skewY(1deg) rotate(0.2deg);
    border-radius: 0% 0% 0% 80% / 0% 0% 0% 90%;
  }
  100% {
    transform: translateY(4px) skewY(-1deg) rotate(-0.2deg);
    border-radius: 0% 0% 0% 88% / 0% 0% 0% 80%;
  }
}

@keyframes waveInside {
  0% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.01);
  }
  100% {
    transform: translateY(3px) scale(0.997);
  }
}

.hero-section .hero-wrapper .video-blob-container {
  width: 100% !important;
  height: 100% !important;
  position: relative;
  overflow: hidden;
  border-radius: 0% 0% 0% 85% / 0% 0% 0% 85% !important;
  box-shadow: -15px 15px 40px rgba(17, 78, 96, 0.03);
  animation: floatFrame 15s ease-in-out infinite alternate, waveFlow 12s ease-in-out infinite alternate;
  transform-origin: center;
}

.hero-section .hero-wrapper .blob-video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; /* Memastikan video padat tanpa distorsi geometri */
  animation: waveInside 12s ease-in-out infinite alternate;
}

.blob-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: transparent;
  pointer-events: none;
}


/* ==========================================================================
   FEATURES SECTION & FOOTER
   ========================================================================== */
.features-section {
  padding: 80px 0;
  background-color: #FFFFFF; 
}

.features-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.feature-card {
  flex: 1;
  background: #F4F9F9;
  padding: 40px 30px;
  border-radius: 16px;
  transition: all 0.3s ease;
  border: 1px solid rgba(17, 78, 96, 0.05);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(17, 78, 96, 0.08);
}

.feature-icon {
  width: 50px; height: 50px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}

.icon-blue { background-color: rgba(37, 204, 247, 0.15); }
.icon-green { background-color: rgba(5, 150, 105, 0.15); }
.icon-orange { background-color: rgba(243, 156, 18, 0.15); }

.feature-card h3 { font-size: 20px; color: #114E60; margin-bottom: 12px; font-weight: 700; }
.feature-card p { font-size: 14px; color: #557A85; line-height: 1.6; }


/* ==========================================================================
   FOOTER STYLE
   ========================================================================== */
.footer {
  background: #092e3a;
  color: #fff;
  padding-top: 60px;
  margin-top: 40px;
}

.footer-top { padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.07); }

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.foot-brand .foot-logo { font-size: 21px; font-weight: 800; margin-bottom: 14px; }
.foot-brand .foot-logo span { color: #25CCF7; }
.foot-brand p { font-size: 14px; color: rgba(255,255,255,0.52); line-height: 1.7; }

.foot-col h4 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 18px; text-transform: uppercase; }

.foot-col ul { display: flex; flex-direction: column; gap: 11px; list-style: none; padding: 0; }
.foot-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.52);
  text-decoration: none;
  transition: color 0.25s;
}
.foot-col a:hover { color: #25CCF7; }

.footer-bottom { padding: 22px 0; max-width: 1200px; margin: 0 auto; padding: 20px 40px; }
.footer-bottom-box { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,0.4); }


/* ==========================================================================
   PENYESUAIAN RESPONSIVE MEDIA QUERY (SINKRON MOBILE & TABLET)
   ========================================================================== */
@media screen and (max-width: 1024px) {
  .hero-title { font-size: 36px; }
  .hero-right { width: 50%; height: 80% !important; }
}

@media screen and (max-width: 768px) {
  .hero-section {
    min-height: auto;
    height: auto;
    padding-top: 120px;
    padding-bottom: 40px;
  }
  
  .hero-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  
  .hero-left {
    width: 100%;
    align-items: center; 
  }

  .badge { align-self: center; }
  .hero-title { font-size: 34px; max-width: 90%; }
  .hero-desc { max-width: 95%; margin-bottom: 25px; }

  .hero-left .badge { order: 1; }
  .hero-left .hero-title { order: 2; }
  .hero-left .hero-desc { order: 3; }
  
  /* Saat dibuka di handphone, layout otomatis menumpuk vertikal dengan rapi */
  .hero-section .hero-wrapper .hero-right {
    position: relative;
    top: 0; right: 0;
    width: 100%; 
    height: 300px !important;
    overflow: hidden;
    order: 4; 
  }
  
  .hero-section .hero-wrapper .video-blob-container {
    border-radius: 24px !important; /* Di HP melengkung rapi proporsional di semua sudut */
  }

  .hero-left .hero-action {
    order: 5; 
    justify-content: center;
    width: 100%;
    margin-top: 15px;
  }

  .features-grid { flex-direction: column; gap: 20px; }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .footer-bottom-box {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  .hero-title { font-size: 28px; }
  .hero-desc { font-size: 14px; }
  .hero-section .hero-wrapper .hero-right { height: 220px !important; }
  
  .hero-action {
    flex-direction: column; 
    gap: 12px;
    width: 90%;
  }
  .btn { width: 100%; } 
}
