/* ============================================
   HOME.CSS — styles specific to index.html
   Portfolio Maxime Meriot
   ============================================ */

/* ── HERO LAYOUT ── */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 60px;
  gap: 60px;
}

/* ── LEFT COLUMN ── */
.hero-left {
  display: flex;
  flex-direction: column;
  padding-top: 70px;
}

.accent-line {
  width: 28px;
  height: 1px;
  background: var(--green);
  margin-bottom: 26px;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.1s;
}

.hero-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.2s;
}

.hero-name {
  margin-bottom: 0;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.35s;
}
.hero-name .first {
  display: block;
  font-size: clamp(44px, 5.8vw, 76px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.0;
  letter-spacing: -2px;
}
.hero-name .last {
  display: block;
  font-size: clamp(44px, 5.8vw, 76px);
  font-weight: 300;
  color: rgba(238,243,239,0.35);
  line-height: 1.0;
  letter-spacing: -2px;
}

.hero-role {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 26px 0 30px;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.5s;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.62s;
}
.hero-tags .tag {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  border-radius: 1px;
  transition: all 0.2s;
}
.hero-tags .tag:hover {
  border-color: var(--border);
  color: rgba(0,230,118,0.7);
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.75s;
}

/* ── STATS ── */
.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.9s;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-num-wrap {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.stat-num {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -1px;
  line-height: 1;
}

.stat-suffix {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 400;
  color: var(--green);
  line-height: 1;
}

.stat-label {
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── RIGHT COLUMN — TERMINAL ── */
.hero-right {
  padding-top: 70px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.5s;
}

.terminal {
  background: rgba(6, 12, 6, 0.85);
  border: 1px solid rgba(0,230,118,0.18);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,230,118,0.04), 0 20px 60px rgba(0,0,0,0.5);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: rgba(0,230,118,0.04);
  border-bottom: 1px solid rgba(0,230,118,0.1);
}
.t-dot { width: 10px; height: 10px; border-radius: 50%; }
.t-dot.red    { background: #ff5f57; }
.t-dot.yellow { background: #febc2e; }
.t-dot.green  { background: #28c840; }
.t-title {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-left: 6px;
}

.terminal-body {
  padding: 20px 22px 24px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.85;
  height: 600px;
  overflow-y: auto;
  cursor: text;
}
.terminal-body::-webkit-scrollbar { width: 3px; }
.terminal-body::-webkit-scrollbar-track { background: transparent; }
.terminal-body::-webkit-scrollbar-thumb { background: rgba(0,230,118,0.18); border-radius: 2px; }

.t-line  { display: flex; align-items: flex-start; }
.t-prompt { color: var(--green); white-space: nowrap; margin-right: 6px; flex-shrink: 0; }
.t-cmd    { color: rgba(238,243,239,0.75); }
.t-out    { color: var(--text-muted); display: block; }
.t-out.green  { color: var(--green-dim); }
.t-out.white  { color: rgba(238,243,239,0.65); }
.t-out.accent { color: var(--green); }
.t-blank  { height: 6px; }

.t-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--green);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

.t-row { opacity: 0; }
.t-row.show { animation: fadeIn 0.08s ease forwards; }

/* ── Typewriter text color ── */
#hero-tw {
  color: var(--green);
  font-family: var(--mono);
}

/* ── Typewriter caret (hero-role) ── */
.tw-caret {
  display: inline-block;
  width: 2px;
  height: 0.82em;
  background: var(--green);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

/* ── BOOT SEQUENCE ── */
.t-boot-line { display: block; color: rgba(0,230,118,0.45); font-size: 11.5px; }
.t-boot-ok   { color: var(--green); font-weight: 500; }

.t-shield-wrap { text-align: center; padding: 20px 0 8px; }

/* SVG shield logo */
.t-shield-svg {
  display: block;
  margin: 0 auto;
  width: 140px;
  height: 169px;
}
.shield-bg {
  fill: rgba(0,230,118,0.05);
  opacity: 0;
  animation: shieldFadeIn 0.3s ease forwards 1s;
}
.shield-outline {
  fill: none;
  stroke: #00e676;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: shieldDraw 1.2s cubic-bezier(0.4,0,0.2,1) forwards 0.1s,
             shieldGlow 2.5s ease-in-out 1.8s infinite;
}
.shield-inner {
  fill: none;
  stroke: rgba(0,230,118,0.22);
  stroke-width: 1;
  opacity: 0;
  animation: shieldFadeIn 0.4s ease forwards 1.1s;
}
.shield-letter {
  fill: #00e676;
  font-family: 'JetBrains Mono', monospace;
  font-size: 52px;
  font-weight: 700;
  text-anchor: middle;
  opacity: 0;
  animation: shieldFadeIn 0.4s ease forwards 1.2s;
}
.shield-sub {
  fill: rgba(0,230,118,0.55);
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  font-weight: 400;
  text-anchor: middle;
  letter-spacing: 3px;
  opacity: 0;
  animation: shieldFadeIn 0.4s ease forwards 1.5s;
}
@keyframes shieldDraw   { to { stroke-dashoffset: 0; } }
@keyframes shieldFadeIn { to { opacity: 1; } }
@keyframes shieldGlow {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(0,230,118,0.4)); }
  50%       { filter: drop-shadow(0 0 12px rgba(0,230,118,0.85)); }
}
.t-welcome-wrap { text-align: center; padding: 10px 0 4px; }
.t-welcome {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 5px;
  text-shadow: 0 0 12px rgba(0,230,118,0.4);
}
.t-session {
  display: block;
  text-align: center;
  color: var(--text-muted);
  font-size: 10.5px;
  padding-bottom: 10px;
}

.t-info { display: block; font-size: 11.5px; padding-left: 0; }
.t-ik   { color: var(--text-muted); white-space: pre; }
.t-is   { color: rgba(0,230,118,0.2); }
.t-iv   { color: var(--green); }

.t-input-row { display: flex; align-items: center; }
.t-input {
  background: transparent;
  border: none;
  outline: none;
  color: rgba(238,243,239,0.75);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.85;
  flex: 1;
  padding: 0;
  caret-color: var(--green);
  width: 100%;
}

.t-out-row { display: block; }

.t-hint {
  display: block;
  color: rgba(0,230,118,0.4);
  font-size: 10.5px;
  letter-spacing: 0.5px;
  border-top: 1px solid rgba(0,230,118,0.12);
  margin-top: 4px;
  padding-top: 8px;
}

.t-help { display: block; padding-left: 1.4rem; font-size: 11.5px; }
.t-hc   { color: var(--green); white-space: pre; }
.t-hs   { color: rgba(238,243,239,0.18); }
.t-hd   { color: var(--text-muted); }
.t-cout   { display: block; padding-left: 1.4rem; color: rgba(0,230,118,0.7); font-size: 11.5px; }
.t-redir  { display: block; padding-left: 1.4rem; color: var(--green); font-size: 11.5px; }
.t-easter { display: block; padding-left: 1.4rem; color: #febc2e; font-size: 11.5px; }
.t-err    { display: block; padding-left: 1.4rem; color: rgba(255,95,87,0.85); font-size: 11.5px; }
.t-err-cmd { color: #ff5f57; }
.t-ref     { color: var(--green); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 100px 28px 80px;
    gap: 48px;
    align-items: flex-start;
  }
  .hero-left, .hero-right { padding-top: 0; }
}

@media (max-width: 600px) {
  .hero {
    padding: 88px 22px 60px;
    gap: 36px;
  }
  .hero-stats {
    gap: 22px;
  }
  .stat-num { font-size: 24px; }
  .terminal-body { font-size: 11px; padding: 14px 16px 18px; height: 300px; }
}

@media (max-width: 420px) {
  .hero {
    padding: 80px 18px 50px;
    gap: 28px;
  }
  .hero-btns {
    flex-direction: column;
    gap: 10px;
  }
  .btn-primary, .btn-accent {
    text-align: center;
    padding: 12px 20px;
  }
  .hero-stats {
    gap: 16px;
    flex-wrap: wrap;
  }
  .stat-num { font-size: 20px; }
  .stat-label { font-size: 7px; }
  .hero-tags { gap: 5px; }
  .hero-tags .tag { padding: 4px 10px; font-size: 8px; }
}
