/* ═══════════════════════════════════════════════════════
   IT'S ALL GOOD, MAN — style.css
   Thème Better Call Saul — Ibrahim TURKBEN
   ═══════════════════════════════════════════════════════ */

/* ─── VARIABLES ─── */
:root {
  --bg:           #090705;
  --bg-alt:       #0E0B07;
  --surface:      #1A1208;
  --surface-2:    #24190E;
  --surface-3:    #2E2211;
  --gold:         #C9A227;
  --gold-bright:  #E8BE45;
  --gold-dim:     #7A6018;
  --gold-glow:    rgba(201,162,39,.12);
  --cream:        #EDE0BE;
  --text:         #C8B89A;
  --text-dim:     #6E5D42;
  --green:        #3E7E35;
  --red:          #8B2020;
  --border:       #281D0C;
  --border-gold:  rgba(201,162,39,.2);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'Courier Prime', 'Courier New', monospace;
  --ease:         0.35s cubic-bezier(.4,0,.2,1);
  --r:            4px;
  --container:    1140px;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
::selection { background: var(--gold); color: var(--bg); }

/* ─── UTILITY ─── */
.hidden    { display: none !important; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
.w-full    { width: 100%; }

/* ─── REVEAL ON SCROLL ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════
   INTRO
══════════════════════════════════════════ */
#intro {
  position: fixed; inset: 0; z-index: 9999;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .7s ease;
}
#intro.fade-out { opacity: 0; pointer-events: none; }
#intro-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: .35;
}
.intro-wrap {
  position: relative; z-index: 1;
  text-align: center; padding: 2rem;
}
.intro-top { margin-bottom: 3rem; }

.intro-crossed {
  position: relative; display: inline-block;
  margin-bottom: 1rem;
  opacity: 0; transition: opacity .5s;
}
.intro-crossed.show { opacity: 1; }
.intro-crossed-text {
  font-family: var(--font-mono);
  font-size: clamp(.65rem, 1.4vw, .82rem);
  letter-spacing: .35em; color: var(--text-dim);
  text-transform: uppercase; display: block;
}
.intro-cross-line {
  position: absolute; top: 50%; left: 0;
  width: 0; height: 1.5px;
  background: #c0392b;
  transition: width .55s ease;
}
.intro-crossed.strike .intro-cross-line { width: 100%; }

.intro-brand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 900; color: var(--gold-bright);
  letter-spacing: .03em;
  text-shadow: 0 0 80px rgba(201,162,39,.5);
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
  margin-bottom: .5rem;
}
.intro-brand.show { opacity: 1; transform: translateY(0); }

.intro-sub {
  font-family: var(--font-mono);
  font-size: clamp(.65rem, 1.2vw, .78rem);
  letter-spacing: .18em; color: var(--text-dim);
  text-transform: uppercase;
  opacity: 0; transition: opacity .6s ease .2s;
}
.intro-sub.show { opacity: 1; }

.intro-loader {
  display: flex; flex-direction: column;
  align-items: center; gap: .7rem;
}
.intro-progress {
  width: 260px; height: 2px;
  background: var(--surface-3);
  border-radius: 1px; overflow: hidden;
}
.intro-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright));
  box-shadow: 0 0 10px var(--gold);
  transition: width .25s ease;
}
.intro-status {
  font-family: var(--font-mono);
  font-size: .68rem; color: var(--text-dim);
  letter-spacing: .1em;
}

