/* ===================================
   BENDERMACHER.DEV — Homepage Styles
   =================================== */

/* === VARIABLES === */
:root {
  --bg-primary:    #080d1a;
  --bg-secondary:  #0c1425;
  --bg-card:       rgba(12, 24, 48, 0.6);
  --bg-card-hover: rgba(16, 32, 64, 0.8);

  --cyan:          #00c8ff;
  --blue:          #0066ff;
  --cyan-dim:      rgba(0, 200, 255, 0.12);
  --cyan-glow:     rgba(0, 200, 255, 0.25);
  --cyan-border:   rgba(0, 200, 255, 0.2);

  --text-primary:  #f0f4ff;
  --text-secondary:#8a9bbf;
  --text-dim:      #4a5a7a;

  --gradient:      linear-gradient(135deg, #00c8ff, #0066ff);
  --gradient-text: linear-gradient(90deg, #00c8ff, #0066ff);

  --border:        rgba(255, 255, 255, 0.06);
  --border-accent: rgba(0, 200, 255, 0.3);

  --radius:        12px;
  --radius-lg:     20px;
  --radius-xl:     28px;

  --font-display:  'Exo 2', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip; /* clip works with fixed children unlike hidden */
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-display);
  line-height: 1.65;
  overflow-x: clip;
  overscroll-behavior-y: none;
  word-break: break-word;
  overflow-wrap: break-word;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* === CANVAS === */
#circuit-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

/* === UTILITY === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.mono { font-family: var(--font-mono); }

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent { color: var(--cyan); }

.section { padding: 120px 0; position: relative; z-index: 1; }
.section-dark {
  background: rgba(4, 8, 20, 0.6);
  backdrop-filter: blur(2px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-label {
  margin-bottom: 1rem;
}
.section-label .mono {
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.8;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.section-title.centered { text-align: center; }

.section-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 4rem;
  line-height: 1.7;
}
.section-sub.centered { text-align: center; }

/* === NAVBAR === */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(8, 13, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.nav-logo-b { color: var(--text-primary); }
.nav-logo-dot { color: var(--cyan); }
.nav-logo-dev { color: var(--cyan); }

.nav-links {
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 8px #00ff88;
  animation: pulse-status 2s ease-in-out infinite;
}
.status-dot.maintenance {
  background: #ff9500;
  box-shadow: 0 0 8px #ff9500;
}

@keyframes pulse-status {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* === HERO === */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
  padding: 120px 2rem 80px;
}

.hero-content {
  flex: 1;
  max-width: 620px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}
.hero-eyebrow .mono {
  font-size: 0.85rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2rem;
  background: var(--gradient);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
  box-shadow: 0 0 30px rgba(0, 102, 255, 0.35);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(0, 102, 255, 0.55);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2rem;
  border: 1px solid var(--cyan-border);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: background var(--transition), border-color var(--transition);
}
.btn-ghost:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan);
}

/* Hero Visual — Orbit Rings */
.hero-visual {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  opacity: 0;
  animation: fadeIn 1.2s 0.6s forwards;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--cyan-border);
}
.ring-1 { width: 240px; height: 240px; animation: rotate 12s linear infinite; }
.ring-2 { width: 370px; height: 370px; animation: rotate 20s linear infinite reverse; }
.ring-3 { width: 500px; height: 500px; animation: rotate 30s linear infinite; }

.ring-1::after, .ring-2::after, .ring-3::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  top: -4px; left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 14px var(--cyan);
}
.ring-2::after { background: var(--blue); box-shadow: 0 0 14px var(--blue); }
.ring-3::after { width: 6px; height: 6px; top: -3px; opacity: 0.6; }

