/* ================================================================
   PORTFOLIO.CSS — Clean Light Theme
   Palette: #FFFFFF bg · #111111 text · #E1F4F3 accent · #706C61 muted
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
  --bg:    #FFFFFF;
  --bg2:   #F5F5F5;
  --bg3:   #ECECEC;
  --c:     #618764;       /* sage green accent */
  --cd:    #4e6e52;       /* darker sage hover */
  --cg:    rgba(97,135,100,.08);
  --v:     #706C61;       /* warm gray */
  --vg:    rgba(112,108,97,.1);
  --m:     #E1F4F3;       /* mint teal — highlight bg */
  --mg:    rgba(225,244,243,.6);
  --gold:  #618764;
  --txt:   #111111;       /* primary text */
  --txt2:  #333333;       /* secondary text */
  --txt3:  #706C61;       /* muted text */
  --glass: rgba(255,255,255,.9);
  --gb:    rgba(97,135,100,.15);
  --font: 'Space Grotesk', sans-serif;
  --disp: 'Orbitron', monospace;
  --mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(.16,1,.3,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--c); border-radius: 99px; }
::selection { background: rgba(97,135,100,.18); color: #111111; }

/* ================================================================
   HIDE SCI-FI ELEMENTS
   ================================================================ */
#bg-canvas,
#cursor-glow,
#cursor-ring,
.hero-grid-overlay,
.hero-scanlines,
.hv-rings,
.proj-grid-lines,
.gc-shimmer,
.contact-canvas,
.contact-overlay { display: none !important; }

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 64px;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid #E8E8E8;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow .3s;
}
.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}

.nav-inner {
  max-width: 1280px; margin: 0 auto;
  height: 100%;
  display: flex; align-items: center; gap: 2rem;
}

.nav-brand {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; flex-shrink: 0;
}
.brand-hex svg { filter: none; }
.brand-text {
  font-family: var(--disp); font-size: .95rem;
  font-weight: 700; letter-spacing: .14em;
  color: var(--txt);
}
.brand-dot { color: var(--txt3); }

.nav-links {
  display: flex; gap: 2rem; list-style: none;
  margin-left: auto;
}
.nav-link {
  font-family: var(--mono); font-size: .68rem;
  color: var(--txt3); letter-spacing: .18em;
  text-decoration: none; position: relative;
  transition: color .25s;
}
.nav-link::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0; width: 0; height: 1.5px;
  background: var(--c);
  transition: width .3s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--c); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-cta {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .68rem;
  letter-spacing: .18em; color: #fff;
  background: #618764;
  border: 1.5px solid #618764; border-radius: 4px;
  padding: .45rem 1.1rem; text-decoration: none;
  white-space: nowrap; flex-shrink: 0;
  transition: background .25s, color .25s;
}
.nav-cta:hover { background: #4e6e52; border-color: #4e6e52; }
.cta-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #E1F4F3;
}

.nav-burger {
  display: none; flex-direction: column;
  gap: 5px; padding: 4px; cursor: pointer;
  border: none; background: none; margin-left: auto;
}
.nav-burger span {
  width: 22px; height: 2px;
  background: var(--c); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.mobile-menu {
  display: none; position: fixed;
  top: 64px; left: 0; right: 0;
  z-index: 99;
  background: #fff;
  border-bottom: 1px solid #E8E8E8;
  padding: 1.5rem 2rem;
  flex-direction: column; gap: 1.25rem;
}
.mobile-menu.open { display: flex; }
.mobile-link {
  font-family: var(--mono); font-size: .8rem;
  letter-spacing: .2em; color: var(--txt3);
  text-decoration: none;
  transition: color .25s;
}
.mobile-link:hover { color: var(--c); }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
}

/* ================================================================
   UTILITIES
   ================================================================ */
.container {
  max-width: 1280px; margin: 0 auto;
  padding: 0 2rem;
}

.section { position: relative; z-index: 1; padding: 7rem 0; }

.section-label {
  font-family: var(--mono); font-size: .68rem;
  color: var(--txt3); letter-spacing: .25em;
  text-transform: uppercase; margin-bottom: 1.25rem;
}

