.tab-section {
  padding-top: var(--spacing-xl);
}

.tab-nav {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: var(--spacing-sm);
}

[data-theme="light"] .tab-nav {
  border-color: var(--border-color);
}

.tab-btn {
  padding: var(--spacing-sm) var(--spacing-lg);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.125rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

[data-theme="light"] .tab-btn {
  color: var(--text-secondary);
}

.tab-btn:hover {
  color: white;
}

[data-theme="light"] .tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.tab-btn.active {
  color: white;
}

[data-theme="light"] .tab-btn.active {
  color: var(--text-primary);
}

.tab-btn.active::after {
  width: 100%;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Stats Row ===== */
.stats-section {
  padding: var(--spacing-xl) 0 var(--spacing-2xl);
  text-align: center;
}

.stats-section h2 {
  font-size: 2rem;
  color: white;
  margin-bottom: var(--spacing-xl);
}

[data-theme="light"] .stats-section h2 {
  color: var(--text-primary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--spacing-2xl);
}

.stat-card {
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

[data-theme="light"] .stat-card {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--border-color);
}

.stat-card:hover {
  border-color: rgba(255, 159, 28, 0.2);
  transform: translateY(-4px);
}

[data-theme="light"] .stat-card:hover {
  border-color: var(--primary-color);
}

.stat-value {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-xs);
}

.stat-unit {
  font-size: 1.25rem;
}

.stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
}

[data-theme="light"] .stat-label {
  color: var(--text-secondary);
}

/* ===== Core Tech List ===== */
.tech-list-container {
  margin-bottom: var(--spacing-2xl);
}

.tech-list {
  padding: var(--spacing-xl) 0;
}

.tech-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.tech-left {
  flex-direction: row;
}

.tech-right {
  flex-direction: row-reverse;
}

.tech-image-wrapper {
  flex: 1;
  max-width: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.tech-image-wrapper img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.tech-content {
  flex: 1;
  max-width: 500px;
}

.tech-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
}

.tech-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.tech-content h3 {
  font-size: 1.5rem;
  color: white;
  margin-bottom: var(--spacing-sm);
}

[data-theme="light"] .tech-content h3 {
  color: var(--text-primary);
}

.tech-content p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

[data-theme="light"] .tech-content p {
  color: var(--text-secondary);
}

/* ===== Patent Wall ===== */
.patent-section {
  padding: var(--spacing-2xl) 0;
  position: relative;
}

.patent-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.patent-header h2 {
  font-size: 2.25rem;
  color: white;
  margin-bottom: var(--spacing-sm);
  position: relative;
  display: inline-block;
}

[data-theme="light"] .patent-header h2 {
  color: var(--text-primary);
}

.patent-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  margin: var(--spacing-sm) auto 0;
  border-radius: 2px;
}

.patent-header p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

[data-theme="light"] .patent-header p {
  color: var(--text-secondary);
}

.patent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  max-width: 1100px;
  margin: 0 auto;
}

.patent-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
}

[data-theme="light"] .patent-card {
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--border-color);
}

.patent-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 159, 28, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .patent-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 20px 60px rgba(255, 159, 28, 0.1);
}

.patent-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.patent-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.patent-card:hover .patent-image img {
  transform: scale(1.08);
}

.patent-seal {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-color), #e68a00);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 12px rgba(255, 159, 28, 0.4);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.patent-card:hover .patent-seal {
  opacity: 1;
  transform: scale(1);
}

.patent-seal svg {
  width: 22px;
  height: 22px;
}

.patent-info {
  padding: var(--spacing-md);
}

.patent-number {
  font-size: 0.75rem;
  color: var(--primary-color);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-xs);
  font-family: 'Courier New', monospace;
}

.patent-name {
  font-size: 0.9rem;
  color: white;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

[data-theme="light"] .patent-name {
  color: var(--text-primary);
}

/* ===== University Collaboration ===== */
.collab-section {
  padding: var(--spacing-2xl) 0;
  position: relative;
}

.collab-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 159, 28, 0.3), transparent);
}

.collab-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.collab-header h2 {
  font-size: 2.25rem;
  color: white;
  margin-bottom: var(--spacing-sm);
}

[data-theme="light"] .collab-header h2 {
  color: var(--text-primary);
}

.collab-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
  margin: var(--spacing-sm) auto 0;
  border-radius: 2px;
}

.collab-header p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

[data-theme="light"] .collab-header p {
  color: var(--text-secondary);
}

.collab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  max-width: 1100px;
  margin: 0 auto;
}

