@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Share+Tech+Mono&display=swap');

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

:root {
  --bg:        #020a0f;
  --bg2:       rgba(0,212,255,0.03);
  --cyan:      #00d4ff;
  --cyan-dim:  rgba(0,212,255,0.06);
  --cyan-brd:  rgba(0,212,255,0.25);
  --cyan-mid:  rgba(0,212,255,0.55);
  --cyan-glow: rgba(0,212,255,0.4);
  --text:      #e8f8ff;
  --muted:     #8ec8d8;
  --hint:      #4a8a9a;
  --faint:     rgba(0,212,255,0.15);
  --border:    rgba(0,212,255,0.18);
  --border-lo: rgba(0,212,255,0.08);
  --mono:      'Share Tech Mono', monospace;
  --title:     'Orbitron', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── ANIMATIONS ── */
@keyframes gridMove {
  from { background-position: 0 0; }
  to   { background-position: 0 60px; }
}
@keyframes scan {
  0%   { transform: translateY(-100vh); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}
@keyframes flicker {
  0%,100% { text-shadow: 0 0 8px var(--cyan), 0 0 22px var(--cyan-glow); }
  50%      { text-shadow: 0 0 4px var(--cyan), 0 0 14px var(--cyan-glow), 0 0 50px rgba(0,212,255,0.2); }
}
@keyframes borderPulse {
  0%,100% { box-shadow: 0 0 6px var(--cyan-brd), inset 0 0 6px rgba(0,212,255,0.06); }
  50%      { box-shadow: 0 0 18px var(--cyan-glow), inset 0 0 12px rgba(0,212,255,0.1); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes glowPulse {
  0%,100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

/* ── GRID BG ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,180,220,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,220,0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridMove 10s linear infinite;
}

/* ── SCAN LINE ── */
body::after {
  content: '';
  position: fixed; left: 0; right: 0; height: 3px; z-index: 9999; pointer-events: none;
  background: linear-gradient(transparent, rgba(0,212,255,0.18), transparent);
  animation: scan 8s ease-in-out infinite;
}

/* ── MAIN WRAPPER ── */
#app {
  position: relative; z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(2,10,15,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  height: 58px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: baseline; gap: 8px;
  text-decoration: none;
}
.nav-logo-mark {
  font-family: var(--title);
  font-size: 16px; font-weight: 700;
  color: var(--cyan);
  animation: flicker 5s ease-in-out infinite;
  letter-spacing: 0.05em;
}
.nav-logo-name {
  font-family: var(--mono);
  font-size: 13px; color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 12px; color: rgba(0,212,255,0.45);
  text-decoration: none; text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color 0.2s, text-shadow 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan-glow);
}
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan-glow);
  transition: all 0.25s;
}
.nav-mobile {
  display: none; flex-direction: column; gap: 0;
  background: rgba(2,10,15,0.97);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 13px; color: rgba(0,212,255,0.5);
  text-decoration: none; text-transform: uppercase;
  letter-spacing: 0.12em; padding: 0.9rem 2rem;
  border-bottom: 1px solid var(--border-lo);
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--cyan); }

/* ── HERO ── */
#hero {
  display: grid;
  grid-template-columns: 1fr 180px;
  border-bottom: 1px solid var(--border);
  animation: fadeInUp 0.8s ease both;
}
.hero-left {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
}
.hero-prompt {
  font-size: 12px; color: rgba(0,212,255,0.5);
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-prompt::before { content: '> '; color: var(--cyan); }
.hero-name {
  font-family: var(--title);
  font-size: clamp(44px, 8vw, 72px);
  font-weight: 900; color: var(--text);
  letter-spacing: -0.02em; line-height: 0.9;
  text-transform: uppercase; margin-bottom: 1.5rem;
  text-shadow: 0 0 30px rgba(0,212,255,0.2);
}
.hero-tagline {
  font-size: 13px; color: rgba(0,212,255,0.7);
  letter-spacing: 0.05em; margin-bottom: 1.8rem;
  border-left: 2px solid var(--cyan-brd); padding-left: 14px;
}
.hero-desc {
  font-size: 16px; color: var(--muted);
  line-height: 1.85; max-width: 480px; margin-bottom: 2.5rem;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  font-family: var(--title);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: transparent; color: var(--cyan);
  border: 1px solid var(--cyan);
  padding: 13px 28px; text-decoration: none;
  animation: borderPulse 2.5s ease-in-out infinite;
  transition: background 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: rgba(0,212,255,0.1); }

.btn-ghost {
  font-family: var(--title);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  background: transparent; color: rgba(0,212,255,0.4);
  border: 1px solid rgba(0,212,255,0.2);
  padding: 13px 28px; text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
  display: inline-block;
}
.btn-ghost:hover { color: var(--cyan); border-color: var(--cyan-brd); }

.hero-right { display: flex; flex-direction: column; }
.stat {
  flex: 1; padding: 1.4rem 1.2rem;
  border-bottom: 1px solid var(--border-lo);
  display: flex; flex-direction: column; justify-content: center;
}
.stat:last-child { border-bottom: none; }
.stat-val {
  font-family: var(--title);
  font-size: 22px; font-weight: 700;
  color: var(--cyan); line-height: 1; margin-bottom: 6px;
  text-shadow: 0 0 12px var(--cyan-glow);
  animation: glowPulse 3s ease-in-out infinite;
}
.stat-lbl {
  font-size: 10px; color: rgba(0,212,255,0.35);
  text-transform: uppercase; letter-spacing: 0.12em;
}

/* ── SECTION BAR ── */
.section-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.65rem clamp(1.5rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.section-bar .label {
  font-family: var(--title);
  font-size: 11px; color: var(--cyan);
  text-transform: uppercase; letter-spacing: 0.16em;
  text-shadow: 0 0 8px var(--cyan-glow);
}
.section-bar .path {
  font-size: 11px; color: rgba(0,212,255,0.25);
  letter-spacing: 0.1em;
}

/* ── ABOUT ── */
.about-body {
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
}
.about-text {
  font-size: 16px; color: var(--muted);
  line-height: 1.9; max-width: 680px; margin-bottom: 2rem;
}
.skills { display: flex; flex-wrap: wrap; gap: 10px; }
.skill {
  font-size: 12px; color: rgba(0,212,255,0.65);
  border: 1px solid rgba(0,212,255,0.22);
  padding: 6px 16px; text-transform: uppercase;
  letter-spacing: 0.08em; background: var(--cyan-dim);
  transition: all 0.2s;
}
.skill:hover {
  color: var(--cyan); border-color: var(--cyan-brd);
  box-shadow: 0 0 10px rgba(0,212,255,0.15);
}

/* ── PROJECTS ── */
#projects { border-bottom: 1px solid var(--border); }
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; }
.project-card {
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem);
  text-decoration: none; display: block;
  border-right: 1px solid var(--border);
  transition: background 0.25s;
}
.project-card:last-child { border-right: none; }
.project-card:hover { background: var(--cyan-dim); }
.project-card:hover .project-arrow {
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan-glow);
}
.project-index {
  font-size: 11px; color: rgba(0,212,255,0.3);
  text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 1.2rem;
}
.project-title {
  font-family: var(--title);
  font-size: 22px; font-weight: 700; color: var(--text);
  text-transform: uppercase; letter-spacing: 0.02em;
  margin-bottom: 5px;
  text-shadow: 0 0 15px rgba(0,212,255,0.2);
}
.project-url {
  font-size: 12px; color: rgba(0,212,255,0.35);
  margin-bottom: 14px;
}
.project-desc {
  font-size: 15px; color: var(--hint);
  line-height: 1.75; margin-bottom: 18px;
}
.project-arrow {
  font-family: var(--title);
  font-size: 12px; color: rgba(0,212,255,0.45);
  letter-spacing: 0.1em; transition: all 0.2s;
}

