/* ==========================================================================
   SAR TECH SOFT — World-Class Technology Stack Component
   Rich aesthetics: Brand SVGs, Glassmorphism, Micro-interactions, Filter Tabs
   ========================================================================== */

.tech-stack-section {
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.06) 0%, transparent 65%),
              radial-gradient(circle at 85% 60%, rgba(124, 58, 237, 0.04) 0%, transparent 50%),
              #fafcff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

/* Background subtle tech grid */
.tech-bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Filter Navigation Bar */
.tech-filter-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  position: relative;
  z-index: 2;
}

.tech-filter-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tech-filter-bar::-webkit-scrollbar {
  display: none;
}

.tech-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.tech-filter-btn:hover {
  color: var(--text-main);
  background: var(--bg-subtle);
}

.tech-filter-btn.active {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.tech-filter-btn .tech-count {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.08);
  color: var(--text-muted);
}

.tech-filter-btn.active .tech-count {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* 3-Column Technology Grid */
.tech-grid-modern {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}

/* Technology Card */
.tech-card-modern {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.tech-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--card-accent, #2563eb), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tech-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -12px rgba(15, 23, 42, 0.12);
  border-color: rgba(37, 99, 235, 0.3);
}

.tech-card-modern:hover::before {
  opacity: 1;
}

/* Card Header */
.tech-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.tech-category-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
}

.tech-category-icon.frontend {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(37, 99, 235, 0.12));
  color: #0284c7;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.tech-category-icon.backend {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.12));
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.tech-category-icon.mobile {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(236, 72, 153, 0.12));
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.tech-category-icon.data {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(124, 58, 237, 0.12));
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.tech-category-icon.cloud {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(239, 68, 68, 0.12));
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.tech-category-icon.ai {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(6, 182, 212, 0.18));
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.3);
  box-shadow: 0 4px 16px -2px rgba(124, 58, 237, 0.25);
}

.tech-header-info {
  flex: 1;
}

.tech-header-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tech-header-info p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.tech-badge-count {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--color-blue);
  background: rgba(37, 99, 235, 0.08);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Technology Items Grid inside each card */
.tech-items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* Individual Tech Item */
.tech-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg-subtle);
  border: 1px solid rgba(226, 232, 240, 0.75);
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.tech-item-row:hover {
  background: #ffffff;
  border-color: var(--hover-color, var(--color-blue));
  transform: translateY(-2px);
  box-shadow: 0 6px 14px -4px rgba(15, 23, 42, 0.1);
}

.tech-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease;
}

.tech-item-row:hover .tech-icon-box {
  transform: scale(1.08);
}

.tech-icon {
  width: 17px;
  height: 17px;
  display: block;
}

.tech-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tech-name {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.tech-sub {
  font-size: 0.6875rem;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  margin-top: 1px;
}

/* Enterprise Standards Guarantee Strip */
.tech-guarantee-strip {
  margin-top: 40px;
  padding: 20px 28px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}

.tech-guarantee-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tech-guarantee-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.tech-guarantee-item:nth-child(2) .tech-guarantee-icon {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
}

.tech-guarantee-item:nth-child(3) .tech-guarantee-icon {
  background: rgba(245, 158, 11, 0.08);
  color: #d97706;
}

.tech-guarantee-item:nth-child(4) .tech-guarantee-icon {
  background: rgba(124, 58, 237, 0.08);
  color: #7c3aed;
}

.tech-guarantee-title {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.tech-guarantee-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 2px;
}

/* Filter Dimming State */
.tech-card-modern.filtered-out {
  display: none !important;
}

/* Responsive Media Queries */
@media (max-width: 1100px) {
  .tech-grid-modern {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-guarantee-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .tech-filter-bar {
    justify-content: flex-start;
    padding: 4px;
  }

  .tech-filter-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .tech-grid-modern {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tech-card-modern {
    padding: 18px;
  }

  .tech-items-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tech-guarantee-strip {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
    margin-top: 24px;
  }
}
