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

body{
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #333333;
}

nav{
    background-color: #eeebf7;
    padding: 1rem 2rem;
    border-bottom: 1px solid #fff;
}

nav a{
    color: #eeebf7;
    text-decoration: none;
    margin-right: 2rem;
    font-weight: 500;
}

nav a:hover{
    color: #4B2E83
}

nav a:focus{
    outline: 2px solid #4B2E83;
    outline-offset: 2px;
}

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

.logo {
  font-size: 1.25rem;
  font-weight: bold;
  text-decoration: none;
  color: #333333;
}

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

.nav-links a {
  text-decoration: none;
  color: #333333;
  font-weight: 500;
}

.nav-links a:hover {
  color: #C7B8EA;
}

header{
    display: flex;
    align-items: center;
    padding: 2rem;
    gap: 2rem;
    height: 60vh;
    background-color: #fff;

}

.header_text{
    background-color: #eeebf7;
    flex: 1;
    padding: 2rem;
}

.header_pic{
    flex: 1;
    background-color: #fff;
    min-height: 300px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

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

main{
    max-width: 65ch;
    margin: 0 auto;
    padding: 5%;
}

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

/* On larger screens, create a 2-column layout */
@media (min-width: 768px) {
  .about-section {
    grid-template-columns: 250px 1fr;
    gap: 3rem;
  }
}

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

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

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

.skill-card {
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #e9ecef;
}

.skill-card h3 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

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

/* On tablets and up, show 2 columns */
@media (min-width: 768px) {
  .projects-container {
    grid-template-columns: 1fr 1fr;
  }
}

.project-card {
  padding: 2rem;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  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: #2c3e50;
  margin-bottom: 1rem;
}

/* Main container for all sections */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

/* Responsive container padding */
@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* Consistent section spacing */
section {
  padding: 3rem 0;
}

/* Section headings */
section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #2c3e50;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
}

header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section{
    margin-bottom: 2rem;
}

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

p + p{
    margin-top: 1rem;
}

h1{
    color: #4B2E83;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h2{
    font-size: 2rem;
    font-weight: 600;
    color: #4B2E83;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

h3{
    font-size: 1.5rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

p{
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #555;
}

/* Small phones (320px and up) */
.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) {
  .skills-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

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

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