/* Ade Fajar Kurniawan - Portfolio
   Base styles: theme tokens, layout, components. Mobile rules live in responsive.css */

:root {
  --bg: #fff;
  --bg2: #fff;
  --fg: #0D0D0D;
  --mut: #4a4f57;
  --ac: #2A5560;
  --ac2: #7094B8;
  --cd: #F6F7F9;
  --ln: rgba(13, 13, 13, .16);
  --gl: rgba(255, 255, 255, .74);
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px)
}

@media(prefers-color-scheme:dark) {
  :root:not([data-theme=light]) {
    --bg: #0D0D0D;
    --bg2: #171a1f;
    --fg: #F4F4F4;
    --mut: #aab0ba;
    --ac: #5fa3b3;
    --ac2: #8fb0d3;
    --cd: #15181d;
    --ln: rgba(244, 244, 244, .18);
    --gl: rgba(13, 13, 13, .72)
  }
}

:root[data-theme=dark] {
  --bg: #0D0D0D;
  --bg2: #171a1f;
  --fg: #F4F4F4;
  --mut: #aab0ba;
  --ac: #5fa3b3;
  --ac2: #8fb0d3;
  --cd: #15181d;
  --ln: rgba(244, 244, 244, .18);
  --gl: rgba(13, 13, 13, .72)
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  background: var(--bg)
}

body {
  background: var(--bg);
  color: var(--fg);
  font: 15.5px/1.7 Montserrat, system-ui, sans-serif;
  overflow-x: hidden
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer
}

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

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 5vw 10px;
  background: var(--gl);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--ln)
}

.brand {
  font-weight: 800;
  letter-spacing: -.02em
}

.brand i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ac2);
  margin-left: 3px
}

.nav nav {
  display: flex;
  gap: clamp(12px, 3vw, 28px)
}

.nav nav a {
  color: var(--mut);
  font-size: 14px;
  font-weight: 600;
  transition: color .2s
}

.nav nav a:hover {
  color: var(--fg)
}

section {
  position: relative;
  padding: 104px max(5vw, calc((100vw - 1160px)/2)) 64px
}

section:not(.hero)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(16px, 2.2vw, 30px);
  height: 150px;
  background: var(--fg)
}

.hero {
  --bg: #0D0D0D;
  --fg: #fff;
  --mut: #c9cfd8;
  --ln: rgba(255, 255, 255, .24);
  --cd: rgba(255, 255, 255, .06);
  color: var(--fg)
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  padding-bottom: 28px;
  background: linear-gradient(rgba(13, 13, 13, .5), rgba(13, 13, 13, .8)), url('../assets/img/hero.jpg') center 45%/cover
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--mut);
  font-size: 13px
}

.row b {
  color: var(--fg)
}

h1 {
  font-size: clamp(48px, 14vw, 200px);
  line-height: .95;
  letter-spacing: -.045em;
  font-weight: 800;
  margin: 14px 0 0
}

.nm {
  font-family: 'Mrs Saint Delafield', 'Segoe Script', cursive;
  font-weight: 400;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1;
  color: #9db9d9;
  margin: 0 0 20px
}

.mid {
  padding: 32px 0
}

.role {
  color: var(--mut);
  font-weight: 600;
  font-size: 14px
}

.tag {
  font-size: clamp(17px, 2.4vw, 26px);
  font-weight: 700;
  max-width: 760px;
  margin: 6px auto 28px
}

.sub {
  color: var(--mut);
  max-width: 620px;
  margin: 0 auto 26px
}

.pills,
.cta,
.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center
}

.pills {
  margin-bottom: 28px
}

.pills span,
.chips span {
  border: 1px solid var(--ln);
  background: var(--cd);
  border-radius: 99px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  transition: .25s
}

.pills span:hover {
  border-color: var(--ac2);
  transform: translateY(-2px)
}

.btn {
  display: inline-block;
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
  border-radius: 3px;
  padding: 13px 26px;
  font-weight: 700;
  transition: .25s
}

.btn:hover {
  background: var(--ac);
  border-color: var(--ac);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25)
}

.btn.o {
  background: transparent;
  color: var(--fg);
  border-color: var(--ln)
}

.btn.o:hover {
  background: var(--cd);
  border-color: var(--fg);
  color: var(--fg);
  box-shadow: none
}

.hd {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap
}

.hd h2 {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1
}

.hd span {
  color: var(--mut);
  font-size: 14px
}

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

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

.cd {
  background: var(--cd);
  border: 1px solid var(--ln);
  border-radius: 3px;
  padding: 24px;
  transition: .3s
}

.cd:hover {
  border-color: var(--ln);
  background: color-mix(in srgb, var(--ac) 9%, var(--cd));
  backdrop-filter: blur(10px);
  transform: translateY(-3px)
}

.cd h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px
}

.cd li {
  list-style: none;
  color: var(--mut);
  font-size: 14.5px;
  padding: 3px 0
}

.cd li:before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fg);
  margin-right: 10px;
  vertical-align: middle
}

