@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans.woff2") format("woff2");
}

:root {
  --bg: #0D1117;
  --bg-2: #12171E;
  --card: rgba(22, 27, 34, .82);
  --line: rgba(255, 255, 255, .09);
  --text: #E8E6E3;
  --soft: #9CA3AF;
  --purple: #EA7A12;
  --cyan: #F5B638;
  --grad: linear-gradient(90deg, var(--purple), var(--cyan));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

html { background: var(--bg); }

body {
  color: var(--text);
  font: 400 1rem/1.65 "Plus Jakarta Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.fa { width: 1em; height: 1em; fill: currentColor; display: inline-block; vertical-align: -.125em; flex: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--bg); padding: .5rem 1rem; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(13, 17, 23, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo { font-size: 1.4rem; font-weight: 800; letter-spacing: .02em; display: flex; align-items: center; }
.logo i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); margin: .35rem 0 0 .3rem; }
.nav nav { display: flex; gap: 2rem; }
.nav nav a { position: relative; font-weight: 500; color: var(--soft); transition: color .2s; }
.nav nav a:hover, .nav nav a.active { color: var(--text); }
.nav nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--grad); border-radius: 2px; transform: scaleX(0); transition: transform .25s;
}
.nav nav a.active::after { transform: scaleX(1); }
.menu-btn { display: none; background: none; border: 0; font-size: 1.3rem; cursor: pointer; }

