:root {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --card: rgba(255,255,255,0.08);
  --line: rgba(255,255,255,0.12);
  --text: #f5f5f5;
  --muted: #cfcfcf;
  --dark-text: #111111;
  --light-bg: #f6f3ee;
  --accent: #f3c14d;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(10,10,10,0.72);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.02em;
}

nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.42);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.82) 0%,
    rgba(0,0,0,0.58) 45%,
    rgba(0,0,0,0.32) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: 2rem;
  align-items: end;
  padding: 5rem 0;
}

.eyebrow,
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero h1,
.section h2 {
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 0.98;
  margin: 0 0 1rem;
}

.section h2 {
  font-size: clamp(2rem, 3vw, 3.4rem);
  color: inherit;
}

.hero-text,
.body-copy p,
.project-card p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.95rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--text);
  color: var(--dark-text);
}

.btn-secondary {
  border-color: rgba(255,255,255,0.25);
  color: var(--text);
}

.hero-card {
  justify-self: end;
  max-width: 340px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0,0,0,0.35);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.hero-card-text {
  padding: 1.25rem;
}

.hero-card-text h2 {
  font-size: 1.5rem;
  margin: 0;
}

.hero-card-text p {
  color: var(--muted);
  margin: 0.4rem 0 0;
}

.section {
  padding: 6rem 0;
}

.section-light {
  background: var(--light-bg);
  color: var(--dark-text);
}

.section-dark {
  background: var(--bg);
  color: var(--text);
}

.section-light .body-copy p,
.section-light .project-card p {
  color: #444;
}

.two-col {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3rem;
}

.project-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.project-card {
  padding: 1.5rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--card);
}

.project-card h3 {
  margin: 0.6rem 0 0.75rem;
  font-size: 1.25rem;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
}

.masonry {
  margin-top: 2rem;
  columns: 3 280px;
  column-gap: 1rem;
}

.masonry img {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 22px;
  break-inside: avoid;
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

/* Contact section */
.contact-container {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}

.contact-form h3,
.contact-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  color: var(--dark-text);
}

.contact-form p {
  margin: 0 0 1.5rem;
  color: #555;
  line-height: 1.7;
  font-size: 1rem;
}

.contact-form form {
  display: grid;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 14px;
  background: #fff;
  color: var(--dark-text);
  font: inherit;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #888;
}

.contact-form button {
  width: 100%;
  padding: 1rem 1.2rem;
  border: none;
  border-radius: 14px;
  background: var(--dark-text);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.contact-form button:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.contact-card {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.75rem;
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.contact-card a {
  color: var(--dark-text);
  font-weight: 600;
  transition: opacity 0.15s ease;
}

.contact-card a:hover {
  opacity: 0.65;
}

@media (max-width: 980px) {
  .hero-content,
  .two-col,
  .project-grid,
  .contact-container {
    grid-template-columns: 1fr;
  }

  .hero-card {
    justify-self: start;
    max-width: 280px;
  }
}

@media (max-width: 640px) {
  nav {
    display: none;
  }

  .section {
    padding: 4.25rem 0;
  }

  .hero {
    min-height: 90svh;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .contact-form h3,
  .contact-card h3 {
    font-size: 1.5rem;
  }
}

#skills {
  padding: 90px 0;
}

#skills .section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c7a85a;
  margin-bottom: 12px;
}

#skills .section-title {
  font-size: 44px;
  line-height: 1.05;
  font-weight: 700;
  color: #111;
  margin-bottom: 40px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.skill-card {
  background: #111;
  color: #f5f1e8;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.skill-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.skill-card ul {
  margin: 0;
  padding-left: 20px;
}

.skill-card li {
  margin-bottom: 10px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

  #skills .section-title {
    font-size: 34px;
  }
}


#about p {
  font-size: 17px;
  line-height: 1.8;
  color: #444;
  max-width: 520px;
}


.hero-subtext {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.25rem;
  max-width: 540px;
}

.project-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.btn {
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.section {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}