/* =========================================================
   TOKENS
   ========================================================= */
:root{
  --bg:            #0B0F14;
  --surface:       #121821;
  --surface-2:     #161D28;
  --border:        #1E2733;
  --text:          #E6EDF3;
  --text-muted:    #8B98A5;
  --accent:        #3FB950;
  --accent-dim:    #234A2E;
  --accent-2:      #58A6FF;

  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1120px;
  --radius: 12px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background:
    radial-gradient(700px 400px at top left, rgba(88,166,255,0.12), transparent 70%),
    radial-gradient(700px 400px at bottom right, rgba(63,185,80,0.12), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
body::before,
body::after{
  content: '';
  position: fixed;
  inset: auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.16;
  pointer-events: none;
  z-index: -1;
}
body::before{ top: -80px; left: -80px; background: var(--accent-2); }
body::after{ right: -100px; bottom: -60px; background: var(--accent); }

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
::selection{ background: rgba(88,166,255,0.28); color: var(--text); }
section[id]{ scroll-margin-top: 92px; }

:focus-visible{
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

h1,h2,h3{
  font-family: var(--font-mono);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin: 0 0 12px;
}

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

/* =========================================================
   NAV
   ========================================================= */
.nav{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,15,20,0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.16);
}

.nav__inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand{
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
}
.nav__brand .dot{ color: var(--accent); }

.nav__links{
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--text-muted);
}
.nav__links a{
  position: relative;
  transition: color .2s ease;
}
.nav__links a::after{
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--accent-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav__links a:hover,
.nav__links a:focus-visible{ color: var(--text); }
.nav__links a:hover::after,
.nav__links a:focus-visible::after{ transform: scaleX(1); }

.nav__right{
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav__toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__toggle span{
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Language switch */
.lang-switch{
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
}
.lang-switch:hover{ border-color: var(--accent-2); }
.lang-switch__sep{ color: var(--text-muted); }
.lang-switch__opt{
  color: var(--text-muted);
  padding: 2px 4px;
  transition: color .15s ease;
}
.lang-switch__opt.is-active{
  color: var(--accent);
  font-weight: 600;
}

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position: relative;
  overflow: hidden;
  padding: 96px 24px 100px;
  border-bottom: 1px solid var(--border);
}

.hero__grid{
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

.hero__net{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.hero__inner{
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}

.badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(63,185,80,0.16), rgba(88,166,255,0.12));
  border: 1px solid rgba(63,185,80,0.28);
  padding: 7px 13px;
  border-radius: 999px;
  margin-bottom: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.badge__pulse{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(63,185,80,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse{
  0%   { box-shadow: 0 0 0 0 rgba(63,185,80,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(63,185,80,0); }
  100% { box-shadow: 0 0 0 0 rgba(63,185,80,0); }
}

.hero__content{ max-width: 620px; }
.hero__title{
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero__desc{
  color: var(--text-muted);
  max-width: 52ch;
  font-size: 16px;
  margin-bottom: 32px;
  line-height: 1.8;
}
.hero__desc p{ margin: 0; }
.hero__desc p + p{ margin-top: 14px; }

.hero__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero__highlights{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__highlight{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  font-size: 13px;
}
.hero__highlight strong{ color: var(--text); }

.btn{
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn--primary{
  background: linear-gradient(135deg, var(--accent), #47c76a);
  color: #06210C;
  border-color: var(--accent);
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(63,185,80,0.18);
}
.btn--primary:hover{ transform: translateY(-1px); filter: brightness(1.08); }
.btn--ghost{ color: var(--text); background: rgba(18,24,33,0.8); }
.btn--ghost:hover{ border-color: var(--accent-2); color: var(--accent-2); box-shadow: 0 8px 20px rgba(88,166,255,0.12); }

.hero__portrait{
  position: relative;
  justify-self: center;
  isolation: isolate;
  padding: 10px 10px 32px;
}
.hero__portrait::before{
  content: '';
  position: absolute;
  inset: 22px 2px 34px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88,166,255,.16), rgba(63,185,80,.08) 45%, transparent 72%);
  filter: blur(24px);
}

.portrait__frame{
  position: relative;
  width: 250px;
  height: 300px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(88,166,255,.3);
  background: linear-gradient(145deg, rgba(88,166,255,.16), rgba(63,185,80,.12));
  box-shadow: 0 22px 50px rgba(0,0,0,.28), 0 0 28px rgba(88,166,255,.07);
  padding: 5px;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.portrait__frame::before{
  content: '';
  position: absolute;
  inset: 10px;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 11px;
  pointer-events: none;
}
.portrait__img{
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 13px;
  transition: transform .3s ease;
}
.portrait__frame:hover .portrait__img{
  transform: scale(1.02);
}
.portrait__frame:hover{ border-color: rgba(63,185,80,.42); box-shadow: 0 26px 56px rgba(0,0,0,.32), 0 0 32px rgba(63,185,80,.12); transform: translateY(-2px); }
.portrait__placeholder{
  display: none;
  position: absolute;
  z-index: 4;
  inset: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  padding: 20px;
}
.portrait__placeholder code{
  color: var(--accent-2);
}
.portrait__frame--empty .portrait__img{ display:none; }
.portrait__frame--empty .portrait__placeholder{ display:flex; }

.status-chip{
  position: absolute;
  z-index: 4;
  bottom: 7px;
  right: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(18,24,33,0.94);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}
.status-chip__dot{
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(63,185,80,.7);
}

/* =========================================================
   SECTIONS (shared)
   ========================================================= */
.section{ padding: 96px 24px; }
.section--alt{ background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__inner{ max-width: var(--container); margin: 0 auto; }
.section__title{
  font-size: clamp(22px, 3vw, 30px);
  max-width: 42ch;
  margin-bottom: 56px;
  line-height: 1.4;
  position: relative;
  display: inline-block;
}
.section__title::after{
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* =========================================================
   TIMELINE
   ========================================================= */
.timeline{ position: relative; padding-left: 34px; display: flex; flex-direction: column; gap: 18px; }
.timeline__line{
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, rgba(88,166,255,0.35), rgba(255,255,255,0.08));
}
.timeline__item{ position: relative; }
.timeline__item:last-child{ padding-bottom: 0; }

.timeline__marker{
  position: absolute;
  left: -34px;
  top: 22px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--text-muted);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.timeline__marker--active{
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(63, 185, 80, 0.16);
  transform: scale(1.08);
}
.timeline__marker--target{
  border: 2px dashed var(--accent-2);
  background: transparent;
}

.timeline__card{
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.timeline__card:hover{
  transform: translateY(-2px);
  border-color: rgba(88, 166, 255, 0.28);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
}
.timeline__period{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-2);
}
.timeline__card h3{ font-size: 18px; margin: 6px 0 8px; }
.timeline__card p{ color: var(--text-muted); max-width: 60ch; font-size: 15px; margin:0; line-height: 1.7; }
.timeline__card--active{
  border-color: rgba(63, 185, 80, 0.34);
  background: linear-gradient(135deg, rgba(63, 185, 80, 0.13), rgba(255,255,255,0.03));
}
.timeline__card--active h3{ color: var(--accent); }
.timeline__card--target{ opacity: 0.92; border-style: dashed; }
.timeline__card--target h3{ color: var(--accent-2); }

/* =========================================================
   SKILLS
   ========================================================= */
.skills{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.skill-card{
  --skill-color: var(--accent-2);
  position: relative;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.16);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.skill-card::before{ content:''; position:absolute; inset:0 0 auto; height:2px; background:linear-gradient(90deg, transparent, var(--skill-color), transparent); opacity:.75; }
.skill-card::after{ content:''; position:absolute; width:180px; height:180px; right:-90px; bottom:-120px; border-radius:50%; background:var(--skill-color); filter:blur(55px); opacity:.12; transition:opacity .25s ease, transform .25s ease; z-index:-1; }
.skill-card--os{ --skill-color:#58a6ff; }
.skill-card--network{ --skill-color:#3fb950; }
.skill-card--cloud{ --skill-color:#a371f7; }
.skill-card--monitoring{ --skill-color:#f2cc60; }
.skill-card:hover{
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--skill-color) 48%, transparent);
  box-shadow: 0 22px 44px rgba(0,0,0,0.24);
}
.skill-card:hover::after{ opacity:.22; transform:scale(1.18); }
.skill-card__head{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.skill-card__icon{
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--skill-color) 16%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  color:var(--skill-color);
}
.skill-card__icon svg{ width:22px; height:22px; }
.skill-card__index{ margin-left:auto; font-family:var(--font-mono); font-size:11px; color:var(--text-muted); opacity:.7; }
.skill-card__title{
  font-size: 15px;
  color: var(--text);
  margin: 0;
}
.skill-card__list{
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}
.skill-card__list li{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
}
.skill-card__list li::before{
  content:'';
  width:7px;
  height:7px;
  flex:0 0 7px;
  margin-top:.52em;
  border-radius:50%;
  background:var(--skill-color);
  box-shadow:0 0 10px color-mix(in srgb, var(--skill-color) 75%, transparent);
}
.skill-card__tools{ display:flex; flex-wrap:wrap; gap:7px; margin-top:auto; padding-top:20px; }
.skill-card__tools span{ padding:3px 8px; border:1px solid color-mix(in srgb, var(--skill-color) 26%, transparent); border-radius:999px; color:var(--skill-color); background:color-mix(in srgb, var(--skill-color) 9%, transparent); font-family:var(--font-mono); font-size:10px; letter-spacing:.02em; }

/* =========================================================
   PROJECTS
   ========================================================= */
.projects{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.project-card{
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
  align-self: start;
}
.project-card:hover{
  border-color: rgba(88,166,255,0.28);
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.24);
}
.project-card__media{
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.project-card__media::after{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 45%, rgba(0,0,0,0.16));
  pointer-events: none;
}
.project-card__slides{
  position: relative;
  width: 100%;
  height: 100%;
}
.js .project-card__slides img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity .6s ease, transform .6s ease;
  cursor: zoom-in;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  z-index: 1;
  pointer-events: none;
  display: none;
}
.js .project-card__slides img.is-active{
  opacity: 1;
  transform: scale(1);
  z-index: 2;
  pointer-events: auto;
  display: block;
}

/* If JavaScript is not running (or failed), show images as a graceful fallback */
:not(.js) .project-card__slides img{
  position: static;
  width: 100%;
  height: auto;
  opacity: 1;
  transform: none;
  cursor: zoom-in;
}
.project-card__slides img:hover{
  transform: scale(1.03);
}
.project-modal{
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 8, 12, 0.86);
  backdrop-filter: blur(8px);
}
.project-modal.is-open{
  display: flex;
}
.project-modal__content{
  position: relative;
  max-width: min(1000px, 100%);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-modal__img{
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  image-rendering: auto;
}
.project-modal__close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(11, 15, 20, 0.8);
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}
.project-card__controls{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  pointer-events: none;
}
.project-card__nav{
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: rgba(11, 15, 20, 0.7);
  color: var(--text);
  cursor: pointer;
  pointer-events: auto;
  font-size: 20px;
  display: grid;
  place-items: center;
}
.project-card__nav:hover{ background: rgba(11, 15, 20, 0.9); }
.project-card__dots{
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  pointer-events: none;
}
.project-card__dot{
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.45);
  padding: 0;
  pointer-events: auto;
  cursor: pointer;
}
.project-card__dot.is-active{
  background: var(--accent);
}
.project-card__placeholder{
  display: none;
  position: absolute; inset:0;
  align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 12px;
}
.project-card__media--empty img{ display:none; }
.project-card__media--empty .project-card__placeholder{ display:flex; }

.project-card__body{ padding: 24px; display: flex; flex-direction: column; flex: 1 1 auto; }
.project-card__meta{
  display: flex;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-2);
  margin-bottom: 10px;
}
.project-card__title{
  font-size: 17px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: color .15s ease;
}
.project-card__title:hover{
  color: var(--accent-2);
}
.project-card__body p{ color: var(--text-muted); font-size: 14px; margin: 0 0 16px; }
.project-card__details{
  display: none;
  opacity: 0;
  margin-top: 0;
  transform: translateY(-6px);
  transition: opacity .28s ease, transform .28s ease, margin-top .28s ease;
}
.project-card__details.is-open{
  display: block;
  opacity: 1;
  margin-top: 24px;
  transform: translateY(0);
}
.project-card__details__inner{
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  transition: padding .28s ease, border-color .28s ease, background .28s ease;
}
.project-card__details.is-open .project-card__details__inner{
  padding: 16px;
  border-color: var(--border);
}
.project-card__details.is-open + .tags{ margin-top: 20px; }
.project-card__details h4{
  font-size: 13px;
  color: var(--accent);
  margin: 0 0 10px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.project-card__details ul{
  margin: 0;
  padding-left: 0;
  color: var(--text-muted);
  font-size: 14px;
  display: grid;
  gap: 10px;
  list-style: none;
}
.project-card__details li{
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.project-card__details li:first-child{
  border-top: 0;
  padding-top: 0;
}
.project-card__details li strong{
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}
.tags{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tags span{
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  padding: 4px 9px;
  border-radius: 999px;
}

/* =========================================================
   EXPERIENCE
   ========================================================= */
.experience{
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.experience__item{
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  padding: 24px 24px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.025));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.experience__item:hover{
  transform: translateY(-2px);
  border-color: rgba(88,166,255,0.28);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.24);
}
.experience__period{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-2);
  line-height: 1.7;
}
.experience__body h3{ font-size: 17px; margin-bottom: 6px; }
.experience__company{
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  margin: 0 0 10px;
}
.experience__body > p:not(.experience__company){
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 400;
  margin: 0;
  max-width: 65ch;
  line-height: 1.8;
}
.experience__body > p:not(.experience__company) + p:not(.experience__company){ margin-top: 10px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer{ padding: 96px 24px 40px; }
.footer__inner{ max-width: var(--container); margin: 0 auto; }
.footer__title{
  font-size: clamp(22px, 3.5vw, 32px);
  max-width: 34ch;
  margin-bottom: 24px;
  line-height: 1.4;
}
.footer__email{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-dim);
  padding-bottom: 4px;
  margin-bottom: 32px;
}
.footer__email:hover{ color: var(--accent-2); }

.footer__bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}
.footer__socials{ display: flex; gap: 20px; }
.footer__socials a{
  transition: color .2s ease;
}
.footer__socials a:hover{ color: var(--accent-2); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px){
  .hero__inner{ grid-template-columns: 1fr; }
  .hero__portrait{ order: -1; }
  .skills{ grid-template-columns: repeat(2, 1fr); }
  .projects{ grid-template-columns: 1fr; }
  .experience__item{ grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 640px){
  .nav__links{
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    display: none;
  }
  .nav__links.is-open{ display: flex; }
  .nav__toggle{ display: flex; }
  .skills{ grid-template-columns: 1fr; }
  .hero{ padding: 64px 20px 72px; }
  .section{ padding: 64px 20px; }
  .footer__bottom{ flex-direction: column; gap: 16px; align-items: flex-start; }
}
