@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Utility classes for spacing, text, etc. (simplified Tailwind-like) */
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.pt-32 {
  padding-top: 8rem;
} /* To account for fixed header */
.pb-16 {
  padding-bottom: 4rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-4 {
  margin-top: 1rem;
}
.space-x-4 > * + * {
  margin-left: 1rem;
}
.space-x-6 > * + * {
  margin-left: 1.5rem;
}
.space-y-4 > * + * {
  margin-top: 1rem;
}

.text-center {
  text-align: center;
}
.text-sm {
  font-size: 0.875rem; /* 14px */
}
.text-lg {
  font-size: 1.125rem; /* 18px */
}
.text-xl {
  font-size: 1.25rem; /* 20px */
}
.text-2xl {
  font-size: 1.5rem; /* 24px */
}
.text-5xl {
  font-size: 3rem; /* 48px */
}
.text-6xl {
  font-size: 3.75rem; /* 60px */
}

.font-bold {
  font-weight: 700;
}
.font-semibold {
  font-weight: 600;
}

.max-w-3xl {
  max-width: 48rem; /* 768px */
}

/* Colors */
.bg-background {
  background-color: var(--background);
}
.bg-card {
  background-color: var(--card);
}
.bg-secondary {
  background-color: var(--secondary);
}
.text-foreground {
  color: var(--foreground);
}
.text-primary {
  color: var(--primary);
}
.text-secondary-foreground {
  color: var(--secondary-foreground);
}
.text-muted-foreground {
  color: var(--muted-foreground);
}
.text-accent {
  color: var(--accent);
}

/* Navbar */
.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1rem 0 1rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.navbar-menu-button {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--foreground);
  cursor: pointer;
}

/* Hero Section */
.portfolio-hero-section {
  padding: 8rem 0 4rem;
  background-color: var(--official-green);
  color: var(--foreground);
}
.portfolio-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}
.portfolio-hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  animation: fade-in-up 0.8s ease-out forwards;
}
@media (min-width: 768px) {
  .portfolio-hero-title {
    font-size: 3.75rem;
  }
}
.portfolio-hero-subtitle {
  font-size: 1.25rem;
  color: var(--background);
  max-width: 48rem;
  margin: 0 auto;
  animation: fade-in 0.6s ease-out forwards;
  opacity: 0;
}

/* Filter Section */
.portfolio-filter-section {
  padding: 2rem 0 0 0;
  position: sticky;
  top: 80px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  z-index: 40;
}
.portfolio-filter-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.portfolio-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
}

/* Filter Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  font-weight: 400;
  cursor: pointer;
  font-size: 1rem;
  border: 1px solid var(--official-brown);
}

/* selected button */
.button.default {
  background-color: var(--official-brown);
  color: var(--background);
}
.button.default:hover {
  background-color: var(--foreground);
}

/* unselected buttons */
.button.outline {
  background-color: transparent;
  color: var(--official-brown);
  outline-style: none;
}
/* .button.outline:hover {
  background-color: var(--card);
  border-color: var(--muted-foreground);
  color: var(--official-green);
} */

/* Portfolio Grid */
.portfolio-grid-section {
  padding: 1rem 0 3rem 0;
}
.portfolio-grid-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* Simple active button style */
.filter-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover {
  background-color: #f3f3f3;
}
.filter-btn.active {
  background-color: var(--official-brown);
  color: #fff;
  border-color: var(--muted-foreground);
}

.portfolio-item {
  transition: all 0.3s ease;
}
.portfolio-item img {
  width: 100%;
  border-radius: 0.75rem;
}

/* Project Card */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  background-color: var(--card);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.5s;
  transition: transform 0.6s;
}

.portfolio-item {
  opacity: 0;
  transform: translateY(40px);
  animation: portfolioFadeUp 0.9s ease-out forwards;
  border-radius: 1rem;
  background-color: white;
  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease;
}

/* Stagger animation automatically */
.portfolio-item {
  animation-delay: calc(var(--i) * 0.15s);
}

@keyframes portfolioFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.portfolio-item:hover {
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
  transform: translateY(-12px);
  box-shadow: 0 25px 45px -10px rgba(0, 0, 0, 0.25);
}
.portfolio-item-image-wrapper {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.portfolio-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--foreground),
    var(--foreground),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s;
}
.portfolio-item:hover .portfolio-item-overlay {
  opacity: 1;
}
.portfolio-item-content-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.portfolio-item:hover .portfolio-item-content-overlay {
  opacity: 1;
  transform: translateY(0);
}
.portfolio-item-content-overlay .title {
  color: var(--background);
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.portfolio-item-content-overlay .description {
  color: #fff;
  font-size: 1rem;
}
.portfolio-item-content-initial {
  padding: 1.5rem;
  transition: opacity 0.3s;
}
.portfolio-item:hover .portfolio-item-content-initial {
  opacity: 0;
}
.portfolio-item-category {
  color: var(--official-green);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.portfolio-item-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin: 0.5rem 0;
}
.portfolio-item-description {
  color: var(--muted-foreground);
  font-size: 1rem;
}

/* No Projects Message */
.portfolio-no-projects-message {
  text-align: center;
  padding: 5rem 0;
  display: none;
  color: var(--muted-foreground);
  font-size: 1.125rem;
}
.portfolio-empty-state {
  max-width: 720px;
  margin: 3rem auto 4rem;
  padding: 3rem 1.5rem;
  text-align: center;
  background: #fff;
  color: var(--muted-foreground);
  border: 1px dashed var(--muted-foreground);
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}
.portfolio-empty-state p {
  margin: 0.35rem 0;
}

/* Footer */
.portfolio-footer {
  background: var(--card);
  color: var(--foreground);
  padding: 2.5rem 0;
}
.portfolio-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}
.portfolio-footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.portfolio-footer-links a {
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.2s;
}
.portfolio-footer-links a:hover {
  color: var(--official-green);
}

/* Animations */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.portfolio-hero-title {
  animation: fade-in-up 0.8s ease-out forwards;
}
.portfolio-hero-subtitle {
  animation: fade-in 0.6s ease-out forwards;
  opacity: 0;
}

@media (max-width: 768px) {
  .portfolio-filter-buttons {
    font-size: 0.8rem;
  }
}

@media (max-width: 425px) {
  .portfolio-filter-buttons {
    font-size: 0.8rem;
  }
  .portfolio-item-category {
    font-size: 1.1rem;
  }

  .portfolio-item-description {
    font-size: 0.9rem;
  }
}
