:root {
  --bg: #0a0f4d;
  --blue: #1029a0;
  --blue-border: #2a45d0;
  --teal: #00e5d0;
  --teal-dark: #00897b;
  --white: #fff;
  --serif: 'Abhaya Libre', Georgia, serif;
  --body: 'Atma', 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--body);
  line-height: 1.5;
  overflow-x: hidden
}

img {
  max-width: 100%;
  display: block
}

a {
  color: inherit;
  text-decoration: none
}

ul {
  list-style: none
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px
}

/* ---------- NAV ---------- */
.nav-wrap {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 16px
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  height: 64px;
  padding: 0 24px;
  border-radius: 18px;
  background: linear-gradient(90deg, #1fb7a6, #17908a);
  display: flex;
  align-items: center;
  gap: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35)
}

.logo {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: .5px
}

.logo span {
  color: #0a0f4d
}

.menu {
  display: flex;
  gap: 30px;
  margin-left: 12px;
  flex: 1
}

.menu a {
  font-size: .85rem;
  padding-bottom: 3px;
  transition: color .2s
}

.menu a.active {
  color: var(--teal);
  border-bottom: 1px solid var(--teal)
}

.menu a:hover {
  color: var(--teal)
}

.btn-hire {
  background: linear-gradient(90deg, #0fc9b8, #0b8f9a);
  padding: 8px 22px;
  border-radius: 20px;
  font-size: .9rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2)
}

.nav-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--teal);
  background: #0a0f4d
}

.burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  margin-left: auto
}

.burger span {
  width: 24px;
  height: 2px;
  background: #fff;
  display: block;
  transition: .25s
}

/* ---------- HERO ---------- */
.hero {
  min-height: 760px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 200px 40px 60px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 20px;
  position: relative
}

.hero-text {
  max-width: 520px
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px
}

.hero p {
  font-size: .95rem;
  max-width: 460px
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 38px;
  flex-wrap: wrap
}

.btn-work {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 18px;
  border-radius: 24px;
  background: linear-gradient(90deg, #14b8a6, #0b6f86);
  border: 2px solid var(--teal);
  box-shadow: 0 0 18px rgba(0, 229, 208, .45);
  transition: transform .2s, box-shadow .2s
}

.btn-work:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(0, 229, 208, .7)
}

.btn-work .arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: var(--teal-dark);
  display: grid;
  place-items: center;
  font-size: .9rem
}

.soc {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
  transition: transform .2s
}

.soc:hover {
  transform: scale(1.15)
}

.soc.tiktok {
  color: #fff;
  text-shadow: 2px 0 #ff2d55, -2px 0 var(--teal);
  font-size: 1.4rem
}

.soc.insta {
  background: linear-gradient(45deg, #f9a03f, #e1306c, #833ab4)
}

.soc.insta::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 5px
}

.soc.fb {
  background: #1877f2;
  border-radius: 50%;
  font-family: Georgia, serif
}

.soc.wa {
  background: #25d366;
  border-radius: 50%
}

.hero-photos {
  justify-self: end;
  align-self: end;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: rise .9s ease-out both;
}

.hero-photos img {
  height: auto;
  filter: drop-shadow(0 0 24px rgba(0, 0, 0, .8));
  transition: transform .3s;
}

.hero-photos .p-left { 
  width: 60%;
  position: relative;
  z-index: 1;
  margin-right: -23%;
  margin-bottom: -10%;
}
.hero-photos .p-right {
  width: 50%;
  position: relative;
  z-index: 2;
  margin-left: -5%;
  margin-bottom: -10%;
}

.hero-photos .p-mid {
  width: 55%;
  position: relative;
  z-index: 3;
  margin: 0 -8%;
  margin-bottom: -10%;    /* tumpang tindih dengan foto kiri dan kanan */
}

.hero-photos img:hover {
  transform: translateY(-8px);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.glow-band {
  height: 170px;
  background: linear-gradient(180deg, #05082a 0, #05082a 6px, #0aa89c 55%, var(--bg) 100%);
  border-top: 6px solid #050825
}

/* ---------- SHARED ---------- */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 40px
}

.title-teal,
.title-white {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.4rem;
  letter-spacing: .5px
}

.title-teal {
  color: var(--teal)
}

.title-white {
  color: #fff;
  font-size: 3rem
}

.title-white.sm {
  font-size: 1.8rem;
  margin-bottom: 30px
}

.center {
  text-align: center
}

.card-blue,
.cert {
  background: var(--blue);
  border: 1px solid var(--blue-border);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), 0 6px 20px rgba(0, 0, 0, .3)
}

/* ---------- ABOUT ---------- */
.about {
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 24px
}

.about .sub {
  color: var(--teal);
  font-size: .75rem;
  margin: 4px 0 8px
}

.about .small {
  font-size: .75rem;
  max-width: 340px
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 40px;
  margin-top: 22px;
  max-width: 300px
}

