/*
 * Styles for the App Project Detail Page
 */

/* Project Hero Section */
.project-hero {
  padding: 10rem 0 6rem 0;
  background: var(--bg-secondary);
  overflow: hidden;
}

.project-hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.project-hero-text {
  flex: 1;
  max-width: 600px;
}

.project-category {
  display: inline-block;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-hero-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.project-hero-text .subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.project-hero-image {
  flex-shrink: 0;
  max-width: 350px;
  border-radius: 24px;
  overflow: hidden; /* Hide the scaled parts of the image */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.project-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.15); /* Zoom in by 15% to hide edges */
}

/* Tech Stack Section */
.tech-stack {
  background: var(--bg-main);
  padding: 4rem 0;
}

.tech-tags-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Gallery Section */
.gallery {
  background: var(--bg-secondary);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 9 / 16; /* Prevents layout shift while loading */
  background-color: var(--bg-main); /* Placeholder color */
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Results Section */
.results {
  background: var(--bg-main);
}
.results-card {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
  max-width: 700px;
  margin: 3rem auto 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.results-card .impact-number {
  font-size: 5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.results-card h3 {
  font-size: 1.75rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}

/* Final CTA Section */
.project-cta {
    text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
  .project-hero-content {
    flex-direction: column;
    text-align: center;
  }
  .project-hero-text h1 {
    font-size: 2.5rem;
  }
}