/* Fonts */
@font-face {
  font-family: 'GeistPixel';
  src: url('../assets/fonts/GeistPixel-Square.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist';
  src: url('../assets/fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GeistMono';
  src: url('../assets/fonts/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --bg: #0a0a0a;
  --fg: #e5e5e5;
  --fg-muted: #737373;
  --accent: #a3a3a3;
  --font-body: 'Geist', system-ui, -apple-system, sans-serif;
  --font-pixel: 'GeistPixel', 'GeistMono', monospace;
  --font-mono: 'GeistMono', 'SF Mono', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: var(--font-pixel);
  font-size: 1.25rem;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-decoration: none;
  text-transform: lowercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--fg);
}

/* Hero */
#hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding: 0 3rem;
  width: 100%;
}

.hero-content {
  flex: none;
  text-align: left;
}

.hero-content h1 {
  font-family: var(--font-pixel);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.hero-content .subtitle {
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 1.5vw, 0.95rem);
  color: var(--fg-muted);
  letter-spacing: 0.15em;
  text-transform: lowercase;
}

.hero-phone {
  flex-shrink: 0;
  width: clamp(220px, 26vw, 300px);
  height: clamp(480px, 65vh, 720px);
  transform: perspective(1200px) rotateY(-18deg) rotateX(4deg);
  transform-style: preserve-3d;
}

#ascii-canvas {
  width: 100%;
  height: 100%;
  filter: drop-shadow(12px 16px 0px rgba(229, 229, 229, 0.04));
}

@media (max-width: 680px) {
  .hero-layout {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .hero-content {
    text-align: center;
  }
  .hero-phone {
    width: 180px;
    height: 400px;
    transform: perspective(1200px) rotateY(-12deg) rotateX(3deg);
  }
  .hero-phone canvas {
    --hide-labels: 1;
  }
}

/* Sections */
#about,
#projects,
#contact {
  padding: 6rem 3rem;
  max-width: 720px;
  margin: 0 auto;
}

/* About */
#about h2 {
  font-family: var(--font-pixel);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 400;
  margin-bottom: 3rem;
  color: var(--fg);
}

.about-intro {
  margin-bottom: 4rem;
}

.about-intro p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--accent);
}

#about h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(115, 115, 115, 0.2);
}

.experience {
  margin-bottom: 3rem;
}

.exp-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(115, 115, 115, 0.08);
}

.exp-item:last-child {
  border-bottom: none;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.25rem;
}

.exp-role {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg);
}

.exp-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.exp-company {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.exp-desc {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--accent);
}

.exp-project {
  margin-top: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(115, 115, 115, 0.15);
  border-radius: 4px;
}

.exp-project a {
  font-family: var(--font-pixel);
  font-size: 0.95rem;
  color: var(--fg);
  text-decoration: none;
  transition: color 0.2s;
}

.exp-project a:hover {
  color: var(--fg-muted);
}

.exp-project a::after {
  content: ' ↗';
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.exp-project p {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--fg-muted);
}

/* Contact */
#contact h2 {
  font-family: var(--font-pixel);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--fg);
}

.contact-text {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.contact-email {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid rgba(115, 115, 115, 0.3);
  padding-bottom: 0.15rem;
  transition: border-color 0.2s;
}

.contact-email:hover {
  border-color: var(--fg);
}

/* Footer */
footer {
  padding: 3rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
}