/* ── PARCOURS ── */
#parcours { border-bottom: 1px solid var(--border); }
.parcours-grid { display: grid; grid-template-columns: 1fr 1fr; }
.parcours-col:first-child { border-right: 1px solid var(--border); }
.parcours-col-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.65rem clamp(1.5rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border-lo);
  background: var(--bg2);
}
.parcours-col-head span {
  font-size: 11px; color: rgba(0,212,255,0.3);
  text-transform: uppercase; letter-spacing: 0.12em;
}
.tl-row {
  display: flex; gap: 16px;
  padding: 1.2rem clamp(1.5rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border-lo);
  align-items: flex-start; transition: background 0.2s;
}
.tl-row:last-child { border-bottom: none; }
.tl-row:hover { background: var(--cyan-dim); }
.tl-year {
  font-size: 11px; color: var(--cyan);
  width: 46px; flex-shrink: 0; padding-top: 3px;
  line-height: 1.5; opacity: 0.7;
}
.tl-title {
  font-size: 15px; font-weight: 500;
  color: #c8e8f0; line-height: 1.4; margin-bottom: 4px;
}
.tl-sub {
  font-size: 13px; color: var(--hint); line-height: 1.5;
}
.tl-tag {
  display: inline-block; font-size: 10px;
  padding: 2px 10px;
  border: 1px solid rgba(0,212,255,0.18);
  color: rgba(0,212,255,0.45); margin-top: 7px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.tl-tag-cyan {
  border-color: var(--cyan-brd);
  color: var(--cyan-mid);
  background: rgba(0,212,255,0.06);
}

/* ── CONTACT ── */
#contact { border-bottom: 1px solid var(--border); }
.contact-inner {
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem);
  display: flex; gap: 14px; flex-wrap: wrap;
}
.contact-link {
  font-family: var(--title);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px;
  border: 1px solid var(--cyan-brd);
  color: rgba(0,212,255,0.65); text-decoration: none;
  animation: borderPulse 3s ease-in-out infinite;
  transition: color 0.2s, background 0.2s;
}
.contact-link:hover {
  color: var(--cyan); background: var(--cyan-dim);
}
.contact-link svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

/* ── FOOTER ── */
footer {
  padding: 1.4rem clamp(1.5rem, 4vw, 3rem);
  display: flex; align-items: center; justify-content: space-between;
}
footer p {
  font-size: 11px; color: rgba(0,212,255,0.15);
  letter-spacing: 0.08em;
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  #hero { grid-template-columns: 1fr; }
  .hero-right {
    flex-direction: row;
    border-top: 1px solid var(--border);
  }
  .stat { border-bottom: none; border-right: 1px solid var(--border-lo); }
  .stat:last-child { border-right: none; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card { border-right: none; border-bottom: 1px solid var(--border); }
  .project-card:last-child { border-bottom: none; }
  .parcours-grid { grid-template-columns: 1fr; }
  .parcours-col:first-child { border-right: none; border-bottom: 1px solid var(--border); }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
