/* =========================
   Layout & Struktur Dasar
   ========================= */
html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #2471f3;
  color: #222;
  position: relative;
  overflow-x: hidden;
}

/* Main wrapper untuk konten utama */
.main-wrapper {
  flex: 1; /* Takes remaining space, pushing footer down */
  display: flex;
  flex-direction: column;
}

/* =========================
   Header & Navigasi
   ========================= */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3vw;
  background: #fff;
  box-shadow: 0 2px 12px rgba(50,50,50,0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: .03em;
  color: #2471f3;
}

.highlight {
  color: #257cff;
  font-weight: bold;
}

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

/* =========================
   Tombol (Button)
   ========================= */
.btn {
  padding: .55em 1.4em;
  border-radius: 1.5em;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
  font-weight: 500;
}

.btn.login {
  background: transparent;
  color: #257cff;
  border: 1.5px solid #257cff;
}

.btn.register,
.btn.cta {
  background: #257cff;
  color: #fff;
  border: 1.5px solid #257cff;
  margin-left: .3em;
}

.btn.login:hover, .btn.register:hover, .btn.cta:hover {
  background: #184c99;
  color: #fff;
  border-color: #184c99;
}

/* =========================
   Hero Section
   ========================= */
.hero {
  position: relative;
  max-width: 650px;
  margin: 4rem auto 2rem auto;
  padding: 2.4rem 2rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 32px rgba(60,60,60,.09);
  text-align: center;
  z-index: 1;
}

.hero > h1 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 2.2rem;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 2em;
  color: #444;
}

/* =========================
   Floating Logo Background
   ========================= */
/* Container logo mengambang di seluruh halaman */
.bg-floating-logo {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1; /* Pastikan berada di belakang semua elemen */
  pointer-events: none;
  overflow: hidden;
}

/* Logo 3D mengambang */
.bg-floating-logo img {
  position: absolute;
  width: 180px;
  opacity: 0.18;
  filter: drop-shadow(0 4px 16px #0002);
  user-select: none;
  pointer-events: none;
  animation: float 6s ease-in-out infinite alternate;
}

/* Animasi mengambang */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg);}
  50% { transform: translateY(-30px) rotate(5deg);}
  100% { transform: translateY(0px) rotate(0deg);}
}

/* =========================
   Info Section
   ========================= */
.info-section {
  margin: 4rem auto 2rem auto;
  max-width: 1200px;
  text-align: center;
}

.info-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 2.2rem;
  letter-spacing: -1px;
  color: #fff;
}

.info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.info-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px #0001;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  width: 270px;
  min-height: 170px;
  text-align: left;
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.info-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #2471f3;
}

.info-card p {
  font-size: 1rem;
  color: #2471f3;
  margin: 0;
}

