/* Project style */
#projects {
  flex-direction: column;
  align-items: center;
  position: relative;
  min-height: 100vh;
  box-sizing: border-box;
  padding: 80px 20px;
  overflow: hidden;
  background: linear-gradient(to bottom,#030a12 0%,#0b1628 30%,#18323a 50%,#6b5360 72%,#d47b70 88%,#f2a06b 100%);
}

#projects > h1 {
  margin: 0 0 50px 0;
  position: relative;
  font-size: 3.5rem;
  color: #f5bd72;
  text-align: center;
  text-shadow: 0 0 10px rgba(245,189,114,0.5),0 0 25px rgba(245,189,114,0.25);
}

#projects > h1::before {
  content: "✦";
  position: absolute;
  left: -35px;
  top: 5px;
  font-size: 1.2rem;
  color: #f5bd72;
  text-shadow: 0 0 10px rgba(245,189,114,0.8);
}
#projects > h1::after {
  content: "✦";
  position: absolute;
  right: -35px;
  left: auto;
  bottom: auto;
  top: 5px;
  width: auto;
  height: auto;
  background: none;
  box-shadow: none;
  transform: none;
  font-size: 1.2rem;
  color: #f5bd72;
  text-shadow: 0 0 10px rgba(245,189,114,0.8);
}

.project-info h2 {
  position: relative;
  color: #f5bd72;
  text-shadow: 0 0 10px rgba(245,189,114,0.5),0 0 20px rgba(245,189,114,0.25);
}
.project-info h2::before {
  content: "✦";
  margin-right: 10px;
  color: #f5bd72;
  text-shadow: 0 0 10px rgba(245,189,114,0.8);
}
.project-info h2::after {
  content: "✦";
  margin-left: 10px;
  color: #f5bd72;
  text-shadow: 0 0 10px rgba(245,189,114,0.8);
}

.project-info p {
  color: #dce7e3;
  text-shadow: 0 0 6px rgba(220,231,227,0.2);
}

.project-info p:nth-of-type(2) {
  color: #f5bd72;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(245,189,114,0.3);
}

.project-info .technologies-title {
  color: #f5bd72;
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 5px;
  text-shadow: 0 0 8px rgba(245,189,114,0.3);
}

.project-info a {
  display: inline-block;
  padding: 10px 18px;
  margin-right: 10px;
  margin-top: 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
}
.project-info .live-demo {
  color: #0b1628;
  background: #f5bd72;
  border: 1px solid #f5bd72;
  box-shadow: 0 0 8px rgba(245,189,114,0.3);
}
.project-info .live-demo:hover {
  background: #ffd58f;
  box-shadow: 0 0 15px rgba(245,189,114,0.7);
  transform: translateY(-2px);
}
.project-info .more-info {
  color: #dce7e3;
  background: rgba(11,22,40,0.6);
  border: 1px solid rgba(245,189,114,0.5);
}
.project-info .more-info:hover {
  color: #f5bd72;
  border-color: #f5bd72;
  box-shadow: 0 0 12px rgba(245,189,114,0.4);
  transform: translateY(-2px);
}

/* Project containers */
.projects-container-whole {
  width: 90vw;
  max-width: 1200px;
}
.project-container {
  width: 100%;
  margin-bottom: 100px;
}
.project-container:last-child {
  margin-bottom: 0;
}

.project-details {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
}

.project-info {
  width: 35vw;
  background: rgba(11, 22, 40, 0.45);
  padding: 25px 35px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(5px);
}
.project-info h2 {
  color: #f5bd72;
}
.project-info p {
  color: #dce7e3;
}
.project-image {
  width: 50vw;
  aspect-ratio: 997 / 499;
  background: rgba(11,22,40,0.45);
  border: 1px solid rgba(245,189,114,0.5);
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(245,189,114,0.15);
  overflow: hidden;
}

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

/* Project components */
#projects .stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
#projects .star {
  position: absolute;
  border-radius: 50%;
  background: white;
  animation: twinkle 3s infinite ease-in-out;
}
#projects > h1,
#projects .projects-container-whole {
  position: relative;
  z-index: 2;
}

.project-cloud {
  position: absolute;
  width: 300px;
  height: 35px;
  border-radius: 30px;
  background: rgba(255,195,185,1);
  filter: blur(2px);
  z-index: 1;
  pointer-events: none;
}
.project-cloud::before {
  content: "";
  position: absolute;
  width: 80px;
  height: 60px;
  left: 35px;
  bottom: 0;
  border-radius: 50%;
  background: inherit;
  box-shadow: 55px -15px 0 5px rgba(255,195,185,1),110px 0 0 15px rgba(255,195,185,1),175px -10px 0 5px rgba(255,195,185,1);
}
.project-cloud::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 90px;
  left: 110px;
  bottom: 0;
  border-radius: 50%;
  background: inherit;
}
.project-cloud-one {
  width: 320px;
  top: 35%;
  left: -350px;
  animation: projectCloudMove 45s linear infinite;
}
.project-cloud-two {
  width: 400px;
  top: 48%;
  left: -450px;
  animation: projectCloudMove 60s linear infinite;
}
.project-cloud-three {
  width: 260px;
  top: 60%;
  left: -300px;
  animation: projectCloudMove 50s linear infinite;
}
@keyframes projectCloudMove {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(100vw + 600px));
  }
}

/* Mountains */
#projects .mountains {
  position: absolute;
  bottom: 0vh;
  left: 0;
  width: 100%;
  height: 30vh;
  z-index: 1;
  pointer-events: none;
}
#projects .mountains::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: -10%;
  width: 65%;
  height: 100%;
  background: linear-gradient(to bottom,#3a3548 0%,#172638 35%,#0a1725 70%,#030a12 100%);
  border-radius: 100% 300% 0 0;
}
#projects .mountains::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: -15%;
  width: 75%;
  height: 80%;
  background: linear-gradient(to bottom,#403447 0%,#172638 35%,#0a1725 70%,#030a12 100%);
  border-radius: 300% 100% 0 0;
}

/* Shooting Stars */
.shooting-star {
  position: absolute;
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg,#fff1a8,#bde7ff,#e7c6ff,#fff1a8);
  background-size: 200% 100%;
  animation: shoot 3s infinite ease-in;
  z-index: 1;
  pointer-events: none;
}
@keyframes shoot {
  0% {
    transform: translateX(0) translateY(0) rotate(15deg);
    opacity: 1;
  }
  100% {
    transform: translateX(120vw) translateY(0) rotate(15deg);
    opacity: 0;
  }
}