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

:root {
  --bg: #f6f1e9;
  --bg-alt: #fdfaf6;
  --card: #ffffff;
  --accent: #d4a373;
  --accent-soft: #f1e0cf;
  --text-main: #2c2520;
  --text-muted: #6b6056;
  --border-subtle: #e3d6c7;
  --shadow-soft: 0 16px 35px rgba(0, 0, 0, 0.06);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --transition-fast: 0.2s ease;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
}

/* Layout */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(246, 241, 233, 0.92), rgba(246, 241, 233, 0.85));
  border-bottom: 1px solid var(--border-subtle);
}

.nav {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--text-main);
}

.logo span {
  color: var(--accent);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.1rem;
  font-size: 0.9rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-main);
  border-color: var(--accent);
}

main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 1.5rem;
  margin-top: 1.5rem;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top left, #fbe6cf, #f6f1e9 50%, #fdfaf6);
  box-shadow: var(--shadow-soft);
}

.hero-text h1 {
  font-size: 2.4rem;
  margin-bottom: 0.4rem;
}

.hero-text h2 {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.hero-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.hero-location {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.hero-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.hero-actions {
  margin: 1.4rem 0 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.btn.primary {
  background-color: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px rgba(212, 163, 115, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(212, 163, 115, 0.45);
}

.btn.secondary {
  background-color: transparent;
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn.secondary:hover {
  border-color: var(--accent);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.hero-tags span {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background-color: var(--accent-soft);
  color: var(--text-main);
}

.hero-photo-wrapper {
  display: flex;
  justify-content: center;
}

.photo-frame {
  width: 230px;
  height: 260px;
  border-radius: 32px;
  padding: 0.5rem;
  background: linear-gradient(135deg, #f1e0cf, #fef4e8);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
}

/* Sections */
.section {
  margin-top: 3rem;
}

.section-alt {
  margin-top: 3rem;
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-xl);
  background-color: var(--bg-alt);
  border: 1px solid var(--border-subtle);
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-header h3 {
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
}

.section-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.card {
  background-color: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}

.card h4 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.card ul {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card ul li {
  margin-bottom: 0.25rem;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.project-card {
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.project-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.75rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background-color: var(--accent-soft);
  color: var(--text-main);
}

.project-card h4 {
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
}

.project-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.project-bullets {
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.project-bullets li {
  margin-bottom: 0.25rem;
}

.project-stack {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.project-links {
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.project-links a {
  color: var(--accent);
  text-decoration: none;
}

.project-links a:hover {
  text-decoration: underline;
}

.muted {
  color: var(--text-muted);
}

/* About */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.8fr);
  gap: 1.75rem;
}

.about-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.about-meta {
  display: grid;
  gap: 1rem;
}

.meta-block h4 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.meta-block p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.meta-block ul {
  list-style: disc;
  margin-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.contact-card h4 {
  margin-bottom: 0.4rem;
}

.contact-card p,
.contact-card a,
.contact-card li {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-card a {
  color: var(--accent);
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-card ul {
  list-style: none;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  margin-top: 2.5rem;
  padding: 1.5rem 1.25rem 0.75rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 840px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-photo-wrapper {
    order: -1;
  }
}

@media (max-width: 720px) {
  main {
    padding: 1.75rem 1.1rem 2.5rem;
  }

  .section-alt {
    padding: 1.75rem 1.3rem;
  }
}