.core-logo {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(0, 102, 255, 0.5), 0 0 120px rgba(0, 200, 255, 0.2);
  z-index: 2;
}
.core-b {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.8rem;
  color: #fff;
  letter-spacing: -0.04em;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s 1.5s forwards;
  z-index: 2;
}
.hero-scroll-hint .mono {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

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

/* === ABOUT === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2.5rem;
}

.body-text {
  color: var(--text-secondary);
  font-size: 1.025rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.body-text strong { color: var(--text-primary); }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.tag {
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--cyan-border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: var(--cyan-dim);
  font-family: var(--font-mono);
  transition: var(--transition);
}
.tag:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 200, 255, 0.18);
}

/* Profile Card */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.profile-card:hover {
  border-color: var(--cyan-border);
  box-shadow: 0 0 80px rgba(0, 200, 255, 0.1), inset 0 1px 0 rgba(255,255,255,0.05);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.card-dots { display: flex; gap: 6px; }
.card-dots span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--border);
}
.card-dots span:nth-child(1) { background: #ff5f57; }
.card-dots span:nth-child(2) { background: #febc2e; }
.card-dots span:nth-child(3) { background: #28c840; }

.card-title {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.card-body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.card-line {
  display: flex;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.5;
}
.card-line .key {
  color: var(--blue);
  min-width: 70px;
}
.card-line .val {
  color: #a0d4ff;
}
.card-line .val.online { color: #00ff88; }
.card-line .val.link { color: var(--cyan); cursor: pointer; }

/* === PROJECTS === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  opacity: 0;
  transform: translateY(20px);
  backdrop-filter: blur(12px);
}
.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(0,200,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 200, 255, 0.06);
}

.card-wide {
  grid-column: 1 / -1;
}

.project-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}
.project-badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.badge-web    { background: rgba(0,200,255,0.12); color: var(--cyan); border: 1px solid rgba(0,200,255,0.3); }
.badge-system { background: rgba(255,160,0,0.1); color: #ffa000; border: 1px solid rgba(255,160,0,0.25); }
.badge-game   { background: rgba(100,220,100,0.1); color: #64dc64; border: 1px solid rgba(100,220,100,0.25); }
.badge-infra  { background: rgba(120,80,255,0.1); color: #a07fff; border: 1px solid rgba(120,80,255,0.25); }

.project-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.project-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.project-tech span {
  padding: 0.2rem 0.6rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

/* === STACK === */
.stack-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.stack-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s, border-color var(--transition);
}
.stack-category.visible {
  opacity: 1;
  transform: translateY(0);
}
.stack-category:hover {
  border-color: var(--cyan-border);
}

.stack-cat-label {
  font-size: 0.72rem;
  color: var(--cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.stack-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stack-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.stack-item:hover { color: var(--text-primary); }

.stack-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-family: var(--font-mono);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--text-dim);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.stack-item:hover .stack-icon {
  background: var(--cyan-dim);
  border-color: var(--cyan-border);
  color: var(--cyan);
}

/* Emoji icons stay bigger */
.si-react, .si-vite, .si-java, .si-spring, .si-node, .si-pg, .si-mysql, .si-ubuntu {
  font-size: 1.1rem;
}

/* === TERMINAL (SERVICES) === */
.terminal-window {
  background: rgba(4, 8, 20, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.t-dots { display: flex; gap: 6px; }
.t-dots span {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.t-dots span:nth-child(1) { background: #ff5f57; }
.t-dots span:nth-child(2) { background: #febc2e; }
.t-dots span:nth-child(3) { background: #28c840; }

.terminal-title {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.terminal-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.t-line {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
  padding: 0.2rem 0;
}
.t-line.prompt { color: #4a8a4a; margin-bottom: 0.5rem; }

.t-service {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
  opacity: 0;
  transform: translateX(-10px);
}
.t-service.visible {
  opacity: 1;
  transform: translateX(0);
}
.t-service:hover {
  background: rgba(255,255,255,0.03);
  border-color: var(--border);
}

.t-status {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.t-status.online   { background: #00ff88; box-shadow: 0 0 8px #00ff88; animation: pulse-status 2s infinite; }
.t-status.building { background: #ffa000; box-shadow: 0 0 8px #ffa000; animation: pulse-status 1.5s infinite; }
.t-status.planned  { background: var(--text-dim); }

.t-domain {
  font-size: 0.82rem;
  color: var(--cyan);
  min-width: 280px;
}
.t-desc {
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--text-secondary);
  flex: 1;
}
.t-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  flex-shrink: 0;
}
.t-badge.live    { background: rgba(0,255,136,0.1); color: #00ff88; border: 1px solid rgba(0,255,136,0.25); }
.t-badge.dev     { background: rgba(255,160,0,0.1); color: #ffa000; border: 1px solid rgba(255,160,0,0.25); }
.t-badge.planned { background: rgba(255,255,255,0.05); color: var(--text-dim); border: 1px solid var(--border); }

.blink-cursor { margin-top: 0.5rem; }
.cursor {
  display: inline-block;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* === FOOTER === */
#footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
}

.footer-center { text-align: center; }
.footer-domain {
  font-size: 0.8rem;
  color: var(--cyan);
  margin-bottom: 0.3rem;
  opacity: 0.7;
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-links { display: flex; gap: 1rem; }
.footer-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.footer-link:hover {
  color: var(--text-primary);
  border-color: var(--cyan-border);
  background: var(--cyan-dim);
}

/* === ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  .stack-categories { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .card-wide { grid-column: 1 / -1; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { display: none; }
}

@media (max-width: 640px) {
  /* Base */
  html { font-size: 15px; }
  .container { padding: 0 1.1rem; width: 100%; }
  .section { padding: 72px 0; }
  .section-sub { padding: 0 0.25rem; }

  /* Navbar */
  .nav-links { display: none; }
  .nav-logo { font-size: 0.88rem; }
  .nav-status { font-size: 0.68rem; gap: 0.35rem; }
  .status-text { display: none; }
  .nav-inner { gap: 0.75rem; }
  #navbar { padding: 0 1.1rem; }

  /* Hero */
  #hero { padding: 100px 1.1rem 72px; }
  .hero-content { max-width: 100%; }
  .hero-title { font-size: clamp(2.2rem, 10vw, 3.2rem); }
  .hero-subtitle { font-size: 0.92rem; }
  .hero-subtitle br { display: none; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; text-align: center; box-sizing: border-box; }

  /* About */
  .about-text { overflow: hidden; }
  .body-text { font-size: 0.93rem; }
  .profile-card { overflow: hidden; }
  .card-header { padding: 0.75rem 1rem; }
  .card-title { font-size: 0.68rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
  .card-body { padding: 1rem; }
  .card-line { font-size: 0.72rem; gap: 0.5rem; }
  .card-line .key { min-width: 50px; flex-shrink: 0; }
  .card-line .val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

  /* Projects */
  .projects-grid { grid-template-columns: 1fr; }
  .project-card { padding: 1.25rem; }

  /* Stack */
  .stack-categories { grid-template-columns: 1fr; gap: 1rem; }

  /* Terminal */
  .terminal-window { overflow: hidden; border-radius: var(--radius); }
  .terminal-bar { padding: 0.7rem 1rem; }
  .terminal-title { font-size: 0.66rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .terminal-body { padding: 0.9rem; gap: 0.35rem; }
  .t-service { flex-wrap: wrap; gap: 0.4rem; padding: 0.55rem 0.5rem; }
  .t-domain { min-width: unset; width: 100%; font-size: 0.7rem; white-space: normal; word-break: break-all; }
  .t-desc { font-size: 0.75rem; flex: 1; min-width: 0; }
  .t-badge { font-size: 0.58rem; flex-shrink: 0; }
  .t-line { font-size: 0.7rem; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
  .footer-links { justify-content: center; }
  .footer-copy { font-size: 0.72rem; }
}
