/* General styles */
main {
  padding: 2.5vw;
}

/* Header styles */
.project-header {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.project-header h1::after,
.project-overview::after,
.tech-icons-wrapper::after {
  content: "";
  display: block;
  width: 4rem;
  height: 3px;
  margin: 0.5rem auto;
}

.project-header h1::after {
  background-color: var(--primary-color);
}

.project-overview::after ,
.tech-icons-wrapper::after{
  background-color: var(--secondary-color);
}

.project-tagline {
  color: var(--secondary-color);
  font-size: 1.2rem;
  margin-top: 0.5rem;
}

.project-header-img {
  max-width: 100%;
  margin: 0 auto;
}

.project-header-icons {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

.project-header-icon {
  width: 64px;
  height: 64px;
  margin-bottom: -2rem;
  transition: transform 0.3s;
}

.project-header-icon:hover {
  transform: scale(1.2);
}

video {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* Overview section */
.project-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.project-description {
  flex: 1;
  font-size: 1.1rem;
  color: var(--text-color);
  line-height: 1.8;
}

/* Tech Stack Section */
.tech-icons-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem auto 5rem;
  text-align: center;
}

.tech-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.tech-icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--background-color-alt);
  padding: 1rem;
  border-radius: 12px;
  width: 120px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, font-weight 0.3s;
}

.tech-icon-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
  font-weight: bold;
}

.tech-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 0.5rem;
}

.tech-icon-wrapper p {
  color: var(--text-color);
  margin: 0;
  font-size: 0.9rem;
}

/* Tab navigation */
.tab-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin-bottom: 2rem;
  gap: 1rem
}

.tab-link {
  background-color: var(--background-color-alt);
  color: var(--text-color);
  padding: 10px 20px;
  margin: 0 5px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tab-link:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.tab-link.active {
  background-color: var(--secondary-color);
  color: #fff;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
  display: block;
}

/* Section titles and content */
.project-section-title {
  margin: 3rem 0 0;
  color: var(--primary-color);
}

.project-showcase-section {
  margin-bottom: 3rem;
  line-height: 1.5;
}

.project-showcase-video-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 2rem 0;
}

.project-showcase-video-wrapper video {
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}


.project-img {
  display: block;
  margin: 0 auto;
  text-align: center;
  max-width: 800px;
  object-fit: contain;
}

/* Screenshots section */
.project-screenshots {
  margin: 2rem 0;
}

.screenshot-gallery {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.screenshot-gallery img {
  width: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.screenshot-gallery img:hover {
  transform: scale(1.05);
}

/* Code section */
.project-code-section {
  margin: 2rem 0;
}

.code-snippet-wrapper {
  max-height: 80vh;
  overflow-y: auto;
}

.code-snippet {
  padding: 1rem;
  border-radius: 10px;
}

.snippet-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

pre {
  padding: 1rem;
  border-radius: 10px;
  max-width: 100%;
  overflow-x: scroll;
  font-family: 'Ubuntu Mono', monospace;
}

/* Media queries for responsiveness */
@media (max-width: 1200px) {
  .project-overview {
    flex-direction: column;
  }

  .project-description {
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .screenshot-gallery img {
    width: 100%;
  }

  pre {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .project-header h1 {
    font-size: 2rem;
  }

  .project-tagline {
    font-size: 1rem;
  }

  .action-button {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
}