.ab {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, min(460px, 45%)) 1fr;
  margin-bottom: 40px
}

.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  color: var(--mut);
  font-size: 13px;
  border: 1px dashed var(--ln);
  border-radius: 3px;
  background: repeating-linear-gradient(135deg, var(--cd) 0 10px, transparent 10px 20px);
  min-height: 60px;
  padding: 8px
}

.ab p {
  color: var(--mut);
  margin-bottom: 14px
}

.ab p b {
  color: var(--fg)
}

.ab .bio {
  border-left: 4px solid var(--fg);
  padding-left: 16px;
  color: var(--fg)
}

.ab .hi {
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--fg);
  margin: 16px 0 0
}

.ab .nm {
  color: var(--ac2);
  font-size: clamp(40px, 5vw, 60px);
  margin: 0
}

h4 {
  margin: 28px 0 12px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ac)
}

.sec {
  margin-top: 48px
}

.sec>h3 {
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 800
}

.cert .ph {
  aspect-ratio: 16/9;
  margin-bottom: 14px
}

.cert small {
  color: var(--mut);
  display: block;
  margin: 6px 0 10px
}

.cert a {
  color: var(--ac);
  font-weight: 800;
  font-size: 14px
}

.cert p {
  color: var(--mut);
  font-size: 14px
}

.tl {
  list-style: none;
  border-left: 2px solid var(--fg);
  margin-left: 6px
}

.tl li {
  position: relative;
  padding: 0 0 18px 24px;
  cursor: default
}

.tl li:before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--fg);
  transition: .25s
}

.tl li:hover:before,
.tl li.on:before {
  background: var(--ac2);
  border-color: var(--ac2);
  transform: scale(1.3)
}

.tl b {
  display: block
}

.tl span {
  color: var(--mut);
  font-size: 14px
}

.tl em {
  font-style: normal;
  color: var(--ac);
  font-size: 13px;
  font-weight: 800
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px
}

.tabs button {
  background: transparent;
  border: 1px solid var(--ln);
  border-radius: 3px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  transition: .2s
}

.tabs button:hover {
  border-color: var(--fg)
}

.tabs button.on {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg)
}

.track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 2px 18px;
  scrollbar-width: thin
}

.pc {
  flex: 0 0 min(300px, 80vw);
  text-align: left;
  background: var(--cd);
  border: 1px solid var(--ln);
  border-bottom: 5px solid hsl(var(--h) 45% 38%);
  border-radius: 3px;
  overflow: hidden;
  padding: 0;
  transition: .3s
}

.pc:hover {
  transform: translateY(-6px);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 36px rgba(13, 13, 13, .18)
}

.th {
  height: 170px;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(160deg, hsl(var(--h) 38% 38%), hsl(var(--h) 40% 16%))
}

.pb {
  padding: 18px
}

.pb small {
  color: var(--mut)
}

.pb h3 {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3
}

.pb p {
  color: var(--mut);
  font-size: 14px;
  margin: 6px 0 12px
}

.pb span {
  color: var(--ac);
  font-weight: 800;
  font-size: 14px
}

.ov {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(13, 13, 13, .7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px
}

.ov.o {
  display: flex;
  animation: f .25s
}

@keyframes f {
  from {
    opacity: 0
  }
}

.md {
  position: relative;
  width: min(860px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: var(--bg);
  border-left: 8px solid var(--ac2);
  border-radius: 3px;
  padding: clamp(20px, 4vw, 40px);
  animation: u .3s
}

@keyframes u {
  from {
    transform: translateY(24px)
  }
}

.x {
  position: sticky;
  top: 0;
  float: right;
  width: 38px;
  height: 38px;
  border-radius: 3px;
  border: 1px solid var(--ln);
  background: var(--bg)
}

.x:hover {
  border-color: var(--fg)
}

.md h3 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15
}

.md .role {
  color: var(--ac);
  font-weight: 700;
  font-size: 15px;
  margin: 4px 0 6px
}

.md p {
  color: var(--mut)
}

.md small {
  color: var(--mut)
}

.g {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr))
}

.lap {
  border: 8px solid #1c1c1c;
  border-bottom-width: 18px;
  border-radius: 12px;
  overflow: hidden
}

.vid {
  flex-direction: column;
  font-size: 14px
}

.vid span {
  font-size: 34px;
  color: var(--ac2)
}

.ct {
  display: grid;
  gap: 32px;
  grid-template-columns: 1.2fr 1fr
}

form {
  display: grid;
  gap: 12px
}

input,
textarea {
  width: 100%;
  background: var(--cd);
  border: 1px solid var(--ln);
  border-radius: 3px;
  padding: 13px 16px;
  color: var(--fg);
  font: inherit;
  transition: .2s
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--ac2);
  box-shadow: 0 0 0 3px rgba(112, 148, 184, .3)
}

textarea {
  min-height: 130px;
  resize: vertical
}

.ln a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--ln);
  transition: .2s
}

.ln a:hover {
  color: var(--ac2);
  padding-left: 6px
}

.ln span {
  color: var(--mut);
  font-size: 14px
}