/* hero */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 3rem;
  min-height: calc(100vh - 70px);
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem clamp(1.25rem, 4vw, 3rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1;
  background: radial-gradient(60rem 30rem at 70% 30%, rgba(234, 122, 18, .18), transparent 70%);
}
.hi { font-size: 1.6rem; font-weight: 700; color: var(--soft); }
h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; padding-bottom: .2rem; }
.typed { margin-top: 1rem; font-size: 1.35rem; font-weight: 700; }
#typed { color: var(--cyan); }
.caret { display: inline-block; width: 2px; height: 1.2em; margin-left: 3px; vertical-align: -3px; background: var(--cyan); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.lead { margin-top: 1.5rem; color: var(--soft); max-width: 36rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.8rem;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  color: #15110B;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px -8px rgba(234, 122, 18, .6);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(234, 122, 18, .8); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--purple); }
.btn-ghost:hover { background: rgba(234, 122, 18, .12); box-shadow: inset 0 0 0 1.5px var(--purple); }

.hero-photo { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.hero-photo img {
  width: min(320px, 70vw);
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 25%;
  border-radius: 50%;
  border: 4px solid var(--purple);
  box-shadow: 0 0 0 8px rgba(234, 122, 18, .15), 0 0 60px rgba(234, 122, 18, .5);
}
.socials { display: flex; gap: .9rem; }
.socials a {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(234, 122, 18, .6);
  color: var(--text);
  transition: background .2s, transform .2s;
}
.socials a:hover { background: var(--purple); color: #15110B; transform: translateY(-3px); }

/* sections */
.section { max-width: 72rem; margin: 0 auto; padding: 6rem clamp(1.25rem, 4vw, 3rem); }
.section:nth-of-type(even) { position: relative; }
h2 { text-align: center; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.01em; }
h2::after { content: ""; display: block; width: 110px; height: 4px; margin: 1rem auto 0; border-radius: 4px; background: var(--grad); }
.sub { text-align: center; color: var(--soft); margin-top: 1.25rem; }

.cards { display: grid; gap: 1.5rem; margin-top: 3rem; }
.three { grid-template-columns: repeat(3, 1fr); }
.skills { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.projects { grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); margin-top: 2rem; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.75rem;
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: rgba(234, 122, 18, .55); transform: translateY(-4px); }
h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.35; }
.card p { color: var(--soft); margin-top: .6rem; }
.card h3 .fa { color: var(--cyan); margin-right: .4rem; }
.icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 1.25rem;
  border-radius: 14px;
  background: var(--grad);
  color: #15110B;
  font-size: 1.3rem;
}

.fa.icon { padding: 15px; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.chips li {
  padding: .25rem .8rem;
  border-radius: 999px;
  background: rgba(234, 122, 18, .14);
  border: 1px solid rgba(234, 122, 18, .3);
  color: #F8CF8A;
  font-size: .82rem;
  font-weight: 600;
}

/* experience */
.timeline { list-style: none; display: grid; gap: 1.25rem; margin: 3rem auto 0; max-width: 52rem; }
.timeline .card { display: flex; gap: 1.25rem; align-items: flex-start; }
.timeline img, .logo-icon {
  flex: none; width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: #fff;
}
.logo-icon { display: grid; place-items: center; background: var(--grad); color: #15110B; font-size: 1.2rem; }
.when { color: var(--cyan) !important; font-size: .85rem; font-weight: 600; margin: 0 0 .2rem !important; }

/* projects */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2.5rem; }
.filters button {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--soft);
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.filters button:hover { color: var(--text); border-color: rgba(234, 122, 18, .5); }
.filters button.active { background: var(--purple); border-color: var(--purple); color: #15110B; }
.project { display: flex; flex-direction: column; }
.project .chips { margin-top: auto; padding-top: 1.1rem; }
.project[hidden] { display: none; }
.tag { color: var(--cyan) !important; font-size: .8rem; font-weight: 600; margin: 0 0 .5rem !important; }

/* contact */
.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
  max-width: 44rem; margin: 3rem auto 0;
}
.contact-form:hover { transform: none; }
.contact-form label { display: grid; gap: .4rem; font-weight: 600; font-size: .9rem; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: .8rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-weight: 400;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--purple); }

footer { text-align: center; padding: 2.5rem 1rem; color: var(--soft); border-top: 1px solid var(--line); font-size: .9rem; }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
  }
  .nav nav.open { display: flex; }
  .nav nav a { padding: 1rem clamp(1.25rem, 4vw, 3rem); }
  .nav nav a::after { display: none; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 3rem; min-height: auto; }
  .hero-photo { order: -1; }
  .lead { margin-inline: auto; }
  .hero-btns { justify-content: center; }
  .three { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
}

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

/* project screenshots + links */
.thumb {
  display: block;
  margin: -1.75rem -1.75rem 1.25rem;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  aspect-ratio: 16 / 10;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s; }
.project:hover .thumb img { transform: scale(1.04); }
.links { display: flex; gap: 1.25rem; margin-top: 1rem !important; }
.links a { color: var(--cyan); font-weight: 600; font-size: .9rem; }
.links a:hover { text-decoration: underline; }
.links .fa { font-size: .75rem; margin-left: .2rem; }

/* tech logos in skill chips */
.chips.tech { gap: .6rem; }
.chips.tech li {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem .85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  border-color: var(--line);
  color: var(--text);
  font-size: .85rem;
}
.chips.tech img { width: 18px; height: 18px; }
.chips.tech .fa { width: 18px; text-align: center; color: var(--cyan); font-size: .9rem; }
.chips.tech li:hover { border-color: rgba(234, 122, 18, .5); }

/* fixed background image with dark tint for readability */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(13, 17, 23, .55) 0%, rgba(13, 17, 23, .82) 45%, rgba(13, 17, 23, .9) 100%),
    url("assets/bg.webp") center / cover no-repeat;
}
.card { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.contact-form input, .contact-form textarea { background: rgba(13, 17, 23, .75); }
.nav { background: rgba(13, 17, 23, .7); }

/* case study pages */
.back { color: var(--soft); font-weight: 600; }
.back:hover { color: var(--text); }
.case { max-width: 52rem; margin: 0 auto; padding: 4rem clamp(1.25rem, 4vw, 3rem) 5rem; }
.case .lead { max-width: none; }
.case .shot { margin: 3rem 0 1rem; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.case h2 { text-align: left; font-size: 1.6rem; margin-top: 3rem; }
.case h2::after { margin-left: 0; width: 60px; }
.case h2 + p, .features { margin-top: 1.25rem; color: var(--soft); }
.features { display: grid; gap: .6rem; padding-left: 1.2rem; }
.features li::marker { color: var(--purple); }
.cta { margin-top: 4rem; text-align: center; }
.cta .hero-btns { justify-content: center; margin-top: 1.5rem; }

/* status badge, CV link, floating WhatsApp, save contact */
.status { margin-bottom: .75rem; color: var(--cyan); font-size: .95rem; font-weight: 600; }
.text-link { align-self: center; color: var(--cyan); font-weight: 600; font-size: .95rem; }
.text-link:hover { text-decoration: underline; }
.wa-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60; display: grid; place-items: center; width: 56px; height: 56px;
  border-radius: 50%; background: #25D366; color: #fff; font-size: 1.7rem; box-shadow: 0 10px 25px -8px rgba(0, 0, 0, .6); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.save-contact { display: flex; align-items: center; gap: 1.5rem; max-width: 46rem; margin: 1.5rem auto 0; }
.save-contact img { flex: none; border-radius: 10px; background: #fff; padding: 8px; }
.save-contact .hero-btns { margin-top: 1rem; }
@media (max-width: 600px) { .save-contact { flex-direction: column; text-align: center; } .save-contact .hero-btns { justify-content: center; } }
