/* Grid Layout */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 5rem 0;
}

.story-column h2, .tech-column h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.story-column p, .tech-column p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Terminal */
.terminal {
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  margin: 3rem auto 0;
  width: 100%;
  max-width: 550px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dots {
  display: flex;
  gap: 0.5rem;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot:nth-child(1) { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #febc2e; }
.terminal-dot:nth-child(3) { background: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.project-deep-dive { margin: 6rem 0; }
.deep-dive-header { margin-bottom: 4rem; }
.deep-dive-header h2 { font-family: var(--font-serif); font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 400; margin: 1rem 0; letter-spacing: -0.02em; }
.deep-dive-header p { color: var(--text-secondary); max-width: 600px; font-size: 1.1rem; }

.deep-dive-grid { display: flex; flex-direction: column; gap: 4rem; }
.deep-dive-item { display: grid; grid-template-columns: 200px 1fr; gap: 4rem; border-top: 1px solid var(--border); padding-top: 2rem; }
.item-meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; }
.item-content h3 { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 600; margin-bottom: 1.5rem; letter-spacing: -0.01em; }

.glitch-container { position: relative; }
.glitch-text { position: relative; font-size: 1.05rem; line-height: 1.8; color: var(--text-secondary); margin-bottom: 1.5rem; min-height: 1.8rem; }


.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 2;
  color: var(--text-secondary);
}

.terminal-body .prompt { color: var(--terminal-green); }
.terminal-body .key { color: var(--accent); }
.terminal-body .val { color: var(--text-primary); }
.terminal-body .line { display: block; }
.terminal-body .blank { display: block; height: 1rem; }

/* Bento Grid */
.projects-section {
  margin: 5rem 0;
}

.projects-section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--bg-glass-hover);
}

.featured-card {
  grid-column: span 2;
  padding: 2.5rem;
  background: linear-gradient(145deg, var(--bg-glass), rgba(196, 149, 106, 0.05));
}

.card-info {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.featured-card .card-icon {
  font-size: 3rem;
  margin-bottom: 0;
}

.card-header-flex {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.card-header-flex .card-icon {
  margin-bottom: 0;
  font-size: 1.5rem;
}

.card-header-flex h3 {
  margin-bottom: 0 !important;
}

.bento-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  margin-top: auto; 
  align-self: flex-start;
}

.github-link:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.08);
}

.bento-card:not(.featured-card) {
  height: 100%;
}
.bento-card:not(.featured-card) p {
  margin-bottom: 2rem;
}

/* Manifesto */
.manifesto-section {
  margin: 5rem 0;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.manifesto-section h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.manifesto-section p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Divider */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 3.5rem 0;
}

/* Footer */
.page-footer {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
}

/* Divider with subtle glow sweep */
.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.divider-glow {
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: glowSweep 6s ease-in-out infinite;
}

@keyframes glowSweep {
  0% { left: -40%; opacity: 0; }
  15% { opacity: 0.8; }
  85% { opacity: 0.8; }
  100% { left: 100%; opacity: 0; }
}

/* Footer inner layout */
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem 0 2rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-message {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Subtle glitch on signoff */
.footer-glitch-text {
  position: relative;
  display: inline-block;
}

.footer-glitch-text::before,
.footer-glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.footer-glitch-text::before {
  color: rgba(196, 149, 106, 0.6);
  animation: softGlitch1 5s infinite;
}

.footer-glitch-text::after {
  color: rgba(127, 202, 107, 0.4);
  animation: softGlitch2 5s infinite;
}

@keyframes softGlitch1 {
  0%, 92%, 100% { opacity: 0; transform: none; }
  93% { opacity: 0.7; transform: translateX(-2px); }
  95% { opacity: 0; }
}

@keyframes softGlitch2 {
  0%, 94%, 100% { opacity: 0; transform: none; }
  95% { opacity: 0.5; transform: translateX(2px); }
  97% { opacity: 0; }
}

/* Action buttons */
.footer-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.wa-btn {
  color: #25d366;
  background: rgba(37, 211, 102, 0.04);
}

.wa-btn:hover {
  background: rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.3);
  transform: translateY(-2px);
}

.saweria-btn {
  color: #faaf3b;
  background: rgba(250, 175, 59, 0.04);
}

.saweria-btn:hover {
  background: rgba(250, 175, 59, 0.1);
  border-color: rgba(250, 175, 59, 0.3);
  transform: translateY(-2px);
}

/* Copyright */
.footer-copy {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .footer-actions {
    width: 100%;
  }
  .footer-btn {
    flex: 1;
    justify-content: center;
  }
}

.signoff {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--text-secondary);
}

