/* =========================================================
   0. VARIABEL WARNA & GLOBAL RESET
   ========================================================= */
:root {
  /* Palet warna elegan: biru, putih, abu-abu */
  --color-navy: #0f172a;      /* teks utama / gelap */
  --color-blue: #2563eb;      /* aksen utama */
  --color-blue-light: #60a5fa;/* aksen sekunder */
  --color-blue-soft: #eff6ff; /* background lembut biru */
  --color-white: #ffffff;
  --color-gray-50: #f8fafc;
  --color-gray-100: #f1f5f9;
  --color-gray-300: #cbd5e1;
  --color-gray-500: #64748b;
  --color-gray-700: #334155;

  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 16px 40px rgba(37, 99, 235, 0.18);
  --transition: all 0.35s ease;
}

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

html {
  scroll-behavior: smooth; /* fallback smooth scroll (JS juga menangani) */
}

body {
  font-family: var(--font-body);
  color: var(--color-gray-700);
  background-color: var(--color-white);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; border: none; cursor: pointer; background: none; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; }

.section__eyebrow {
  text-align: center;
  color: var(--color-blue);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.section__title {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 60px;
  position: relative;
}

.section__title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-blue-light));
  border-radius: 10px;
  margin: 16px auto 0;
}

/* =========================================================
   1. TOMBOL (BUTTONS)
   ========================================================= */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
}

.btn--primary {
  background: var(--color-blue);
  color: var(--color-white);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}
.btn--primary:hover {
  background: #1d4ed8;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--color-blue);
  border: 2px solid var(--color-blue);
}
.btn--outline:hover {
  background: var(--color-blue);
  color: var(--color-white);
  transform: translateY(-3px);
}

.btn--small {
  padding: 9px 20px;
  font-size: 0.85rem;
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: 30px;
}
.btn--small:hover {
  background: var(--color-blue);
  transform: translateY(-2px);
}

.btn--full { width: 100%; text-align: center; }

/* =========================================================
   2. NAVBAR
   ========================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-gray-100);
  transition: var(--transition);
}

.navbar__container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-navy);
}
.navbar__logo span { color: var(--color-blue); }

.navbar__menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-gray-700);
  position: relative;
  padding: 6px 0;
  transition: var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-blue);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active-link {
  color: var(--color-blue);
}
.nav-link:hover::after,
.nav-link.active-link::after {
  width: 100%;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 1100;
}
.hamburger__bar {
  width: 26px;
  height: 3px;
  background: var(--color-navy);
  border-radius: 4px;
  transition: var(--transition);
}
.hamburger.open .hamburger__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open .hamburger__bar:nth-child(2) { opacity: 0; }
.hamburger.open .hamburger__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   3. HERO / BERANDA
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  background: linear-gradient(180deg, var(--color-blue-soft) 0%, var(--color-white) 70%);
  overflow: hidden;
}

.hero__bg-shape {
  position: absolute;
  top: -180px;
  right: -180px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--color-blue-light), transparent 70%);
  opacity: 0.35;
  z-index: 0;
}

.hero__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.hero__text { flex: 1 1 480px; }

.hero__eyebrow {
  color: var(--color-blue);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.hero__name {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero__status {
  font-size: 1.15rem;
  color: var(--color-blue);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero__desc {
  max-width: 520px;
  color: var(--color-gray-500);
  margin-bottom: 32px;
  font-size: 1.02rem;
}

.hero__buttons { display: flex; gap: 18px; flex-wrap: wrap; }

.hero__image {
  flex: 1 1 320px;
  display: flex;
  justify-content: center;
}

.hero__photo-wrapper{
    width:350px;
    height:350px;
    border-radius:50%;
    overflow:hidden;
    border:8px solid #3b82f6;
    display:flex;
    justify-content:center;
    align-items:center;
}

.hero__photo-wrapper img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:50%;
    display:block;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--color-white);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.scroll-down {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--color-blue);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-down span {
  width: 5px;
  height: 5px;
  background: var(--color-blue);
  border-radius: 50%;
  animation: scrollDown 1.6s infinite;
}
@keyframes scrollDown {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(14px); }
}


.edu-card{
    background:#fff;
    border-radius:20px;
    padding:30px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    transition:.3s;
    border:1px solid #e5e7eb;
}

.edu-card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 40px rgba(37,99,235,.20);
}

.edu-icon{
    width:60px;
    height:60px;
    border-radius:50%;
    background:#2563eb;
    color:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:28px;
    margin-bottom:20px;
}

.edu-card h3{
    margin-bottom:10px;
}

.edu-card span{
    display:block;
    color:#2563eb;
    font-weight:600;
    margin-bottom:10px;
}
/* =========================================================
   4. TENTANG SAYA
   ========================================================= */
.tentang { background: var(--color-white); }

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

.tentang__card {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
}
.tentang__card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-blue-light);
}

.tentang__icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.tentang__card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.tentang__card p {
  color: var(--color-gray-500);
  font-size: 0.95rem;
}

/* =========================================================
   5. PROFIL
   ========================================================= */
.profil { background: var(--color-gray-50); }

