:root {
  --text-muted: #777;
  --card-bg: #fff;
  --card-border: #e0e0e0;
  --icon-bg: #111;
  --icon-color: #fff;
  --footer-bg: #111;
  --footer-color: #fff;
}

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  color: #111;
  background-color: #fff;
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.text-center {
  text-align: center;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.2s ease forwards;
}

.text-center h2 {
  font-size: 4rem;
  font-weight: 1000;
  margin-bottom: 1rem;
  color: #000;
}

.text-center p {
  font-size: 1.5rem;
  font-weight: 600;
  color: #000;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  perspective: 1200px; 
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInCard 1s ease forwards;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, box-shadow;
}

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card:hover {
  transform: translateY(-10px) scale(1.08) rotateX(2deg) rotateY(2deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.card:nth-child(1) {
  animation-delay: 0.3s;
}
.card:nth-child(2) {
  animation-delay: 0.5s;
}
.card:nth-child(3) {
  animation-delay: 0.7s;
}
.card:nth-child(4) {
  animation-delay: 0.9s;
}

.icon-bg {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--icon-bg);
  color: var(--icon-color);
}

.icon-bg i {
  width: 32px;
  height: 32px;
  stroke-width: 1.5;
  stroke: var(--icon-color);
}

.btn {
  border: 1px solid #000;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  width: 100%;
  background-color: transparent;
  color: #000;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #000;
  color: #fff;
}

.card h3 {
  margin-bottom: 0.5rem;
  color: #000;
  font-weight: 400;
}
.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

#quick-links {
  position: relative;
  min-height: 100vh;
  text-align: center;
  overflow: visible;
  padding: 2rem 0 6rem 0;
}

#quick-links::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("./image/baju.jpg");
  background-size: cover;
  z-index: -1;
}

footer {
  background-color: var(--footer-bg);
  color: var(--footer-color);
  padding: 2rem 1rem;
  text-align: center;
}

footer p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

footer a {
  color: #fff;
  text-decoration: underline;
}

footer a:hover {
  color: #ccc;
}

/* ===== ATURAN RESPONSIVE ===== */

@media (max-width: 768px) {
  .text-center h2 {
    font-size: 3rem; 
  }

  .text-center p {
    font-size: 1.25rem; 
  }

  .grid {
    gap: 1.5rem; 
  }

  #quick-links {
    padding: 4rem 0 4rem 0;
  }
}

@media (max-width: 480px) {
  .text-center {
    margin-bottom: 3rem; 
  }

  .text-center h2 {
    font-size: 2.25rem; 
  }

  .text-center p {
    font-size: 1rem; 
  }

  .card {
    padding: 1.5rem; 
  }

  .icon-bg {
    width: 60px; 
    height: 60px;
  }
}
 
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    background-color: #000;
    color: #fff;
  }
}