/* Portfolio Hero */
.portfolio-hero {
  padding: 6rem 0 4rem;
  text-align: center;
  background-color: #f8f9fa;
}

.portfolio-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.portfolio-hero .subtitle {
  font-size: 1.25rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Portfolio Stats */
.portfolio-stats {
  padding: 3rem 0;
  background-color: #fff;
  border-bottom: 1px solid #e9ecef;
}

.stats-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.overview-card {
  text-align: center;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.overview-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a72c8;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.overview-label {
  font-size: 0.95rem;
  color: #6c757d;
  font-weight: 500;
}

/* Portfolio Filters */
.portfolio-filters {
  padding: 1.5rem 0;
  background-color: #fff;

  z-index: 90;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-container {
  max-width: 1200px;
  width: 100%;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.filter-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 800px;
}

.filter-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.filter-tab {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-tab:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

.filter-tab.active {
  background-color: #2c3e50;
  border-color: #2c3e50;
  color: white;
}

.filter-tab.active:hover {
  background-color: #1e293b;
  border-color: #1e293b;
}

.filter-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  background-color: #f1f3f5;
  color: #495057;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.filter-tab:hover {
  background-color: #e9ecef;
}

.filter-tab.active {
  background-color: #1a72c8;
  color: white;
  border-color: #1a72c8;
}

/* Portfolio Grid */
.portfolio-grid-section {
  padding: 3rem 0 6rem;
  background-color: #f8f9fa;
  display: flex;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  max-width: 1200px;
  width: 100%;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

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

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    width: 80%;
    margin: 2rem auto 0;
    padding: 0;
  }

  .portfolio-company {
    margin: 0 auto;
    max-width: 100%;
  }
}

.portfolio-company {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.portfolio-company:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.company-logo-container {
  position: relative;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #ffffff;
  border-bottom: 1px solid #e9ecef;
}

.company-logo-container img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.company-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #28a745;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.company-status.exit {
  background: #6f42c1;
}

.company-status.inactive {
  background: #6c757d;
  color: #fff;
}

.company-status.unicorn,
.company-status.soonicorn,
.company-status.funds,
.company-status.public {
  background: #28a745;
  color: white;
  white-space: nowrap;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
}

/* Specific colors for each status type */
.company-status.unicorn {
  background: #00274c; /* Purple */
}

.company-status.soonicorn {
  background: #014789; /* Blue */
}

.company-status.funds {
  background: #ff9800; /* Orange */
}

.company-status.public {
  background: #6f42c1; /* Green */
}

.company-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.company-name {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
}

.company-description {
  color: #495057;
  margin-bottom: 1.25rem;
  line-height: 1.6;
  flex-grow: 1;
}

.company-metrics {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  padding: 1rem 0;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
}

.company-metric {
  text-align: center;
  flex: 1;
}

.company-metric-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
}

.company-metric-label {
  font-size: 0.8rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.company-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.company-tag {
  background: #f1f3f5;
  color: #495057;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: 500;
}

.portfolio-company-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  /* border-top: 1px solid #e9ecef; */
  width: 100%;
}

.portfolio-company-link {
  color: #2c3e50;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  background-color: #f8f9fa;
  border: 1px solid #e2e8f0;
  min-width: 100px;
  text-align: center;
}

.portfolio-company-link:hover {
  background-color: #edf2f7;
  color: #2c3e50;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.portfolio-company-link.primary {
  background-color: #2c3e50;
  color: white;
  border-color: #2c3e50;
}

.portfolio-company-link.primary:hover {
  background-color: #1a202c;
  border-color: #1a202c;
}

.portfolio-company-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.portfolio-company-link:hover svg {
  transform: translateX(2px);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .stats-overview {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1200px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
  }
}

@media (max-width: 768px) {
  .portfolio-hero {
    padding: 5rem 0 3rem;
  }

  .portfolio-hero h1 {
    font-size: 2.2rem;
  }

  .portfolio-hero .subtitle {
    font-size: 1.1rem;
  }

  .stats-overview {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .filter-tabs {
    padding: 0 1rem;
  }
}