.info-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.info-card-green   { background: #eafaf1; color: #1abc9c; }
.info-card-pink    { background: #fdeef4; color: #e17055; }
.info-card-blue    { background: #eaf6fb; color: #0984e3; }
.info-card-yellow  { background: #fff9e5; color: #f6b93b; }
.info-card-purple  { background: #f5f0fa; color: #6c5ce7; }
.info-card-red     { background: #fff0f0; color: #e74c3c; }

/* =========================
   About Section
   ========================= */
.about-section {
  margin: 4rem auto 2rem auto;
  max-width: 1000px;
  text-align: center;
}
.about-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem 0;
  color: #222;
}
.about-desc {
  font-size: 1.1rem;
  color: #222;
  margin-bottom: 1.5rem;
}
.about-divider {
  width: 80px;
  height: 4px;
  background: #00bcd4;
  border-radius: 2px;
  margin: 1.5rem auto 2rem auto;
}
.about-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  margin-top: 2rem;
}
.about-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px #0001;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  width: 280px;
  min-height: 180px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about-card .about-icon {
  color: #2471f3; /* atau warna lain sesuai info-icon */
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.about-card p {
  font-size: 1rem;
  color: #444;
  margin: 0;
}
.about-card b {
  color: #222;
}
.about-card:nth-child(1) .about-icon { color: #ff0000; }      /* Hitam */
.about-card:nth-child(2) .about-icon { color: #2471f3; }   /* Biru */
.about-card:nth-child(3) .about-icon { color: #ffb300; }   /* Kuning */

/* Pastikan section utama tetap di atas background */
.main-content, .info-section, .about-section {
  position: relative;
  z-index: 1;
}

/* Card dan judul font warna biru */
.info-title, .about-title, .about-desc {
    color: #fff

}

.info-card h3, .about-card b,
.info-card p, .about-card p {
  color: #2471f3;
}

/* Footer tidak menutupi konten */
footer {
  position: relative;
  width: 100%;
  background: #fff;
  color: #222;
  text-align: center;
  padding: 2rem 1rem;
  z-index: 3;
  box-shadow: 0 -2px 16px #0001;
  margin-top: auto; /* Push footer ke bottom */
}

/* Container logo mengambang */
.floating-logo-bg {
  position: relative;
  width: 100vw;
  height: 240px;
  margin-bottom: 2rem;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

/* Logo 3D mengambang */
.bg-floating-logo img {
  position: absolute;
  width: 180px;
  opacity: 0.18; /* cukup transparan tapi tetap terlihat */
  filter: drop-shadow(0 4px 16px #0002);
  user-select: none;
  pointer-events: none;
  animation: float 6s ease-in-out infinite alternate;
}

/* Animasi mengambang */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg);}
  50% { transform: translateY(-30px) rotate(5deg);}
  100% { transform: translateY(0px) rotate(0deg);}
}

/* Logo mengambang */
.floating-logo-bg img {
  position: absolute;
  width: 140px;
  opacity: 0.13;
  filter: drop-shadow(0 4px 16px #0002);
  user-select: none;
  pointer-events: none;
  animation: floatY 4s ease-in-out infinite alternate;
}

/* Animasi mengambang */
@keyframes floatY {
  from { transform: translateY(0); }
  to   { transform: translateY(-30px); }
}

/* =========================
   CTA Section
   ========================= */
.cta-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 48px 0 48px    0;
}
.cta-card {
    display: relative;
    z-index: 1;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px #0001;
  padding: 32px 32px 24px 32px;
  text-align: center;
  max-width: 480px
}
.cta-card h2 {
  margin-bottom: 12px;
  color: #2471f3;
}
.cta-card p {
  margin-bottom: 18px;
  color: #222;
}
.cta-buttons .btn {
  margin: 0 10px;
  min-width: 110px;
}

/* ========================================
   RESPONSIVE MEDIA QUERIES
======================================== */

/* Large devices (laptops/desktops, 992px and up) */
@media (max-width: 1199.98px) {
    .header {
        padding: 1rem 2.5vw;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 991.98px) {
    .header {
        padding: 1rem 2vw;
        flex-direction: column;
        gap: 1rem;
    }
    
    .brand {
        font-size: 1.2rem;
        text-align: center;
    }
    
    nav {
        justify-content: center;
    }
    
    .hero {
        padding: 3rem 1.5rem 2rem;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1rem;
        max-width: 90%;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
        padding: 0 1rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .info-card h3 {
        font-size: 1rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-section {
        padding: 3rem 1.5rem;
    }
    
    .cta-card {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .cta-buttons .btn {
        margin: 0;
        width: 100%;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767.98px) {
    .header {
        padding: 0.8rem 1.5vw;
    }
    
    .brand {
        font-size: 1.1rem;
    }
    
    nav .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 2.5rem 1rem 1.5rem;
        position: relative;
        z-index: 5; /* Pastikan hero section di atas background */
    }
    
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .btn.cta {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        min-height: 44px; /* Minimum touch target size untuk mobile */
        position: relative;
        z-index: 10; /* Pastikan tombol di atas elemen lain */
        touch-action: manipulation; /* Optimasi untuk touch events */
    }
    
    .info-section {
        padding: 2.5rem 1rem;
    }
    
    .info-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .info-card {
        padding: 1.2rem;
    }
    
    .info-card h3 {
        font-size: 0.95rem;
    }
    
    .info-card p {
        font-size: 0.85rem;
    }
    
    .about-section {
        padding: 2.5rem 1rem;
    }
    
    .about-title {
        font-size: 1.4rem;
    }
    
    .about-desc {
        font-size: 0.95rem;
    }
    
    .about-card {
        padding: 1.2rem;
    }
    
    .about-card p {
        font-size: 0.9rem;
    }
    
    .cta-section {
        margin: 2rem 0 3rem 0; /* Tambah margin bottom untuk mobile */
    }
    
    .cta-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .cta-card h2 {
        font-size: 1.3rem;
    }
    
    .cta-card p {
        font-size: 0.9rem;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .header {
        padding: 0.8rem 1vw;
        text-align: center;
    }
    
    .brand {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    nav {
        gap: 0.5rem;
    }
    
    nav .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
        min-width: 80px;
    }
    
    .hero {
        padding: 2rem 0.75rem 1.2rem;
        position: relative;
        z-index: 5; /* Pastikan hero section di atas background */
    }
    
    .hero h1 {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .btn.cta {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
        min-height: 44px; /* Minimum touch target size untuk mobile */
        position: relative;
        z-index: 10; /* Pastikan tombol di atas elemen lain */
        touch-action: manipulation; /* Optimasi untuk touch events */
        width: auto;
        display: inline-block;
    }
    
    .info-section {
        padding: 2rem 0.75rem;
    }
    
    .info-title {
        font-size: 1.3rem;
    }
    
    .info-card {
        padding: 1rem;
    }
    
    .info-card h3 {
        font-size: 0.9rem;
    }
    
    .info_card p {
        font-size: 0.8rem;
    }
    
    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .about-section {
        padding: 2rem 0.75rem;
    }
    
    .about-title {
        font-size: 1.2rem;
    }
    
    .about-desc {
        font-size: 0.9rem;
    }
    
    .about-card {
        padding: 1rem;
    }
    
    .about-card p {
        font-size: 0.85rem;
    }
    
    .about-icon {
        font-size: 1.8rem;
    }
    
    .cta-card {
        padding: 1.2rem;
        margin: 0 0.25rem 2rem 0.25rem; /* Tambah margin bottom */
    }
    
    .cta-card h2 {
        font-size: 1.2rem;
    }
    
    .cta-card p {
        font-size: 0.85rem;
    }
    
    footer {
        padding: 1.5rem 0.75rem;
        font-size: 0.8rem;
        margin-top: 2rem; /* Extra margin untuk mobile */
    }
}

/* iPad specific (768px x 1024px) */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
    .header {
        padding: 1.2rem 3vw;
    }
    
    .hero {
        padding: 4rem 2rem 3rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        max-width: 90%;
        margin: 0 auto;
    }
    
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 90%;
        margin: 0 auto;
    }
    
    .cta-card {
        max-width: 600px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        padding: 1.5rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .info-section {
        padding: 1.5rem 1rem;
    }
    
    .about-section {
        padding: 1.5rem 1rem;
    }
}