/* ══════════════════════════════════════════
   NAV
══════════════════════════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; padding: 1.4rem 0;
  transition: all var(--ease);
}
#nav.scrolled {
  background: rgba(9,7,5,.96);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: .8rem 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; flex-direction: column; }
.nl-main {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 700;
  color: var(--gold); line-height: 1.2;
}
.nl-sub {
  font-family: var(--font-mono);
  font-size: .58rem; color: var(--text-dim); letter-spacing: .15em;
}
.nav-links { list-style: none; display: flex; gap: 2.5rem; }
.nav-links .nl {
  font-size: .78rem; font-weight: 500;
  color: var(--text-dim);
  letter-spacing: .08em; text-transform: uppercase;
  position: relative;
  transition: color var(--ease);
}
.nav-links .nl::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width var(--ease);
}
.nav-links .nl:hover,
.nav-links .nl.active { color: var(--gold-bright); }
.nav-links .nl:hover::after,
.nav-links .nl.active::after { width: 100%; }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: .3rem;
}
.nav-burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--gold);
  transition: all var(--ease);
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* Diamond/checkerboard — ref. Saul's office wallpaper */
.hero-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(45deg,  rgba(201,162,39,.045) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(201,162,39,.045) 25%, transparent 25%),
    linear-gradient(45deg,  transparent 75%, rgba(201,162,39,.045) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(201,162,39,.045) 75%);
  background-size: 32px 32px;
  background-position: 0 0, 0 16px, 16px -16px, -16px 0;
}
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%,
    transparent 20%, rgba(9,7,5,.9) 100%);
}

.hero-content {
  position: relative; z-index: 1;
  text-align: center; padding: 0 1.5rem;
  max-width: 860px;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: .68rem; color: var(--gold-dim);
  letter-spacing: .4em; text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 11vw, 9rem);
  font-weight: 900; line-height: .92;
  letter-spacing: -.02em; color: var(--cream);
  margin-bottom: 1.4rem;
  display: flex; flex-direction: column; align-items: center;
}
.hero-last {
  -webkit-text-stroke: 1.5px var(--gold-dim);
  color: transparent;
}
.hero-role-wrap {
  font-family: var(--font-mono);
  font-size: clamp(.82rem, 1.8vw, 1.02rem);
  color: var(--text); margin-bottom: 2.2rem;
  min-height: 1.6em;
}
.type-cursor { animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 1.2rem; margin-bottom: 2.8rem;
}
.hd-line {
  flex: 1; max-width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}
.hd-line-r { background: linear-gradient(90deg, var(--gold-dim), transparent); }
.hd-quote {
  font-family: var(--font-display);
  font-style: italic; font-size: 1.05rem; color: var(--gold);
}
.hero-ctas {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .9rem 2.2rem;
  background: var(--gold); color: var(--bg);
  font-weight: 700; font-size: .8rem;
  letter-spacing: .07em; text-transform: uppercase; border: none;
  clip-path: polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,10px 100%,0 calc(100% - 10px));
  transition: all var(--ease);
}
.btn-primary:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(201,162,39,.28);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .9rem 2.2rem;
  background: transparent; color: var(--gold);
  font-weight: 700; font-size: .8rem;
  letter-spacing: .07em; text-transform: uppercase;
  border: 1px solid var(--gold-dim);
  clip-path: polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,10px 100%,0 calc(100% - 10px));
  transition: all var(--ease);
}
.btn-secondary:hover {
  border-color: var(--gold);
  background: var(--gold-glow);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%); z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .6rem;
  color: var(--text-dim); letter-spacing: .2em; text-transform: uppercase;
}
.hs-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: hs-pulse 2.2s ease infinite;
}
@keyframes hs-pulse {
  0%,100%{ opacity:.25; } 50%{ opacity:1; }
}

/* ══════════════════════════════════════════
   SECTION HEADER (shared)
══════════════════════════════════════════ */
.section-head { text-align: center; margin-bottom: 4rem; }
.sec-eyebrow {
  display: block; font-family: var(--font-mono);
  font-size: .66rem; color: var(--gold);
  letter-spacing: .45em; text-transform: uppercase; margin-bottom: .7rem;
}
.sec-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700; color: var(--cream); margin-bottom: 1.4rem;
}
.sec-rule { width: 48px; height: 2px; background: var(--gold); margin: 0 auto; }

/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
#about {
  padding: 8rem 0; background: var(--bg-alt);
  position: relative;
}
#about::before {
  content: ''; position: absolute; left:0; right:0; top:0;
  height: 1px; background: var(--border);
}

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

