body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #EAEAEA;
  color: #333;
  line-height: 1.6;
}

/* General layout */
header, section, footer {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  border-radius: 8px;
}

section {
  margin-bottom: 30px;
}

/* Header and navigation */
header {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 30px;
}

header nav {
  margin-top: 10px;
}

header nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #73000A;
  font-weight: bold;
  transition: color 0.2s ease;
}

header nav a:hover {
  text-decoration: underline;
  color: #a80010;
}

h1, h2 {
  color: #73000A;
  text-align: center;
}

/* About section */
#bio {
  text-align: center;
}

#bio p {
  margin: 0 auto;
  max-width: 700px;
}

/* Resume section */
#resume {
  text-align: center;
}

#resume .resume-img {
  max-width: 85%;
  height: auto;
  border: 1px solid #ccc;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin: 1rem 0;
  transition: transform 0.2s ease;
}

#resume .resume-img:hover {
  transform: scale(1.02);
}

#resume p a {
  text-decoration: none;
  color: #73000A;
  font-weight: bold;
}

#resume p a:hover {
  text-decoration: underline;
}

/* Certifications section */
#certifications {
  text-align: center;
}

.cert-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.cert {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  width: 200px;
}

.cert-img {
  max-width: 100%;
  border-radius: 5px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
}

/* Projects section */
#projects {
  text-align: center;
}

#projects ul {
  list-style-type: none;
  padding: 0;
}

#projects li {
  margin: 20px 0;
}

#projects .project-img {
  max-width: 250px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border-radius: 5px;
  display: block;
  margin: 0 auto 10px;
  transition: transform 0.3s ease;
}

#projects a {
  text-decoration: none;
  color: #73000A;
  font-weight: bold;
}

#projects a:hover {
  text-decoration: underline;
}

#projects a:hover .project-img {
  transform: scale(1.03);
}

/* Project cards */
.project-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 20px;
  max-width: 850px;
  margin: 0 auto 40px;
  text-align: left;
}

.project-card h3 {
  color: #73000A;
  text-align: center;
  margin-top: 10px;
}

.project-card p {
  margin-bottom: 15px;
  text-align: justify;
}

.project-card img.project-img {
  display: block;
  margin: 0 auto 15px;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tech-stack, .features {
  list-style-type: none;
  padding-left: 0;
  margin: 10px 0;
}

.tech-stack li, .features li {
  background: #f9f9f9;
  margin: 5px 0;
  padding: 8px 12px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.links {
  text-align: center;
  margin-top: 15px;
}

/* Buttons (fixed so they render correctly on GitHub Pages) */
#projects a.btn,
#projects a.btn.secondary {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  margin: 5px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
  color: #fff !important;
}

#projects a.btn {
  background: #73000A;
}

#projects a.btn:hover {
  background: #a80010;
  transform: scale(1.05);
}

#projects a.btn.secondary {
  background: #5C5C5C;
}

#projects a.btn.secondary:hover {
  background: #000;
}

/* Expandable project details */
details {
  margin-top: 15px;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  padding: 10px 15px;
  transition: all 0.3s ease;
}

/* Make summary look like a clickable link */
summary {
  color: #73000A;
  font-weight: bold;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.3s ease;
}

summary:hover {
  color: #a80010;
}

/* Rotate icon and change color when expanded */
summary::before {
  transition: transform 0.2s ease;
}

details[open] summary::before {
  transform: rotate(90deg);
}

details[open] summary {
  color: #5C5C5C;
  text-decoration: none;
}

/* Inner content of details */
.details-content {
  margin-top: 15px;
  padding: 10px;
  background: #fff;
  border-radius: 6px;
}

/* Responsive project layout */
@media (max-width: 600px) {
  .project-card {
    padding: 15px;
  }
}

/* Contact section */
#contact {
  text-align: center;
}

#contact ul {
  list-style-type: none;
  padding: 0;
}

#contact li {
  margin: 8px 0;
}

#contact a {
  text-decoration: none;
  color: #73000A;
  font-weight: bold;
}

#contact a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  margin: 40px auto;
  font-size: 0.9em;
  color: #555;
}

/* Responsive design */
@media (max-width: 600px) {
  header nav a {
    margin: 0 5px;
    font-size: 0.9em;
  }

  #resume .resume-img, 
  #projects .project-img,
  .cert-img {
    max-width: 100%;
  }

  section {
    padding: 15px;
  }

  .cert {
    width: 100%;
  }
}
