body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-image: url("../images/Clouds.png");
  background-size: cover;
  background-position: left;
  background-attachment: fixed;
  min-width: 768px;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.8);
  padding: 2.5rem;
  z-index: 10;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-left: 2rem;
}

.icon-pic {
  width: 45px;
  height: 45px;
}

.nav-right {
  display: flex;
  gap: 4rem;
  padding-right: 7rem;
}

.nav-link {
  color: #fff;
  font-size: 1rem;
  margin-right: 1rem;
  text-decoration: none;
  padding: 10px;
  border-radius: 10px;
}

.nav-link:hover {
  background: rgba(24, 18, 18, 0.8);
}

.section {
  display: flex;
  justify-content: center;
  padding: 2rem;
  color: #fff;
  margin-top: 2rem;
}

.title-section {
  position: relative;
  height: 70vh;
  display: flex;
  justify-content: right;
  margin-top: 3rem;
  margin-right: 10rem;
  align-items: center;
}

.title-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 100px;
  margin-top: 15rem;
  padding: 0.75rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  max-width: 80%;
  min-width: 400px;
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-left: 1.5rem;
  object-fit: cover;
}

.title-text {
  text-align: center;
  padding-left: 1rem;
}

.title-text h1 {
  margin: 0;
  font-size: 3rem;
  color: #ffe8e8;
}

.title-text p {
  margin: 0;
  color: #a07d7d;
  font-size: 1rem;
}

.about-section,
.work-section,
.projects-section,
.contact-section {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* About box */

.about-box {
  display: flex;
  margin-top: 10rem;
  gap: 2rem;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 20px;
  padding: 2rem;
  width: 95%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #ffe8e8;
  box-sizing: border-box;
  height: auto;
}

.about-text {
  flex: 1;
}

.about-paragraph {
  line-height: 1.6;
  white-space: pre-wrap;
}

/* About box image carousel */

.about-image {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 520px;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  position: relative;
}

.about-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  transition: opacity 0.5s ease;
}

.hidden-image {
  display: none;
}

.current-image {
  display: block;
  height: calc(100% - 60px);
}

.about-buttons {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  width: 60%;
  gap: 15rem;
}

button.prev-btn,
button.next-btn {
  font-size: xx-large;
  background: rgba(40, 49, 102, 0.5);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  flex: 1;
  line-height: 1.6rem;
  padding-bottom: 10px;
}

button:hover {
  background: rgba(45, 38, 75, 0.5);
}

/* Projects Box */

.grid-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
}

.grid-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: rgba(42, 15, 59, 0.8);
  padding: 2rem;
  border-radius: 20px;
  color: #ffe8e8;
  align-items: center;
}

.project-box {
  display: flex;
  margin-top: 10rem;
  gap: 2rem;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 20px;
  padding: 2rem;
  width: 95%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #ffe8e8;
  box-sizing: border-box;
  height: auto;
}

.project-box-title {
  text-align: left;
  color: #ffe8e8;
}

.project-text {
  flex: 1;
}

.project-paragraph {
  line-height: 1.6;
  white-space: pre-wrap;
}

/* Project 1 */

.project1-video-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  border-radius: 10px;
  position: relative;
}

.project1-video {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Project 2 */

.project2-form-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 520px;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  position: relative;
}

/* ----- */

.work-box,
.contact-box {
  margin-top: 10rem;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  width: 95%;
  color: #ffe8e8;
  box-sizing: border-box;
  text-align: left;
}

/* Media Queries */

@media (max-width: 850px) {
  .about-box {
    flex-direction: column;
    text-align: center;
    height: 1040px;
  }

  .project-box {
    flex-direction: column;
    text-align: center;
  }

  .grid-item {
    grid-template-columns: 1fr;
  }

  .title-text h1 {
    font-size: 1.5rem;
  }

  .about-image {
    margin-top: 1rem;
  }

  .nav-left {
    padding-left: 0rem;
  }

  .nav-right {
    gap: 1rem;
    padding-right: 5rem;
  }
}
