/* Base hidden state for items */
.portfolio-container .item {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Active visible state with fade/slide-up animation */
.portfolio-container .item.is-visible {
  display: block; /* Change to grid/flex if your layout requires it */
  opacity: 1;
  transform: translateY(0);
}

/* Load More Button Container */
.load-more-wrapper {
  text-align: center;
  margin-top: 2rem;
  padding-bottom: 1rem;
}

/* Glassmorphism/Gradient Animated Button */
.load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.45);
  background: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
}

.load-more-btn:active {
  transform: translateY(0);
}

.load-more-btn .btn-icon {
  width: 18px;
  height: 18px;
  fill: none;
  transition: transform 0.3s ease;
}

.load-more-btn:hover .btn-icon {
  transform: translateY(3px);
}

.code-container {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  margin: 1.5rem 0;
  font-family: 'Fira Code', 'Consolas', 'Courier New', monospace;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #161b22;
  padding: 0.5rem 1rem;
  color: #8b949e;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.copy-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #c9d1d9;
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto; /* Enables horizontal scrolling for wide code */
}

code[class*="language-"] {
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre;
}


  /* Base Container Styling */
  .summary-container {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    color: #e6edf3;
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.6;
  }

  .summary-container h2 {
    font-size: 1.75rem;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 1rem;
  }

  .summary-container h3 {
    font-size: 1.25rem;
    color: #a78bfa; /* Brand accent */
    margin-top: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .summary-container h4 {
    font-size: 1.1rem;
    color: #c9d1d9;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
  }

  /* List Styling */
  .summary-list {
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .summary-list li {
    margin-bottom: 0.75rem;
  }

  .summary-list strong {
    color: #ffffff;
  }

  /* Table Styling for Architecture Flow */
  .data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background: #161b22;
    border-radius: 8px;
    overflow: hidden;
  }

  .data-table th, 
  .data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .data-table th {
    background: rgba(255, 255, 255, 0.03);
    color: #8b949e;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
  }

  /* Reusing your Code Container format */
  .code-container {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 2px;
    margin: 0.5rem 0 1rem 0;
    overflow-x: auto;
  }
  
  .code-container code {
    font-family: 'Fira Code', Consolas, monospace;
    color: #4ade80; /* Terminal green */
    font-size: 0.9rem;
  }

  .instruction-note {
    font-style: italic;
    color: #8b949e;
    font-size: 0.95rem;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
  }

  .card-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
  }