.profil__card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 44px;
}

.profil__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px 40px;
}

.profil__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px dashed var(--color-gray-300);
  padding-bottom: 14px;
}

.profil__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-blue);
  font-weight: 600;
}

.profil__value {
  font-size: 1rem;
  color: var(--color-navy);
  font-weight: 500;
}

/* =========================================================
   6. PORTOFOLIO
   ========================================================= */
.portofolio { background: var(--color-white); }

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

.project-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.project-card__image { overflow: hidden; }
.project-card__image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}
.project-card:hover .project-card__image img { transform: scale(1.08); }

.project-card__body { padding: 24px; }
.project-card__body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.project-card__body p {
  font-size: 0.92rem;
  color: var(--color-gray-500);
  margin-bottom: 14px;
  min-height: 44px;
}

.project-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.project-card__tech span {
  background: var(--color-blue-soft);
  color: var(--color-blue);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
}

/* =========================================================
   7. KEAHLIAN / SKILLS
   ========================================================= */
.keahlian { background: var(--color-gray-50); }

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px 48px;
  max-width: 900px;
  margin: 0 auto;
}

.skill__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.skill__icon {
  font-size: 1.1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-blue-soft);
  color: var(--color-blue);
  border-radius: 8px;
  font-weight: 700;
}

.skill__name {
  font-weight: 600;
  color: var(--color-navy);
  flex: 1;
}

.skill__percent {
  font-weight: 600;
  color: var(--color-blue);
  font-size: 0.9rem;
}

.skill__bar {
  width: 100%;
  height: 10px;
  background: var(--color-gray-100);
  border-radius: 20px;
  overflow: hidden;
}

.skill__fill {
  height: 100%;
  width: 0%; /* diisi lewat JavaScript saat terlihat */
  border-radius: 20px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-blue-light));
  transition: width 1.4s ease;
}

/* =========================================================
   8. KONTAK
   ========================================================= */
.kontak { background: var(--color-white); }

.kontak__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
}

.kontak__form {
  background: var(--color-gray-50);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--color-gray-100);
}

.form-group { margin-bottom: 20px; position: relative; }

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-navy);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--color-gray-300);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-navy);
  background: var(--color-white);
  transition: var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-group.invalid input,
.form-group.invalid textarea {
  border-color: #ef4444;
}

.form-error {
  display: block;
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 6px;
  min-height: 16px;
}

.form-success {
  display: none;
  margin-top: 16px;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  text-align: center;
}
.form-success.show { display: block; }

.kontak__info h3 { font-size: 1.3rem; margin-bottom: 12px; }
.kontak__desc { color: var(--color-gray-500); margin-bottom: 24px; }

.kontak__list { display: flex; flex-direction: column; gap: 18px; }
.kontak__list li { display: flex; align-items: center; gap: 16px; }

.kontak__icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-blue-soft);
  color: var(--color-blue);
  border-radius: 50%;
  font-size: 1.15rem;
}

.kontak__list strong {
  display: block;
  color: var(--color-navy);
  font-size: 0.95rem;
}
.kontak__list a {
  color: var(--color-gray-500);
  font-size: 0.9rem;
  transition: var(--transition);
}
.kontak__list a:hover { color: var(--color-blue); }

/* =========================================================
   9. FOOTER
   ========================================================= */
.footer {
  background: var(--color-navy);
  color: var(--color-gray-300);
  padding: 32px 0;
  text-align: center;
}
.footer__container p { font-size: 0.9rem; }
.footer__made { margin-top: 6px; font-size: 0.8rem; color: var(--color-gray-500); }

/* =========================================================
   10. BACK TO TOP
   ========================================================= */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-blue);
  color: var(--color-white);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 900;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: #1d4ed8; transform: translateY(-4px); }

/* =========================================================
   11. ANIMASI FADE-IN (scroll reveal)
   ========================================================= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   12. RESPONSIVE - TABLET (<= 992px)
   ========================================================= */
@media (max-width: 992px) {
  .kontak__grid { grid-template-columns: 1fr; }
  .hero__container { justify-content: center; text-align: center; }
  .hero__desc { margin-left: auto; margin-right: auto; }
  .hero__buttons { justify-content: center; }
}

/* =========================================================
   13. RESPONSIVE - MOBILE (<= 768px)
   ========================================================= */
@media (max-width: 768px) {
  .section { padding: 70px 0; }

  .hamburger { display: flex; }

  .navbar__menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background: var(--color-white);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    padding: 40px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.08);
    transition: right 0.4s ease;
  }
  .navbar__menu.open { right: 0; }

  .hero__photo-wrapper { width: 240px; height: 240px; }

  .profil__card { padding: 28px 22px; }
}

/* =========================================================
   14. RESPONSIVE - SMARTPHONE KECIL (<= 480px)
   ========================================================= */
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero__buttons { flex-direction: column; width: 100%; }
  .btn { text-align: center; width: 100%; }
  .kontak__form { padding: 24px; }
  .back-to-top { width: 42px; height: 42px; right: 18px; bottom: 18px; }
}

/* Menghormati preferensi pengguna yang mengurangi gerakan/animasi */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
