
/* Enhanced Projects Page Styles */

/* Filter Section */
#project-filters {
    background: rgba(36, 41, 67, 0.05);
    padding: 2em 0;
    border-bottom: 1px solid rgba(212, 212, 255, 0.1);
  }
  
  .filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1em;
  }
  
  .filter-btn {
    background: transparent;
    border: 2px solid rgba(212, 212, 255, 0.3);
    color: #ffffff;
    padding: 0.5em 1.5em;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
  }
  
  .filter-btn:hover {
    border-color: #9bf1ff;
    color: #9bf1ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(155, 241, 255, 0.3);
  }
  
  .filter-btn.active {
    background: #9bf1ff;
    color: #242943;
    border-color: #9bf1ff;
  }
  
  /* Projects Grid */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2em;
    margin-top: 3em;
  }
  
  .project-card {
    background: rgba(36, 41, 67, 0.95);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 212, 255, 0.1);
    display: flex;
    flex-direction: column;
  }
  
  .project-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(36, 41, 67, 0.98) 0%, rgba(42, 47, 74, 0.95) 100%);
    border-color: rgba(155, 241, 255, 0.3);
  }
  
  @media screen and (max-width: 980px) {
    .project-card.featured {
      grid-column: span 1;
    }
  }
  
  .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(155, 241, 255, 0.5);
  }
  
  /* Project Image */
  .project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
  }
  
  .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  
  .project-card:hover .project-image img {
    transform: scale(1.05);
  }
  
  .project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(36, 41, 67, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .project-card:hover .project-overlay {
    opacity: 1;
  }
  
  .project-links {
    display: flex;
    gap: 1em;
  }
  
  /* Project Content */
  .project-content {
    padding: 2em;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }
  
  .project-content h3 {
    font-size: 1.5em;
    margin-bottom: 0.5em;
    color: #ffffff;
    font-weight: 600;
  }
  
  .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-bottom: 1em;
  }
  
  .tag {
    background: rgba(155, 241, 255, 0.1);
    color: #9bf1ff;
    padding: 0.25em 0.75em;
    border-radius: 20px;
    font-size: 0.8em;
    border: 1px solid rgba(155, 241, 255, 0.3);
  }
  
  .project-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5em;
    flex-grow: 1;
  }
  
  .project-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(212, 212, 255, 0.1);
    padding-top: 1em;
  }
  
  .project-stats i {
    margin-right: 0.5em;
    color: #9bf1ff;
  }
  
  /* Progress Section */
  .progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2em;
    margin-top: 3em;
  }
  
  .progress-card {
    background: rgba(36, 41, 67, 0.95);
    border-radius: 12px;
    padding: 2em;
    border: 1px solid rgba(212, 212, 255, 0.1);
    display: flex;
    gap: 2em;
    align-items: flex-start;
    transition: all 0.3s ease;
  }
  
  .progress-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(155, 241, 255, 0.3);
  }
  
  .progress-icon {
    font-size: 3em;
    color: #9bf1ff;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(155, 241, 255, 0.1);
    border-radius: 12px;
  }
  
  .progress-content {
    flex-grow: 1;
  }
  
  .progress-content h3 {
    font-size: 1.3em;
    margin-bottom: 0.5em;
    color: #ffffff;
  }
  
  .progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(212, 212, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 1em 0;
  }
  
  .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #9bf1ff 0%, #53e3fb 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
  }
  
  .progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 20px;
    background: rgba(255, 255, 255, 0.3);
    filter: blur(10px);
    animation: shimmer 2s infinite;
  }
  
  @keyframes shimmer {
    0% { transform: translateX(-20px); }
    100% { transform: translateX(20px); }
  }
  
  .progress-tags {
    display: flex;
    gap: 0.5em;
    margin: 1em 0;
  }
  
  /* CTA Section */
  #project-cta {
    background: linear-gradient(135deg, rgba(36, 41, 67, 0.95) 0%, rgba(42, 47, 74, 0.9) 100%);
    padding: 4em 0;
    margin-top: 4em;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  
  #project-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(155, 241, 255, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
  }
  
  @keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
  }
  
  .cta-content {
    position: relative;
    z-index: 1;
  }
  
  .cta-content h2 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
    color: #ffffff;
  }
  
  .cta-content p {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2em;
  }
  
  /* Animations */
  .project-card,
  .progress-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
  }
  
  .project-card:nth-child(1) { animation-delay: 0.1s; }
  .project-card:nth-child(2) { animation-delay: 0.2s; }
  .project-card:nth-child(3) { animation-delay: 0.3s; }
  .project-card:nth-child(4) { animation-delay: 0.4s; }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Responsive */
  @media screen and (max-width: 736px) {
    .projects-grid {
      grid-template-columns: 1fr;
      gap: 1.5em;
    }
    
    .progress-grid {
      grid-template-columns: 1fr;
    }
    
    .progress-card {
      flex-direction: column;
      text-align: center;
    }
    
    .progress-icon {
      margin: 0 auto;
    }
    
    #project-cta h2 {
      font-size: 1.8em;
    }
    
    .filter-container {
      padding: 0 1em;
    }
    
    .filter-btn {
      font-size: 0.8em;
      padding: 0.4em 1em;
    }
  }

  /* ------------------------------------------------------------------
   Mobile polish (phones & small tablets ≤ 640 px)
   ------------------------------------------------------------------*/
