body {
  background-color: #0a0a0a;
  color: #f0f0f0;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, Arial, Helvetica;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #0a0a0a;
  border-bottom: 1px solid #222;
}


header h1 {
  color: #FF8A3D;
  font-size: 1.8rem;
  margin: 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav li {
  position: relative;
}

nav a {
  text-decoration: none;
  color: #f0f0f0;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background-color 0.3s, color 0.3s;
}

nav a:hover {
  background-color: rgba(255, 138, 61, 0.12);
  color: #FF8A3D;
}

.Intros {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  background-color: #0a0a0a;
}

.Introduction {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
}

.Major {
  flex: 1 1 400px;

}

#Intro:first-of-type {
  font-size: 2.5rem;
  color: #f0f0f0;
  margin: 0 0 1rem 0;
}

#Intro:last-of-type {
  font-size: 1.2rem;
  margin: 0;
}

#PersonalImg {
  width: 25%;
  height: 400px;
  border-radius: 50% 20% / 10% 40%;
  border-color: #FF8A3D;
  border-width: 4px;
  border-style: solid;
  object-fit: cover;
  transition: transform 0.8s ease-in-out, box-shadow 0.8s ease-in-out;
}

#PersonalImg:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.experience {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.experience h1 {
  margin-bottom: 3rem;
}

.expItem {
  display: flex;
  gap: 1.5rem;
}

.expIconCol {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 56px;
}

.expIcon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background-color: #1a1a1a;
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  overflow: hidden;
}

.expIcon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expRail {
  flex: 1;
  width: 2px;
  background-color: #333;
  margin-top: 0.5rem;
  min-height: 24px;
}

.expContent {
  flex: 1;
  padding-bottom: 2.5rem;
}

.expContent h3 {
  color: #f0f0f0;
  font-size: 1.15rem;
  margin: 0.5rem 0 0.15rem 0;
}

