/* Projects Styles */
.projects-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

.projects-content {
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
}

.projects-section {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.projects-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.projects-section h2 {
    color: var(--main-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.project-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    gap: 1.5rem;
    flex-wrap: wrap; /* Wrap on small screens */
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.project-card h3 {
    font-size: 1.4rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}

.project-image {
    width: auto;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    align-self: center;
}

.project-text-content {
    flex: 1;
    min-width: 200px;
}

.project-card p {
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.5;
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.project-link {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: 'Monaco', 'Consolas', monospace;
    color: var(--main-color);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
}

.project-link:hover {
    background-color: rgba(228, 100, 32, 0.2);
}

/* Sidebar for desktop */
.projects-sidebar {
    position: fixed;
    top: 20px;
    left: 0;
    width: 240px;
    background-color: var(--background);
    padding: 1rem;
    /*border-right: 1px solid rgba(255, 255, 255, 0.1);*/
    height: calc(100vh - 100px);
    overflow-y: auto;
    z-index: 2;
}

.main-content {
  width: 100%;
  padding-left: 250px; /* add padding to offset the sidebar */
}

.projects-sidebar .category {
    display: flex;
    flex-direction: column;
}

.projects-sidebar .category h3 {
    font-size: 1.2rem;
    color: var(--main-color);
    /*margin-bottom: 1rem;*/
}

.projects-sidebar .category a {
    display: block;
    padding: 0.5rem 0.8rem;
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.projects-sidebar .category a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.projects-sidebar hr {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 1rem 0;
}

.project-image.inline-icon {
    display: inline;
    width: 30px;
    height: 30px;
    /*object-fit: cover;*/
    margin-right: 0.2rem;
    vertical-align: text-top;
    display: inline-block;
    border-radius: 1px;
    -webkit-border-radius: 1px;
    -moz-border-radius: 1px;
    -ms-border-radius: 1px;
    -o-border-radius: 1px;
  }

/* Mobile styles - 900px breakpoint */
@media (max-width: 900px) {
  /* Adjust main content */
  .main-content {
    padding-left: 0;
  }
  
  /* Hide desktop sidebar */
  .projects-sidebar {
    display: none;
  }
  
  /* Adjust projects content for mobile */
  .projects-container {
    padding: 1.5rem;
  }
  
  .projects-section {
    padding: 2rem 1.5rem;
  }

  .project-image {
    display: none;  
  }

  .project-text-content h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  /* Further adjustments for very small screens */
  .projects-container {
    padding: 1rem;
  }
  
  .projects-section {
    padding: 1.5rem 1rem;
  }
  
  .projects-section h2 {
    font-size: 1.8rem;
  }
  
  .project-card h3 {
    font-size: 1.2rem;
  }
  
  .project-link {
    font-size: 0.8rem;
  }
}