.stats b {
  display: block;
  color: var(--teal);
  font-size: 1.3rem
}

.stats b::after {
  content: "+"
}

.stats span {
  font-size: .75rem
}

.sword {
  width: 100%;
  max-width: 300px;
  justify-self: center;
  filter: drop-shadow(0 0 20px rgba(0, 229, 208, .4));
  transform: translateY(-40px);
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 18px
}

.card-blue {
  padding: 16px 18px;
  min-height: 120px
}

.card-blue h3 {
  color: var(--teal);
  font-size: .95rem;
  margin-bottom: 8px
}

.card-blue p {
  font-size: .72rem
}

/* ---------- CERTIFICATE ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 80px
}

.cert {
  height: 200px;
  padding: 14px 20px;
  text-align: center;
  transition: transform .25s, border-color .25s
}

.cert:hover {
  transform: translateY(-6px);
  border-color: var(--teal)
}

.cert h3 {
  color: var(--teal);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem
}
#certificate .title-teal {
  color: #fff;
}

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 30px;
  margin-top: 24px;
  align-items: stretch;
}

/* kiri: dua kartu kontak */
.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
#contact .title-teal {
  color: #fff;
}

.person {
  display: grid;
  grid-template-columns: 64px 1fr;
  grid-template-areas: "img phone" "img info";
  align-items: center;
  column-gap: 14px;
  row-gap: 4px;
  padding: 12px 16px;
  background: var(--blue);
  border: 1px solid var(--blue-border);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
  transition: transform .25s, border-color .25s;
}

.person:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
}

.person img {
  grid-area: img;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--teal);
  background: #0d1b6b;
  box-shadow: 0 0 14px rgba(0, 229, 208, .45);
}

.phone {
  grid-area: phone;
  justify-self: start;
  background: linear-gradient(90deg, #00e5d0, #00a99d);
  color: #0a0f4d;
  border-radius: 999px;
  font-size: .78rem;
  padding: 0px 12px;
}

.info-row {
  grid-area: info;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  min-width: 0;
}

.info-row a {
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.ico {
  font-size: 1rem;
  color: var(--teal);
}

/* kanan: formulir dalam kartu */
.form {
  background: rgba(16, 41, 160, .35);
  border: 1px solid var(--blue-border);
  border-radius: 16px;
  padding: 16px 20px 18px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .3);
}

.form label {
  display: block;
  font-size: .78rem;
  color: var(--teal);
  margin: 8px 0 3px 2px;
  line-height: 1.2;
}

.form label:first-child {
  margin-top: 0;
}

.form input,
.form textarea {
  width: 100%;
  display: block;
  border: 1.5px solid rgba(0, 229, 208, .5);
  border-radius: 10px;
  padding: 6px 12px;
  background: rgba(5, 10, 60, .7);
  color: #fff;
  font-family: var(--body);
  font-size: .85rem;
  transition: border-color .2s, box-shadow .2s;
}

.form input {
  height: 34px;
}

.form textarea {
  min-height: 80px;
  resize: vertical;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 229, 208, .25);
}

.form .invalid {
  border-color: #ff5c7a;
  box-shadow: 0 0 0 3px rgba(255, 92, 122, .3);
}

/* tombol kirim: besar dan jelas */
.btn-send {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 8px 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #00e5d0, #00a99d);
  color: #05103a;
  font-family: var(--body);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(0, 229, 208, .4);
  transition: transform .2s, box-shadow .2s;
}

.btn-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(0, 229, 208, .7);
}

.btn-send span {
  transition: transform .2s;
}

.btn-send:hover span {
  transform: translateX(5px);
}

.form-status {
  font-size: .8rem;
  margin: 8px 0 0 2px;
  min-height: 1.1em;
}

.form-status.err {
  color: #ff8fa3;
}

.form-status.ok {
  color: var(--teal);
}

@media (max-width: 480px) {
  .form {
    padding: 14px 12px;
  }
}

/* ---------- PROJECT ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px
}
#project .title-teal {
  color: #fff;
}

.project {
  aspect-ratio: 3/4;
  border: 3px solid var(--teal);
  border-radius: 14px;
  overflow: hidden;
  background: #0d1b6b;
  box-shadow: 0 0 14px rgba(0, 229, 208, .45);
  transition: transform .25s, box-shadow .25s
}

.project:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 26px rgba(0, 229, 208, .8)
}

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

/* ---------- EXPERIENCE ---------- */
.exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 10px
}

.skills {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 420px
}

.skills li {
  display: grid;
  grid-template-columns: 70px 1fr 50px;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-size: .95rem
}

.skills em {
  font-style: normal;
  font-size: .9rem
}

.bar {
  height: 5px;
  background: #fff;
  border-radius: 3px;
  overflow: hidden
}

.bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #00e5d0, #14a39a);
  border-radius: 3px;
  transition: width 1.2s ease-out
}

.tools {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: center
}

.tool {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  transition: transform .2s
}

.tool:hover {
  transform: translateY(-5px) rotate(-4deg)
}

.tool.vs {
  background: #1f8ceb;
  font-size: 1rem
}

.tool.cc {
  background: #111;
  border: 1px solid #444
}

.tool.wd {
  background: linear-gradient(135deg, #2b7cd3, #185abd)
}

.tool.pp {
  background: linear-gradient(135deg, #ff8f6b, #d35230)
}

.tool.cv {
  background: linear-gradient(135deg, #00c4cc, #7d2ae8);
  border-radius: 50%;
  font-style: italic;
  font-family: Georgia, serif
}

.tool.fg {
  background: linear-gradient(135deg, #f24e1e, #a259ff 50%, #0acf83)
}

/* ---------- FOOTER ---------- */
.footer {
  position: relative;
  margin-top: 100px;
  padding: 80px max(40px, calc((100% - 1200px) / 2)) 160px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(10, 15, 77, 0) 35%),
    url("ombak1.png") no-repeat center bottom / cover;
}

.brand {
  display: flex;
  gap: 16px;
  align-items: center
}

.brand img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid var(--teal);
  object-fit: cover;
  object-position: center 20%;
  background: #0d1b6b
}

.brand h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2rem;
  color: var(--teal)
}

.brand p {
  font-size: .62rem;
  max-width: 300px
}

.links {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 24px;
  justify-content: start;
  margin-top: 28px;
  background: var(--blue);
  padding: 18px 24px;
  border-radius: 14px;
  border: 1px solid var(--blue-border);
  max-width: 560px
}

.links h4 {
  color: var(--teal);
  font-size: .7rem;
  margin-bottom: 6px
}

.links a {
  display: block;
  font-size: .58rem;
  line-height: 1.4
}

.links a:hover {
  color: var(--teal)
}

.footer-right {
  align-self: start;
  margin-top: 30px
}

.footer-right h4 {
  color: var(--teal);
  font-size: .72rem;
  margin-bottom: 6px
}

.footer-right p {
  font-size: .58rem;
  margin-bottom: 10px
}

.foot-soc {
  display: flex;
  gap: 12px
}

.copy {
  grid-column: 1/-1;
  text-align: center;
  font-size: .6rem;
  margin-top: 60px
}

/* ---------- RESPONSIVE ---------- */
@media (max-width:900px) {
  .burger {
    display: flex
  }

  .btn-hire,
  .nav-avatar {
    display: none
  }

  .menu {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 20px;
    background: #17908a;
    border-radius: 16px;
    display: none
  }

  .menu.open {
    display: flex
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 150px;
    text-align: left
  }

  .hero-photos {
  justify-self: center;
  max-width: 460px;
  order: -1
}

  .about,
  .contact-grid,
  .exp-grid,
  .footer {
    grid-template-columns: 1fr
  }

  .cert-grid {
    grid-template-columns: 1fr;
    margin-top: 40px
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px
  }

  .section,
  .about {
    padding: 60px 24px
  }

  .links {
    grid-template-columns: repeat(2, auto)
  }
}

@media (max-width:480px) {
  .person {
    grid-template-columns: 110px 1fr;
    column-gap: 14px
  }

  .title-white {
    font-size: 2.3rem
  }
}

@media (prefers-reduced-motion:reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important
  }
}
/* ---------- IKON SVG SOSIAL MEDIA ---------- */
.icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  transition: transform .2s;
}

.icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.icon:hover {
  transform: scale(1.15);
}
/* ---------- IKON SVG TOOLS ---------- */
.tool-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: transform .2s, filter .2s;
}

.tool-icon:hover {
  transform: translateY(-5px) rotate(-4deg);
  filter: drop-shadow(0 6px 10px rgba(0, 229, 208, .45));
}
/* ---------- PERBAIKAN FOOTER ---------- */

/* copyright: kembali ke tengah dan lebih mudah dibaca di atas ombak */
.footer .copy {
  grid-column: 1 / -1;
  justify-self: center;
  text-align: center;
  margin-top: 40px;
  font-size: .8rem;
  color: #fff;
  text-shadow: 0 1px 6px rgba(5, 8, 42, .9), 0 0 12px rgba(5, 8, 42, .8);
}

/* kotak link: lebarnya mengikuti isi, 3 kolom, huruf lebih besar */
.footer .links {
  grid-template-columns: repeat(3, auto);
  width: fit-content;
  max-width: 100%;
  gap: 18px 48px;
  padding: 18px 28px;
}

.footer .links h4 {
  font-size: .85rem;
}

.footer .links a {
  font-size: .75rem;
}

@media (max-width: 900px) {
  .footer .links {
    grid-template-columns: repeat(2, auto);
  }
}