.section-title {
  font-family: var(--disp); font-weight: 700;
  font-size: clamp(1.8rem,3.5vw,3rem);
  letter-spacing: .04em; line-height: 1.1;
  margin-bottom: 1.5rem; color: var(--txt);
}

.grad-cyan {
  background: linear-gradient(135deg, #111111, #706C61);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.grad-hot {
  background: linear-gradient(135deg, #111111, #706C61);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hi-cyan { color: var(--c); }
.hi-violet { color: var(--v); font-weight: 600; }

/* ---- Card ---- */
.glass-card {
  background: #fff;
  border: 1px solid #E8E8E8;
  border-radius: 16px;
  position: relative; overflow: hidden;
  transition: border-color .3s, box-shadow .3s, transform .15s var(--ease);
}
.glass-card:hover {
  border-color: #CCCCCC;
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--disp); font-size: .7rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  padding: .9rem 2rem; border-radius: 5px;
  text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .25s var(--ease);
}
.btn-primary {
  background: #618764;
  color: #FFFFFF;
  border-color: #618764;
}
.btn-primary:hover {
  background: #4e6e52;
  border-color: #4e6e52;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(97,135,100,.25);
}
.btn-ghost {
  background: transparent; border-color: #618764; color: #618764;
}
.btn-ghost:hover {
  background: #618764;
  color: #fff;
  transform: translateY(-2px);
}

/* ---- Reveal ---- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.vis { opacity: 1; transform: translateY(0); }

/* ---- Tags ---- */
.tag {
  display: inline-block;
  font-family: var(--mono); font-size: .63rem;
  padding: .3rem .8rem; border-radius: 99px;
  border: 1px solid; letter-spacing: .1em;
}
.tc { border-color: #CCCCCC; color: #333333; background: #F5F5F5; }
.tv { border-color: #C5DFE0; color: #2E6E6A; background: #E1F4F3; }
.tm { border-color: #D4D0C8; color: #706C61; background: #F0EDE8; }

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0 clamp(1.5rem, 6vw, 6rem);
  gap: 4rem;
  position: relative; overflow: hidden;
  padding-top: 64px;
  background: #fff;
}

.hero-content { max-width: 640px; z-index: 2; }

/* Availability badge */
.avail-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .65rem;
  color: #618764; letter-spacing: .2em;
  border: 1px solid rgba(97,135,100,.3);
  border-radius: 99px;
  padding: .4rem 1rem; margin-bottom: 1.75rem;
  background: rgba(97,135,100,.07);
  animation: fadeUp .8s var(--ease) .2s both;
}
.avail-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #3DAA88;
  animation: blink 1.6s infinite;
}

/* Hero title */
.hero-title {
  display: flex; flex-direction: column;
  margin-bottom: 1.5rem;
  animation: fadeUp .9s var(--ease) .35s both;
}
.ht-line { display: block; font-family: var(--disp); font-weight: 900; letter-spacing: .06em; }
.ht-sub {
  font-size: clamp(.75rem,1.2vw,1rem);
  color: var(--txt3); letter-spacing: .3em;
  font-weight: 400; margin-bottom: .4rem;
}
.ht-main {
  font-size: clamp(3.5rem,8vw,7rem);
  color: #111111;
  line-height: .95;
}
.ht-name {
  font-size: clamp(1rem,2.5vw,2rem);
  color: var(--txt3); letter-spacing: .2em;
  font-weight: 400; margin-top: .4rem;
}

.hero-desc {
  font-size: clamp(.95rem,1.4vw,1.1rem);
  color: var(--txt3); line-height: 1.8;
  margin-bottom: 2rem;
  animation: fadeUp .9s var(--ease) .5s both;
}

.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeUp .9s var(--ease) .65s both;
}

/* Hero mini stats */
.hero-stats {
  display: flex; align-items: center; gap: 0;
  animation: fadeUp .9s var(--ease) .8s both;
}
.hs-item { padding: 0 1.5rem; text-align: center; }
.hs-item:first-child { padding-left: 0; }
.hs-val {
  display: block;
  font-family: var(--disp); font-size: 1.6rem; font-weight: 700;
  color: #111111;
  line-height: 1;
}
.hs-label {
  display: block;
  font-family: var(--mono); font-size: .58rem;
  color: var(--txt3); letter-spacing: .2em;
  margin-top: .3rem;
}
.hs-divider {
  width: 1px; height: 36px;
  background: #E0E0E0;
}

/* Hero Visual */
.hero-visual {
  position: relative; width: 380px; height: 380px;
  flex-shrink: 0; z-index: 2;
  animation: fadeIn 1.2s var(--ease) .4s both;
}
.hv-rings { display: none; }
.hv-avatar {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 200px; height: 200px; border-radius: 50%;
  background: #E1F4F3;
  border: 2px solid #C5DFE0;
  display: flex; align-items: center; justify-content: center;
  animation: float 6s ease-in-out infinite;
}
#hero-canvas { position: absolute; inset: 0; border-radius: 50%; width: 100%; height: 100%; }
.hv-initials {
  position: relative; z-index: 1;
  font-family: var(--disp); font-size: 2.2rem; font-weight: 900;
  color: #111111;
}

.hv-chip {
  position: absolute;
  background: #fff; border: 1px solid #E0E0E0;
  border-radius: 99px; padding: .4rem .9rem;
  font-family: var(--mono); font-size: .65rem; color: #333333;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  white-space: nowrap;
  animation: float 7s ease-in-out infinite;
}
.chip-1 { top: 8%; left: -12%; animation-delay: 0s; }
.chip-2 { top: 8%; right: -8%; animation-delay: -.8s; }
.chip-3 { bottom: 20%; left: -16%; animation-delay: -1.6s; }
.chip-4 { bottom: 8%; right: -10%; animation-delay: -2.4s; }

.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem; z-index: 2;
  animation: fadeIn 1s ease 1.4s both;
}
.scroll-hint span { font-family: var(--mono); font-size: .58rem; color: var(--txt3); letter-spacing: .25em; }
.scroll-line {
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, #111, transparent);
  animation: scrollDown 2s ease-in-out infinite;
}

