/* Projects Page Styles */

body {
  background-color: var(--background-light);
  color: var(--text-dark);
}

/* Header */
header {
  padding: var(--spacing-lg) 0;
}

/* Hero Section */
.hero-section {
  padding: var(--spacing-2xl) 0 var(--spacing-3xl);
}

.hero-image {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--spacing-2xl);
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 2.625rem;
  color: var(--text-dark);
  margin-bottom: var(--spacing-lg);
}

.hero-content p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--spacing-lg);
}

.hashtags {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.hashtag {
  color: var(--accent-green);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Gallery Section - Masonry Layout */
.gallery-section {
  padding: var(--spacing-3xl) 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 15px;
  gap: var(--spacing-md);
}

.gallery-item {
  background-color: #c8e6c9;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Masonry Grid Positioning */
.gallery-item:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / span 25;
}

.gallery-item:nth-child(2) {
  grid-column: 1;
  grid-row: 26 / span 20;
}

.gallery-item:nth-child(3) {
  grid-column: 2;
  grid-row: 1 / span 12;
}

.gallery-item:nth-child(4) {
  grid-column: 2;
  grid-row: 13 / span 12;
}

.gallery-item:nth-child(5) {
  grid-column: 2;
  grid-row: 25 / span 21;
}

.gallery-item:nth-child(6) {
  grid-column: 3;
  grid-row: 1 / span 25;
}

.gallery-item:nth-child(7) {
  grid-column: 3;
  grid-row: 26 / span 20;
}

/* Portfolio Section */
.portfolio-section {
  padding: var(--spacing-3xl) 0;
  text-align: center;
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 2px;
  margin-bottom: var(--spacing-sm);
}

.portfolio-section h2 {
  font-size: 2.25rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
}

.portfolio-section > p {
  color: var(--text-light);
  margin-bottom: var(--spacing-3xl);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  text-align: left;
}

.project-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal),
    box-shadow var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.project-image {
  width: 100%;
  height: 200px;
  background-color: #c8e6c9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-content {
  padding: var(--spacing-xl);
}

.project-content h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: var(--spacing-md);
}

.project-content p {
  color: var(--text-light);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.tag {
  color: var(--accent-green);
  font-size: 0.75rem;
  font-weight: 500;
}

.view-project {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap var(--transition-normal);
}

.view-project:hover {
  gap: 10px;
}

/* Footer */
.footer {
  padding: var(--spacing-3xl) 0 var(--spacing-lg);
  border-top: 1px solid rgba(61, 139, 84, 0.2);
  margin-top: var(--spacing-3xl);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-3xl);
  margin-bottom: var(--spacing-2xl);
}

.footer-brand p {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-top: var(--spacing-md);
}

.footer-links h4 {
  font-size: 1rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-dark);
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-links ul li a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-normal);
}

.footer-links ul li a:hover {
  color: var(--accent-green);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(61, 139, 84, 0.2);
  font-size: 0.8125rem;
  color: var(--text-light);
}

.footer-bottom-links {
  display: flex;
  gap: var(--spacing-xl);
}

.footer-bottom-links a {
  color: var(--text-light);
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item:nth-child(8) {
    grid-column: span 1;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    gap: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 0.75rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5),
  .gallery-item:nth-child(6),
  .gallery-item:nth-child(7) {
    grid-row: auto;
    grid-column: auto;
  }

  .gallery-item {
    height: 250px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
}
