/* ===== Reset & Base ===== */

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: #e0ddd5;
  background-color: #111111;
}

/* ===== Typography ===== */

h1, h2, h3 {
  font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.2;
  color: #f5f3ee;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.2rem;
}

a {
  color: #c9a84c;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #dfc06a;
}

/* ===== Nav ===== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-brand {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.15rem;
  color: #f5f3ee;
}

.nav-brand:hover {
  color: #c9a84c;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: #a09d95;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #f5f3ee;
}

/* ===== Hero ===== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(201, 168, 76, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #111111 0%, #171614 50%, #111111 100%);
}

.hero h1 {
  font-size: 4.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.accent {
  color: #c9a84c;
}

.tagline {
  font-size: 1.2rem;
  color: #8a8680;
  font-weight: 400;
}

/* ===== Layout ===== */

.section-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Sections ===== */

section {
  padding: 6rem 0;
}

.about {
  background: #151413;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.about p {
  max-width: 600px;
  font-size: 1.05rem;
  color: #b0aca4;
  line-height: 1.85;
}

.projects {
  background: #111111;
}

/* ===== Projects ===== */

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.project-img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 1.25rem;
}

.project-card {
  display: block;
  padding: 2rem;
  background: #1a1918;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: #e0ddd5;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  border-color: rgba(201, 168, 76, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  color: #e0ddd5;
}

.project-card h3 {
  margin-bottom: 0.6rem;
  color: #f5f3ee;
}

.project-card p {
  color: #8a8680;
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.project-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: #c9a84c;
  transition: color 0.2s ease;
}

.project-card:hover .project-link {
  color: #dfc06a;
}

/* ===== Contact ===== */

.contact {
  background: #151413;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  text-align: center;
}

.contact p {
  color: #8a8680;
  margin-bottom: 1.5rem;
  max-width: none;
}

.contact-btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #111111;
  background: #c9a84c;
  border-radius: 6px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-btn:hover {
  background: #dfc06a;
  color: #111111;
  transform: translateY(-1px);
}

/* ===== Scroll Reveal ===== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== Footer ===== */

footer {
  padding: 3rem 0;
  text-align: center;
  background: #111111;
}

footer p {
  font-size: 0.78rem;
  color: #4a4843;
}

/* ===== Responsive ===== */

@media (max-width: 600px) {
  html {
    font-size: 16px;
  }

  .nav {
    padding: 1rem 1.25rem;
  }

  .nav-links {
    gap: 1.25rem;
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  section {
    padding: 4rem 0;
  }

  .project-card {
    padding: 1.5rem;
  }
}