@media(max-width:1000px) {
  .hero-section { grid-template-columns: 1fr; justify-items: center; text-align: center; padding-top: 80px; }
  .hero-visual { width: 260px; height: 260px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hs-item:first-child { padding-left: 1.5rem; }
  .avail-badge { margin-left: auto; margin-right: auto; }
  .hero-content { max-width: 100%; }
}
@media(max-width:600px) {
  .hero-visual { display: none; }
}

/* ================================================================
   ABOUT SECTION
   ================================================================ */
.about-section { background: #F7F7F7; }

.about-grid {
  display: grid; grid-template-columns: 1fr 360px;
  align-items: center; gap: 4rem;
}

.about-p {
  color: var(--txt2); line-height: 1.85; margin-bottom: 1rem;
  font-size: 1.02rem;
}
.about-tags {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem;
}
.about-links { display: flex; gap: 1rem; flex-wrap: wrap; }

.about-card { padding: 1.5rem; }
.ac-info { position: relative; z-index: 2; }
.ac-name {
  font-family: var(--disp); font-size: 1.1rem; font-weight: 700;
  letter-spacing: .06em; margin-bottom: .25rem; color: #111;
}
.ac-role {
  font-family: var(--mono); font-size: .72rem;
  color: var(--txt3); letter-spacing: .12em; margin-bottom: .75rem;
}
.ac-loc {
  display: flex; align-items: center; gap: .5rem;
  font-size: .85rem; color: var(--txt3); margin-bottom: .9rem;
}
.loc-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #3DAA88;
  animation: blink 2s infinite; flex-shrink: 0;
}
.ac-chips {
  display: flex; flex-wrap: wrap; gap: .4rem;
}
.ac-chip {
  font-family: var(--mono); font-size: .6rem;
  color: var(--txt3); background: #F0F0F0;
  border: 1px solid #E0E0E0;
  border-radius: 99px; padding: .25rem .7rem; letter-spacing: .08em;
}

@media(max-width:900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-card-wrap { max-width: 420px; margin: 0 auto; }
}

/* ================================================================
   PROJECTS SECTION
   ================================================================ */
.projects-section {
  background: #fff;
}

.projects-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem;
}
.proj-filter { display: flex; gap: .5rem; flex-wrap: wrap; }
.pf-btn {
  font-family: var(--mono); font-size: .65rem; letter-spacing: .18em;
  padding: .35rem .9rem; border-radius: 4px;
  border: 1.5px solid #D0D0D0; color: var(--txt3);
  background: transparent; cursor: pointer;
  transition: all .2s;
}
.pf-btn:hover, .pf-btn.active {
  color: #fff; border-color: #618764;
  background: #618764;
}

