:root {
  --bg: #0f1115;
  --fg: #e6e8eb;
  --muted: #9aa0a6;
  --accent: #4da3ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
}

html {
  scroll-behavior: smooth;
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 64px 24px 96px;
  max-width: 900px;
  margin: 0 auto;
}

.hero {
  margin-top: 20vh;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: 0.12em;
  font-weight: 600;
  margin: 0 0 24px 0;
}

.tagline {
  max-width: 560px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
}

.page-fade {
  animation: pageFade 420ms ease both;
}

@keyframes pageFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-fade {
    animation: none;
  }
}

#projects {
  transition: padding-top 700ms ease;
}

.projects-content {
  transition: transform 700ms ease;
}

body.projects-active #projects {
  padding-top: 60vh;
}

body.projects-active .projects-content {
  transform: translateY(-44vh);
}

.footer {
  font-size: 0.9rem;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 24px;
  background: linear-gradient(180deg, rgba(15, 17, 21, 0), rgba(15, 17, 21, 0.9));
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 5;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer a:hover {
  color: var(--fg);
  border-bottom-color: var(--accent);
}

.projects-page .container {
  justify-content: flex-start;
  gap: 32px;
}

.projects-page .projects-hero {
  margin-top: 12vh;
}

.projects-page .projects-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px;
}


.contact-page .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 32px 24px;
}

.contact-page .contact-container {
  width: 100%;
  max-width: 420px;
  padding: 0;
}

.contact-page .contact-panel {
  border: 1px solid rgba(77, 163, 255, 0.3);
  border-radius: 16px;
  padding: 28px 24px 24px;
  background: linear-gradient(140deg, rgba(77, 163, 255, 0.14), rgba(15, 17, 21, 0.8));
}

.contact-page .footer {
  margin-top: 0;
}

.contact-page .contact-hero {
  margin: 0 0 18px;
}

.contact-page .contact-hero h1 {
  margin-bottom: 12px;
}

.contact-page .contact-hero .tagline {
  max-width: none;
  font-size: 1rem;
}

.contact-page .contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-page .contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-page .contact-form label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.contact-page .contact-form input,
.contact-page .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
}

.contact-page .contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-page .contact-form button {
  margin-top: 18px;
  align-self: flex-start;
  padding: 12px 22px;
  border-radius: 999px;
  background: #3b82f6;
  color: #fff;
  border: none;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.25);
  cursor: pointer;
}

.contact-page .contact-form button:hover {
  filter: brightness(1.05);
}

.status {
  min-height: 1.2em;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-page .contact-form .honeypot {
  display: none !important;
}

/* About Page */
.about-page .container {
  justify-content: flex-start;
  gap: 32px;
}

.about-page .about-hero {
  margin-top: 12vh;
}

.about-page .about-hero h1 {
  margin-bottom: 16px;
}

.about-page .subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0;
}

.about-page .about-content {
  max-width: 640px;
  margin-bottom: 48px;
}

.about-page .about-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--fg);
  margin: 0 0 1.25em 0;
}

.about-page .about-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}

.about-page .about-content a:hover {
  border-bottom-color: var(--accent);
}

.about-page .about-content h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 2em 0 0.75em 0;
  letter-spacing: 0.02em;
}

.about-page .links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-page .links-list li {
  font-size: 1.05rem;
  line-height: 1.6;
}

.about-page .links-list a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}

.about-page .links-list a:hover {
  border-bottom-color: var(--accent);
}