@media screen and (max-width: 640px) {

    /* 1) Keep section headings truly centred and prevent the underline
          from pushing them off-screen. */
    #featured-projects header.major,
    #in-progress       header.major {
      width: 100%;
      text-align: center;
      margin-left: auto;
      margin-right: auto;
    }
  
    #featured-projects header.major > :first-child,
    #in-progress       header.major > :first-child {
      width: 100%;
    }
  
    /* 2) Grid tweaks – one column that’s centred, with cards constrained
          so they never spill horizontally. */
    .projects-grid,
    .progress-grid {
      grid-template-columns: 1fr;     /* replaces the auto-fit logic */
      justify-items: center;          /* centre the lone column */
    }
  
    .project-card,
    .progress-card {
      width: 100%;
      max-width: 500px;               /* prevents “stretch” on phablets */
    }
  
    /* 3) CTA buttons – stack vertically instead of side-by-side so they
          don’t get lopped off (the current flex-row layout in
          ul.actions … causes the cut-off you saw) :contentReference[oaicite:0]{index=0} */
    #project-cta .actions {
      flex-direction: column;
      gap: 1em;
      margin: 0 auto;
      padding: 0;
      width: 100%;
      max-width: 340px;               /* keeps them tidy */
    }
  
    #project-cta .actions li,
    #project-cta .actions .button {
      width: 100%;
    }
  
    /* 4) Slightly tighter pills in the filter bar so they don’t wrap
          awkwardly. */
    .filter-btn {
      flex: 1 1 45%;
      padding: 0.4em 1.2em;
      margin: 0.3em 0;
    }
  }
  
  /* ------------------------------------------------------------------
     Ultra-wide desktop touch-up (> 1920 px) – optional
     ------------------------------------------------------------------*/
  @media screen and (min-width: 1920px) {
    .projects-grid { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
    .progress-grid { grid-template-columns: repeat(auto-fit, minmax(480px, 1fr)); }
  }
  
  /* ------------------------------------------------------------------
   Horizontal-scroll “carousel” for the filter pills
   ------------------------------------------------------------------*/
@media (max-width: 640px) {

    /* allow sideways scroll & momentum swipe */
    #project-filters .inner{
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scroll-behavior: smooth;          /* <-- JS will piggy-back on this */
      padding-bottom: .5rem;            /* keeps pills clear of notch */
    }
    #project-filters .inner::-webkit-scrollbar{ display:none; }
  
    /* make the pill row one continuous line */
    .filter-container{
      flex-wrap: nowrap;                /* was wrap – causes clumping :contentReference[oaicite:0]{index=0}*/
      width: max-content;               /* shrink-wrap so overflow works */
      gap: .75rem;
    }
    .filter-btn{ white-space: nowrap; } /* keep labels on one line */
  }
  
  /* simple arrows that appear only on phones */
  .filter-scroll-btn{
    position:absolute; top:50%; z-index:2;
    width:2.25rem; height:2.25rem;
    transform:translateY(-50%);
    border:none; border-radius:50%;
    background:rgba(36,41,67,.85);
    color:#fff; font-size:1.25rem; line-height:2.25rem;
    cursor:pointer;
  }
  .filter-scroll-btn.prev{ left:.25rem; }
  .filter-scroll-btn.next{ right:.25rem; }
  @media (min-width:641px){ .filter-scroll-btn{display:none;} }
  