* {
  box-sizing: border-box;
  font-family: "Inter", "Open Sans", "Roboto", sans-serif;
  margin: 0;
  padding: 0;
}

body {
  background-color: #e9ded3;
  padding-top: 88px;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

/* INTRO SECTION */
.intro {
  text-align: left;
  margin: 0 auto;
  padding: 60px 30px 40px;
  max-width: 1200px;
}

.title {
  font-size: 2.8em;
  margin-bottom: 25px;
  color: #000;
  text-align: center;
}

.description {
  font-size: 1.1em;
  line-height: 1.7;
  color: #000;
  max-width: 1200px;
  margin: 0 auto;
  text-align: justify;
  text-align-last: left;
  text-indent: 50px;
  word-spacing: 2px;
  letter-spacing: 0.2px;
  padding: 0 30px;
}

/* PROJECT SECTIONS */
.projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70%;
  margin: 20px auto;
  padding: 25px 40px;
  border-left: 10px solid #000;
  border-radius: 16px;
  background: linear-gradient(90deg, #e9ded3 0%, #ffffff 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.title-div {
  text-align: center;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.projects-link,
.projects-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* Website link */
.projects-link {
  background: linear-gradient(to left, #0a5cff 50%, #fff 50%) right;
  background-size: 200%;
  color: #fff;
}

.projects-link:hover {
  background-position: left;
  color: #111;
  transform: scale(1.05);
}

/* GitHub link */
.projects-github {
  background: linear-gradient(to left, #24292e 50%, #fff 50%) right;
  background-size: 200%;
  color: #fff;
}

.projects-github:hover {
  background-position: left;
  color: #111;
  transform: scale(1.05);
}

/* PROJECT DETAILS */
.project-detail {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 20px;
  align-items: center;
  padding: 20px;
}

.project-description {
  font-size: 1.1em;
  line-height: 1.7;
  color: #000;
  text-align: justify;
  text-indent: 40px;
  margin-top: 10px;
}

.project-details-button {
  display: inline-block;
  padding: 10px;
  color: #0a5cff;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.project-details-button:hover {
  color: #0038cc;
  transform: translateY(-2px);
}

/* IMAGES + ZOOM EFFECT */
img.project-image {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  cursor: zoom-in;
  transition: all 0.3s ease;
}

img.project-image:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  z-index: 999;
}

img.project-image.clicked {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.8);
  max-width: 50vw;
  max-height: 50vh;
  cursor: zoom-out;
  z-index: 1000;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

/* ANIMATIONS */
.animate {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
  animation: fadeUp 0.8s ease forwards;
}

.projects.animate.visible {
  animation: flyFromLeft 0.8s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flyFromLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* RESPONSIVE DESIGN */
@media (max-width: 1280px) {
  .projects {
    width: 85%;
  }

  .project-detail {
    grid-template-columns: 1fr 300px;
  }
}

@media (max-width: 1024px) {
  .projects {
    width: 90%;
    border-left: 6px solid #000;
  }

  .project-detail {
    display: flex;
    flex-direction: column;
  }

  img.project-image {
    max-width: 300px;
  }

  .description {
    text-indent: 50px;
  }
}

@media (max-width: 768px) {
  .title {
    font-size: 2em;
  }

  .description {
    font-size: 1.1em;
    width: 90%;
    text-indent: 40px;
  }

  .projects {
    padding: 20px;
    border-left: 5px solid #000;
  }

  .project-detail {
    gap: 15px;
  }
}

@media (max-width: 600px) {
  .title {
    font-size: 1.6em;
  }

  .description {
    font-size: 1em;
    text-indent: 30px;
  }

  .projects {
    width: 95%;
    border-left: 5px solid #000;
  }

  img.project-image {
    max-width: 250px;
  }
}

@media (max-width: 400px) {
  .title {
    font-size: 1.4em;
  }

  .description {
    font-size: 0.9em;
    text-indent: 20px;
  }

  .projects {
    width: 100%;
    border-left: 4px solid #000;
    padding: 15px;
  }

  img.project-image {
    max-width: 200px;
  }
}