/* Profile card */
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  padding: 2rem; position: relative;
}
.pc-stamp {
  position: absolute; top: 12px; right: 12px;
  font-family: var(--font-mono);
  font-size: .56rem; color: var(--gold-dim);
  letter-spacing: .25em; text-transform: uppercase;
  border: 1px solid var(--border-gold); padding: 2px 6px;
}

.pc-avatar {
  position: relative; width: 82px; height: 82px;
  margin: 0 auto 1.4rem;
}
.pca-ring-outer, .pca-ring-inner {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--border-gold);
  animation: spin 12s linear infinite;
}
.pca-ring-inner {
  inset: 9px; border-style: dashed;
  animation-direction: reverse; animation-duration: 8s;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pca-core {
  position: absolute; inset: 18px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: .85rem; font-weight: 700; color: var(--gold);
}
.pca-status {
  position: absolute; bottom: 2px; right: 2px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green); border: 1.5px solid var(--bg-alt);
  box-shadow: 0 0 6px var(--green);
  animation: pulse-green 2s ease infinite;
}
@keyframes pulse-green {
  0%,100%{ box-shadow: 0 0 6px var(--green); }
  50%    { box-shadow: 0 0 14px var(--green); }
}

.pc-name {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700; color: var(--cream);
  text-align: center; margin-bottom: .2rem;
}
.pc-role  { font-size: .78rem; color: var(--gold); text-align: center; font-weight: 500; margin-bottom: .2rem; }
.pc-company {
  font-size: .7rem; color: var(--text-dim);
  text-align: center; margin-bottom: 1.2rem;
  font-family: var(--font-mono);
}
.pc-tags {
  display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.4rem;
}
.pc-tags span {
  font-size: .62rem; font-family: var(--font-mono);
  padding: 3px 7px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-dim); letter-spacing: .04em;
}
.pc-links { display: flex; gap: .6rem; }
.pcl-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .55rem .5rem;
  background: var(--gold); color: var(--bg);
  font-size: .7rem; font-weight: 700; letter-spacing: .04em; border: none;
  clip-path: polygon(0 0,calc(100% - 6px) 0,100% 6px,100% 100%,6px 100%,0 calc(100% - 6px));
  transition: all var(--ease);
}
.pcl-btn:hover { background: var(--gold-bright); transform: translateY(-1px); }
.pcl-ghost {
  background: transparent; color: var(--gold);
  border: 1px solid var(--gold-dim);
}
.pcl-ghost:hover { border-color: var(--gold); background: var(--gold-glow); }

/* About main */
.about-bio {
  font-family: var(--font-display);
  font-style: italic; font-size: 1.1rem;
  color: var(--cream); line-height: 1.8;
  margin-bottom: 2.2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--gold);
}
.about-stats {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1.2rem; margin-bottom: 2.8rem;
}
.ast-item { text-align: center; }
.ast-n {
  display: block; font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 900; color: var(--gold-bright); line-height: 1.1;
}
.ast-l {
  display: block; font-size: .65rem; font-family: var(--font-mono);
  color: var(--text-dim); letter-spacing: .1em; text-transform: uppercase; margin-top: .2rem;
}

/* Timeline */
.tl-heading {
  font-family: var(--font-mono);
  font-size: .68rem; color: var(--gold);
  letter-spacing: .25em; text-transform: uppercase; margin-bottom: 1.5rem;
}
.tl-item {
  display: grid; grid-template-columns: 44px 12px 1fr;
  gap: 0 1rem; margin-bottom: 1.6rem; align-items: start;
}
.tl-year {
  font-family: var(--font-mono); font-size: .7rem;
  color: var(--gold-dim); padding-top: 2px; text-align: right;
}
.tl-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); margin-top: 5px;
  box-shadow: 0 0 8px rgba(201,162,39,.5);
  position: relative;
}
.tl-dot::before {
  content: ''; position: absolute; top: 8px; left: 50%;
  transform: translateX(-50%); width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--border-gold), transparent);
}
.tl-item:last-child .tl-dot::before { display: none; }
.tl-body strong { display: block; color: var(--cream); font-size: .9rem; font-weight: 600; margin-bottom: .15rem; }
.tl-body span   { font-size: .73rem; color: var(--text-dim); font-family: var(--font-mono); }