.expCompany {
  color: #FF8A3D;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

.expDates {
  color: #999999;
  font-size: 0.85rem;
  margin: 0 0 0.85rem 0;
}

.expBullets {
  color: #cccccc;
  padding-left: 1.1rem;
  margin: 0 0 0.85rem 0;
}

.expBullets li {
  margin-bottom: 0.4rem;
}

.expPlain {
  color: #cccccc;
  margin: 0 0 0.85rem 0;
}

.expTags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.expTags span {
  background-color: #333;
  color: #f0f0f0;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.78rem;
}

.projects {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.projects h1 {
  text-align: center;
  color: #FF8A3D;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.projectCard {
  display: flex;
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.projectCard:hover,
.projectCard:focus-visible {
  transform: translateY(-4px);
  border-color: #FF8A3D;
  outline: none;
}

.viewDetails {
  display: inline-block;
  margin-top: 0.75rem;
  color: #FF8A3D;
  font-size: 0.9rem;
  font-weight: 700;
}


.projectImage {
  width: 250px;
  object-fit: cover;
}
.projectImage2 {
  width: 250px;
  object-fit: cover;
}

.projectIcon {
  width: 250px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, #1a1a1a, #3a2416);
}

.projectContent {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.projectContent h2 {
  margin: 0 0 0.5rem 0;
  color: #f0f0f0;
  font-size: 1.5rem;
}

.projectContent p {
  color: #cccccc;
  margin-bottom: 1rem;
}

.projectTags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.projectTags span {
  background-color: #333;
  color: #f0f0f0;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

.resumeCard {
  max-width: 480px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.resumeThumb {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #333;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.resumeThumb:hover {
  border-color: #FF8A3D;
  transform: translateY(-3px);
}

.resumeButtons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-resume {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-resume:hover {
  transform: translateY(-2px);
}

.btn-resume-primary {
  background-color: #FF8A3D;
  color: #161200;
}

.btn-resume-primary:hover {
  opacity: 0.9;
}

.btn-resume-ghost {
  background-color: #1a1a1a;
  color: #f0f0f0;
  border: 1px solid #333;
}

.btn-resume-ghost:hover {
  border-color: #FF8A3D;
  color: #FF8A3D;
}

.interests {
  display: flex;
  justify-content: center;
  padding: 3rem 1rem;
  background-color: #0a0a0a;
}

.interests-container {
  display: flex;
  gap: 2rem;
  align-items: center;
  max-width: 1100px;
}

.textContent {
  flex: 1;
  text-align: center;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
}

.textContent h1 {
  color: #FF8A3D;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.textContent h3 {
  color: #f0f0f0;
  font-size: 1.2rem;
  line-height: 1.8;
  font-weight: 400;
}

.emoji {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 2.8rem;
  transform: rotate(-5deg);
}

.left {
  transform: rotate(-8deg);
}

.right {
  transform: rotate(8deg);
}

.emoji div {
  display: inline-block;
  transition: transform 0.3s ease;
  cursor: default;
}

.emoji div:hover {
  transform: scale(1.2) rotate(10deg);
}

.emoji div {
  filter: drop-shadow(0 0 4px #FF8A3D);
  opacity: 0.9;
}

.activity {
  text-align: center;
  padding: 3rem 1rem;
}

.activity h1 {
  color: #FF8A3D;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.activityCard {
  max-width: 850px;
  margin: 0 auto;
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.activityHandle {
  color: #cccccc;
  margin: 0 0 1.5rem 0;
  font-size: 1rem;
}

.activityHandle a {
  color: #FF8A3D;
  text-decoration: none;
  font-weight: 700;
}

.activityHandle a:hover {
  text-decoration: underline;
}

.activityChart {
  width: 100%;
  height: auto;
  background-color: #0a0a0a;
  border-radius: 8px;
  padding: 0.5rem;
}

.socials {
  text-align: center;
  padding: 3rem 1rem;
}

.socials h1 {
  color: #FF8A3D;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.socialLinks {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
}

.socialLinks p {
  margin: 0;
  font-size: 1.1rem;
}

.socialLinks a {
  display: inline-block;
  background-color: #1a1a1a;
  color: #f0f0f0;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
}

.socialLinks a:hover {
  background-color: #333;
  transform: translateY(-2px);
  color: #FF8A3D;
}



footer {
  text-align: center;
  padding: 1rem;
  border-top: 1px solid #222;
  margin-top: 2rem;
}

#goTopButton {
  position: fixed;
  bottom: 40px;
  right: 30px;
  z-index: 100;
  font-size: 1.8rem;
  background-color: #1a1a1a;
  color: #FF8A3D;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#goTopButton:hover {
  background-color: #333;
  transform: scale(1.1);
}

@media (max-width: 1024px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  nav li {
    width: 100%;
  }

  nav a {
    display: block;
    width: 100%;
  }

  .Intros {
    padding: 2rem 1rem;
  }
  .Introduction{
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    text-align: left;
  }

  #PersonalImg {
    width: 30%;
    max-width: 200px;
    height: auto;
    
  }

  .projectCard {
    flex-direction: column;

    
  }

  .projectImage {
    width: 100%;
    height: 200px;
  }
  .projectImage2{
    width: 100%;
    height: 200px;
  }
  .projectIcon {
    width: 100%;
    height: 120px;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  nav li {
    width: 100%;
  }

  nav a {
    display: block;
    width: 100%;
  }

  .Intros {
    padding: 2rem 1rem;
  }

  .Introduction {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    text-align: left;
  }

  #PersonalImg {
    width: 35%;
    max-width: 180px;
    height: auto;
  }

  .projects {
    padding: 0 1rem;
  }

  .projectCard {
    flex-direction: column;
  }

  .projectImage {
    width: 100%;
    height: 200px;
  }
  .projectImage2{
    width: 100%;
    height: 200px;
  }

  .interests-container {
    flex-direction: column;
    text-align: center;
  }

  .emoji {
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
  }

  .textContent h1 {
    font-size: 2rem;
  }

  .textContent h3 {
    font-size: 1rem;
  }

  .resumeCard {
    width: 90%;
  }
}


@media (max-width: 480px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  nav li {
    width: 100%;
  }

  nav a {
    display: block;
    width: 100%;
  }
  .Intros {
    padding: 2rem 1rem;
  }
  .Introduction{
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    text-align: left;
  }
  #PersonalImg{
    width: 35%;
    max-width: 180px;
    height: auto;
  }
  header h1 {
    font-size: 1.5rem;
  }

  .projects h1,
  .textContent h1,
  .socials h1 {
    font-size: 1.8rem;
  }

  .projectContent h2 {
    font-size: 1.3rem;
  }

  .projectContent p {
    font-size: 0.95rem;
  }

  .projectTags span {
    font-size: 0.75rem;
  }

  .socialLinks p {
    font-size: 1rem;
  }

  #goTopButton {
    font-size: 1.4rem;
    padding: 0.4rem 0.8rem;
  }

}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  position: relative;
  background-color: #141414;
  border: 1px solid #333;
  border-radius: 12px;
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-scroll {
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  background-color: #1a1a1a;
  color: #f0f0f0;
  border: 1px solid #333;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  color: #FF8A3D;
  border-color: #FF8A3D;
}

#modalTitle {
  color: #FF8A3D;
  font-size: 1.8rem;
  margin: 0 0 1rem 0;
  padding-right: 2rem;
}

.modal .projectTags {
  margin-bottom: 1.5rem;
}

.modal-body {
  color: #dddddd;
  line-height: 1.7;
}

.modal-body h3 {
  color: #FF8A3D;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.modal-body ol,
.modal-body ul {
  padding-left: 1.25rem;
}

.modal-body li {
  margin-bottom: 0.6rem;
}

.modalTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.modalTable th,
.modalTable td {
  border: 1px solid #333;
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.modalTable th {
  background-color: #1a1a1a;
  color: #FF8A3D;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.galleryItem {
  margin: 0;
}

.galleryItem img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #333;
  cursor: zoom-in;
  transition: border-color 0.3s ease;
  display: block;
  background-color: #fff;
}

.galleryItem img:hover {
  border-color: #FF8A3D;
}

.galleryItem figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #aaaaaa;
  text-align: center;
}

.modalRepoLink {
  display: inline-block;
  margin-top: 2rem;
  color: #FF8A3D;
  font-weight: 700;
  text-decoration: none;
}

.modalRepoLink:hover {
  text-decoration: underline;
}

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1100;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-overlay img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

@media (max-width: 480px) {
  .modal-scroll {
    padding: 1.5rem;
  }

  #modalTitle {
    font-size: 1.4rem;
  }
}
