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

/* Base styles */
body {
  font-family: 'Montserrat', sans-serif;   /* clean body font */
  line-height: 1.6;
  font-size: 1rem;
  color: #1E1E1E;                          /* charcoal text */
  background-color: #FAF9F6;               /* cream background */
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;  /* bold editorial font */
  letter-spacing: 0.5px;
  text-align: center;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #422D5C;       /* deep violet accent */
  margin-bottom: 1rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #6B705C;       /* olive green */
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #4B4F3A;       /* deep olive/stone */
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #2C2C2C;       /* dark gray for readability */
}

p + p {
  margin-top: 1rem;     /* consistent spacing between paragraphs */
}

/* Navigation */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #FAF9F6;   /* cream */
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.logo {
  font-size: 1.25rem;
  font-weight: bold;
  text-decoration: none;
  color: #422D5C;       /* deep violet */
}

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

.nav-links a {
  text-decoration: none;
  color: #6B705C;       /* olive */
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

.nav-links a:hover {
  color: #FF8616;       /* bold tangerine */
}

/* General hyperlinks */
a {
  color: #422D5C;
  text-decoration: none;
}

a:hover {
  color: #FF8616;
}

a:focus {
  outline: 2px solid #FF8616;
  outline-offset: 2px;
}

/* Header section */
header {
  display: flex;
  text-align: center;
  align-items: center;
  min-height: 60vh;
  padding: 2rem;
  gap: 2rem;
  background-color: #E4D5C7;  /* warm sand */
}

.header_text {
  flex: 1;
  padding: 2rem;
  color: #1E1E1E;
}

.header_pic {
  flex: 1;
  background-color: #D9C7B5; /* beige neutral */
  min-height: 300px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6E6E6E;             /* stone gray */
  font-style: italic;
}

.header_pic img {
  width: 100%;
  height: 100%;
  max-width: 400px;
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
}

/* Layout: header, main, footer */
header,
main,
footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

main {
  display: grid;
  gap: 4rem;              /* spacing between sections */
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Section headers */
section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #422D5C, #FF8616); /* violet → tangerine */
  border-radius: 2px;
}

/* About Section */
.about-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem;
  align-items: center;
}

.about-image {
  justify-self: center;
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
}

.about-text {
  min-width: 250px;
}

/* Skills Section */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.skills-card {
  padding: 1.5rem;
  background: #eaabe6;   /* pink */
  border-radius: 8px;
  text-align: center;
  color: #FAF9F6;
}

.skills-card h3 {
  color: #FAF9F6;
  margin-bottom: 0.5rem;
}

/* Projects Section */
.projects-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  padding: 2rem;
  background: #E4D5C7;   /* warm sand */
  border: 1px solid #E9ECEF;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.project-card h3 {
  color: #422D5C;
  margin-bottom: 1rem;
}

.project-card p {
  margin-bottom: 0.5rem;
  color: #2C2C2C;
}

/* -------------------- */
/* Responsive Media Queries */
/* -------------------- */

/* Small phones (320px and up) */
@media (min-width: 320px) {
  .skills-container {
    grid-template-columns: 1fr;
  }
}

/* Large phones and small tablets (480px and up) */
@media (min-width: 480px) {
  .skills-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Tablets (768px and up) */
@media (min-width: 768px) {
  main {
    padding: 0 2rem;
  }

  .about-section {
    grid-template-columns: 250px 1fr;
    gap: 3rem;
  }

  .projects-container {
    grid-template-columns: 1fr 1fr;
  }

  .skills-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
  .skills-container {
    grid-template-columns: repeat(4, 1fr);
  }
}
