/* Warm Palette Variables */
:root {
/* Richer, deeper canvas with a hint of forest undertone */
  --bg-primary: #161914;       /* Midnight forest (very dark green-black) */
  --bg-secondary: #1e221b;     /* Dark moss/timber for containers */
  
  /* Text Layers - Pushed to higher contrast for readability */
  --text-main: #f7f5f0;        /* Pure cream latte */
  --text-muted: #a3b299;       /* Soft sage green-grey (highly legible) */
  
  /* High-energy accents to break the blandness */
  --accent: #87a96b;           /* Matcha / Sprout Green (Glows against dark) */
  --accent-hover: #b2d3a8;     /* Bright mint for hover feedback */
  --accent-warm: #d4a373;      /* Caramel/Light wood for secondary accents */
  
  --card-bg: #1f241c;          /* Slightly lighter than bg-primary to pop out */
  --border-color: #2f372a;     /* Defined forest-wood border */
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
}

h1, h2 {
  background: linear-gradient(135deg, var(--accent-warm) 30%, var(--text-main) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.alt-bg {
  background-color: var(--bg-secondary);
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 40px;
  height: 3px;
  background-color: var(--accent);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background-color: var(--bg-primary);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
  text-decoration: none;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Hero Section */
.hero {
  padding: 8rem 0;
}

#hero-name {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.bio {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2rem;
}

.social-links a {
  display: inline-block;
  margin-right: 1.5rem;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid var(--border-color);
  transition: all 0.2s;
}

.social-links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Skills */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-badge {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 500;
}

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

.project-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(85, 107, 47, 0.15)
}

.project-card h3 {
  margin-bottom: 0.75rem;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-tags span {
  font-size: 0.8rem;
  background-color: var(--bg-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}

.project-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.project-link:hover {
  text-decoration: underline;
}

/* Timeline/Experience */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-item {
  background-color: var(--card-bg);
  border-left: 4px solid var(--accent);
  padding: 1.5rem 2rem;
  border-radius: 0 8px 8px 0;
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.timeline-meta h3 {
  font-size: 1.2rem;
}

.timeline-date {
  color: var(--accent);
  font-weight: 500;
}

.timeline-company {
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* Footer */
footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.text-center { text-align: center; }