
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Montserrat', sans-serif;
}


body {
background: #fff;
color: #000;
}


/* =========================
   NAVBAR BASE
========================= */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 20px 60px;
  transition: all 0.3s ease;
}

/* State saat scroll */
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

/* Menu */
.navbar ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

/* Link */
.navbar a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  transition: 0.3s ease;
}

.navbar a:hover {
  color: #0e00ad;
}

.hero {
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
}

.profile-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;              /* WAJIB agar tetap lingkaran */
  border: 4px solid #1e3aff;      /* biru */
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;              /* POTONG RAPI */
  object-position: center top;    /* fokus ke wajah */
}


.hero h1 span {
color: #0e00ad;
}

.typing span {
color: #0e00ad;
}


.section {
padding: 80px 60px;
}


.section h3 {
margin-bottom: 30px;
font-size: 28px;
}


.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 30px;
  max-width: 800px;
}

.skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 1px solid #e5e5e5;
  transition: 0.3s ease;
  cursor: pointer;
}

.skill img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 10px;
  transition: 0.3s;
}

.skill span {
  font-size: 14px;
  font-weight: 500;
}

.skill:hover {
  border-color: #007bff;
  transform: translateY(-5px);
}

.skill:hover img {
  transform: scale(1.1);
}

.skill:hover span {
  color: #007bff;
}

.cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 30px;
}


.card {
border: 1px solid #ddd;
padding: 30px;
transition: 0.3s;
}


.card:hover {
border-color: #0e00ad;
}


.card a {
text-decoration: none;
color: #0e00ad;
}

.cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink 1s infinite;
  color: #007bff;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

.education {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.edu-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 20px;
  border: 1px solid #eee;
  text-decoration: none;
  color: #000;
  transition: 0.3s ease;
}

.edu-card:hover {
  border-color: #0e00ad;
  transform: translateY(-6px);
}

/* Logo */
.edu-card img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 16px;
}

/* Judul */
.edu-card h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  min-height: 52px; /* ⬅️ KUNCI BIAR SEJAJAR */
}

/* Subjudul */
.edu-card p {
  font-size: 14px;
  color: #0e00ad;
  margin-bottom: 6px;
}

/* Tahun */
.edu-card span {
  font-size: 13px;
  color: #777;
}

.btn-cv {
  margin-top: 25px;
  padding: 12px 30px;
  border: 1.5px solid #0e00ad;
  color: #0e00ad;
  text-decoration: none;
  font-weight: 500;
  border-radius: 30px;
  transition: 0.3s ease;
}

.btn-cv:hover {
  background: #0e00ad;
  color: #fff;
  transform: translateY(-3px);
}

p {
  margin-bottom: 15px;
  text-align: justify;
}

.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
}

.project-card {
  border: 1px solid #ddd;
  background: #fff;
  overflow: hidden;
  transition: 0.3s ease;
}

.project-img {
  height: 180px;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s ease;
}

.project-body {
  padding: 20px;
}

.project-body p {
  font-size: 14px;
  color: #555;
}

.project-card a {
  text-decoration: none;
  color: #0e00ad;
  font-weight: 500;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: #0e00ad;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.project-card:hover img {
  transform: scale(1.1);
}
.project-more {
  margin-top: 40px;
  text-align: center;
}

.btn-more {
  padding: 12px 32px;
  border: 1.5px solid #0e00ad;
  color: #0e00ad;
  text-decoration: none;
  font-weight: 500;
  border-radius: 30px;
  transition: 0.3s ease;
}

.btn-more:hover {
  background: #0e00ad;
  color: #fff;
  transform: translateY(-3px);
}

/* =========================
   PROJECT BANNER
========================= */

.project-banner {
  position: relative;
  width: 100%;
  height: 320px; /* ukuran banner */
  animation: fadeUp 0.8s ease forwards;
  background: linear-gradient(
      rgba(0, 0, 0, 0.35),
      rgba(0, 0, 0, 0.35)
    ),
    url("/assets/project/Banner.jpg") center / cover no-repeat;
}

/* =========================
   BUTTON BACK (TOP RIGHT)
========================= */

.btn-back {
  position: absolute;
  top: 24px;
  right: 40px;

  text-decoration: none;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;

  padding-bottom: 4px;
  border-bottom: 2px solid transparent;

  transition: all 0.3s ease;

  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.btn-back:hover {
  border-color: #ffffff;
  opacity: 0.85;
}

/* =========================
   SOCIAL ICONS (RIGHT CENTER)
========================= */

.banner-social {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 22px;
}

/* wrapper icon */
.banner-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.banner-social a:nth-child(1) { animation-delay: 0.6s; }
.banner-social a:nth-child(2) { animation-delay: 0.75s; }
.banner-social a:nth-child(3) { animation-delay: 0.9s; }

/* icon image */
.banner-social img {
  height: 28px;
  width: auto;
  object-fit: contain;

  opacity: 0.7;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.banner-social a:hover img {
  opacity: 1;
  transform: scale(1.15);
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* =========================
   FOOTER
========================= */

#footer {
  width: 100%;
}

.site-footer {
  border-top: 1px solid #eee;
  padding: 20px 40px;
  margin-top: 80px;
  background: #fff;
}

.site-footer p {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 14px;
  color: #666;
  text-align: center;
  letter-spacing: 0.3px;
}

/* =========================
   ABOUT TOGGLE
========================= */

.about-more {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease;
}

.about-more.show {
  max-height: 1000px; /* cukup besar untuk semua teks */
}

.btn-more {
  margin-top: 12px;
  background: none;
  border: none;
  padding: 0;

  color: #0e00ad;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;

  transition: opacity 0.3s ease;
}

.btn-more:hover {
  opacity: 0.7;
}

/* Pop Up Konfirmasi */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-box {
  background: #fff;
  padding: 30px 40px;
  text-align: center;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  animation: fadeIn 0.4s ease;
}

.popup-box h2 {
  margin-bottom: 10px;
}

.popup-box p {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

.popup-box button {
  padding: 10px 24px;
  border: none;
  background: #0e00ad;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
}

.popup-box button:hover {
  opacity: 0.9;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* =========================
   RESPONSIVE
========================= */

/* TABLET */
@media (max-width: 1024px) {
  .navbar {
    padding: 16px 30px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .section {
    padding: 80px 30px;
  }
}

/* MOBILE */
@media (max-width: 768px) {

  /* Navbar */
  .navbar {
    padding: 14px 20px;
  }

  .navbar ul {
    gap: 20px;
  }

  /* Hero */
  .hero {
    text-align: center;
    padding-top: 120px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero h2 {
    font-size: 18px;
  }

  .profile-img img {
    width: 140px;
    height: 140px;
  }

  /* Sections */
  .section {
    padding: 60px 20px;
  }

  /* Project Cards */
  .cards {
    grid-template-columns: 1fr;
  }

  /* Banner */
  @media (max-width: 768px) {
  .project-banner {
    height: 240px;
  }

  .banner-social {
    right: 20px;
    gap: 16px;
  }

  .btn-back {
    right: 20px;
    top: 18px;
  }

  /* Footer */
  .site-footer {
    padding: 20px;
  }

  .site-footer p {
    text-align: center;
  }
}
}