﻿/* ============================================
   PROJECTS PAGE  MODERN REDESIGN
   ============================================ */

body {
    background: linear-gradient(180deg, var(--color-bg) 0%, #0f0f0f 100%);
    min-height: 100vh;
}

/*  Page Header  */
.pg-header {
    text-align: center;
    padding: 8rem 2rem 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.pg-label {
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: #555;
    text-transform: uppercase;
    font-weight: 500;
}

.pg-title {
    font-size: clamp(3.5rem, 9vw, 7rem);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.pg-sub {
    font-size: 0.85rem;
    color: #444;
    letter-spacing: 3px;
    margin-top: 0.5rem;
}

/*  Section Layout  */
.pg-section {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 2rem 5rem;
}

.pg-section:first-child {
    padding-top: 7rem;
}

/* Section Title — keep original gradient style */
.projects-section-header {
    font-size: 2.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    margin-top: 0;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pg-section-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 3.5px;
    color: #555;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 1rem;
}

.pg-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin: 0 0 2.5rem 0;
}

/*  Portfolio Grid  */
/* 6-col grid: first 3 cards span 2 cols each, last 2 span 3 cols each */
.folio-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
}

.folio-card {
    grid-column: span 2;
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    text-decoration: none;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s ease;
}

/* ── All Projects / Back banner ────────────────────────────────── */
.folio-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100px;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.folio-banner:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.folio-all-inner {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.folio-all-title {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: 0.5px;
}

.folio-all-arrow {
    font-size: 1.4rem;
    color: #555;
    display: inline-block;
}

.folio-banner:hover .folio-all-arrow {
    /* no movement */
}

/* Last 2 cards: span 3 cols  full-width halves on last row */
.folio-card.folio-wide {
    grid-column: span 3;
}

.folio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: border-color 0.3s ease;
}

.folio-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.folio-card:hover img {
    /* no effect */
}

.folio-overlay {
    position: absolute;
    inset: 0;
    padding: 2rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.25rem;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.35) 50%,
        transparent 100%
    );
}

.folio-cat {
    font-size: 0.7rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #777;
    font-weight: 500;
}

.folio-name {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.25;
}

/*  Personal Grid  */
.personal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

/*  Personal Card  */
.personal-card {
    background: rgba(16, 16, 16, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.35s ease,
                box-shadow 0.4s ease;
}

.personal-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.55);
}

.personal-card-img {
    position: relative;
    height: 270px;
    overflow: hidden;
}

.personal-card-img-link {
    display: block;
    width: 100%;
    height: 100%;
}

.personal-card-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, filter 0.4s ease;
    filter: brightness(0.78);
}

.personal-card:hover .personal-card-img-link img {
    transform: scale(1.05);
    filter: brightness(0.9);
}

.personal-card-tag {
    position: absolute;
    bottom: 14px;
    left: 14px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #aaa;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    padding: 5px 13px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.personal-card-tag--link:hover {
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.45);
    background: rgba(37, 99, 235, 0.18);
}

.personal-card-body {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.75rem;
}

.personal-card-body h3 {
    font-size: 1.55rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.personal-card-body p {
    font-size: 0.93rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

.personal-btns {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

/*  Buttons  */
.pbtn-primary,
.pbtn-ghost {
    padding: 0.62rem 1.2rem;
    border-radius: 9px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.86rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.3px;
}

.pbtn-primary {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.pbtn-primary:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.32);
    transform: translateY(-2px);
}

.pbtn-ghost {
    background: transparent;
    color: #666;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pbtn-ghost:hover {
    color: #ccc;
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

/*  Footer  */
.pg-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.8rem 2rem;
    margin-top: 0;
}

.pg-footer-inner {
    max-width: 1340px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.pg-footer-brand {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #fff;
    text-transform: uppercase;
}

.pg-footer-nav {
    display: flex;
    gap: 2.2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pg-footer-nav a {
    color: #444;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease;
    letter-spacing: 0.5px;
}

.pg-footer-nav a:hover {
    color: #ccc;
}

.pg-footer-copy {
    font-size: 0.8rem;
    color: #2e2e2e;
    letter-spacing: 0.5px;
}

/*  Responsive  */
@media (max-width: 1024px) {
    .folio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .folio-card,
    .folio-card.folio-wide {
        grid-column: span 1;
    }
}

@media (max-width: 640px) {
    .pg-section:first-child {
        padding-top: 5rem;
    }

    .folio-grid {
        grid-template-columns: 1fr;
    }

    .folio-card {
        aspect-ratio: 16 / 9;
    }

    .personal-grid {
        grid-template-columns: 1fr;
    }

    .pg-section {
        padding: 0 1.25rem 4rem;
    }

    .personal-card-img {
        height: 210px;
    }

    .personal-btns {
        flex-direction: column;
    }

    .pbtn-primary,
    .pbtn-ghost {
        justify-content: center;
    }

    .pg-footer-nav {
        gap: 1.25rem;
    }
}