/* portfolio.css - Portfolio page specific styles */

/* Page-specific main styling */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  text-align: center;
  padding-top: 5.5rem;
}

main h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

main > p {
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Category Navigation */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 3rem 0;
  padding: 1rem 0;
}

.category-nav a button {
  font-family: 'Roboto Mono', monospace;
  font-size: 1rem;
  background-color: #37474F;
  color:#ECEFF1;
  border: none;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  border-radius: 2px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tab:hover,
.tab.active {
  background-color: #37474F;
  color: #ECEFF1;      
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 229, 255, 0.3);
}
.category-nav a button:hover {
  background-color: #37474F;
  color: #37474F;
  transform: translateY(-2px);
}

/* Section Styling */
section {
  margin-top: 3rem;
}

section h2 {
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 1.5rem;
  font-size: 1.9rem;
  text-transform: uppercase;
}

section div,
section article {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

/* Article/Project Cards */
article {
  background-color: #ECEFF1;
  border: none;
  border-radius: 2px;
  width: 350px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

article h3 {
  font-family: 'Roboto Mono', monospace;
  font-size: 1rem;
  text-transform: uppercase;
}

article img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin: 1rem 0;
  background-color: #CFD8DC;
  border-radius: 12px;
}

article ul {
  text-align: left;
  margin-bottom: 1rem;
  padding-left: 1rem;
}

article button {
  font-family: 'Roboto Mono', monospace;
  background-color: #37474F;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

article button:hover {
  background-color: #37474F;
  color: #ECEFF1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 229, 255, 0.3);
}



/* Filter Buttons */
.filter-btn {
  padding: 0.75rem 2rem;
  font-family: 'Roboto Mono', monospace;
  border: 2px solid #37474F;
  background-color: transparent;
  color: #37474F;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.filter-btn:hover, 
.filter-btn.active {
  background-color: #37474F;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 229, 255, 0.3);
}

/* Project Item Animations */
.project-item {
  transition: opacity 0.4s ease, transform 0.4s ease;
  animation: fadeIn 0.5s ease forwards;
}

.project-item.hidden {
  display: none;
  opacity: 0;
  transform: scale(0.8);
}

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

/* Project Descriptions */
.project-item .description-port {
  display: none;
  transition: opacity 0.3s ease-in-out;
}

.project-item:hover .description-port {
  display: block;
  opacity: 1;
}

/* Gallery Specific Styles */
#gallery .project-item {
  background-color: #ECEFF1;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#gallery .project-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

#gallery .project-item img {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  object-fit: fill;
}

#gallery .project-item:hover img {
  transform: scale(1.05);
}

#gallery .project-item h3 {
  font-family: 'Orbitron', sans-serif;
  padding: 1rem 1rem 0.5rem;
  margin: 0;
  color: #37474F;
}

#gallery .project-item .description-port {
  font-family: 'Exo 2', sans-serif;
  padding: 0 1rem 1rem;
  margin: 0;
  color: #546E7A;
  font-size: 0.9rem;
  font-weight: normal;
  line-height: 1.4;
}

/* Mobile Specific Overrides */
@media screen and (max-width: 768px) {
  /* Always show descriptions on mobile */
  .project-item .description-port {
    display: block;
    opacity: 1;
  }

  .project-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  #gallery .project-item img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: fill;
  }
  
  .filter-btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }
}

@media screen and (max-width: 480px) {
  .category-nav {
    gap: 0.5rem;
  }
  
  .filter-btn {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
  }
}