/* --- PORTFOLIO PAGE STYLES --- */
.portfolio-page {
    background-color: #0f0d0b; /* Matching your luxury deep dark background */
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    padding: 0;
}

.portfolio-wrapper {
    margin: 0 auto;
    padding: 100px 40px;
}

/* Editorial Title Layout */
.portfolio-hero {
    margin-bottom: 60px;
}

.portfolio-intro{
  padding: 20px 25% 0px;
}

.portfolio-hero .subtitle {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    display: block;
    margin-bottom: 12px;
}

.portfolio-hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0;
}

.portfolio-hero .gold-text {
    color: var(--gold);
    font-style: italic;
    font-family: serif; /* Gives an editorial look to a single word */
}

/* Category Filters */
.portfolio-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
}

.latest-gallery-cta {
    display: flex;
    justify-content: center;
    margin-bottom: 34px;
}

.latest-btn {
    padding: 14px 28px;
    font-weight: 600;
    letter-spacing: 0.04em;
    box-shadow: 0 18px 40px rgba(216, 178, 125, 0.18);
}

.filter-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    cursor: pointer;
    padding: 8px 16px;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

.filter-btn:hover, .filter-btn.active {
    color: #ffffff;
}

.filter-btn.active {
    background: rgba(212, 175, 55, 0.1);
    border-radius: 30px;
    color: #d4af37;
}

/* Make "large" cards take up full width if desired, or let it alternate heights */
.project-card.large {
    grid-column: span 1; 
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.project-card:hover img {
    transform: scale(1.05);
}

.project-card:hover .project-details {
    transform: translateY(0);
}
/* ======= PORTFOLIO HERO ======= */
    .portfolio-wrapper {
      padding: 3rem 0;
    }
    .portfolio-hero {
      text-align: center;
      margin-bottom: 3rem;
    }
    .subtitle {
      text-transform: uppercase;
      letter-spacing: 4px;
      color: #c9a961;
      font-size: 0.85rem;
    }
    .portfolio-hero h1 {
      font-size: 3rem;
      font-weight: 600;
      margin-top: 0.5rem;
      line-height: 1.2;
    }
    .gold-text {
      color: #c9a961;
    }

    /* ======= FILTER BUTTONS ======= */
    .portfolio-filters {
      display: flex;
      justify-content: center;
      gap: 1.5rem;
      margin-bottom: 3rem;
      flex-wrap: wrap;
    }
    .filter-btn {
      background: transparent;
      border: none;
      color: #aaa;
      font-size: 0.95rem;
      cursor: pointer;
      padding: 0.5rem 1.2rem;
      border-radius: 20px;
      transition: all 0.3s;
      font-weight: 500;
    }
    .filter-btn.active,
    .filter-btn:hover {
      color: var(--gold);
      background: var(--goldSoft);
    }

    /* ======= MASONRY GRID (CSS Columns) ======= */
    .portfolio-grid {
      column-count: 3;
      column-gap: 20px;
      padding: 0 20px;
    }

    /* Each card must avoid being split between columns */
    .project-card {
      break-inside: avoid;
      margin-bottom: 20px;
      display: block; /* ensures proper break-inside behaviour */
    }

    /* Image wrapper (relative for overlay) */
    .project-image-wrapper {
      position: relative;
      overflow: hidden;
      border-radius: 12px;
      cursor: pointer;
    }

    /* The image determines the natural height */
    .project-image-wrapper img {
      width: 100%;
      height: auto;
      display: block;
      object-fit: cover; /* keeps image filling, aspect ratio determines height */
      transition: transform 0.5s;
    }

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

    /* Overlay that appears on hover */
    .project-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
      display: flex;
      align-items: flex-end;
      opacity: 0;
      transition: opacity 0.3s;
    }
    .project-card:hover .project-overlay {
      opacity: 1;
    }
    .project-details {
      padding: 1.5rem;
      width: 100%;
      transform: translateY(20px);
      transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }
    .project-cat {
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 2px;
      color: var(--gold);
    }
    .project-details h3 {
      font-size: 1.3rem;
      font-weight: 500;
      margin: 0.5rem 0;
        color: white;
    }
    .view-project-btn {
      display: inline-block;
      margin-top: 0.5rem;
      font-size: 0.9rem;
      border-bottom: 1px solid var(--gold);
      color: var(--gold);
      transition: letter-spacing 0.3s;
    }
    .view-project-btn:hover {
      letter-spacing: 2px;
    }

    /* Hidden cards (for filtering) */
    .project-card.hidden {
      display: none;
    }

    /* ======= RESPONSIVE ======= */
    @media (max-width: 768px) {
      .portfolio-grid {
        column-count: 2;
        column-gap: 15px;
      }
      .portfolio-intro{
        padding: 20px 50px 0px;
      }
      .mobile-toggle {
        display: block;
      }
      .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #0a0a0a;
        padding: 2rem;
        gap: 1rem;
      }
      .nav-links.active {
        display: flex;
      }
    }
    @media (max-width: 480px) {
      .portfolio-grid {
        column-count: 1;
      }
    }