/* Responsive */
/* Design Showcase */
.design-showcase {
  margin: 4rem 0;
}
.design-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}
.design-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.design-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
}
.card-visual {
  width: 100%;
  height: 240px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  font-family: var(--font-serif);
  font-size: 6rem;
  font-style: italic;
  color: rgba(255,255,255,0.03);
  transition: color 0.4s ease;
}
.design-card:hover .card-visual {
  color: rgba(255,255,255,0.1);
}

/* Unique Project Visuals */
.v-cafe { background: linear-gradient(135deg, #1a1614, #241f1c); }
.v-corp { background: linear-gradient(135deg, #0f172a, #1e293b); }
.v-noir { background: #050505; }
.v-noir::before { content:''; position:absolute; inset:0; background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.02) 10px, rgba(255,255,255,0.02) 20px); }
.v-lux { background: linear-gradient(135deg, #11100e, #1a1816); }
.v-cyber { background: linear-gradient(135deg, #0a0a0c, #111116); color: rgba(0,255,65,0.05); }
.design-card:hover .v-cyber { color: rgba(0,255,65,0.15); }
.v-zen { background: linear-gradient(135deg, #f8fafc, #f1f5f9); color: rgba(0,0,0,0.03); }
.design-card:hover .v-zen { color: rgba(0,0,0,0.08); }
.v-retro { background: linear-gradient(135deg, #26221d, #332d26); }
.v-alpine { background: linear-gradient(135deg, #0f172a, #1e293b); }
.v-creative { background: linear-gradient(135deg, #18181b, #27272a); }
.v-bauhaus { background: #111; }
.v-bauhaus::before { content:''; position:absolute; width: 60px; height: 60px; background: #e53e3e; border-radius: 50%; top: 30px; right: 40px; opacity: 0.6; }
.v-bauhaus::after { content:''; position:absolute; width: 0; height: 0; border-left: 40px solid transparent; border-right: 40px solid transparent; border-bottom: 60px solid #ecc94b; bottom: 30px; left: 40px; opacity: 0.6; }
.v-abyss { background: linear-gradient(180deg, #020617, #081121); }
.v-hft { background: #000; }
.v-hft::before { content:''; position:absolute; inset:0; background: linear-gradient(90deg, rgba(34,197,94,0.05) 1px, transparent 1px), linear-gradient(180deg, rgba(34,197,94,0.05) 1px, transparent 1px); background-size: 20px 20px; }
.v-bakery { background: linear-gradient(135deg, #29211c, #362c26); }
.v-os { background: #006666; font-family: var(--font-mono); font-style: normal; }
.v-indie { background: linear-gradient(135deg, #3b0764, #581c87); }
.v-botanical { background: linear-gradient(135deg, #064e3b, #065f46); }
.v-vinyl { background: #111; }
.v-vinyl::before { content:''; position:absolute; width: 160px; height: 160px; border-radius: 50%; border: 15px solid #222; }
.v-space { background: #000; }
.v-space::after { content:''; position:absolute; width: 3px; height: 3px; background: #fff; border-radius: 50%; top: 20%; left: 30%; box-shadow: 40px 60px #fff, 120px 20px #fff, -20px 100px #fff, 80px 140px #fff, 160px 90px #fff; opacity: 0.4; }
.v-photo { background: #151515; }
.v-type { background: #000; font-family: 'Inter', sans-serif; font-weight: 800; font-style: normal; letter-spacing: -0.05em; }
.design-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.design-info h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.design-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.design-tags {
  margin-top: auto;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.design-tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .featured-card {
    grid-column: span 1;
    padding: 1.5rem;
  }
  .card-info {
    flex-direction: column;
    gap: 1.25rem;
  }
  .deep-dive-item { grid-template-columns: 1fr; gap: 1rem; }
  .item-meta { display: none; }
}
@media (max-width: 767px) {
  .projects-section h2 { font-size: 1.75rem; }
  .manifesto-section h2 { font-size: 1.8rem; }
}

/* ASCII Visual Component */
.ascii-container {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.5);
}

.ascii-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%,
    rgba(0, 0, 0, 0.15) 50%
  );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 2;
}

#ascii-visual {
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 11px;
  color: var(--terminal-green);
  text-shadow: 0 0 8px rgba(127, 202, 107, 0.5);
  user-select: none;
  white-space: pre;
  filter: brightness(1.2);
}

.ascii-overlay {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  font-weight: 600;
  z-index: 3;
}

.status-pulse {
  width: 8px;
  height: 8px;
  background: var(--terminal-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--terminal-green);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

@media (max-width: 600px) {
  #ascii-visual { font-size: 6px; line-height: 7px; }
  .ascii-container { min-height: 220px; padding: 1rem; }
}