/* ══════════════════════════════════════════
   SKILLS
══════════════════════════════════════════ */
#skills { padding: 8rem 0; }
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; }
.sk-cat {
  font-family: var(--font-mono); font-size: .68rem; color: var(--gold);
  letter-spacing: .25em; text-transform: uppercase;
  padding-left: 1rem; border-left: 2px solid var(--gold); margin-bottom: 1.6rem;
}
.sk-item { margin-bottom: 1.1rem; }
.sk-head { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: .82rem; }
.sk-pct  { font-family: var(--font-mono); font-size: .68rem; color: var(--gold-dim); }
.sk-bar  { height: 3px; background: var(--surface-3); position: relative; overflow: hidden; }
.sk-bar::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg,transparent,transparent 6px,rgba(0,0,0,.25) 6px,rgba(0,0,0,.25) 7px);
  z-index: 1;
}
.sk-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright));
  box-shadow: 2px 0 8px rgba(201,162,39,.4);
  transition: width 1.3s cubic-bezier(.4,0,.2,1);
}

/* ══════════════════════════════════════════
   PROJECTS
══════════════════════════════════════════ */
#projects {
  padding: 8rem 0; background: var(--bg-alt);
  position: relative;
}
#projects::before {
  content: ''; position: absolute; left:0; right:0; top:0;
  height: 1px; background: var(--border);
}

.proj-filters {
  display: flex; gap: .55rem; flex-wrap: wrap; margin-bottom: 2.8rem;
}
.pf {
  padding: .42rem 1.1rem;
  background: transparent; color: var(--text-dim);
  border: 1px solid var(--border);
  font-size: .72rem; font-family: var(--font-mono);
  letter-spacing: .1em; text-transform: uppercase;
  transition: all var(--ease);
}
.pf:hover { border-color: var(--gold-dim); color: var(--text); }
.pf.active { background: var(--gold); color: var(--bg); border-color: var(--gold); font-weight: 700; }

.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px,1fr));
  gap: 1.5rem;
}

.proj-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold-dim);
  padding: 1.6rem; position: relative;
  transition: all var(--ease); overflow: hidden;
}
.proj-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--gold-glow), transparent);
  opacity: 0; transition: opacity var(--ease);
}
.proj-card:hover {
  border-color: var(--gold-dim);
  border-top-color: var(--gold-bright);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,.45), 0 0 0 1px var(--border-gold);
}
.proj-card:hover::after { opacity: 1; }

.proj-case-label {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: .8rem; position: relative; z-index: 1;
}
.proj-case-num {
  font-family: var(--font-mono); font-size: .58rem;
  color: var(--gold-dim); letter-spacing: .3em; text-transform: uppercase;
}
.proj-status-badge {
  font-size: .56rem; font-family: var(--font-mono);
  padding: 2px 7px; letter-spacing: .08em; text-transform: uppercase;
}
.badge-open   { background: rgba(62,126,53,.2); color: #5BAD50; border: 1px solid rgba(62,126,53,.35); }
.badge-closed { background: rgba(139,32,32,.2); color: #C85050; border: 1px solid rgba(139,32,32,.35); }

.proj-card-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: .55rem; position: relative; z-index: 1;
}
.proj-tech {
  font-family: var(--font-mono); font-size: .65rem; font-weight: 700;
  padding: 3px 8px; letter-spacing: .04em;
}
.proj-stars { font-size: .72rem; color: var(--gold-dim); letter-spacing: .06em; }

.proj-title {
  font-family: var(--font-display);
  font-size: 1.22rem; font-weight: 700; color: var(--cream);
  margin-bottom: .45rem; position: relative; z-index: 1;
}
.proj-desc {
  font-size: .82rem; color: var(--text-dim);
  line-height: 1.65; margin-bottom: 1.2rem;
  position: relative; z-index: 1;
}
.proj-stack {
  display: flex; flex-wrap: wrap; gap: .4rem;
  position: relative; z-index: 1;
}
.proj-stack span {
  font-size: .6rem; font-family: var(--font-mono);
  padding: 3px 7px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-dim); letter-spacing: .04em;
}