.collab-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s ease;
}

[data-theme="light"] .collab-card {
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--border-color);
}

.collab-card:hover {
  transform: translateY(-6px);
  border-color: rgba(46, 196, 182, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .collab-card:hover {
  border-color: var(--secondary-color);
}

.collab-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
}

.collab-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.collab-card:hover .collab-image img {
  transform: scale(1.05);
}

.collab-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.9) 0%, transparent 100%);
}

.collab-overlay h3 {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.collab-overlay p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin: 0;
}

/* ===== Machines Section ===== */
.machines-intro {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.machines-intro h2 {
  font-size: 2rem;
  color: white;
  margin-bottom: var(--spacing-sm);
}

[data-theme="light"] .machines-intro h2 {
  color: var(--text-primary);
}

.machines-intro p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 700px;
  margin: 0 auto;
}

[data-theme="light"] .machines-intro p {
  color: var(--text-secondary);
}

.machines-categories {
  margin-bottom: var(--spacing-xl);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: center;
}

.category-tab {
  padding: var(--spacing-xs) var(--spacing-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

[data-theme="light"] .category-tab {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--border-color);
  color: var(--text-secondary);
}

.category-tab:hover {
  background: rgba(255, 159, 28, 0.1);
  border-color: rgba(255, 159, 28, 0.3);
  color: var(--primary-color);
}

.category-tab.active {
  background: linear-gradient(135deg, var(--primary-color), #e68a00);
  border-color: var(--primary-color);
  color: white;
}

.machines-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: var(--spacing-xl);
}

[data-theme="light"] .machines-table-wrapper {
  border-color: var(--border-color);
}

.machines-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1200px;
}

.machines-table thead {
  background: rgba(255, 159, 28, 0.1);
}

[data-theme="light"] .machines-table thead {
  background: rgba(255, 159, 28, 0.05);
}

.machines-table th {
  padding: var(--spacing-md);
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

[data-theme="light"] .machines-table th {
  color: var(--text-primary);
}

.machines-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 0.2s ease;
}

[data-theme="light"] .machines-table tbody tr {
  border-bottom-color: var(--border-color);
}

.machines-table tbody tr:hover {
  background: rgba(255, 159, 28, 0.05);
}

.machines-table tbody tr:last-child {
  border-bottom: none;
}

.machines-table td {
  padding: var(--spacing-md);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .machines-table td {
  color: var(--text-secondary);
}

.model-badge {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, rgba(255, 159, 28, 0.2), rgba(255, 159, 28, 0.1));
  border: 1px solid rgba(255, 159, 28, 0.3);
  border-radius: var(--radius-sm);
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

.name-cell {
  color: white;
  font-weight: 500;
}

[data-theme="light"] .name-cell {
  color: var(--text-primary);
}

.dimensions-cell {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
}

.power-cell {
  font-family: 'Courier New', monospace;
}

.capacity-cell {
  color: var(--secondary-color);
  font-weight: 500;
}

.desc-cell {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.machines-summary {
  margin-bottom: var(--spacing-xl);
}

.summary-card {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: rgba(255, 159, 28, 0.05);
  border: 1px solid rgba(255, 159, 28, 0.1);
  border-radius: var(--radius-lg);
}

.summary-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(255, 159, 28, 0.2), rgba(255, 159, 28, 0.1));
  border-radius: var(--radius-md);
  color: var(--primary-color);
}

.summary-icon svg {
  width: 28px;
  height: 28px;
}

.summary-content h3 {
  color: white;
  font-size: 1.125rem;
  margin-bottom: var(--spacing-xs);
}

[data-theme="light"] .summary-content h3 {
  color: var(--text-primary);
}

.summary-content p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

[data-theme="light"] .summary-content p {
  color: var(--text-secondary);
}

.customization-note {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: rgba(46, 196, 182, 0.1);
  border: 1px solid rgba(46, 196, 182, 0.3);
  border-radius: var(--radius-lg);
  margin-top: var(--spacing-xl);
}

.note-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--secondary-color);
}

.note-icon svg {
  width: 32px;
  height: 32px;
}

.customization-note p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.6;
}

[data-theme="light"] .customization-note p {
  color: var(--text-primary);
}

/* ===== Placeholder styles ===== */
.placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-align: center;
  padding: var(--spacing-md);
}

.placeholder-img svg {
  width: 40px;
  height: 40px;
  margin-bottom: var(--spacing-sm);
  opacity: 0.4;
}

.placeholder-patent {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border: 1px dashed rgba(255, 159, 28, 0.2);
}

