/* === Global Styles === */
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #222;
  background-color: #fff;
  line-height: 1.7;
  font-weight: 400;
}

/* === Two-column Layout === */
.container {
  display: flex;
  max-width: 1250px;
  margin: 0 auto; /* centers correctly at all sizes */
  padding: 2rem 1rem;
  gap: 3rem;
}


/* === Sidebar (fixed about section) === */
.sidebar {
  position: sticky;
  top: none;
  flex: 1.;
  max-width: 400px;
  height: fit-content;
  align-self: flex-start;
  border-right: 1px solid #eee;
  padding-right: 2rem;
}

.sidebar h1 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.sidebar p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.contact-links {
  margin-top: 1.5rem;
}

.contact-links a {
  display: inline-block;
  background-color: #111;
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  margin-right: 0.5rem;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.contact-links a:hover {
  background-color: #0077ff;
}

/* === Main Content (projects + footer) === */
.content {
  flex: 3;
}

/* === Projects === */
.projects {
  display: grid;
  gap: 1.8rem;
}

.project {
  padding: 1.5rem 1.8rem;
  border: 1px solid #eee;
  border-radius: 10px;
  transition: all 0.2s ease;
  background-color: #fff;
  overflow: hidden;
  text-align: center;
}

.project:hover {
  background-color: #fafafa;
  transform: translateY(-3px);
}

.project h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1.4rem;
  color: #111;
}

.project p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* === Project Images === */
.project-image {
  display: block;
  width: 700px;
  max-width: 100%;
  height: auto;
  margin: 1rem auto;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-image:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* === Buttons (projects + contact) === */
.project-button,
.contact a {
  display: inline-block;
  background-color: #111;
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  margin-top: 0.8rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.project-button:hover,
.contact a:hover {
  background-color: #0077ff;
  color: #fff;
}

/* === Section Intro Text === */
.section-intro {
  font-size: 1.3rem;
  font-weight: 600;
  color: #111;
  margin: -0.5rem auto 2rem;
  line-height: 1.6;
  text-align: center;
}

/* === Footer === */
footer {
  text-align: center;
  margin-top: 4rem;
  color: #777;
}

/* === Responsive Layout (Mobile + Tablet) === */
@media (max-width: 1000px) {
  .container {
    flex-direction: column;
    padding: 1.5rem;
    max-width: 100%;
  }

  .sidebar {
    position: static;
    max-width: 100%;
    width: 100%;
    border-right: none;
    padding-right: 0;
    padding-bottom: 2rem;
    text-align: left;
  }

  .sidebar h1,
  .sidebar h2,
  .sidebar h3 {
    text-align: left;
  }

  .sidebar p {
    font-size: 1rem;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 0 1rem 0;
  }

  .contact-links {
    text-align: left;
    margin-top: 1.5rem;
  }

  .contact-links a {
    margin: 0.3rem 0.5rem 0.3rem 0;
  }

  /* Make project section full width */
  .content {
    width: 100%;
    flex: 1;
  }

  .projects {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .project {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 2rem;
  }

  /* Fix distorted images */
  .project-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
  }

  /* Improve spacing for small screens */
  .section-intro {
    font-size: 1.2rem;
    line-height: 1.5;
    padding: 0 0.5rem;
  }
}





/* === Fade-in on scroll animation === */
.project {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.project.visible {
  opacity: 1;
  transform: translateY(20);
}


body {
  opacity: 0;
  transition: opacity 0.5s ease;
}
body.loaded {
  opacity: 1;
}



/* === Experience Section in Sidebar === */
.experience {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.experience h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #111;
}

.exp-item {
  margin-bottom: 1.2rem;
}

.exp-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 0.2rem;
}

.exp-item p {
  font-size: 0.9rem;
  color: #333;
  margin: 0;
}

.exp-item em {
  display: block;
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
  margin-top: 0.1rem;
}