/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
#contact { padding: 8rem 0; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start;
}
.ci-lead {
  font-family: var(--font-display);
  font-size: 1.15rem; color: var(--cream);
  line-height: 1.7; margin-bottom: 1.8rem;
}
.ci-avail {
  display: flex; align-items: center; gap: .6rem;
  font-size: .75rem; font-family: var(--font-mono);
  color: var(--text-dim); margin-bottom: 2rem;
}
.ci-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
  box-shadow: 0 0 8px var(--green);
  animation: pulse-green 2s ease infinite;
}
.ci-links { margin-bottom: 2.5rem; }
.cil-row {
  display: flex; gap: 1rem; align-items: center;
  padding: .75rem 0; border-bottom: 1px solid var(--border);
  transition: padding-left var(--ease);
}
.cil-row:first-child { border-top: 1px solid var(--border); }
.cil-row:hover { padding-left: .6rem; }
.cil-label {
  font-family: var(--font-mono); font-size: .62rem;
  color: var(--gold); letter-spacing: .15em; text-transform: uppercase; min-width: 66px;
}
.cil-val { font-size: .8rem; color: var(--text-dim); transition: color var(--ease); }
.cil-row:hover .cil-val { color: var(--cream); }

.ci-quote {
  border-left: 2px solid var(--gold); padding: .8rem 1.2rem;
  background: var(--surface);
}
.ci-quote p { font-family: var(--font-display); font-style: italic; font-size: 1.08rem; color: var(--gold); }
.ci-quote cite { font-size: .68rem; color: var(--text-dim); font-family: var(--font-mono); margin-top: .3rem; display: block; }

/* Form */
.contact-form {
  background: var(--surface); padding: 2rem;
  border: 1px solid var(--border); border-top: 2px solid var(--gold-dim);
}
.form-row { margin-bottom: 1.2rem; }
.form-row label {
  display: block; font-family: var(--font-mono);
  font-size: .6rem; color: var(--gold-dim);
  letter-spacing: .2em; text-transform: uppercase; margin-bottom: .4rem;
}
.form-input {
  width: 100%; background: var(--bg);
  border: 1px solid var(--border); color: var(--cream);
  font-family: var(--font-body); font-size: .88rem;
  padding: .7rem .9rem; outline: none;
  transition: border-color var(--ease);
  border-radius: 0; appearance: none; -webkit-appearance: none;
}
.form-input::placeholder { color: var(--text-dim); }
.form-input:focus { border-color: var(--gold-dim); }
textarea.form-input { resize: vertical; min-height: 110px; }
select.form-input { cursor: pointer; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
#footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border); background: var(--bg);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-left  { display: flex; flex-direction: column; gap: .25rem; }
.footer-brand { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--gold); }
.footer-copy  { font-family: var(--font-mono); font-size: .6rem; color: var(--text-dim); letter-spacing: .05em; }
.footer-right { display: flex; align-items: center; gap: 1.5rem; font-size: .75rem; color: var(--text-dim); }
.footer-right a { transition: color var(--ease); }
.footer-right a:hover { color: var(--gold); }
.footer-hint  { font-family: var(--font-mono); font-size: .58rem; color: var(--surface-3); transition: color var(--ease); cursor: pointer; user-select: none; }
.footer-hint:hover { color: var(--gold); }

