:root {
  --bg: #f7efe4;
  --card: #fffaf3;
  --text: #2b1c13;
  --muted: #6f5a49;
  --accent: #8b5e3c;
  --accent-dark: #5f3b24;
  --border: #e5d4c1;
  --shadow: 0 14px 30px rgba(91, 60, 38, 0.10);
}

.dark-mode {
  --bg: #1f130c;
  --card: #2a1a11;
  --text: #f7eadc;
  --muted: #d7bfa8;
  --accent: #c89462;
  --accent-dark: #e2b47f;
  --border: #4a3020;
  --shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

/* Header */

.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(247, 239, 228, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.dark-mode .header {
  background: rgba(31, 19, 12, 0.88);
}

.navbar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #fffaf3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 1px;
}

.dark-mode .logo {
  color: #1f130c;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-btn,
.menu-btn {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--accent);
  padding: 8px 11px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.menu-btn {
  display: none;
}

/* General sections */

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 24px;
}

.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}

/* Fixed smaller hero text */

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 1.05;
  margin-bottom: 18px;
  letter-spacing: -2px;
  color: var(--text);
}

.hero h2 {
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  color: var(--muted);
  margin-bottom: 22px;
  letter-spacing: -0.5px;
}

.hero-text {
  max-width: 620px;
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  padding: 12px 21px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.primary-btn {
  background: var(--accent);
  color: #fffaf3;
}

.primary-btn:hover {
  background: var(--accent-dark);
}

.secondary-btn {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.dark-mode .primary-btn,
.dark-mode .contact-links a {
  background: var(--accent);
  color: #1f130c;
}

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

/* Section headings */

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.section-heading span {
  color: var(--accent);
  font-weight: 800;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.5px;
  color: var(--text);
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.about-grid p,
.contact-box p {
  color: var(--muted);
  font-size: 1rem;
}

/* Experience */

.timeline {
  display: grid;
  gap: 20px;
}

.timeline-card,
.project-card,
.education-card,
.contact-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.timeline-card h3,
.project-card h3,
.education-card h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
  color: var(--text);
}

.company {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.timeline-card p,
.project-card p,
.education-card p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Projects */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project-card {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tags span,
.skills-grid span {
  background: rgba(139, 94, 60, 0.12);
  color: var(--accent);
  border: 1px solid rgba(139, 94, 60, 0.22);
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.dark-mode .tags span,
.dark-mode .skills-grid span {
  background: rgba(200, 148, 98, 0.14);
  border-color: rgba(200, 148, 98, 0.25);
}

/* Skills */

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Education */

.education-card {
  margin-bottom: 18px;
}

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

/* Contact */

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.contact-links a {
  background: var(--accent);
  color: #fffaf3;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
}

/* Footer */

footer {
  text-align: center;
  padding: 30px 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}

/* Animation */

.hidden {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Responsive */

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

  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .menu-btn {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 24px;
    right: 24px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--shadow);
  }

  .nav-links.active {
    display: flex;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 70px 20px;
  }

  .hero {
    min-height: 82vh;
    padding-top: 120px;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 11vw, 3.5rem);
    letter-spacing: -1.5px;
  }

  .hero h2 {
    font-size: clamp(1.2rem, 7vw, 1.8rem);
  }
}
