:root {
  scroll-padding-top: 60px !important;
}

html {
    scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #f8f9fa;
  color: #333;
}

/* Menu Navigation */
nav {
  background-color: #0077b6;
  color: white;
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
}

nav ul li a:hover {
  text-decoration: underline;
}

/* Section 1: Judul kiri, gambar kanan */
.hero {
  background-color: #e0f7fa;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 8rem 10rem;
}

.hero-text h1 {
  margin-top: 0;
  font-size: 2rem;
  color: #03045e;
}

.hero-text p {
  font-size: 1.2rem;
}

.hero-text button {
  background-color: #03045e;
  color: white;
  padding: 14px 18px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: all ease 0.3s;
  border-radius: 8px;
}

.hero-text button:hover {
  background-color: rgba(3, 5, 94, 0.7);
}

.hero .profile-img {
  display: flex;
  justify-content: center;
}

.hero .profile-img img {
  border-radius: 20px;
  max-width: 100%;
  height: auto;
}

/* Section 2: Biodata */
.biodata {
  text-align: center;
  padding: 40px 20px;
  background-color: #caf0f8;
}

.biodata-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.biodata-box {
  background: white;
  padding: 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all ease 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.biodata-box:hover {
  background: #f0f0f0;
  transform: scale(1.01);
}

/* Section 3: Portofolio */
.portfolio {
  padding: 40px 20px;
  background-color: #e0f7fa;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portfolio-item {
  background: white;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.portfolio-item img {
  max-width: 100%;
  border-radius: 8px;
}

/* Responsive */
/* Tablet */
@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr; /* teks & gambar jadi satu kolom */
    text-align: center;
    padding: 6rem 3rem;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero .profile-img {
    margin-top: 20px;
  }

  .hero .profile-img img {
    max-width: 80%;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .hero {
    padding: 5rem 1.5rem;
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }

  .hero-text p {
    font-size: 0.95rem;
  }

  .hero .profile-img img {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .biodata-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .biodata-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}
