/* ===== Amberite replica ===== */
:root {
  --bg: #0f0f0f;
  --text: #f2f2f2;
  --muted: #999999;
  --pill: #1a1a1a;
  --accent: #ff5500;
  --container: 1024px;
  --gap: 32px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ===== Navigation ===== */
.nav {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: var(--container);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  z-index: 50;
}
.nav__avatar { grid-column: 1; }
.btn--contact { grid-column: 3; justify-self: end; }

.nav__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  transition: transform .25s ease;
}
.nav__avatar:hover { transform: scale(1.06); }

.nav__pill {
  position: fixed;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--pill);
  border-radius: 24px;
  padding: 12px 24px;
}
.nav__pill a {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.5px;
  color: var(--text);
  transition: color 0.25s cubic-bezier(0.12, 0.23, 0.5, 1);
}
.nav__pill a:hover { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.5px;
  border-radius: 24px;
  padding: 12px 24px;
  transition: transform .25s ease, opacity .2s ease;
}
.btn--contact {
  background: var(--accent);
  color: #1a1a1a;
  padding-top: 10px;
  padding-bottom: 10px;
}
.btn--contact:hover { transform: scale(1.04); }

.nav__burger { display: none; }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(15, 15, 15, .97);
  backdrop-filter: blur(8px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.mobile-menu:not([hidden]) { display: flex; }
.mobile-menu a { font-size: 28px; font-weight: 500; letter-spacing: -0.5px; }

/* ===== Layout container ===== */
.hero, .section, .footer {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

@media (max-width: 1088px) {
  .nav, .hero, .section, .footer { padding-left: 24px; padding-right: 24px; }
}

/* ===== Hero ===== */
.hero {
  padding-top: 208px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}
.hero__title {
  max-width: 800px;
  font-size: 60px;
  font-weight: 500;
  line-height: 60px;
  letter-spacing: -3.13px;
  color: var(--text);
}
.hero__lede {
  max-width: 800px;
  font-size: 16px;
  line-height: 24px;
  color: var(--muted);
}
.hero__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}
.hero__socials .exp-download { padding: 16px 28px; }

/* ===== Sections ===== */
.section { padding-top: 80px; padding-bottom: 40px; }
#work { padding-top: 128px; }

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}
.section__title {
  font-size: 24px;
  font-weight: 500;
  line-height: 36px;
  letter-spacing: -1px;
  color: var(--text);
}
.section__link {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: var(--text);
  display: inline-flex;
  gap: 6px;
  transition: opacity .2s ease;
}
.section__link:hover { opacity: .6; }
.section__link span { transition: transform .25s ease; }
.section__link:hover span { transform: translateX(4px); }

/* ===== Work: single column of full-width cards ===== */
.work { display: flex; flex-direction: column; gap: var(--gap); }

.work-item { display: block; }
.work-thumb {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}
.work-thumb--land { aspect-ratio: 4 / 3; }
.work-thumb--port { aspect-ratio: 4 / 3; }
.work-thumb img { transition: transform .6s cubic-bezier(.2,.6,.2,1); }
.work-item:hover .work-thumb img { transform: scale(1.04); }

.work-item__title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 2px;
}
.work-item__sub {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

/* ===== Blog ===== */
.blog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.post { display: block; }
.post__thumb {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}
.post__thumb img { transition: transform .6s cubic-bezier(.2,.6,.2,1); }
.post:hover .post__thumb img { transform: scale(1.04); }
.post__date {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}
.post__title {
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
  letter-spacing: -0.5px;
  color: var(--text);
}

/* ===== Footer ===== */
.footer {
  padding-top: 100px;
  padding-bottom: 60px;
  text-align: center;
}
.footer p { font-size: 14px; color: var(--muted); }
.footer a { color: var(--text); transition: opacity .2s ease; }
.footer a:hover { opacity: .6; }

/* ===== Scroll reveal ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .work-thumb img, .post__thumb img { transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero__title { font-size: 56px; line-height: 56px; letter-spacing: -2.5px; }
}
@media (max-width: 768px) {
  .nav__pill, .nav .btn--contact { display: none; }
  .nav__burger {
    grid-column: 3;
    justify-self: end;
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    background: var(--pill);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .nav__burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; }

  .hero { padding-top: 130px; }
  .hero__title { font-size: 44px; line-height: 46px; letter-spacing: -1.8px; }

  .blog { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .hero__title { font-size: 36px; line-height: 40px; }
}

/* ===== About page ===== */
.nav__pill a.is-active { color: var(--accent); font-weight: 500; }

.about {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 200px;
  padding-bottom: 40px;
}

.about-title {
  font-size: 48px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 56px;
}

/* Intro: bio left, contact bottom-right */
.about-intro {
  display: grid;
  grid-template-columns: 452px 1fr;
  gap: 80px;
  align-items: start;
}
.about-bio { display: flex; flex-direction: column; gap: 24px; }
.about-bio p { font-size: 16px; line-height: 24px; color: var(--muted); }
.about-right { display: flex; flex-direction: column; }
.about-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.about-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px; }
.about-contact .label { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.about-contact .value {
  font-size: 16px;
  color: var(--text);
  transition: color .25s cubic-bezier(0.12, 0.23, 0.5, 1);
}
a.value:hover { color: var(--accent); }

/* Generic about section */
.about-section { margin-top: 120px; }
/* Match template's 192px text-to-heading rhythm between sections
   (compensates for each section's differing trailing margins) */
#education.about-section { margin-top: 200px; } /* template: intro → first section = 200px */
#experience.about-section { margin-top: 135px; }
#expertise.about-section { margin-top: 144px; }
.about-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
#expertise .about-section__head { margin-bottom: 32px; }
.about-section__title {
  font-size: 24px;
  font-weight: 500;
  line-height: 36px;
  letter-spacing: -1px;
  color: var(--text);
}

/* Services */
.services { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.services span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Experience */
.exp-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  background: #ededed;
  border-radius: 1000px;
  padding: 12px 20px;
  transition: background .25s cubic-bezier(0.12, 0.23, 0.5, 1);
}
.exp-download:hover { background: #ffffff; }

.exp-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.exp-item .date { font-size: 16px; color: var(--muted); }
.exp-item h3 { font-size: 16px; font-weight: 500; color: var(--text); }
.exp-item .role { font-size: 14px; color: var(--muted); margin: 2px 0 16px; }
.exp-item p { font-size: 16px; line-height: 24px; color: var(--muted); }
#experience .exp-item:last-child { border-bottom: none; }

.exp-points { list-style: none; }
.exp-points li {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 24px;
  color: var(--muted);
}

/* Tools */
.tools { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.tool {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.tool__badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pill);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
}
.tool__badge svg { display: block; }
.tool__badge--linear { background: #5e6ad2; }
.tool__badge--zoom { background: #2d8cff; }
.tool__name { font-size: 16px; font-weight: 500; color: var(--text); }
.tool__cat { font-size: 14px; color: var(--muted); }

@media (max-width: 1088px) {
  .about { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 768px) {
  .about { padding-top: 140px; }
  .about-title { font-size: 36px; }
  .about-intro { grid-template-columns: 1fr; gap: 40px; align-items: start; min-height: 0; }
  .services, .tools { grid-template-columns: 1fr; }
  .exp-item { grid-template-columns: 1fr; gap: 8px; }
}
