/* style.css */


body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fbfcf8;
  color: #1e293b;
  margin: 0;
  padding: 20px 40px;
  font-size: 16px;
  line-height: 1.6;
  max-width: 1200px; /* increased from 960px */
  margin-left: auto;
  margin-right: auto;
  text-align: justify; /* ensures uniform sentence alignment */
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 300px;
  height: 100vh;
  background-color: #374151;
  color: white;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

.sidebar img {
  width: 150px;     /* fixed width */
  height: auto;     /* maintain aspect ratio */
  border-radius: 50%; /* circular */
  border: 5px solid #94a3b8;
  display: block;
  margin: 0 auto 20px auto;
  object-fit: cover;  /* optional - crops nicely inside circle */
}

.sidebar a {
  display: block;
  color: white;
  text-decoration: none;
  text-align: center;
  margin: 10px 0;
  font-weight: 600;
  font-size: 1em;
}

.sidebar a:hover {
  color: #60a5fa; /* light blue */
}

.main {
  margin-left: 300px; /* match sidebar width */
  padding: 20px;
}

.name-title {
  font-size: 2.5em;
  font-weight: 900;
  color: #1e293b;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2em;
  color: #374151;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Strong tags in project section */
section#projects strong {
  font-size: 1.5em;
  color: #374151;
  display: block;
  margin-top: 1.5rem;
}

/* Links inside project paragraphs */
section#projects a {
  font-size: 1em;
  font-weight: 900;
  color: #1e3a8a;
  text-decoration: underline;
  margin-left: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 900;
  color: #1e293b;
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
}

/* List styling for skills */
ul {
  padding-left: 1.2rem;
  margin-top: 0;
}

.profile-pic {
  max-width: 150px;
  max-height: 150px;
  width: auto;
  height: auto;
}

.project-body {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.project-thumb {
  width: 280px;
  height: 180px;
  object-fit: cover;
  object-position: top;
  background-color: #f8fafc;
  border-radius: 6px;
  border: 2px solid #cbd5e1;
  display: block;
  margin-top: 0.25rem;
}

.project-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* ensures text starts at top */
}

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

ul.flex-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  list-style-position: inside;
}

@media screen and (max-width: 768px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 10px;
  }
  .main {
    margin-left: 0;
  }
}

.tag {
  display: inline-block;
  background-color: #e0e7ff;  /* light blue */
  color: #1e40af;              /* dark blue text */
  padding: 0.3em 0.6em;
  margin-right: 0.5em;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: default;
}

.award-image {
  width: 550px;       /* reduced from 300px */
  height: auto;       /* maintains aspect ratio */
  border-radius: 8px;
  margin-top: 1rem;
  margin-bottom: 1rem;
  display: block;
}

.reference-image {
  width: 650px;       /* reduced from 300px */
  height: auto;       /* maintains aspect ratio */
  border-radius: 8px;
  margin-top: 1rem;
  margin-bottom: 1rem;
  display: block;
}

/* Modal container (hidden by default) */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

/* Modal content (enlarged image) */
.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border: 4px solid white;
  border-radius: 12px;
  box-shadow: 0 0 20px black;
}

/* Close button */
.close {
  position: absolute;
  top: 30px;
  right: 45px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}
