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

/* 🌍 BASE */
body {
  font-family: "Sour Gummy", sans-serif;
  background-color: #10141C;
  color: #fff;
  line-height: 1.6;
}

.container {
  padding-left: 80px;
  padding-right: 80px;
  margin: 0 auto;
  max-width: 1280px;
}

/* 🔝 TAB BAR */
.tab-bar {
  background-color: #E2B4EF;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.tab-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  padding: 1rem 0;
}

.logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: #10141C;
  font-weight: 500;
  padding: 8px 16px;
  transition: background 0.2s ease;
}

.connect-btn {
  border: 2px solid #10141C;
  border-radius: 20px;
}

/* 🍔 HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}

.hamburger span {
  background: #10141C;
  height: 3px;
  border-radius: 2px;
  width: 100%;
}

@media (max-width: 768px) {
  .tab-content {
    flex-direction: row;
    align-items: center;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: #E2B4EF;
    position: absolute;
    top: 80px;
    right: 0;
    width: 100%;
    padding: 20px;
    gap: 16px;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
  }
}

/* 🗂️ CATEGORY FILTER */
.project-filter {
  background-color: #10141C;
  position: sticky;
  top: 80px;
  z-index: 999;
  border-bottom: 2px solid #E2B4EF;
  padding: 20px 0;
}

.category-buttons {
  text-align: center;
}

.filter-btn {
  border: 2px solid #E2B4EF;
  color: #fff;
  background: transparent;
  border-radius: 30px;
  padding: 10px 20px;
  margin: 0 8px 12px;
  font-family: "Sour Gummy", sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background-color: #E2B4EF;
  color: #10141C;
}

/* 💼 PROJECTS SECTION */
.projects {
  padding: 60px 0;
  text-align: center;
}

.projects h2 {
  color: #E2B4EF;
  margin-bottom: 32px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Always 3 columns */
  gap: 32px;
  justify-content: space-between;
}

.project-card {
  background: #272727;
  border-radius: 12px;
  overflow: hidden;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.project-thumbnail {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 8px;
  background-color: #999; /* fallback color */
}

.project-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crop nicely */
  display: block;
}

/* 📱 RESPONSIVE */
@media (max-width: 1024px) {
  .container {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 600px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }

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

/* 👀 ANIMATIONS */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 cols on tablet */
  }
}

@media (max-width: 600px) {
  .project-grid {
    grid-template-columns: 1fr; /* 1 col on mobile */
  }
}

