/* Reset dan Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(180deg, #223F56 0%, #1a2f42 100%);
  color: white;
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  opacity: 0;
  animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Header Brand */
.header {
  padding: 2rem 1rem 1rem;
  position: relative;
}

.brand {
  position: absolute;
  top: 2rem;
  left: 1rem;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Clock styling */
.clock {
  position: absolute;
  top: 2rem;
  right: 1rem;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

@media (max-width: 768px) {
  .brand {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    top: 1.5rem;
    left: 0.8rem;
  }

  .clock {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    top: 1.5rem;
    right: 0.8rem;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    top: 1rem;
    left: 0.5rem;
  }

  .clock {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    top: 1rem;
    right: 0.5rem;
  }
}

/* Hero Section */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 4rem 2rem 1rem 2rem;
  text-align: center;
}

.isolir-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1rem;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: pulse 2s infinite;
}

.isolir-icon {
  width: 32px;
  height: 32px;
  animation: bounce 1.5s infinite;
}

.isolir-text {
  font-size: 1.5rem;
  font-weight: 900;
  color: #ff6b6b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 20px 10px rgba(255, 107, 107, 0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes glow {
  from {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 10px #ff6b6b;
  }
  to {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px #ff6b6b, 0 0 30px #ff6b6b;
  }
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 2rem;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(1.3rem, 3vw, 2rem);
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: 1rem;
  }
}

.info-block {
  max-width: 600px;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 1rem;
}

