:root {
  --blue: #007aff;
  --blue-bg: #f0f8ff;
  --text-dark: #1c1c1e;
  --text-light: #f9f9f9;
  --white: #ffffff;

  --radius: 1rem;
  --shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 16px 30px rgba(0, 0, 0, 0.1);
  --transition: 0.3s ease;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: #eaf6ff;
  color: #1a1a1a;
  padding: 1rem;
}

.container {
  width: 100%;
  max-width: 720px; /* Pas untuk desktop tanpa terlalu lebar */
  margin: 0 auto;
  padding: 1rem; /* Biar nggak nempel ke tepi */
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-sizing: border-box;
}

/* HERO SECTION */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem; /* Menurunkan padding */
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  background-size: 400% 400%;
  animation: bgShift 15s ease infinite;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  color: white;
  overflow: hidden;
  backdrop-filter: saturate(250%) blur(16px);
  transition: all 0.3s ease;
}

/* ANIMATED BACKGROUND GRADIENT */
@keyframes bgShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* PARTICLE GLOW LAYER */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
                    radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 20px 20px, 40px 40px;
  animation: shimmer 30s linear infinite, particleMove 15s ease-in-out infinite;
  z-index: 0;
}

@keyframes shimmer {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 150px 300px, 300px 150px; }
}

/* PARTIKEL GERAK ACAC - Lebih dinamis */
@keyframes particleMove {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  25% {
    transform: translate(100px, -50px) scale(1.5);
    opacity: 0.8;
  }
  50% {
    transform: translate(-50px, 100px) scale(0.8);
    opacity: 0.5;
  }
  75% {
    transform: translate(-100px, -100px) scale(1.2);
    opacity: 0.9;
  }
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
}

/* PROFILE CONTENT */
.hero > * {
  z-index: 1;
}

.profile-photo {
  width: 160px; /* Menurunkan ukuran gambar profil */
  height: 160px; /* Menurunkan ukuran gambar profil */
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid #fff;
  margin-bottom: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.profile-photo:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(255, 255, 255, 0.25);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* TEXT STYLING */
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem); /* Mengurangi ukuran font */
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-shadow: 0 3px 5px rgba(0,0,0,0.4);
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.4rem); /* Menurunkan ukuran font */
  max-width: 600px;
  opacity: 0.95;
  line-height: 1.8;
  font-weight: 500;
  color: #e0e0e0;
  text-shadow: 0 2px 3px rgba(0,0,0,0.3);
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
  .hero {
    padding: 2.5rem 1.5rem; /* Mengurangi padding pada perangkat lebih kecil */
  }

  .profile-photo {
    width: 140px; /* Mengurangi ukuran gambar profil di tablet */
    height: 140px;
    margin-bottom: 1.5rem;
  }

  .hero h1 {
    font-size: 2.2rem; /* Menurunkan ukuran font untuk header */
  }

  .hero p {
    font-size: 1.1rem; /* Menurunkan ukuran font untuk paragraf */
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 1rem; /* Mengurangi padding lebih lanjut di perangkat kecil */
  }

  .profile-photo {
    width: 120px; /* Lebih kecil lagi pada ponsel */
    height: 120px;
  }

  .hero h1 {
    font-size: 1.8rem; /* Menurunkan ukuran font lebih kecil di ponsel */
  }

  .hero p {
    font-size: 0.9rem; /* Mengurangi ukuran font pada ponsel */
  }
}

/* CARD SECTION */
.card {
  background-color: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  background-color: #e9f4ff; /* Soft blue background when hovered */
}

.card h2 {
  color: var(--blue);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: -0.3px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

/* LIST CONTAINER */
.list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

/* LIST ITEM */
.list-item {
  background-color: #f9fafe;
  padding: 1.25rem 1.5rem;
  border-radius: 0.875rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.list-item:hover {
  transform: translateY(-3px);
  background-color: #d9e9ff;
}

.list-item strong {
  color: #1c1c1e;
  font-size: clamp(1rem, 2vw, 1.125rem);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.list-item span {
  font-size: clamp(0.875rem, 1.8vw, 0.95rem);
  color: #555;
  line-height: 1.5;
}

/* SOCIAL BUTTONS */
.social-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (min-width: 480px) {
  .social-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 1rem;
  background-color: #e6f0ff;
  border-radius: 12px;
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border: 2px solid transparent;
}

.social-btn:hover {
  background-color: #007bff;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 2px solid #0056b3;
}

.social-btn i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.social-btn:hover i {
  transform: scale(1.2);
}

/* RESPONSIVE TWEAKS */
@media (max-width: 1024px) {
  /* At tablet screens, adjust padding and layout */
  .card {
    padding: 1.75rem;
  }

  .list-item {
    padding: 1.1rem 1.4rem;
  }

  .social-btn {
    padding: 0.75rem 1.2rem;
    font-size: 1.1rem;
  }

  .social-btn i {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  /* On medium screens, adjust layout */
  .card {
    padding: 1.5rem;
  }

  .list-item {
    padding: 1rem 1.25rem;
  }

  .social-btn {
    padding: 0.75rem;
    font-size: 1rem;
  }

  .social-btn i {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  /* On small screens, make further adjustments */
  .card {
    padding: 1rem;  /* Reduce padding */
  }

  .list-item {
    padding: 0.9rem 1.1rem;  /* Smaller padding for smaller screens */
  }

  .social-btn {
    padding: 0.5rem;
    font-size: 0.9rem;  /* Adjust font size for small screens */
  }

  .social-btn i {
    font-size: 1.2rem;
  }

  /* Adjust layout of list container */
  .list {
    gap: 1rem;
  }

  /* Adjust social buttons to fit better on small screens */
  .social-buttons {
    grid-template-columns: 1fr; /* Ensure only 1 column on very small screens */
  }
}

.footer {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  padding: 2rem 1.5rem;
  background: linear-gradient(to bottom, #f8f9fb, #e9eff5);
  border-radius: var(--radius);
  text-align: center;
  font-size: var(--font-sm);
  color: #6b7280;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.footer .mh-text {
  font-weight: 500;
  font-size: 0.95rem;
  color: #4b5563;
  letter-spacing: 0.3px;
}

.footer .mh-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer .mh-link:hover {
  color: #004bbd;
  transform: translateY(-2px);
}

.mh-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  padding: 0.3rem;
  filter: grayscale(0.5) brightness(1.05);
}

.mh-logo:hover img {
  transform: scale(1.1);
  filter: grayscale(0) brightness(1.1);
}
@media (max-width: 480px) {
  .footer {
    padding: 1.5rem 1rem;
  }

  .footer .mh-text {
    font-size: 0.9rem;
  }

  .mh-logo img {
    width: 40px;
    height: 40px;
  }
}
