/* ═══════════════════════════════════════
   DEV SYL PORTFOLIO — style.css
   Theme: Circuit Board / Terminal
   ═══════════════════════════════════════ */

:root {
  --bg: #050A0E;
  --surface: #0D1520;
  --surface2: #1A2332;
  --accent: #00FFB2;
  --accent2: #FF6B35;
  --text: #E8E8E8;
  --muted: #6B7A90;
  --border: rgba(0, 255, 178, 0.12);
  --sidebar-w: 220px;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}

a { color: inherit; text-decoration: none; }

/* ── CANVAS ── */
#circuitCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── CURSEUR ── */
.cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
  mix-blend-mode: screen;
}

.cursor-trail {
  position: fixed;
  width: 28px; height: 28px;
  border: 1.5px solid rgba(0, 255, 178, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: left 0.12s ease, top 0.12s ease;
}

body:hover .cursor { opacity: 1; }

/* ── SIDEBAR ── */
.sidebar {
  position: fixed;
  left: 0; top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  padding: 28px 0;
}

.sidebar-top { padding: 0 24px 28px; border-bottom: 1px solid var(--border); }

.logo {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.logo-bracket { color: var(--muted); }
.logo-name { color: var(--text); }
.logo-accent { color: var(--accent); }

.terminal-line {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.prompt { color: var(--accent); font-size: 10px; }

.cursor-blink {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* NAV */
.nav {
  flex: 1;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
  position: relative;
}

.nav-item:hover, .nav-item.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(0, 255, 178, 0.04);
}

.nav-icon {
  font-size: 10px;
  color: var(--accent);
  opacity: 0.5;
}

.nav-item.active .nav-icon { opacity: 1; }

/* SIDEBAR BOTTOM */
.sidebar-bottom {
  padding: 20px 24px 0;
  border-top: 1px solid var(--border);
}

.status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 16px;
}

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent); }
  50% { opacity: 0.6; box-shadow: 0 0 4px var(--accent); }
}

.social-links { display: flex; gap: 8px; }

.social-link {
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  transition: all 0.2s ease;
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 255, 178, 0.06);
}

/* ── MAIN ── */
.main {
  margin-left: var(--sidebar-w);
  position: relative;
  z-index: 1;
}

/* ── SECTIONS ── */
.section {
  min-height: 100vh;
  padding: 80px 60px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.section-header {
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: 38px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

/* ── HERO ── */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  min-height: 100vh;
  padding: 80px 60px;
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.tag-line {
  width: 32px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.hero-title {
  display: flex;
  flex-direction: column;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero-line2 { color: var(--accent); }
.accent-dot { color: var(--accent2); }

.hero-sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  font-size: 13px;
  padding: 12px 24px;
  border-radius: 6px;
  transition: all 0.2s ease;
  border: none;
  cursor: none;
  font-family: var(--font-body);
}

.btn-primary:hover {
  background: #00e8a0;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 255, 178, 0.3);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  padding: 12px 24px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
  display: block;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* HERO VISUAL */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 500px;
}

.device-mockup {
  width: 220px;
  height: 440px;
  background: var(--surface2);
  border-radius: 32px;
  border: 2px solid rgba(0, 255, 178, 0.25);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 255, 178, 0.1), 0 40px 80px rgba(0,0,0,0.5);
}

.device-screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 30px;
  overflow: hidden;
}

.device-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 16px;
  background: var(--surface2);
  border-radius: 10px;
  z-index: 2;
}

.code-rain {
  width: 100%;
  height: 100%;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  overflow: hidden;
  opacity: 0.7;
  padding: 20px 8px 8px;
  line-height: 1.4;
}

.floating-badge {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 11px;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: float 4s ease-in-out infinite;
}

.badge-1 { top: 60px; right: -20px; animation-delay: 0s; }
.badge-2 { bottom: 120px; right: -30px; animation-delay: 1s; }
.badge-3 { top: 200px; left: -40px; animation-delay: 0.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── ABOUT ── */
.about-section { min-height: auto; }

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

.about-text p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 15px;
}

.about-text p strong { color: var(--text); }
.about-text p em { color: var(--accent); font-style: normal; }

.about-details { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }

.detail-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}

.detail-label {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 11px;
  width: 110px;
  flex-shrink: 0;
}