/* Grid */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}
.project-card.featured {
  grid-column: 1/3;
}

.project-card {
  border-radius: 16px; overflow: hidden; position: relative;
  background: #fff; border: 1px solid #E8E8E8;
  border-top: 3px solid #618764;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: #618764;
  border-top-color: #618764;
  box-shadow: 0 12px 40px rgba(97,135,100,.12);
}

.proj-canvas { display: none; }
.project-card.featured .proj-canvas { display: none; }

.proj-grid-lines { display: none; }

.proj-body { padding: 1.5rem; position: relative; z-index: 2; }
.proj-meta {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: .85rem; flex-wrap: wrap;
}
.proj-tag {
  font-family: var(--mono); font-size: .58rem;
  padding: .2rem .6rem; border-radius: 99px;
  border: 1px solid; letter-spacing: .1em;
}
.ptc { border-color: rgba(97,135,100,.4); color: #618764; background: rgba(97,135,100,.08); }
.ptv { border-color: #D4D0C8; color: #706C61; background: #F0EDE8; }
.ptm { border-color: #CCCCCC; color: #555555; background: #F5F5F5; }
.proj-year { margin-left: auto; font-family: var(--mono); font-size: .62rem; color: var(--txt3); }

.proj-title {
  font-family: var(--disp); font-size: 1.1rem; font-weight: 700;
  letter-spacing: .06em; margin-bottom: .6rem; color: #111111;
}
.project-card.featured .proj-title { font-size: 1.4rem; }

.proj-desc {
  font-size: .875rem; color: var(--txt3); line-height: 1.7; margin-bottom: 1.25rem;
}

.proj-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.proj-stack {
  display: flex; flex-wrap: wrap; gap: .4rem;
}
.proj-stack span {
  font-family: var(--mono); font-size: .6rem; color: var(--txt3);
  background: #F5F5F5; border: 1px solid #E0E0E0;
  padding: .15rem .5rem; border-radius: 3px;
}

.proj-link {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .65rem;
  color: #618764; letter-spacing: .12em;
  text-decoration: none; white-space: nowrap;
  font-weight: 600;
  transition: gap .25s;
}
.proj-link:hover { gap: .8rem; }

.proj-more { text-align: center; margin-top: 3rem; }
.project-card.hidden { display: none; }

@media(max-width:900px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .project-card.featured { grid-column: 1/3; }
}
@media(max-width:600px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: 1; }
}

/* ================================================================
   SKILLS SECTION
   ================================================================ */
.skills-section { background: #F7F7F7; }

/* ── Tech Stack Grid ── */
.tech-stack-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ts-category {
  background: #fff;
  border: 1px solid #E8E8E8;
  border-left: 3px solid #618764;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  transition: box-shadow .2s, border-color .2s;
}
.ts-category:hover {
  box-shadow: 0 4px 16px rgba(97,135,100,.1);
}

.ts-cat-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .75rem;
}
.ts-icon { font-size: 1rem; line-height: 1; }
.ts-cat-label {
  font-family: var(--mono);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #706C61;
}

.ts-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.ts-chip {
  font-family: var(--mono);
  font-size: .68rem;
  padding: .3rem .75rem;
  border-radius: 99px;
  border: 1px solid;
  letter-spacing: .06em;
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s;
}
.ts-chip:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,.08); }

