/* ============================================
   PROJECTS LIST PAGE
   Parso Architecture Studio
   ============================================ */

/* ============ HERO ============ */

.projects-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 48px;
    overflow: hidden;
}

.projects-hero .hero-bg-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.projects-hero .grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.3;
}

.projects-hero .float-accent {
    position: absolute;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.06;
    filter: blur(60px);
}

.projects-hero .fa-1 {
    width: 300px;
    height: 300px;
    top: -80px;
    right: -60px;
    animation: plFloatSlow 18s ease-in-out infinite;
}

.projects-hero .fa-2 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    left: -40px;
    animation: plFloatSlow 22s ease-in-out infinite reverse;
}

.projects-hero .fa-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    right: 20%;
    animation: plFloatSlow 15s ease-in-out infinite 3s;
}

@keyframes plFloatSlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.05); }
    66% { transform: translate(-15px, 20px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
}

.hero-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 32px;
}

.hero-badge .badge-line {
    width: 40px;
    height: 1px;
    background: var(--accent);
    opacity: 0.5;
}

.hero-badge .badge-text {
    font-size: 0.82rem;
    color: var(--accent);
    letter-spacing: 2px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 20px;
}

.hero-title .title-word {
    display: inline-block;
    margin: 0 6px;
}

.hero-title .title-word.accent {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}


/* ============ FILTER BAR ============ */

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.filter-tag::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    border-radius: 100px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.filter-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-tag.active {
    border-color: var(--accent);
    color: #fff;
}

.filter-tag.active::before {
    transform: scaleX(1);
}

.filter-count {
    font-size: 0.72rem;
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 100px;
    color: var(--text-muted);
    transition: all 0.35s ease;
}

.filter-tag.active .filter-count {
    background: rgba(255,255,255,0.2);
    color: #fff;
}


/* ============ SCROLL CUE ============ */

.projects-hero .scroll-cue {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.projects-hero .scroll-cue-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: plScrollPulse 2s ease-in-out infinite;
}

@keyframes plScrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.6); }
}


/* ============ PROJECTS GRID ============ */

.projects-grid-section {
    padding: 60px 24px 120px;
    max-width: 1200px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}


/* ============ PROJECT CARD ============ */

.project-card {
    text-decoration: none;
    color: inherit;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

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

.project-card.filtering-out {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
    pointer-events: none;
}

.project-card.filtering-in {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

[data-theme="dark"] .project-card:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* Card Image */

.card-image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .card-image {
    transform: scale(1.08);
}

.card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--text-muted);
}

.card-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.3;
}

.card-title-on-image {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 70%, transparent 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    z-index: 3;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    pointer-events: none;  /* اجازه کلیک روی لینک اصلی */
}

.project-card:hover .card-title-on-image {
    transform: translateY(-4px);
}

/* Card Overlay */

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.6) 0%,
        rgba(0,0,0,0.1) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 20px;
}

.project-card:hover .card-overlay {
    opacity: 1;
}

.overlay-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.overlay-tag {
    font-size: 0.78rem;
    color: #fff;
    letter-spacing: 1px;
}

.overlay-arrow {
    width: 18px;
    height: 18px;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.project-card:hover .overlay-arrow {
    transform: translate(3px, -3px);
}

/* Card Number */

.card-number {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    z-index: 2;
}

[data-theme="dark"] .card-number {
    background: rgba(255,255,255,0.1);
}

/* Card Info */

.card-info {
    padding: 14px 16px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.card-category {
    color: var(--accent);
    font-weight: 600;
}

.card-year {
    opacity: 0.7;
}

.card-title {
    /* font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    transition: color 0.3s ease; */
    display: none;
}

.project-card:hover .card-title {
    color: var(--accent);
}

.card-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.card-location svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}


/* ============ EMPTY STATE ============ */

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-state svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 1.05rem;
}


/* ============ RESPONSIVE ============ */

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .hero-title {
        font-size: 2.3rem;
    }
}

@media (max-width: 768px) {
    .projects-hero {
        min-height: 60vh;
        padding: 60px 20px 40px;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .filter-bar {
        gap: 8px;
    }

    .filter-tag {
        padding: 6px 16px;
        font-size: 0.8rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .projects-grid-section {
        padding: 40px 20px 80px;
    }
    
    .card-title-on-image {
        font-size: 1rem;
        padding: 16px 12px 8px;
    }
    .hero-action-btn {
        min-width: 160px;
        padding: 10px 22px;
        font-size: 0.85rem;
    }    
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-badge .badge-text {
        font-size: 0.75rem;
    }

    .card-info {
        padding: 16px;
    }

    .card-title {
        font-size: 1rem;
    }
}

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background: transparent;
    padding-top: 0px; /* این خط رو تغییر بده - هر چی بیشتر باشه، لوگو پایین‌تر میره */
}

.hero-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 12px 28px;
    border-radius: 100px;
    background: var(--accent);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--accent);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-action-btn:hover {
    transform: translateY(-3px);
    background: transparent;
    color: var(--accent);
    box-shadow: 0 18px 45px rgba(0,0,0,0.16);
}