/* ══════════════════════════════════════════
   EASTER EGG — TERMINAL
══════════════════════════════════════════ */
#terminal-egg {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 520px; height: 340px;
  background: #08060302;
  backdrop-filter: blur(0);
  background-color: #0A0700;
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  display: flex; flex-direction: column;
  z-index: 200;
  box-shadow: 0 24px 70px rgba(0,0,0,.75), 0 0 0 1px var(--border-gold);
  animation: te-appear .25s ease forwards;
}
@keyframes te-appear {
  from { opacity:0; transform:translateY(16px); }
  to   { opacity:1; transform:translateY(0);     }
}
.te-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: .5rem .9rem;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.te-title { font-family: var(--font-mono); font-size: .68rem; color: var(--gold); letter-spacing: .15em; text-transform: uppercase; }
.te-close {
  background: none; border: none; color: var(--text-dim);
  font-size: .85rem; transition: color var(--ease); padding: 0 .2rem;
}
.te-close:hover { color: #c85050; }
.te-body {
  flex: 1; overflow-y: auto; padding: .8rem;
  font-family: var(--font-mono); font-size: .72rem; line-height: 1.75; color: var(--text);
}
.te-body::-webkit-scrollbar { width: 3px; }
.te-body::-webkit-scrollbar-thumb { background: var(--border); }
.te-line-in  { color: var(--cream); margin-bottom: .1rem; }
.te-line-out { color: var(--text-dim); white-space: pre-wrap; margin-bottom: .6rem; padding-left: 1rem; border-left: 1px solid var(--border); }
.te-line-out.gold  { color: var(--gold); }
.te-line-out.green { color: #5BAD50; }
.te-line-out.ascii { font-size: .52rem; line-height: 1.3; color: var(--gold-dim); }
.te-input-row {
  display: flex; align-items: center;
  padding: .5rem .8rem; border-top: 1px solid var(--border);
}
.te-prompt { font-family: var(--font-mono); font-size: .72rem; color: var(--gold-dim); white-space: nowrap; }
#te-input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--cream); font-family: var(--font-mono); font-size: .72rem;
  caret-color: var(--gold);
}

/* ══════════════════════════════════════════
   PHONE EASTER EGG
══════════════════════════════════════════ */
#phone-egg {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(.6);
  z-index: 300; text-align: center;
  pointer-events: none; opacity: 0;
  transition: all .35s cubic-bezier(.34,1.56,.64,1);
}
#phone-egg.ring { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.phone-icon { font-size: 5rem; animation: phone-shake .11s linear infinite; display: block; }
@keyframes phone-shake { 0%,100%{transform:rotate(-6deg)} 50%{transform:rotate(6deg)} }
.phone-text {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  color: var(--gold-bright); letter-spacing: .15em;
  text-shadow: 0 0 40px rgba(201,162,39,.9); margin-top: .8rem;
}