.detail-value {
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* TIMELINE */
.timeline { display: flex; flex-direction: column; gap: 0; }

.tl-item {
  display: flex;
  gap: 16px;
  position: relative;
  padding-bottom: 24px;
}

.tl-item:last-child { padding-bottom: 0; }

.tl-item::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 18px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.tl-item:last-child::before { display: none; }

.tl-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--surface2);
  border: 2px solid var(--muted);
  flex-shrink: 0;
  margin-top: 3px;
  position: relative;
  z-index: 1;
}

.tl-active {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 12px rgba(0, 255, 178, 0.5);
}

.tl-content { display: flex; flex-direction: column; gap: 2px; }

.tl-year {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  opacity: 0.7;
}

.tl-content strong { font-size: 13px; color: var(--text); }
.tl-content span { font-size: 12px; color: var(--muted); }

/* ── STACK ── */
.stack-section { min-height: auto; }

.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.stack-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s ease;
}

.stack-category:hover { border-color: rgba(0, 255, 178, 0.3); }

.stack-cat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stack-items { display: flex; flex-direction: column; gap: 10px; }

.stack-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  row-gap: 4px;
}

.si-bar {
  grid-column: 1 / -1;
  height: 3px;
  background: var(--surface2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.si-bar::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: var(--level);
  background: var(--border);
  border-radius: 2px;
  transition: background 0.3s ease;
}

.stack-item.featured .si-bar::after { background: var(--accent); }

.si-name { font-size: 12px; color: var(--text); }
.si-level { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }

/* ── PROJECTS ── */
.projects-section { min-height: auto; }

.projects-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 7px 16px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 99px;
  cursor: none;
  transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 255, 178, 0.06);
}

/* PROJECTS GRID */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: rgba(0, 255, 178, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,255,178,0.1);
}

.project-card.large { grid-column: span 2; }
.project-card.wide { grid-column: span 2; }

.card-media {
  position: relative;
  height: 180px;
  background: var(--surface2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-badge {
  position: absolute;
  top: 12px; right: 12px;
}

.badge-co {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  background: rgba(0, 255, 178, 0.1);
  border: 1px solid rgba(0, 255, 178, 0.3);
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-consult {
  background: rgba(255, 107, 53, 0.1);
  border-color: rgba(255, 107, 53, 0.3);
  color: var(--accent2);
}

/* PHONE MOCKUP */
.card-mockup {
  width: 90px;
  height: 155px;
  background: #0a1219;
  border-radius: 16px;
  border: 2px solid rgba(0, 255, 178, 0.2);
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.mockup-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.app-ui {
  width: 100%;
  height: 100%;
  background: var(--bg);
  padding: 8px;
  font-size: 6px;
}

/* Owomi UI */
.app-header {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  font-size: 6px;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-mono);
}

.app-logo-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
}

.map-placeholder {
  background: #0d1a24;
  border-radius: 6px;
  height: 70px;
  position: relative;
  overflow: hidden;
  margin-bottom: 6px;
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0,255,178,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0,255,178,0.05) 1px, transparent 1px);
  background-size: 10px 10px;
}

.map-pin {
  position: absolute;
  top: 30%;
  left: 40%;
  width: 8px; height: 8px;
  background: var(--accent2);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.map-route {
  position: absolute;
  bottom: 20%;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  border-radius: 1px;
}

.app-bar { text-align: center; }

.bar-pill {
  display: inline-block;
  background: var(--surface2);
  border: 1px solid var(--border);
  font-size: 5px;
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 99px;
}

.shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  height: 100%;
  align-content: start;
}

/* CARD BODY */
.card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }

.card-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 9px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 2px 7px;
  border-radius: 3px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.card-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 12px;
}

.card-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }

.store-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  border: 1px solid rgba(0, 255, 178, 0.2);
  padding: 4px 10px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.store-link:hover {
  background: rgba(0, 255, 178, 0.08);
  border-color: var(--accent);
}

.link-note {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  font-style: italic;
}

/* WEB PROJECT */
.web-media { height: 200px; align-items: stretch; padding: 0; }

.browser-mockup {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.browser-dots { display: flex; gap: 5px; }
.browser-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
}

.browser-url {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 10px;
  border-radius: 4px;
  flex: 1;
}

.browser-screen { flex: 1; overflow: hidden; padding: 12px; }

.web-preview { display: flex; flex-direction: column; gap: 6px; }

.wp-nav {
  height: 12px;
  background: var(--surface2);
  border-radius: 3px;
  border: 1px solid var(--border);
}

