/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: #0a0a0f;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  color: #e0e0e0;
  background: #0a0a0f;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── ASCII Art Background (full <pre>) ─────────────────────── */
.ascii-bg {
  position: fixed;
  top: 0;
  right: 0;
  width: auto;
  max-width: none;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  overflow: hidden;

  font-family: 'SF Mono', 'SFMono-Regular', 'Cascadia Code', 'Fira Code', 'JetBrains Mono', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
  font-size: 10px;
  line-height: 1.08;
  letter-spacing: 0;
  white-space: pre;
  word-break: keep-all;
  overflow-wrap: normal;
  tab-size: 1;

  color: rgba(232, 232, 245, 0.4);

  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 70%, transparent 100%), linear-gradient(to right, transparent 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,1) 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 70%, transparent 100%), linear-gradient(to right, transparent 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,1) 100%);
  -webkit-mask-composite: source-over;
  mask-composite: add;

  /* Hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ascii-bg::-webkit-scrollbar { display: none; }

@media (min-width: 1200px) {
  .ascii-bg { font-size: 11px; }
}

@media (max-width: 768px) {
  .ascii-bg { font-size: 6px; }
}

/* ── Header / Nav ────────────────────────────────────────────── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
}

.nav-links { list-style: none; display: flex; gap: 32px; }
.nav-links a {
  color: #888;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.hero-content {
  max-width: 740px;
  background-color: rgba(5, 5, 5, 0.8);
  padding: 3em;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
}

.hero .tagline {
  font-size: 1.15rem;
  color: #999;
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 36px;
  background: transparent;
  color: #e94560;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid #e94560;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn:hover {
  background: #e94560;
  color: #fff;
}

/* ── Contact Section ─────────────────────────────────────────── */
.contact-section {
  position: relative;
  z-index: 1;
  padding: 80px 0 120px;
}

.contact-section h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  margin-bottom: 40px;
}

/* ── Form ────────────────────────────────────────────────────── */
.contact-section form {
  max-width: 480px;
  margin: 0 auto;
  background-color: rgba(5, 5, 5, 0.8);
  padding: 2.5em 3em;
  border-radius: 6px;
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  color: #e0e0e0;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #e94560;
  background: rgba(233, 69, 96, 0.04);
}

.contact-section .btn {
  width: 100%;
  text-align: center;
  margin-top: 4px;
}

.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.4em;
}

.form-status.success { color: #4caf50; }
.form-status.error { color: #e94560; }

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  color: #555;
}

footer a {
  color: #777;
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover { color: #ccc; }

/* ── Hidden resume section (black-on-black, zero height) ── */
.resume-ascii {
  position: fixed;
  top: 1.5em;
  left: 3em;
  width: 50%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  overflow: hidden;

  font-family: 'SF Mono', 'SFMono-Regular', 'Cascadia Code', 'Fira Code', 'JetBrains Mono', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
  font-size: 10px;
  line-height: 2.08;
  letter-spacing: 0;
  white-space: pre;
  word-break: keep-all;
  overflow-wrap: normal;

  color: rgba(232, 232, 245, 0.05);

  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 60%, transparent 100%);

  scrollbar-width: none;
  -ms-overflow-style: none;
}
.resume-ascii::-webkit-scrollbar { display: none; }

@media (max-width: 768px) {
  .resume-ascii { display: none; }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .hero .tagline { font-size: 1rem; }
  .hero { min-height: 90vh; }
  .nav-links { gap: 16px; }
}
