/* ============================================
   PORTFOLIO SECTION - Modern Minimal Design
   ============================================ */
.portfolio-section {
  background: #fafafa;
  color: #000000;
  padding: 80px 0;
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.portfolio-title {
  font-family: "Orbitron", "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #1a1a1a;
  text-transform: capitalize;
  letter-spacing: -0.02em;
}

.btn-view-all {
  padding: 10px 24px;
  background: transparent;
  color: #1a1a1a;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
  border: 1.5px solid #1a1a1a;
  display: inline-block;
}

.btn-view-all:hover {
  background: #1a1a1a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
}

.brand-card {
  width: 100%;
  aspect-ratio: 1;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  min-width: 0;
  box-sizing: border-box;
}

.brand-card:hover {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.brand-logo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  object-position: center;
  margin: auto;
  display: block;
  transition: transform 0.3s ease;
  filter: none;
}

.brand-card:hover .brand-logo img {
  transform: scale(1.08);
}

.brand-name {
  font-family: "Orbitron", "Space Grotesk", sans-serif;
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  font-weight: 600;
  color: #1a1a1a;
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .portfolio-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 992px) {
  .portfolio-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .portfolio-section {
    padding: 60px 0;
    overflow-x: hidden;
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 0 16px;
    box-sizing: border-box;
    width: 100%;
  }

  .portfolio-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
  }

  .brand-card {
    padding: 12px;
    border-radius: 12px;
  }

  .brand-logo img {
    max-width: 80%;
    max-height: 80%;
    object-position: center;
    margin: auto;
  }

  .brand-name {
    font-size: 0.625rem;
  }
}

@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }

  .brand-card {
    padding: 10px;
  }

  .brand-logo img {
    max-width: 75%;
    max-height: 75%;
    object-position: center;
    margin: auto;
  }
}