/* =========================
   THEME & BASE
========================= */
:root{
  --bg:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --brand:#111827;
  --card:#ffffff;
  --border:#e5e7eb;
  --shadow:0 10px 30px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.05);
  --nav-h:88px; /* navbar height */
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif; color:var(--text); background:var(--bg); }
img{ max-width:100%; display:block; height:auto; }
a{ color:var(--brand); text-decoration:none; }
a:hover{ text-decoration:underline; }

/* Better text wrapping on tiny screens */
h1,h2,h3,p,li{ overflow-wrap:anywhere; }

/* =========================
   LAYOUT PRIMITIVES
========================= */
.container{ max-width:1100px; margin:0 auto; padding:0 24px; }
.section{ padding:84px 0; }
.section-eyebrow{ color:var(--muted); text-align:center; margin:0 0 6px; font-weight:600; }
.section-title{ font-size:clamp(2.4rem,5vw,3.25rem); line-height:1.1; text-align:center; margin:0 0 24px; font-weight:800; letter-spacing:-0.015em; }

/* =========================
   NAVBAR
========================= */
.nav{
  position:sticky; top:0; z-index:10;
  background:rgba(255,255,255,.7);
  -webkit-backdrop-filter:saturate(180%) blur(10px);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:0 !important; box-shadow:none !important;
  padding-inline:clamp(8px,2.5vw,24px); /* fixed: removed nested .nav */
}
.nav-inner{ display:flex; align-items:center; justify-content:space-between; height:var(--nav-h); padding-inline:8px; }
.brand{ font-weight:800; font-size:clamp(20px,1.8vw,28px); letter-spacing:-0.01em; white-space:nowrap; }
.nav-links{ display:flex; gap:clamp(14px,2vw,32px); }
.nav-links a{ color:#111; font-size:clamp(15px,1.3vw,20px); font-weight:600; line-height:1; padding-block:6px; }
.nav-links a:hover{ text-decoration:none; opacity:.75; }

/* =========================
   HERO (single column, centered)
========================= */
.hero.container{
  min-height:calc(100vh - var(--nav-h));
  display:grid; grid-template-columns:1fr;
  justify-items:center; align-items:center; text-align:center;
  gap:.75rem;
  max-width:900px; margin:0 auto;
  padding-inline:clamp(1rem,5vw,3rem); padding-block:clamp(1rem,3vh,2rem);
}
hr,.section-divider{ display:none !important; }

.avatar-wrap{ display:grid; place-items:center; }
.avatar{
  width:clamp(200px,34vw,340px);
  aspect-ratio:1/1; border-radius:999px; object-fit:cover;
  object-position:50% 45%;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
}
@media (min-width:900px){
  .avatar{ width:clamp(260px,28vw,420px); }
}

.eyebrow{ color:#6b7280; font-weight:700; font-size:clamp(1rem,1.9vw,1.4rem); margin:0 0 .35rem; }
.title{ font-size:clamp(2.4rem,7vw,4.6rem); line-height:1.05; letter-spacing:-0.02em; margin:0; color:var(--text); }
.role{ font-size:clamp(1.1rem,2.2vw,1.6rem); font-weight:700; color:#6b6b6b; margin:.35rem 0 1.1rem; }

.cta-row{ display:flex; flex-wrap:wrap; gap:0.8rem; justify-content:center; margin-bottom:1rem; }
.btn{
  border:2px solid #111; background:transparent; color:#111;
  padding:.85rem 1.6rem; border-radius:999px; font-weight:700; letter-spacing:.01em;
  transition:transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:hover{ background:#111; color:#fff; transform:translateY(-2px); box-shadow:0 6px 18px rgba(0,0,0,.12); }
.socials{ display:flex; gap:.7rem; justify-content:center; align-items:center; flex-wrap:wrap; }
.socials a{ width:52px; height:52px; border-radius:999px; display:inline-grid; place-items:center; background:#000; color:#fff; transition:transform .15s ease, box-shadow .15s ease, background .15s ease; }
.socials a:hover{ transform:translateY(-2px); box-shadow:0 8px 20px rgba(0,0,0,.18); background:#111; }
.socials svg{ width:24px; height:24px; fill:currentColor; }

/* =========================
   ABOUT (1750px stage, full-screen height)
========================= */
#about.section.container,
.about-section{
  max-width:1750px; margin:0 auto;
  padding-inline:clamp(1rem,4vw,4rem);
  min-height:calc(100vh - var(--nav-h));
  display:grid; grid-template-rows:auto auto 1fr;
}
#about .section-title{ margin-bottom:24px; }

.about-grid{
  display:grid; grid-template-columns:.9fr 1.1fr;
  gap:clamp(20px,3vw,40px); align-items:center;
}

.about-photo{
  height:clamp(380px,56vh,640px);
  border-radius:28px; overflow:hidden; background:#f6f8fb; box-shadow:var(--shadow);
}
.about-photo img{ width:100%; height:100%; object-fit:cover; object-position:50% 45%; }

.about-right{ display:grid; align-content:center; gap:18px; }

.info-cards{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(14px,2vw,24px); }
.info-card{
  display:grid; place-items:center; text-align:center;
  border:2px solid #d1d5db; border-radius:28px; background:#fff;
  padding:clamp(18px,3vw,32px); min-height:clamp(160px,22vh,240px);
  box-shadow:0 1px 0 rgba(0,0,0,.02);
}
.info-emoji{ font-size:26px; margin-bottom:8px; line-height:1; }
.info-card h3{ margin:4px 0 8px; font-size:clamp(1.02rem,1.2vw,1.3rem); }
.info-card p{ margin:0; color:var(--muted); font-size:clamp(.95rem,1.05vw,1.1rem); }

.about-paragraph{
  grid-column:1 / -1; margin:4px 0 0;
  color:#374151; font-size:clamp(1rem,1.03vw,1.075rem); line-height:1.6;
}

/* =========================
   SKILLS (1750px stage, full-screen height)
========================= */
#skills.section.container{
  max-width:1750px; margin:0 auto; padding-inline:clamp(1rem,4vw,4rem);
  min-height:calc(100vh - var(--nav-h));
  display:grid; grid-template-rows:auto auto 1fr;
  padding-bottom:48px;
}
#skills .section-eyebrow{ font-size:clamp(1.05rem,1.6vw,1.25rem); font-weight:700; margin-bottom:6px; }
#skills .section-title{ font-size:clamp(2.4rem,5vw,3.4rem); margin-bottom:18px; }

.skills-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; align-items:stretch; align-self:center; }
.skill-card{
  background:#fff; border:1px solid var(--border); border-radius:22px;
  padding:clamp(14px,2.2vw,22px); box-shadow:var(--shadow);
  text-align:center; display:grid; align-content:start; gap:8px;
  transition:transform .18s ease, box-shadow .18s ease; min-height:180px;
}
.skill-card:hover{ transform:translateY(-4px); box-shadow:0 8px 28px rgba(0,0,0,.10); }
.skill-icon{
  width:56px; height:56px; margin:6px auto 4px; border-radius:14px;
  background:#f6f8fb; display:grid; place-items:center; color:#4f46e5;
}
.skill-icon svg{ width:30px; height:30px; }
.skill-card h3{ margin:6px 0 4px; font-size:1.05rem; }
.skill-card p{ margin:0; color:var(--muted); line-height:1.5; }

/* =========================
   PROJECTS (1750px stage)
========================= */
#projects.section.container{ max-width:1750px; margin:0 auto; padding-inline:clamp(1rem,4vw,4rem); }
.projects-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:2rem; align-items:stretch; }
.project-card{
  display:flex; flex-direction:column; background:#fff; border:1px solid var(--border);
  border-radius:26px; padding:16px; box-shadow:var(--shadow);
  transition:transform .2s ease, box-shadow .2s ease;
}
.project-card:hover{ transform:translateY(-4px); box-shadow:0 8px 28px rgba(0,0,0,.10); }
.project-card img{
  width:100%; height:clamp(180px,26vw,250px);
  object-fit:contain; background:#f6f8fb; border-radius:18px; margin-bottom:12px;
}
.project-card h3{ margin:4px 0 12px; text-align:center; }
.project-actions{ margin-top:auto; display:flex; justify-content:center; }
.project-actions .btn{ min-width:110px; }

/* =========================
   CONTACT & FOOTER
========================= */
.contact-row{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.chip{ display:inline-flex; align-items:center; gap:8px; padding:12px 16px; border:1px solid var(--border); border-radius:999px; background:#fff; color:#111; box-shadow:var(--shadow); }

.footer{ padding:40px 0; border-top:1px solid var(--border); background:#fff; }
.footer-inner{ display:flex; flex-direction:column; align-items:center; gap:12px; }
.footer-nav a{ margin:0 10px; color:#111; }
.footer p{ color:#6b7280; margin:0; }

/* ===== EXPERIENCE (1750px stage + full-screen height) ===== */
#experience.section.container{
  max-width:1750px; margin:0 auto;
  padding-inline:clamp(1rem,4vw,4rem);
  min-height:calc(100vh - var(--nav-h));
  display:grid; grid-template-rows:auto auto 1fr;
}
#experience .section-eyebrow{ font-weight:700; font-size:clamp(1.05rem,1.6vw,1.25rem); }
#experience .section-title{ font-size:clamp(2.4rem,5vw,3.4rem); margin-bottom:22px; }

.exp-wrap{
  display:grid;
  grid-template-columns:320px minmax(0,1fr);
  gap:clamp(18px,2.5vw,36px);
  max-width:1500px; width:100%;
  margin-inline:auto; align-items:start;
}
.exp-radio{ position:absolute; opacity:0; pointer-events:none; }

.exp-tabs{
  display:grid; gap:10px; align-content:start;
  border-left:2px solid var(--border);
  padding-left:16px;
}
.exp-tab{
  cursor:pointer; user-select:none;
  padding:14px 16px;
  border:1px solid var(--border); border-radius:12px;
  background:#fff; color:#0f172a; box-shadow:var(--shadow);
  transition:transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.exp-tab:hover{ transform:translateY(-2px); box-shadow:0 8px 24px rgba(0,0,0,.08); }

#exp-1:checked ~ .exp-tabs label[for="exp-1"],
#exp-2:checked ~ .exp-tabs label[for="exp-2"],
#exp-3:checked ~ .exp-tabs label[for="exp-3"],
#exp-4:checked ~ .exp-tabs label[for="exp-4"]{
  background:#0f172a; color:#fff; border-color:#0f172a;
}

.exp-content{ position:relative; }
.exp-panel{
  display:none; min-height:240px;
  background:#fff; border:1px solid var(--border);
  border-radius:18px; padding:clamp(20px,2.2vw,28px);
  box-shadow:var(--shadow);
}
#exp-1:checked ~ .exp-tabs ~ .exp-content #panel-1{ display:block; }
#exp-2:checked ~ .exp-tabs ~ .exp-content #panel-2{ display:block; }
#exp-3:checked ~ .exp-tabs ~ .exp-content #panel-3{ display:block; }
#exp-4:checked ~ .exp-tabs ~ .exp-content #panel-4{ display:block; }

.exp-role{ margin:0 0 6px; font-size:clamp(1.05rem,1.8vw,1.35rem); font-weight:800; }
.exp-role .at{ opacity:.4; margin:0 .4rem; }
.exp-role a{ color:#0ea5e9; text-decoration:none; }
.exp-role a:hover{ text-decoration:underline; }
.exp-meta{ margin:0 0 12px; color:var(--muted); font-size:.95rem; }
.exp-points{ margin:0; padding:0; list-style:none; display:grid; gap:10px; }
.exp-points li{ position:relative; padding-left:22px; line-height:1.55; }
.exp-points li::before{ content:"▹"; position:absolute; left:0; top:0; color:#10b981; }

/* =========================
   RESPONSIVE
========================= */

/* Laptops down */
@media (max-width:1100px){
  .skills-grid{ grid-template-columns:repeat(2,1fr); }
  .projects-grid{ grid-template-columns:repeat(2,1fr); }
  #about.section.container{ min-height:auto; }
  .about-grid{ grid-template-columns:1fr; }
  .about-photo{ height:auto; aspect-ratio:3/4; max-width:720px; margin:0 auto; }
  .info-cards{ grid-template-columns:1fr; }
}

/* Tablets */
@media (max-width:900px){
  :root{ --nav-h:76px; }
  .nav-links{ gap:clamp(10px,1.6vw,18px); }
  .container{ padding-inline:18px; }
  .section{ padding:72px 0; }
}

/* Large phones */
@media (max-width:700px){
  .skills-grid{ grid-template-columns:1fr; }
  .projects-grid{ grid-template-columns:1fr; }
  #projects.section.container,
  #skills.section.container,
  #about.section.container{ padding-inline:1rem; }
  .title{ font-size:clamp(2.1rem,6.2vw,2.6rem); }
  .section-title{ font-size:clamp(1.8rem,5.2vw,2.2rem); }
  :root{ --nav-h:72px; }
}

/* Small phones (e.g., 320–380px) */
@media (max-width:380px){
  .nav{ padding-inline:10px; }
  .brand{ font-size:18px; }
  .nav-links a{ font-size:14px; }
  .btn{ padding:.75rem 1.2rem; }
  .socials a{ width:46px; height:46px; }
  .socials svg{ width:22px; height:22px; }
  .avatar{ width:min(72vw,260px); }
  .project-card img{ height:44vw; }
}

/* Experience: stack & swipe on mobile */
@media (max-width:1000px){
  #experience.section.container{ min-height:auto; }
  .exp-wrap{ grid-template-columns:1fr; }
  .exp-tabs{
    display:flex; gap:10px; overflow-x:auto; border-left:0; padding-left:0;
    scrollbar-width:thin; -webkit-overflow-scrolling:touch;
    scroll-snap-type:x mandatory;
  }
  .exp-tab{ white-space:nowrap; scroll-snap-align:start; }
}

/* Ultra-wide screens */
@media (min-width:1920px){
  .container{ max-width:1200px; }
  #about.section.container,
  #skills.section.container,
  #projects.section.container,
  #experience.section.container{ max-width:1850px; }
}

.about-photo{
  height: 360px;          /* adjust */
  overflow: hidden;
  border-radius: 18px;    /* if you want rounded corners */
}

.about-photo img.about-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}