/* Green — Frontend / Backend */
.ts-chip-primary {
  color: #618764;
  background: rgba(97,135,100,.07);
  border-color: rgba(97,135,100,.35);
}
/* Warm gray — Styling / Cloud */
.ts-chip-warm {
  color: #5a5650;
  background: rgba(112,108,97,.06);
  border-color: rgba(112,108,97,.3);
}
/* Dark bold — AI */
.ts-chip-accent {
  color: #fff;
  background: #618764;
  border-color: #618764;
}
/* Light subtle — CMS */
.ts-chip-muted {
  color: #888;
  background: #F8F8F8;
  border-color: #E0E0E0;
}



.skills-timeline-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: start;
}

.skills-list { display: flex; flex-direction: column; gap: 1.4rem; margin-bottom: 2.5rem; }

.skill-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: .45rem;
}
.skill-name { font-family: var(--mono); font-size: .75rem; color: #111; letter-spacing: .08em; }
.skill-pct  { font-family: var(--mono); font-size: .7rem; color: #618764; }
.skill-track {
  height: 2px; background: #E8E8E8;
  border-radius: 99px; overflow: hidden;
}
.skill-fill {
  height: 100%; border-radius: 99px;
  background: var(--col, #618764);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.3s var(--ease);
}
.skill-item.vis .skill-fill { transform: scaleX(var(--p,0)); }

.tool-chips { }
.tc-label {
  font-family: var(--mono); font-size: .6rem; color: var(--txt3);
  letter-spacing: .2em; margin-bottom: .75rem;
}
.tc-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.tc-chip {
  font-family: var(--mono); font-size: .65rem;
  padding: .3rem .8rem; border-radius: 5px;
  border: 1px solid #D8D8D8; color: var(--txt2);
  background: #fff;
  transition: border-color .2s, color .2s;
}
.tc-chip:hover { border-color: #111; color: #111; }

/* Timeline */
.timeline { position: relative; padding-left: 1.5rem; margin-top: .5rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 0;
  width: 1px; background: linear-gradient(to bottom, #618764, #E0E0E0, transparent);
}

.tl-item { position: relative; margin-bottom: 2rem; }
.tl-dot {
  position: absolute; left: -1.5rem; top: 1.2rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: #618764; border: 2px solid #fff;
  transform: translateX(-4px);
}
.tl-dot-v { background: #706C61; }
.tl-dot-m { background: #C5DFE0; }
.tl-connector {
  position: absolute; left: calc(-1.5rem + 5px); top: calc(1.2rem + 5px);
  height: 1px; width: 1.5rem;
  background: linear-gradient(90deg,#618764,transparent);
}

.tl-card { padding: 1.5rem; }
.tl-inner { position: relative; z-index: 2; }
.tl-period {
  font-family: var(--mono); font-size: .62rem; color: #618764;
  letter-spacing: .2em; margin-bottom: .4rem;
}
.tl-role {
  font-family: var(--disp); font-size: .9rem; font-weight: 700;
  letter-spacing: .06em; color: #111; margin-bottom: .2rem;
}
.tl-company {
  font-family: var(--mono); font-size: .72rem;
  color: var(--txt3); margin-bottom: .75rem;
}
.tl-desc { font-size: .85rem; color: var(--txt3); line-height: 1.7; margin-bottom: .9rem; }
.tl-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tl-tags span {
  font-family: var(--mono); font-size: .58rem;
  color: var(--txt3); border: 1px solid #E0E0E0;
  padding: .15rem .5rem; border-radius: 3px;
  background: #F5F5F5;
}

@media(max-width:900px) {
  .skills-timeline-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ================================================================
   CONTACT SECTION
   ================================================================ */
.contact-section {
  position: relative; overflow: hidden;
  padding: 7rem 0 6rem;
  background: #fff;
}
.contact-inner { position: relative; z-index: 2; }
.contact-title { margin-bottom: 1rem; }
.contact-sub {
  font-size: 1.05rem; color: var(--txt3); max-width: 560px;
  margin-bottom: 3rem; line-height: 1.8;
}

.contact-grid {
  display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start;
}

.contact-form { padding: 2rem; }
.cf-inner { position: relative; z-index: 2; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.cf-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.cf-label {
  font-family: var(--mono); font-size: .6rem; color: var(--txt3); letter-spacing: .2em;
}
.cf-input {
  background: #F8F8F8;
  border: 1.5px solid #E0E0E0;
  border-radius: 8px; padding: .85rem 1rem;
  color: #111; font-family: var(--font); font-size: .9rem;
  outline: none; transition: border-color .25s, box-shadow .25s;
  width: 100%;
}
.cf-input::placeholder { color: #AAAAAA; }
.cf-input:focus {
  border-color: #111;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,0,0,.05);
}
.cf-select { cursor: pointer; }
.cf-select option { background: #fff; }
textarea.cf-input { resize: vertical; }

.ci-card, .availability-card { padding: 1.5rem; }
.ci-inner, .av-inner { position: relative; z-index: 2; }
.ci-label {
  font-family: var(--mono); font-size: .6rem; color: var(--txt3);
  letter-spacing: .2em; margin-bottom: 1.25rem;
}
.ci-link {
  display: flex; align-items: center; gap: .85rem;
  text-decoration: none; padding: .75rem 0;
  border-bottom: 1px solid #F0F0F0;
  transition: border-color .25s;
}
.ci-link:last-child { border-bottom: none; }
.ci-link:hover { border-bottom-color: #D0D0D0; }
.ci-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: #F5F5F5; border: 1px solid #E0E0E0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #333; flex-shrink: 0;
}
.ci-type { font-family: var(--mono); font-size: .6rem; color: var(--txt3); letter-spacing: .15em; }
.ci-val { font-size: .85rem; color: #111; margin-top: .1rem; }
.ci-arrow { margin-left: auto; color: var(--txt3); font-size: .8rem; transition: transform .25s, color .25s; }
.ci-link:hover .ci-arrow { transform: translateX(4px); color: #618764; }

.av-status {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .7rem;
  color: #3DAA88; letter-spacing: .15em; margin-bottom: .5rem;
}
.av-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #3DAA88;
  animation: blink 1.6s infinite;
}
.av-detail { font-size: .82rem; color: var(--txt3); margin-bottom: 1rem; }
.av-rate {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1rem; border-top: 1px solid #E8E8E8;
}
.av-label { font-family: var(--mono); font-size: .6rem; color: var(--txt3); letter-spacing: .15em; }
.av-val { font-family: var(--disp); font-size: .9rem; color: #618764; }

@media(max-width:900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .cf-row { grid-template-columns: 1fr; }
  .contact-info { max-width: 480px; }
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  border-top: 1px solid #E8E8E8;
  padding: 2rem 0; background: #F7F7F7;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--disp); font-size: 1rem; font-weight: 700;
  letter-spacing: .14em; color: #111;
}
.footer-copy { font-family: var(--mono); font-size: .65rem; color: var(--txt3); }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a {
  font-family: var(--mono); font-size: .65rem; color: var(--txt3);
  text-decoration: none; letter-spacing: .12em;
  transition: color .25s;
}
.footer-links a:hover { color: #111; }

/* ================================================================
   LIVE BADGE
   ================================================================ */
.live-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--mono); font-size: .58rem;
  color: #3DAA88; letter-spacing: .1em;
}
.live-badge::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: #3DAA88;
  animation: blink 1.6s infinite;
}

/* ================================================================
   KEYFRAMES
   ================================================================ */
@keyframes fadeUp  { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn  { from{opacity:0} to{opacity:1} }
@keyframes float   { 0%,100%{transform:translate(-50%,-50%) translateY(0)} 50%{transform:translate(-50%,-50%) translateY(-16px)} }
@keyframes spinR   { from{transform:translate(-50%,-50%) rotate(0)} to{transform:translate(-50%,-50%) rotate(360deg)} }
@keyframes spinL   { from{transform:translate(-50%,-50%) rotate(0)} to{transform:translate(-50%,-50%) rotate(-360deg)} }
@keyframes blink   { 0%,100%{opacity:1} 50%{opacity:.3} }
@keyframes scrollDown {
  0%{opacity:0;transform:translateY(-8px)} 40%{opacity:1}
  80%{opacity:0;transform:translateY(16px)} 100%{opacity:0}
}


/* ================================================================
   FULL MOBILE RESPONSIVE — A to Z
   Breakpoints: 1024px · 768px · 600px · 400px
   ================================================================ */

/* ── 1024px: Large tablet ─────────────────────────────────────── */
@media (max-width: 1024px) {

  /* Container */
  .container { padding: 0 1.5rem; }
  .section { padding: 5rem 0; }

  /* Hero */
  .hero-section {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 100px 1.5rem 4rem;
    gap: 2.5rem;
  }
  .hero-content { max-width: 100%; }
  .hero-visual { width: 280px; height: 280px; }
  .hv-avatar { width: 160px; height: 160px; }
  .hv-chip { font-size: .58rem; padding: .3rem .7rem; }
  .chip-1 { top: 5%; left: -5%; }
  .chip-2 { top: 5%; right: -5%; }
  .chip-3 { bottom: 15%; left: -8%; }
  .chip-4 { bottom: 5%; right: -5%; }
  .hero-actions { justify-content: center; }
  .hero-stats  { justify-content: center; }
  .avail-badge { margin: 0 auto 1.75rem; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-card-wrap { max-width: 480px; margin: 0 auto; }

  /* Projects: 2 columns */
  .projects-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .project-card.featured { grid-column: 1 / 3; }

  /* Skills + Timeline */
  .skills-timeline-grid { grid-template-columns: 1fr; gap: 3rem; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .cf-row { grid-template-columns: 1fr 1fr; }
}


/* ── 768px: Tablet portrait ──────────────────────────────────── */
@media (max-width: 768px) {

  /* Global */
  .container { padding: 0 1.25rem; }
  .section { padding: 4rem 0; }
  .section-title { font-size: clamp(1.5rem, 5vw, 2.2rem); }

  /* Navbar */
  .navbar { padding: 0 1.25rem; }
  .nav-links, .nav-cta { display: none !important; }
  .nav-burger { display: flex !important; }

  /* Hero */
  .hero-section {
    padding: 90px 1.25rem 3.5rem;
    min-height: auto;
    gap: 2rem;
  }
  .ht-main { font-size: clamp(2.8rem, 9vw, 5rem); }
  .ht-name { font-size: clamp(.9rem, 3vw, 1.4rem); }
  .hero-desc { font-size: .95rem; }
  .hs-val { font-size: 1.3rem; }
  .hs-item { padding: 0 1rem; }
  .hs-item:first-child { padding-left: 1rem; }
  .hero-visual { width: 240px; height: 240px; }
  .hv-avatar { width: 140px; height: 140px; }
  .hv-initials { font-size: 1.8rem; }
  .scroll-hint { display: none; }

  /* Buttons */
  .btn { font-size: .65rem; padding: .75rem 1.5rem; }
  .hero-actions { gap: .75rem; }

  /* About */
  .about-grid { gap: 2rem; }
  .about-p { font-size: .95rem; }

  /* Projects */
  .projects-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .project-card.featured { grid-column: 1 / 3; }
  .projects-header { flex-direction: column; align-items: flex-start; }

  /* Project cards thumbnail */
  .proj-thumb { height: 160px !important; }
  .project-card.featured .proj-thumb { height: 180px !important; }
  .proj-title { font-size: 1rem; }
  .project-card.featured .proj-title { font-size: 1.2rem; }
  .proj-body { padding: 1.1rem; }
  .proj-desc { font-size: .82rem; }
  .proj-stack span { font-size: .56rem; }

  /* Tech stack */
  .tech-stack-grid { gap: 1rem; }
  .ts-category { padding: .85rem 1rem; }

  /* Timeline */
  .timeline { padding-left: 1.25rem; }
  .tl-dot { left: -1.25rem; }
  .tl-connector { left: calc(-1.25rem + 5px); }
  .tl-card { padding: 1.1rem; }

  /* Contact */
  .contact-form { padding: 1.25rem; }
  .cf-row { grid-template-columns: 1fr; gap: 0; }
  .ci-card, .availability-card { padding: 1.1rem; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .footer-links { gap: 1rem; }
}


/* ── 600px: Mobile ───────────────────────────────────────────── */
@media (max-width: 600px) {

  /* Global */
  .container { padding: 0 1rem; }
  .section { padding: 3.5rem 0; }

  /* Navbar */
  .navbar { padding: 0 1rem; height: 58px; }
  .mobile-menu { top: 58px; padding: 1.25rem 1rem; }
  .brand-text { font-size: .82rem; }

  /* Hero — single column, no visual */
  .hero-section {
    grid-template-columns: 1fr;
    padding: 80px 1rem 3rem;
    gap: 1.5rem;
  }
  .hero-visual { display: none; }
  .ht-sub { font-size: .7rem; letter-spacing: .2em; }
  .ht-main { font-size: clamp(2.5rem, 11vw, 4rem); }
  .ht-name { font-size: clamp(.85rem, 3.5vw, 1.2rem); letter-spacing: .14em; }
  .hero-desc { font-size: .9rem; line-height: 1.75; margin-bottom: 1.5rem; }
  .hero-actions { flex-direction: column; align-items: center; gap: .6rem; margin-bottom: 2rem; }
  .btn { width: 100%; justify-content: center; max-width: 280px; }
  .hero-stats { gap: 0; flex-wrap: wrap; justify-content: center; }
  .hs-item { padding: .5rem .75rem; }
  .hs-val { font-size: 1.2rem; }
  .hs-label { font-size: .54rem; }
  .hs-divider { display: none; }
  .avail-badge { font-size: .6rem; }

  /* About */
  .about-grid { gap: 1.5rem; }
  .about-card { padding: 1.1rem; }
  .ac-name { font-size: .95rem; }
  .about-links { flex-direction: column; gap: .6rem; }
  .about-links .btn { max-width: 100%; width: 100%; justify-content: center; }

  /* Projects — single column */
  .projects-grid { grid-template-columns: 1fr; gap: 1rem; }
  .project-card.featured { grid-column: 1; }
  .proj-thumb { height: 170px !important; }
  .project-card.featured .proj-thumb { height: 190px !important; }
  .proj-filter { gap: .35rem; }
  .pf-btn { font-size: .58rem; padding: .3rem .7rem; }
  .proj-footer { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .proj-stack { gap: .3rem; }

  /* Tech stack */
  .tech-stack-grid { gap: .85rem; }
  .ts-cat-label { font-size: .6rem; }
  .ts-chip { font-size: .62rem; padding: .25rem .65rem; }

  /* Skills timeline */
  .skills-timeline-grid { gap: 2.5rem; }
  .tl-role { font-size: .82rem; }
  .tl-desc { font-size: .8rem; }

  /* Contact */
  .contact-sub { font-size: .92rem; }
  .contact-form { padding: 1rem; }
  .cf-input { font-size: .85rem; padding: .75rem .85rem; }
  .contact-grid { gap: 1.25rem; }

  /* Footer */
  .footer-inner { gap: .6rem; }
  .footer-copy { font-size: .6rem; }
  .footer-links a { font-size: .6rem; }
}


/* ── 400px: Small mobile ─────────────────────────────────────── */
@media (max-width: 400px) {

  /* Global */
  .container { padding: 0 .85rem; }
  .section { padding: 3rem 0; }
  .section-title { font-size: 1.4rem; letter-spacing: .02em; }
  .section-label { font-size: .6rem; }

  /* Hero */
  .hero-section { padding: 75px .85rem 2.5rem; }
  .ht-main { font-size: 2.3rem; }
  .ht-name { font-size: .82rem; letter-spacing: .1em; }
  .hero-desc { font-size: .85rem; }
  .avail-badge { font-size: .56rem; padding: .35rem .85rem; }

  /* Navbar */
  .navbar { padding: 0 .85rem; }
  .mobile-menu { padding: 1rem .85rem; }

  /* Projects */
  .proj-thumb { height: 150px !important; }
  .proj-title { font-size: .9rem; }
  .proj-body { padding: 1rem; }

  /* Buttons */
  .btn { font-size: .62rem; padding: .7rem 1.2rem; max-width: 100%; }

  /* Tech chips */
  .ts-chips { gap: .3rem; }
  .ts-chip { font-size: .58rem; padding: .22rem .55rem; }

  /* Contact */
  .cf-input { padding: .7rem .75rem; }
  .contact-form { padding: .85rem; }
}