.wp-hero {
  height: 60px;
  background: linear-gradient(135deg, rgba(0,255,178,0.06), rgba(255,107,53,0.04));
  border-radius: 6px;
  border: 1px solid var(--border);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wp-h1 { height: 8px; background: var(--muted); border-radius: 2px; width: 60%; opacity: 0.4; }
.wp-p { height: 5px; background: var(--muted); border-radius: 2px; width: 80%; opacity: 0.2; }
.wp-btn { height: 10px; background: var(--accent); border-radius: 2px; width: 30%; opacity: 0.5; }

.wp-grid { display: flex; gap: 6px; }
.wp-card {
  flex: 1; height: 30px;
  background: var(--surface2);
  border-radius: 4px;
  border: 1px solid var(--border);
}

.web-links { flex-direction: column; gap: 6px; }

.web-link-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.web-link-item:hover { color: var(--accent); }

.wl-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
  flex-shrink: 0;
}

/* ── AI SECTION ── */
.ai-section { min-height: auto; }

.ai-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.ai-intro p { color: var(--muted); font-size: 14px; line-height: 1.7; margin-bottom: 16px; }

.ai-badges { display: flex; flex-direction: column; gap: 8px; }

.ai-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  border: 1px solid rgba(0,255,178,0.2);
  padding: 5px 12px;
  border-radius: 4px;
  background: rgba(0,255,178,0.04);
}

.quick-contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.quick-contact-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.msg-avatar {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.quick-contact-header h3 {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--text);
}

.quick-contact-header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.quick-contact-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.quick-action {
  min-height: 104px;
  padding: 18px;
  color: var(--text);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.2s ease, color 0.2s ease;
}

.quick-action:last-child { border-right: none; }

.quick-action:hover {
  background: rgba(0,255,178,0.06);
  color: var(--accent);
}

.quick-action.primary { background: rgba(0,255,178,0.08); }

.qa-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(0,255,178,0.25);
  background: var(--surface2);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quick-action strong,
.quick-action span {
  display: block;
}

.quick-action strong {
  font-size: 13px;
  margin-bottom: 3px;
}

.quick-action span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

/* ── CONTACT ── */
.contact-section { min-height: auto; }

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

.contact-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-items { display: flex; flex-direction: column; gap: 12px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.contact-item:hover {
  border-color: rgba(0,255,178,0.3);
  transform: translateX(4px);
}

.ci-icon {
  width: 40px; height: 40px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.ci-label { font-size: 11px; color: var(--muted); font-family: var(--font-mono); }
.ci-value { font-size: 13px; color: var(--text); margin-top: 2px; }

.contact-form {
  margin-top: 18px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-row label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 8px;
  padding: 12px 13px;
  font: inherit;
  font-size: 13px;
  outline: none;
  cursor: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--muted);
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: rgba(0,255,178,0.55);
  box-shadow: 0 0 0 3px rgba(0,255,178,0.08);
}

.contact-submit {
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 13px 16px;
  cursor: none;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.contact-submit:hover { background: #00e8a0; }
.contact-submit:disabled { opacity: 0.55; }

.contact-status {
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.contact-status.success { color: var(--accent); }
.contact-status.error { color: var(--accent2); }

/* TERMINAL */
.terminal-window {
  background: #010508;
  border: 1px solid rgba(0,255,178,0.2);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,255,178,0.05);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}

.th-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.th-dot.red { background: #FF5F57; }
.th-dot.yellow { background: #FFBD2E; }
.th-dot.green { background: #28CA41; }

.th-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-left: 6px;
}

.terminal-body { padding: 20px; display: flex; flex-direction: column; gap: 4px; }

.t-line {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.t-prompt { color: var(--accent); }
.t-output { color: var(--muted); padding-left: 20px; }
.t-green { color: var(--accent) !important; }

.cursor-blink-green {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

/* ── FOOTER ── */
.footer {
  padding: 24px 60px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
}

.footer-copy { font-size: 12px; color: var(--muted); }
.footer-made { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

/* ── HIDDEN (filter) ── */
.project-card.hidden {
  display: none;
}

/* ── ANIMATIONS ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes progress {
  0% { width: 0; }
  100% { width: 70%; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-section { grid-template-columns: 1fr; min-height: auto; padding: 60px 40px; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card.large, .project-card.wide { grid-column: span 2; }
  .ai-container { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .section { padding: 60px 24px; }
  .hero-section { padding: 60px 24px; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.large, .project-card.wide { grid-column: span 1; }
  .quick-contact-actions { grid-template-columns: 1fr; }
  .quick-action {
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .quick-action:last-child { border-bottom: none; }
  .section-title { font-size: 28px; }
  .hero-title { font-size: 36px; }
  .footer { padding: 20px 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
