@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

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

body {
  font-family: "Roboto", sans-serif;
  background-color: #111;
  color: white;
}

.hero {
  position: relative;
  width: 100%;
  height: 80vh;
  background: url("../../assets/img/MatchingGame_1.png") center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 2rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to top right, rgb(0, 0, 0), transparent);
  clip-path: polygon(0 100%, 0 0, 100% 100%);
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 500px;
  padding: 1rem;
}

.hero-text h1 {
  font-size: 3rem;
  color: #25bec9;
}

.hero-text p {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #f0f0f0;
}

.home-button {
  position: absolute;
  top: 1rem;
  left: 2.1rem;
  background-color: transparent;
  color: white;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  z-index: 3;
  transition: background-color 0.3s ease;
}

.home-button:hover {
  background-color: #0aa3b8;
}

/*Process Section*/

.process-section {
  padding: 3rem 1rem;
  background: linear-gradient(to bottom, #121212 0%, #1e1e1e 100%);
}

.process-wrapper {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

.timeline {
  position: relative;
  flex: 1 1 50%;
  max-width: 50%;
  padding-left: 2.5rem;
}

.timeline-entry {
  position: relative;
}

.text-content {
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.text-content h3 {
  font-size: 1.4rem;
  color: white;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

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

.process-image {
  flex: 1 1 50%;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.process-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.text-content .bootstrap-project-icons {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.text-content .bootstrap-project-icons svg {
  display: block;
  height: 50px;
  width: auto;
}

/*Gallery Section*/

.photo-gallery {
  background: linear-gradient(to bottom, #1e1e1e 0%, #3a3a3a 100%);
  color: white;
  padding: 3rem 1rem;
  font-family: "Poppins", sans-serif;
  text-align: center;
  overflow: hidden;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0rem;
  width: 100%;
  margin: 0;
}

.gallery-item img {
  width: 95%;
  height: 95%;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.carousel-dots {
  margin-top: 1.5rem;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  background-color: #555;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background-color: #f26b50;
}

/*Footer*/
.custom-footer {
  background: linear-gradient(90deg, #0f0f0f, #1a1a1a);
  color: white;
  padding: 2rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #444;
  padding-bottom: 1.5rem;
}

.footer-name img {
  width: 60px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-nav a {
  text-decoration: none;
  color: #ccc;
  font-weight: 300;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #f26b50;
}

.cv-button {
  width: fit-content;
  padding: 0.5rem 2rem;
  background-color: #f26b50;
  color: white;
  border: 2px solid #f26b50;
  border-radius: 30px;
  font-size: 1.2em;
  text-decoration: none;
}

.cv-button:hover {
  background-color: transparent;
  box-shadow: #f26b50 0px 0px 10px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #aaa;
}

.footer-bottom a {
  color: #aaa;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #f26b50;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    align-items: start;
    justify-content: start;
    height: auto;
    text-align: start;
    padding: 6rem 1.5rem 1rem 1.5rem;
  }

  .hero::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top right, rgb(0, 0, 0), transparent);
    clip-path: polygon(0 100%, 0 0, 100% 100%);
    z-index: 1;
  }

  .hero-text {
    width: 60%;
    padding: 1rem 0;
  }

  .hero-text h1 {
    color: #06c0ee;
  }

  .home-button {
    top: 1rem;
    left: 1.2rem;
    padding: 0.5rem;
  }

  .process-section {
    padding: 2rem 1.5rem;
  }

  .process-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .timeline,
  .process-image {
    max-width: 100%;
    padding: 0;
  }

  .photo-gallery {
    padding: 2rem 1.5rem;
  }

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

  .gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 0;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .text-content h3 {
    font-size: 1.2rem;
  }

  .text-content p {
    font-size: 0.95rem;
  }

  .custom-footer {
    padding: 1rem;
  }

  .cv-button {
    width: 100%;
    text-align: center;
  }
}