[data-theme="light"] .placeholder-patent {
  background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
  border-color: rgba(255, 159, 28, 0.3);
}

.placeholder-patent svg {
  color: var(--primary-color);
}

.placeholder-collab {
  background: linear-gradient(135deg, #16213e 0%, #1a1a2e 50%, #0d1f3c 100%);
  border: 1px dashed rgba(46, 196, 182, 0.2);
}

[data-theme="light"] .placeholder-collab {
  background: linear-gradient(135deg, #e2e8f0 0%, #f0f4f8 100%);
  border-color: rgba(46, 196, 182, 0.3);
}

.placeholder-collab svg {
  color: var(--secondary-color);
}

/* ===== Section Dividers ===== */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  margin: var(--spacing-xl) 0;
}

[data-theme="light"] .section-divider {
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

/* ===== Responsive ===== */

/* Tablet */
@media (max-width: 1024px) {
  .tab-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 1rem;
  }

  .tech-card {
    gap: var(--spacing-md);
  }

  .tech-image-wrapper {
    max-width: 400px;
  }

  .tech-image-wrapper img {
    height: 250px;
  }

  .patent-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
  }

  .collab-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
  }
  
  .collab-card:last-child {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
  }

  .machines-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-value {
    font-size: 2.5rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .tab-nav {
    gap: var(--spacing-sm);
  }

  .tab-btn {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.95rem;
  }

  .tech-card {
    flex-direction: column !important;
    text-align: center;
    gap: var(--spacing-md);
  }

  .tech-image-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .tech-image-wrapper img {
    height: 200px;
  }

  .tech-content {
    max-width: 100%;
  }

  .tech-icon {
    margin-left: auto;
    margin-right: auto;
    width: 48px;
    height: 48px;
  }

  .tech-icon svg {
    width: 20px;
    height: 20px;
  }

  .stat-value {
    font-size: 2rem;
  }

  .stat-unit {
    font-size: 1.1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .patent-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

  .patent-image {
    height: 180px;
  }

  .patent-header h2 {
    font-size: 1.75rem;
  }

  .collab-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
  }

  .collab-card:last-child {
    grid-column: auto;
    max-width: 100%;
  }

  .collab-header h2 {
    font-size: 1.75rem;
  }

  .collab-image {
    height: 200px;
  }

  .machines-table-wrapper {
    overflow-x: visible;
    border: none;
  }

  .machines-table {
    min-width: 100%;
  }

  .machines-table thead {
    display: none;
  }

  .machines-table tbody {
    display: grid;
    gap: var(--spacing-md);
  }

  .machines-table tbody tr {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    margin-bottom: 0;
    padding: var(--spacing-md);
    transition: all 0.3s ease;
  }

  [data-theme="light"] .machines-table tbody tr {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--border-color);
  }

  .machines-table tbody tr:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 159, 28, 0.3);
  }

  .machines-table td {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: var(--spacing-xs) 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
  }

  [data-theme="light"] .machines-table td {
    border-bottom-color: rgba(0, 0, 0, 0.06);
  }

  .machines-table td:last-child {
    border-bottom: none;
  }

  .machines-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.8rem;
    flex-shrink: 0;
    min-width: 100px;
    margin-right: var(--spacing-md);
    opacity: 0.8;
  }

  .machines-table td > * {
    flex: 1;
    min-width: 150px;
  }

  .model-cell {
    border-bottom: 1px solid rgba(255, 159, 28, 0.2) !important;
    padding-bottom: var(--spacing-sm) !important;
    margin-bottom: var(--spacing-xs);
  }

  .model-cell::before {
    display: none;
  }

  .model-badge {
    display: block;
    width: fit-content;
    margin-bottom: var(--spacing-xs);
  }

  .name-cell {
    font-size: 1.1rem;
    font-weight: 600;
    padding-top: var(--spacing-xs);
  }

  .dimensions-cell,
  .power-cell {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
  }

  .capacity-cell {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1rem;
  }

  .desc-cell {
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.5;
  }

  .summary-card {
    flex-direction: column;
    text-align: center;
  }

  .customization-note {
    flex-direction: column;
    text-align: center;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .tab-nav {
    flex-wrap: wrap;
  }

  .tab-btn {
    font-size: 0.9rem;
  }

  .stat-value {
    font-size: 1.75rem;
  }

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

  .patent-grid {
    grid-template-columns: 1fr;
    max-width: 350px;
  }

  .patent-image {
    height: 220px;
  }

  .collab-image {
    height: 180px;
  }
}
