/* Root Variables for Colors and Fonts */
:root {
  --bg-color: #f8f6f3;
  --accent-color: #1a1a1a;
  --highlight-color: #af8c53;
  --text-color: #2b2b2b;
  --font-primary: 'Georgia', serif;
  --font-secondary: 'Helvetica Neue', sans-serif;
}

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

/* Base Styles */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-primary);
  line-height: 1.6;
  padding: 2rem;
}

/* Header Styles */
header {
  text-align: lcenter;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--highlight-color);
}

header h1 {
  font-size: 2.8rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

header p {
  font-size: 2.4rem;
  font-family: var(--font-secondary);
  color: var(--highlight-color);
}

/* Navigation Styles */
nav {
  background-color: #000;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  justify-content: flex-start;
}

nav a {
  color: white;
  text-decoration: none;
  font-family: var(--font-secondary);
  font-size: 1rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--highlight-color);
}

/* Section Layout */
main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

section {
  padding: 1.5rem;
  border: 1px solid var(--highlight-color);
  border-radius: 8px;
  background: white;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Index Page Styles */
.about {
  background-color: #fffdf8;
}

.projects {
  border-color: var(--accent-color);
}

#contact {
  background-color: #f2f2f2;
  border-left: 5px solid var(--highlight-color);
}

/* About Page Styles */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem;
}

.container h2 {
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

/* Portfolio Page Styles */
.project-list {
  padding-top: 1rem;
  border-top: 1px dashed var(--highlight-color);
  margin-top: 1rem;
}

.project-list p {
  font-family: var(--font-secondary);
  font-size: 1rem;
  color: var(--text-color);
}

/* Footer */
footer {
  text-align: center;
  margin-top: 4rem;
  font-size: 0.9rem;
  color: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  header h1 {
    font-size: 2rem;
  }

  section,
  .container {
    padding: 1rem;
  }

  nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }
}
