:root {
  --color-bg: #ffffff;
  --color-text: #18181b;
  --color-text-muted: #52525b;
  --color-border: #e4e4e7;
  --color-accent: #18181b;
  --color-accent-text: #fafafa;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  color: var(--color-text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* Scroll-reveal (paired with js/main.js) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.15s;
}

.reveal-delay-2 {
  transition-delay: 0.3s;
}

.reveal-delay-3 {
  transition-delay: 0.45s;
}

/* Coming-soon page */
.coming-soon {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.coming-soon img {
  width: 320px;
  max-width: 80vw;
  height: auto;
}

.coming-soon p {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
}

/* Shared section layout (portfolio page) */
.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
  border-top: 1px solid var(--color-border);
}

.section:first-of-type {
  border-top: none;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
}

/* Hero */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

.hero h1 {
  margin: 1rem 0 0;
  max-width: 40rem;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero p {
  margin: 1.5rem 0 0;
  max-width: 32rem;
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding: 0 1.5rem;
  margin-top: 2rem;
  border-radius: 9999px;
  background: var(--color-accent);
  color: var(--color-accent-text);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.97);
}

/* About */
.about p {
  margin-top: 1.5rem;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  line-height: 1.6;
}

/* Projects */
.project-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.project-card {
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.project-card:hover {
  border-color: #a1a1aa;
  box-shadow: 0 0 0 1px #a1a1aa;
  transform: translateY(-4px);
}

.project-card h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 500;
}

.project-card p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Contact */
.contact {
  text-align: center;
}

.contact p {
  margin-top: 1.5rem;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
}

.contact .btn {
  box-shadow: 0 0 0 0 rgba(24, 24, 27, 0.3);
}

.contact .btn:hover {
  box-shadow: 0 0 24px 4px rgba(24, 24, 27, 0.25);
}
