/* styles.css */
:root{
  --nav-h: 76px;

  --text: #111;
  --white: #fff;

  --radius: 26px;
  --shadow: 0 22px 60px rgba(0,0,0,.18);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  color: var(--text);
  background:#fff;
}

a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; }

/* kept for backwards compatibility (not required by the new method) */
.no-scroll{ overflow:hidden; }

/* ================= NAV ================= */
.nav{
  position:fixed;
  top:0; left:0; right:0;
  z-index:120;
}

.nav__bar{
  height: var(--nav-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0 22px;
  gap: 16px;

  background: rgba(25,25,25,.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.nav--overlay .brand,
.nav--overlay .icon-btn{
  color:#fff;
}

.brand{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  letter-spacing:.02em;
  font-size: clamp(22px, 2vw, 34px);
  line-height:1;
}

.brand__first{ font-weight:400; }
.brand__last{ font-weight:700; margin-left:.22ch; }

.icon-btn{
  appearance:none;
  border:0;
  background:transparent;
  padding:10px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* ================= HAMBURGER → X ================= */
.burger{
  width:48px;
  height:48px;
  position:relative;
}

.burger__line{
  position:absolute;
  left:50%;
  width:22px;
  height:2px;
  background: currentColor;
  border-radius:2px;
  transform:translateX(-50%);
  transition: transform .22s ease, opacity .18s ease, top .22s ease;
}

.burger__line:nth-child(1){ top:16px; }
.burger__line:nth-child(2){ top:23px; }
.burger__line:nth-child(3){ top:30px; }

body.menu-open .burger__line:nth-child(1){
  top:23px;
  transform:translateX(-50%) rotate(45deg);
}
body.menu-open .burger__line:nth-child(2){
  opacity:0;
}
body.menu-open .burger__line:nth-child(3){
  top:23px;
  transform:translateX(-50%) rotate(-45deg);
}

/* LinkedIn */
.linkedin{
  font-weight:700;
  font-size:20px;
  width:48px;
  height:48px;
}

/* Menu open = clean white nav */
body.menu-open .nav__bar{
  background:#fff;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
body.menu-open .nav--overlay .brand,
body.menu-open .nav--overlay .icon-btn{
  color:#111;
}

/* ================= HERO / CAROUSEL ================= */
.hero--full{
  height:100vh;
  width:100%;
  position:relative;
}

.carousel{
  height:100%;
  width:100%;
  position:relative;
  overflow:hidden;
  background:#000;
}

.carousel__slide{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  opacity:0;
  transform: scale(1.02);
  transition: opacity .7s ease, transform 1.2s ease;
}

.carousel__slide.is-active{
  opacity:1;
  transform: scale(1);
}

.carousel__dots{
  position:absolute;
  left:50%;
  bottom:22px;
  transform:translateX(-50%);
  display:flex;
  gap:10px;
}

.dot{
  width:6px;
  height:6px;
  border-radius:999px;
  background: rgba(255,255,255,.45);
}
.dot.is-active{ background: rgba(255,255,255,.95); }

/* ================= MENU OVERLAY (NEW METHOD) ================= */
.menu{
  position:fixed;
  inset:0;
  z-index:80;
  pointer-events:none;
  opacity:0;
  transition: opacity .25s ease;

  /* ✅ menu itself is the scroll container */
  overflow-y:auto;
  -webkit-overflow-scrolling: touch;
  background:#fff; /* ensures white behind content while scrolling */
}
.menu.is-open{
  pointer-events:auto;
  opacity:1;
}

/* Backdrop still exists for click-to-close, but no longer needs to cover scrolling */
.menu__backdrop{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  top: var(--nav-h);
  background:transparent; /* menu background is already white */
  border:0;
  z-index:0;
}

.menu__inner{
  position:relative;
  z-index:1;

  display:flex;
  gap:38px;

  /* ✅ allow the content to extend and scroll */
  min-height:100vh;
  padding: calc(var(--nav-h) + 28px) 44px 44px;
}

.menu__left{
  width:min(420px, 40vw);
}

.menu__nav{
  margin-top:20px;
}

.menu__link{
  display:block;
  font-size: clamp(30px, 3.2vw, 54px);
  line-height:1.05;
  padding:6px 0;
  width:fit-content;
}

.menu__link:hover{
  text-decoration:underline;
}

.menu__section-title{
  margin:28px 0 8px;
  font-size:12px;
  letter-spacing:.18em;
  color: rgba(0,0,0,.55);
}

/* Vertical case studies */
.pill{
  display:block;
  margin:10px 0;
  padding:10px 16px;
  border:1px solid rgba(0,0,0,.15);
  border-radius:999px;
  background:#fff;
  font-size:14px;
  font-weight:700;
  width:fit-content;
  transition: background .18s ease;
}

.pill:hover{
  background: rgba(0,0,0,.06);
}

.menu__right{
  flex:1;
}

.preview{
  width: min(980px, 54vw);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background:#e9e9e9;
  background-size:cover;
  background-position:center;
}

/* ================= ABOUT PAGE / GENERAL PAGES ================= */
.page-hero{
  height:100vh;
  background-size:cover;
  background-position:center;
}

.page{
  max-width:1100px;
  margin:0 auto;
  padding:56px 22px 90px;
}

.section{ padding:34px 0; }

.h1{
  font-size: clamp(42px, 5vw, 64px);
  font-weight:400;
}

.h2{
  font-size: clamp(34px, 4vw, 56px);
  font-weight:400;
}

.lead{
  font-size:18px;
  color: rgba(0,0,0,.62);
}

.body{
  font-size:18px;
  line-height:1.7;
  color: rgba(0,0,0,.72);
}

/* Education — add breathing room */
.edu{
  display:flex;
  flex-direction:column;
  gap: 18px;
  padding-top: 10px;
}
.edu__school{
  font-weight:700;
  margin-bottom: 6px;
}
.edu__degree{
  color: rgba(0,0,0,.72);
  line-height: 1.6;
}

/* Experience */
.xp{
  display:flex;
  flex-direction:column;
  gap:30px;
}

.xp__row{
  display:grid;
  grid-template-columns: minmax(260px,360px) 1fr;
  gap:46px;
}

.xp__role{ font-weight:700; }
.xp__meta{ color: rgba(0,0,0,.62); margin-top:6px; }
.xp__company{ font-weight:700; margin-bottom:10px; }

.section--cta{
  border-top:1px solid rgba(0,0,0,.10);
  margin-top:40px;
}

/* ✅ CTA layout (shared across pages)
   - Title left
   - Links right
   - Vertically centered to the phrase */
.cta{
  display:grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items:center;
  padding: 28px 0;
}

.cta__title{
  font-size: clamp(44px, 5vw, 72px);
  line-height:1.02;
  font-weight:400;
  margin:0;
}

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

.cta__link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:22px;
  padding: 8px 0 14px;
  border-bottom: 1px solid rgba(0,0,0,.10);
}

.cta__arrow{
  font-size:28px;
  line-height:1;
  transform: translateY(-1px);
}

/* ✅ Awards — no bullets, more breathing room */
.awards{
  display:flex;
  flex-direction:column;
  gap: 14px;
  margin-top: 14px;
}
.award-item{
  font-size:18px;
  line-height:1.7;
  color: rgba(0,0,0,.72);
}
.award-item .strong{
  font-weight:700;
  color: rgba(0,0,0,.90);
}

/* ================= RESPONSIVE ================= */
@media (max-width:980px){
  .xp__row{ grid-template-columns:1fr; }
  .preview{ width:100%; }
  .cta{ grid-template-columns: 1fr; gap: 22px; }
  .cta__link{ font-size:20px; }
}

@media (max-width:760px){
  :root{ --nav-h:66px; }

  .menu__inner{
    flex-direction:column;
    padding: calc(var(--nav-h) + 18px) 18px;
  }

  .menu__left,
  .menu__right{
    width:100%;
  }
}

/* ============================
   PROJECT UPDATING PAGE
============================ */

.project-updating {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}

.project-updating__inner {
  max-width: 600px;
}

.project-updating h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.project-updating p {
  font-size: 1rem;
  opacity: 0.7;
  margin-bottom: 40px;
  line-height: 1.6;
}

.project-updating__buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 12px 24px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.btn-primary {
  background: black;
  color: white;
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-secondary {
  border: 1px solid black;
  color: black;
}

.btn-secondary:hover {
  background: black;
  color: white;
}