.info-title {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-text {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  line-height: 1.6;
  margin-bottom: 0.8rem;
  text-align: left;
}

.contact-number {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  margin-top: 1rem;
  color: #ffd700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.contact-number:hover {
  color: #ffa500;
  transform: scale(1.05);
  text-decoration: underline;
}

/* Payment Card */
.payment-card {
  background: white;
  color: #333;
  border-radius: 30px 30px 0 0;
  padding: 2rem 1.5rem 1rem;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
  margin-top: auto;
}

.payment-subtitle {
  text-align: center;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #223F56;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.payment-block {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 1rem;
  position: relative;
}

.block-label {
  position: absolute;
  top: -12px;
  left: 20px;
  background: #223F56;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.payment-item {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 0.6rem 0.5rem;
  text-align: center;
  font-size: clamp(0.75rem, 1.8vw, 0.9rem);
  font-weight: 600;
  color: #495057;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
}

.payment-item:hover {
  background: #f8f9fa;
  color: #333;
  border-color: #dee2e6;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.payment-item-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem !important;
}

.payment-logo {
  max-width: 100%;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Zoom khusus untuk Shopee */
.payment-item-logo img[src*="shopee.png"] {
  max-height: 45px;
  transform: scale(1.5);
}

/* QRIS lebih kecil */
.payment-item-logo img[src*="qris.png"] {
  max-height: 25px;
  transform: scale(0.8);
}

/* Agen Brilink */
.payment-item-logo img[src*="agenbrilink.jpg"] {
  max-height: 30px;
  transform: scale(1.0);
}

/* Zoom khusus untuk GoPay */
.payment-item-logo img[src*="gopay.png"] {
  max-height: 45px;
  transform: scale(1.5);
}

/* Zoom khusus untuk Alfamart */
.payment-item-logo img[src*="alfamart.png"] {
  max-height: 45px;
  transform: scale(1.5);
}

/* Indomaret perlu posisi tengah yang lebih presisi */
.payment-item-logo img[src*="indomaret.png"] {
  max-height: 35px;
  transform: scale(1.2) translateY(-2px);
}

/* Alfamidi lebih kecil */
.payment-item-logo img[src*="alfamidi.png"] {
  max-height: 25px;
  transform: scale(0.8);
}

/* DANA, Lazada lebih kecil */
.payment-item-logo img[src*="dana.png"],
.payment-item-logo img[src*="lazada.png"] {
  max-height: 28px;
  transform: scale(0.9);
}

/* Blibli lebih besar */
.payment-item-logo img[src*="blibli.png"] {
  max-height: 35px;
  transform: scale(1.2);
}

/* Traveloka lebih besar */
.payment-item-logo img[src*="traveloka.png"] {
  max-height: 40px;
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .payment-item-logo img[src*="shopee.png"] {
    max-height: 35px;
    transform: scale(1.3);
  }

  .payment-item-logo img[src*="qris.png"] {
    max-height: 20px;
    transform: scale(0.7);
  }

  .payment-item-logo img[src*="agenbrilink.jpg"] {
    max-height: 25px;
    transform: scale(0.9);
  }

  .payment-item-logo img[src*="gopay.png"] {
    max-height: 35px;
    transform: scale(1.3);
  }

  .payment-item-logo img[src*="alfamart.png"] {
    max-height: 35px;
    transform: scale(1.3);
  }

  .payment-item-logo img[src*="indomaret.png"] {
    max-height: 28px;
    transform: scale(1.1) translateY(-1px);
  }

  .payment-item-logo img[src*="alfamidi.png"] {
    max-height: 20px;
    transform: scale(0.7);
  }

  .payment-item-logo img[src*="dana.png"],
  .payment-item-logo img[src*="lazada.png"] {
    max-height: 22px;
    transform: scale(0.8);
  }

  .payment-item-logo img[src*="blibli.png"] {
    max-height: 28px;
    transform: scale(1.1);
  }

  .payment-item-logo img[src*="traveloka.png"] {
    max-height: 32px;
    transform: scale(1.2);
  }
}

@media (max-width: 480px) {
  .payment-item-logo img[src*="shopee.png"] {
    max-height: 28px !important;
    transform: scale(1.2) !important;
  }

  .payment-item-logo img[src*="qris.png"] {
    max-height: 18px !important;
    transform: scale(0.6) !important;
  }

  .payment-item-logo img[src*="agenbrilink.jpg"] {
    max-height: 22px;
    transform: scale(0.8);
  }

  .payment-item-logo img[src*="gopay.png"] {
    max-height: 28px;
    transform: scale(1.2);
  }

  .payment-item-logo img[src*="alfamart.png"] {
    max-height: 28px;
    transform: scale(1.2);
  }

  .payment-item-logo img[src*="indomaret.png"] {
    max-height: 22px;
    transform: scale(1.05) translateY(-1px);
  }

  .payment-item-logo img[src*="alfamidi.png"] {
    max-height: 18px;
    transform: scale(0.6);
  }

  .payment-item-logo img[src*="dana.png"],
  .payment-item-logo img[src*="lazada.png"] {
    max-height: 20px;
    transform: scale(0.7);
  }

  .payment-item-logo img[src*="blibli.png"] {
    max-height: 25px;
    transform: scale(1.0);
  }

  .payment-item-logo img[src*="traveloka.png"] {
    max-height: 30px;
    transform: scale(1.1);
  }

  .payment-item-logo img[src*="tokopedia.png"] {
    max-height: 22px !important;
    transform: scale(0.8) !important;
  }
}

/* Footer */
.footer {
  background: white;
  color: #6c757d;
  text-align: center;
  padding: 1rem;
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .container {
    font-size: 0.9rem;
  }

  .header {
    padding: 1rem 0.8rem 0.5rem;
  }

  .hero {
    padding: 3rem 1rem 0.8rem;
    flex: 0 0 auto;
  }

  .isolir-notice {
    margin-bottom: 0.8rem;
    padding: 10px 20px;
  }

  .isolir-icon {
    width: 28px;
    height: 28px;
  }

  .isolir-text {
    font-size: 1.2rem;
  }

  .info-block {
    padding: 1.2rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
  }

  .payment-card {
    padding: 1.2rem 0.8rem 0.8rem;
    margin-top: auto;
  }

  .payment-grid {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 0.5rem;
  }

  .payment-item {
    padding: 0.4rem 0.3rem;
    font-size: 0.7rem;
    min-height: 42px;
  }

  .payment-logo {
    max-height: 30px;
  }

  .info-text {
    font-size: 0.85rem;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 0.5rem 0.5rem 0.2rem;
  }

  .hero {
    padding: 2.5rem 0.8rem 0.5rem;
  }

  .isolir-notice {
    margin-bottom: 0.6rem;
    padding: 8px 16px;
  }

  .isolir-icon {
    width: 24px;
    height: 24px;
  }

  .isolir-text {
    font-size: 1rem;
  }

  .info-block {
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
  }

  .payment-card {
    padding: 0.8rem 0.5rem 0.3rem;
  }

  .payment-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
  }

  .payment-item {
    font-size: 0.65rem;
    padding: 2px 8px !important;
    min-height: 24px !important;
    height: 24px !important;
  }

  .payment-item.payment-item-logo {
    font-size: 0.65rem;
    padding: 2px 8px !important;
    min-height: 24px !important;
    height: 24px !important;
  }

  .payment-logo {
    max-height: 25px;
  }

  .info-text {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .info-title {
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
  }

  .contact-number {
    font-size: 0.9rem;
    margin-top: 0.6rem;
  }

  .payment-subtitle {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
  }

  .block-label {
    font-size: 0.7rem;
    padding: 3px 10px;
    top: -10px;
    left: 15px;
  }
}

/* Ensure no scroll on very small screens */
@media (max-height: 600px) {
  .container {
    transform: scale(0.9);
    transform-origin: top center;
  }

  .hero {
    flex: 0 0 auto;
    padding: 3rem 1rem 0.5rem;
  }

  .info-block {
    padding: 1rem;
    margin-bottom: 0.5rem;
  }

  .payment-card {
    padding: 1rem 0.8rem 0.5rem;
  }
}

@media (max-height: 500px) {
  .container {
    transform: scale(0.8);
  }

  .hero {
    padding: 2.5rem 1rem 0.3rem;
  }

  .info-block {
    padding: 0.8rem;
    margin-bottom: 0.3rem;
  }

  .payment-card {
    padding: 0.8rem 0.5rem 0.3rem;
  }

  .hero-title {
    margin-bottom: 0.5rem;
  }
}
