/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: white;
  color: #333;
  line-height: 1.6;
}

/* Decorative Elements */
.decoration {
  position: absolute; 
  border-radius: 50%;
  z-index: -1;
}

.decoration-1 {
  width: 200px;
  height: 200px;
  background-color: rgba(255, 182, 193, 0.3); /* Light pink */
  top: 20%;
  left: 10%;
  animation: float 8s ease-in-out infinite;
}

.decoration-2 {
  width: 150px;
  height: 150px;
  background-color: rgba(144, 238, 144, 0.3); /* Light green */
  top: 30%;
  right: 15%;
  animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* Header Styles */
header {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;

  background-image: url('/assets/background.jpg'); 
    background-size: cover; 
    background-position: center; 
}

.header-content {
  z-index: 1;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.header-content:hover {
  transform: translateY(-5px);
}

.title {
  font-size: 4rem;
  margin-bottom: 1rem;
  letter-spacing: 5px;
  color: #333;
}

.name {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #555;
}

.semester {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #777;
}

.toc-button {
  background-color: white;
  border: 2px solid #ff9eb5; /* Pink */
  color: #333;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.toc-button:hover {
  background-color: #ff9eb5;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 158, 181, 0.4);
}

/* Table of Contents */
#table-of-contents {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
  padding: 1rem 0;
  transition: transform 0.3s ease;
  transform: translateY(-100%);
}

#table-of-contents.show {
  transform: translateY(0);
}

#table-of-contents ul {
  display: flex;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
}

#table-of-contents li {
  margin: 0 1rem;
}

#table-of-contents a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: all 0.3s ease;
}

#table-of-contents a:hover {
  background-color: #90ee90; /* Light green */
  color: white;
}

/* Project Sections */
.project {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid #eee;
}

.project-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.project-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, #ff9eb5, #90ee90);
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .project-content {
    flex-direction: row;
  }

  .media-gallery {
    flex: 1;
  }

  .project-info {
    flex: 1;
  }
}

/* Gallery */
.gallery-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-image {
  width: 100%;
  height: auto;
  display: none;
  object-fit: cover;
}

.gallery-image:first-child {
  display: block;
}

.gallery-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
}

.gallery-prev,
.gallery-next {
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.gallery-prev:hover,
.gallery-next:hover {
  background-color: white;
  transform: scale(1.1);
}

/* Project Info */
.project-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.description,
.materials {
  background-color: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.description h3,
.materials h3,
.notecard h3 {
  margin-bottom: 0.8rem;
  color: #555;
}

.materials ul {
  list-style-position: inside;
  margin-left: 1rem;
}

/* Notecard Style */
.notecard {
  background-color: #fffaf0; /* Cream color */
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  border-left: 5px solid #ff9eb5; /* Pink border */
  transition: transform 0.3s ease;
}

.notecard:hover {
  transform: translateY(-5px);
}

.notecard::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 20px 20px 0;
  border-color: transparent #ff9eb5 transparent transparent;
}

/* Conclusion Section */
.conclusion {
  padding: 5rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.conclusion h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.conclusion-card {
  max-width: 600px;
  margin: 0 auto;
  background-color: #f0fff0; /* Light mint */
  border-left: 5px solid #90ee90; /* Green border */
}

.conclusion-card::before {
  border-color: transparent #90ee90 transparent transparent;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background-color: #f9f9f9;
  margin-top: 2rem;
}

/* Process Button */
.process-btn {
  display: block;
  margin: 1rem auto;
  background-color: white;
  border: 2px solid #90ee90; /* Green */
  color: #333;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.process-btn:hover {
  background-color: #90ee90;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(144, 238, 144, 0.4);
}





/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1001;
  overflow: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: block;
  opacity: 1;
}

.modal-content {
  position: relative;
  background-color: #f9f9f9;
  margin: 5% auto;
  padding: 20px;
  width: 90%;
  max-width: 1000px;
  border-radius: 15px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 30px;
  font-weight: bold;
  color: #555;
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #ff9eb5;
}

/* Book Container */
.book-container {
  padding: 20px 0;
  perspective: 2000px;
}

.book {
  position: relative;
  width: 100%;
  height: 500px;
  transition: transform 0.5s;
}

.pages {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 7s cubic-bezier(0.645, 0.045, 0.355, 1);
  /* z-index: calc(5 - var(--currentPageIndex)); */
}

.page-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transition: transform .7s cubic-bezier(0.645, 0.045, 0.355, 1);
  transform-style: preserve-3d;
  /* opacity: 0.5; */
  opacity: 0; 

}

.page {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  /* opacity: 0.5; */
}

.page-content {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 30px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  backface-visibility: hidden;
}

.page-content h2 {
  margin-bottom: 20px;
  color: #333;
  font-size: 1.8rem;
}

.page-content img {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.page-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

/* Page turning effect */
.page-wrapper.flipped {
  transform: rotateY(-180deg);
  /* opacity: 0; */
}

.page-wrapper.flipped.page {
  box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.1);
}

/* Book Navigation */
.book-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  gap: 20px;
}

.book-nav-btn {
  background-color: white;
  border: 2px solid #ff9eb5; /* Pink */
  color: #333;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.book-nav-btn:hover {
  background-color: #ff9eb5;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(255, 158, 181, 0.4);
}

.book-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-counter {
  font-size: 0.9rem;
  color: #777;
}

/* Responsive adjustments for the book */
@media (max-width: 768px) {
  .book {
    height: 400px;
  }

  .page-content {
    padding: 20px;
  }

  .page-content h2 {
    font-size: 1.5rem;
  }

  .page-content img {
    max-height: 180px;
  }
}

@media (max-width: 480px) {
  .book {
    height: 350px;
  }

  .page-content {
    padding: 15px;
  }

  .book-nav {
    flex-direction: column;
    gap: 10px;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .title {
    font-size: 3rem;
  }

  .name {
    font-size: 1.5rem;
  }

  #table-of-contents ul {
    flex-direction: column;
    align-items: center;
  }

  #table-of-contents li {
    margin: 0.5rem 0;
  }

  iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}