/* ══════════════════════════════════════════
   TOAST NOTIFICATIONS
══════════════════════════════════════════ */
#notif-container {
  position: fixed; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 500; display: flex; flex-direction: column-reverse; gap: .5rem;
  pointer-events: none; align-items: center;
}
.notif {
  padding: .62rem 1.3rem;
  background: var(--surface-2); border: 1px solid var(--border-gold);
  border-left: 3px solid var(--gold);
  font-family: var(--font-mono); font-size: .7rem; color: var(--text);
  letter-spacing: .04em; min-width: 280px; text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  animation: notif-in .3s ease forwards;
}
.notif.error   { border-left-color: #c85050; }
.notif.success { border-left-color: #5BAD50; }
@keyframes notif-in  { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }
@keyframes notif-out { from{opacity:1;transform:translateY(0)}    to{opacity:0;transform:translateY(-8px)} }

/* ══════════════════════════════════════════
   RESPONSIVE — Mobile First
══════════════════════════════════════════ */

/* Fix iOS Safari : 100vh ne tient pas compte de la barre d'adresse */
#hero {
  min-height: 100vh;
  min-height: 100dvh;
}

/* ── Tablette large (< 920px) ── */
@media (max-width: 920px) {
  .about-grid    { grid-template-columns: 1fr; }
  .about-sidebar { max-width: 380px; margin: 0 auto; }
  .about-stats   { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .skills-grid   { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid  { grid-template-columns: 1fr; }
  .proj-grid     { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

/* ── Mobile (< 680px) ── */
@media (max-width: 680px) {
  /* Nav : hamburger */
  .nav-links  { display: none; }
  .nav-burger { display: flex; }

  /* Overlay sombre derrière le menu mobile */
  .nav-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 98;
    backdrop-filter: blur(2px);
  }
  .nav-overlay.open { display: block; }

  /* Menu mobile — drawer latéral */
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 72vw; max-width: 280px;
    background: var(--surface);
    border-left: 1px solid var(--border-gold);
    padding: 5rem 2rem 2rem;
    z-index: 99;
    box-shadow: -8px 0 40px rgba(0,0,0,.6);
    overflow-y: auto;
  }
  .nav-links.open .nl {
    font-size: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    letter-spacing: .05em;
  }

  /* Hamburger → croix quand menu ouvert */
  .nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* Hero : taille de texte réduite, trait fin */
  .hero-last        { -webkit-text-stroke: 1px var(--gold-dim); }
  .hero-eyebrow     { font-size: .62rem; letter-spacing: .3em; }
  .hd-quote         { font-size: .92rem; }

  /* Boutons : touch target ≥ 44px */
  .btn-primary,
  .btn-secondary    { padding: .85rem 1.6rem; min-height: 44px; font-size: .78rem; }

  /* Sections */
  #about, #skills, #projects, #contact { padding: 5rem 0; }
  .section-head     { margin-bottom: 3rem; }
  .sec-title        { font-size: clamp(1.8rem, 7vw, 2.6rem); }

  /* About */
  .about-bio        { font-size: 1rem; }
  .tl-item          { grid-template-columns: 38px 10px 1fr; }

  /* Skills : catégories avec marge top réduite */
  .sk-cat[style]    { margin-top: 2rem !important; }

  /* Projets : 1 colonne */
  .proj-grid        { grid-template-columns: 1fr; }
  .proj-filters     { gap: .4rem; }
  .pf               { padding: .5rem .9rem; min-height: 40px; font-size: .7rem; }

  /* Contact : réduire le gap */
  .contact-grid     { gap: 2.5rem; }

  /* Footer */
  .footer-inner     { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .footer-right     { flex-wrap: wrap; gap: 1rem; }
  .footer-hint      { display: none; } /* caché sur mobile — pas de clavier physique */

  /* Terminal easter egg : ancré en bas, pleine largeur */
  #terminal-egg {
    bottom: 0; right: 0; left: 0;
    width: 100%; height: 300px;
    border-left: none; border-right: none; border-bottom: none;
    border-radius: 0;
  }
}

/* ── Petit mobile (< 480px) ── */
@media (max-width: 480px) {
  .container        { padding: 0 1rem; }

  /* Hero : nom compact */
  .hero-name        { font-size: clamp(2.8rem, 14vw, 4rem); }
  .hero-ctas        { flex-direction: column; align-items: center; }
  .btn-primary,
  .btn-secondary    { width: 100%; max-width: 280px; justify-content: center; }

  /* Hero divider : lignes plus courtes */
  .hd-line          { max-width: 40px; }

  /* Stats : 2 colonnes resserrées */
  .about-stats      { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .ast-n            { font-size: 1.8rem; }

  /* Timeline : texte compact */
  .tl-body strong   { font-size: .85rem; }
  .tl-body span     { font-size: .7rem; }

  /* Profile card */
  .pc-links         { flex-direction: column; }
  .pcl-btn          { width: 100%; min-height: 40px; }

  /* Section titres */
  .sec-title        { font-size: clamp(1.6rem, 8vw, 2.2rem); }

  /* Formulaire */
  .contact-form     { padding: 1.4rem 1rem; }

  /* Notifications */
  .notif            { min-width: auto; width: calc(100vw - 2rem); font-size: .68rem; }
}

/* ── Très petit mobile (< 360px — vieux iPhones SE) ── */
@media (max-width: 360px) {
  .hero-name        { font-size: clamp(2.4rem, 13vw, 3rem); }
  .about-stats      { grid-template-columns: repeat(2, 1fr); }
  .tl-item          { grid-template-columns: 32px 10px 1fr; gap: 0 .6rem; }
  .tl-year          { font-size: .62rem; }
}
