/*! CSS Document */

/* Design Tokens */
:root {
  --bg-primary: #FAFAF5;
  --bg-surface: #F5F5EE;
  --bg-card: #FFFFFF;
  --text-primary: #1C1C1E;
  --text-secondary: #6B6B6B;
  --accent-primary: #B8963E;
  --accent-hover: #9A7B2E;
  --border-subtle: rgba(28, 28, 30, 0.1);
  --shadow-card: 0 4px 24px -6px rgba(184, 150, 62, 0.15), 0 2px 8px rgba(0, 0, 0, 0.06);
  --radius-md: 4px;
  --radius-sm: 2px;
  --max-width: 1200px;
}

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

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

img, svg {
  max-width: 100%;
  height: auto;
}

/* Typography */
body {
  font-family: Georgia, "Palatino Linotype", Palatino, serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, "Palatino Linotype", Palatino, serif;
  line-height: 1.2;
}

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

.btn {
  display: inline-block;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

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

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

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

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
}

/* Fluid headings */
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  word-break: break-word;
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(2.25rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-card);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--accent-primary);
}

/* Mobile navigation - hide default links, show hamburger */
@media (max-width: 768px) {
  .nav-links {
    pointer-events: none;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    padding: 1rem;
    margin-top: 1rem;
  }
  .nav-links.open {
    pointer-events: auto;
    visibility: visible;
  }
  .nav-links.open ul {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .nav-links.open li {
    width: 100%;
    text-align: center;
  }
  .hamburger {
    display: block;
  }
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1rem;
  position: relative;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-avatar {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 0 0 1rem;
  line-height: 1.1;
  color: var(--text-primary);
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero-subheading {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* About Section */
.about {
  padding: 5rem 1rem;
  background-color: var(--bg-surface);
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.about-text {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  display: block;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* Projects Section */
.projects {
  padding: 5rem 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 2rem;
}

.project-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(184, 150, 62, 0.2);
}

.project-title {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.project-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

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

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background-color: var(--bg-surface);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.project-link {
  color: var(--accent-primary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.project-link:hover {
  color: var(--accent-hover);
}

/* Skills Section */
.skills {
  padding: 5rem 1rem;
  background-color: var(--bg-surface);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 1.5rem;
}

.skill-item {
  margin-bottom: 1rem;
}

.skill-name {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: block;
}

.skill-bar {
  height: 0.5rem;
  background-color: var(--bg-primary);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background-color: var(--accent-primary);
  border-radius: var(--radius-sm);
  width: 0%;
  transition: width 0.75s ease;
}

/* Contact Section */
.contact {
  padding: 5rem 1rem;
}

.contact-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.contact-text {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.contact-details {
  display: grid;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  min-width: 60px;
}

.contact-link {
  color: var(--accent-primary);
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--accent-hover);
}

/* Footer */
footer {
  padding: 2rem 1rem;
  background-color: var(--text-primary);
  color: var(--bg-primary);
  text-align: center;
}

.footer-text {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-link {
  color: var(--bg-primary);
  font-size: 1.25rem;
  transition: color 0.2s ease;
}

.social-link:hover {
  color: var(--accent-primary);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .navbar .container {
    flex-wrap: wrap;
  }
  .nav-links {
    pointer-events: none;
    visibility: hidden;
  }
  .nav-links.open {
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    padding: 1rem;
    margin-top: 1rem;
  }
  .nav-links.open ul {
    flex-direction: column;
    width: 100%;
  }
  .nav-links.open li {
    width: 100%;
    text-align: center;
    margin: 0.5rem 0;
  }
}