footer {
  text-align: center;
  color: var(--mut);
  font-size: 13px;
  padding: 28px 5vw 40px;
  border-top: 18px solid var(--fg)
}

.js .rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s, transform .7s
}

.js .rv.in {
  opacity: 1;
  transform: none
}

@media(prefers-reduced-motion:reduce) {
  * {
    animation: none !important;
    transition: none !important
  }

  html {
    scroll-behavior: auto
  }

  .js .rv {
    opacity: 1;
    transform: none
  }
}

.cd {
  border-radius: 22px;
  border: 1px solid transparent;
  padding: 30px
}

.cd h3 {
  margin-bottom: 12px
}

.ph {
  border-radius: 16px
}

.pf {
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  border-radius: 22px
}

.ab>div:last-child {
  container-type: inline-size
}

.ab .hi {
  font-size: 44px;
  font-size: min(14cqi, 64px);
  white-space: nowrap
}

.ab .nm {
  font-size: 36px;
  font-size: min(11.5cqi, 76px);
  white-space: nowrap
}

.stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px
}

.stat {
  flex: 1 1 150px;
  background: var(--cd);
  border-radius: 22px;
  padding: 20px 24px
}

.stat b {
  display: block;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--fg)
}

.stat span {
  color: var(--mut);
  font-size: 13px
}

.ct {
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch
}

form {
  background: var(--cd);
  border-radius: 24px;
  padding: 28px;
  gap: 14px;
  align-content: start
}

.fr {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

#contact input,
#contact textarea {
  background: var(--bg);
  border-radius: 14px;
  padding: 14px 16px;
  min-width: 0
}

#contact .btn {
  border-radius: 14px;
  width: 100%
}

#st {
  color: var(--mut);
  font-size: 13px
}

.side {
  display: grid;
  gap: 14px;
  grid-template-rows: auto 1fr
}

.lks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.lk {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--cd);
  border-radius: 20px;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 14px;
  min-width: 0;
  overflow-wrap: anywhere;
  transition: .25s
}

.lk:hover {
  transform: translateY(-3px);
  background: color-mix(in srgb, var(--ac2) 14%, var(--cd))
}

.lk small {
  color: var(--mut);
  font-weight: 500;
  font-size: 12.5px
}

.ab .hi {
  margin: 0;
  font-size: 40px;
  font-size: min(10cqi, 60px)
}

.ab .nm {
  margin: 0 0 20px
}

.fun {
  margin-top: 14px;
  background: var(--cd);
  border-radius: 22px;
  padding: 20px 24px
}

.fun b {
  display: block;
  font-size: 13px;
  color: var(--ac);
  font-weight: 800;
  margin-bottom: 4px
}

.fun p {
  margin: 0 0 12px
}

.ab {
  align-items: stretch
}

.ab>div:first-child {
  position: relative;
  min-height: 380px
}

.pf {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
  object-position: center 20%
}

.cimg {
  display: block;
  width: 100%;
  aspect-ratio: 7/5;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 14px
}

.nav .sm {
  display: none
}

.hm {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  background: var(--cd);
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 28px
}

.hm .lo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  padding: 0;
  font-size: 12px
}

.hm h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px
}

.hm p {
  color: var(--mut);
  margin-bottom: 12px
}

.eg {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr))
}

.th {
  position: relative
}

.th img {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  max-width: 60%;
  max-height: 54%;
  background: #fff;
  border-radius: 14px;
  padding: 10px 14px;
  object-fit: contain
}

.mlogo {
  display: block;
  height: 56px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--ln);
  border-radius: 14px;
  padding: 8px 12px;
  margin-bottom: 14px
}

.hm img.lo {
  object-fit: cover;
  background: #fff
}

.th img.ev {
  position: absolute;
  inset: 0;
  left: 0;
  top: 0;
  transform: none;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border-radius: 0;
  padding: 0;
  background: none;
  object-fit: cover
}

.th.hasph {
  padding: 0
}

.mph {
  display: block;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--ln);
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: 10px
}

.sc {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 6px
}

.sc figure {
  margin: 0
}

.sc img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--ln)
}

.sc figcaption {
  font-size: 12.5px;
  color: var(--mut);
  margin-top: 6px;
  text-align: center
}

.dui {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr))
}

.sc {
  align-items: start
}

.mlogo.rd {
  height: 88px;
  width: 88px;
  padding: 0;
  border-radius: 50%;
  object-fit: cover
}

#contact .lk svg {
  width: 24px;
  height: 24px;
  color: var(--ac);
  margin-bottom: 6px
}

#pil p {
  color: var(--mut);
  font-size: 14.5px;
  line-height: 1.7
}

.side {
  grid-template-rows: 1fr
}

.hb {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ln);
  border-radius: 12px;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0
}

.hb span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform .25s, opacity .2s
}

.nav.open .hb span:nth-child(1) {
  transform: translateY(7px) rotate(45deg)
}

.nav.open .hb span:nth-child(2) {
  opacity: 0
}

.nav.open .hb span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg)
}
