/* =========================================
   PROJECTS PAGE STYLES (projectcss.css)
   ========================================= */

/* --- Architectural Wireframe Animation --- */
.portfolio-hero {
    margin-top: 14px;
    height: 45vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-bottom: 50px;
    overflow: hidden;
    background: var(--dark-bg);
}

.archi-graphics {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.frame {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(178, 173, 129, 0.15);
    transform-origin: center;
    box-shadow: 0 0 30px rgba(178, 173, 129, 0.05) inset;
}

.frame-1 { width: 600px; height: 600px; margin-top: -300px; margin-left: -300px; animation: rotateFrame 40s infinite linear; }
.frame-2 { width: 450px; height: 450px; margin-top: -225px; margin-left: -225px; border: 1px solid rgba(91, 90, 80, 0.3); animation: rotateFrame 30s infinite linear reverse; }
.frame-3 { width: 700px; height: 300px; margin-top: -150px; margin-left: -350px; border-top: 2px solid rgba(178, 173, 129, 0.3); border-bottom: 2px solid rgba(178, 173, 129, 0.3); animation: rotateFrame 50s infinite ease-in-out alternate; }

@keyframes rotateFrame {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.05); }
    100% { transform: rotate(360deg) scale(1); }
}

.hero-text { position: relative; z-index: 2; }
.hero-text h1 { font-size: 3.5rem; font-weight: 300; letter-spacing: 2px; margin-bottom: 15px; }
.hero-text h1 span { color: #B2AD81; font-weight: 700; }
.hero-text p { font-size: 1.1rem; color: #a0a0a0; }


/* --- Animated Filter Section --- */
.filter-section {
    text-align: center;
    padding: 20px 5% 50px 5%;
    position: relative;
    z-index: 5;
}

.filter-buttons {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 40px;
    border: 1px solid rgba(178, 173, 129, 0.2);
}

.filter-btn {
    background: transparent;
    color: #ccc;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover { color: #fff; }
.filter-btn.active { background: #B2AD81; color: #000; box-shadow: 0 4px 15px rgba(178, 173, 129, 0.4); }


/* --- Dynamic Asymmetric Project Grid --- */
.portfolio-grid-section { padding: 0 5% 100px 5%; }

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(226px, 1fr));
    grid-auto-rows: 350px;
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logic for dynamic sizes injected by JS */
.project-card.featured { grid-column: span 2; grid-row: span 2; }
.project-card.wide { grid-column: span 2; grid-row: span 1; }

@media (max-width: 800px) {
    .project-card.featured, .project-card.wide { grid-column: span 1; grid-row: span 1; }
    
.filter-btn {
    padding: 10px 8px;
}
}

/* --- Project Card Styling & Fast Hover Effects --- */
.project-card {
    position: relative;
    display: block;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: #000;
}

/* Fast, CSS-only image scaling */
.project-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .project-cover { transform: scale(1.08); filter: brightness(0.4); }

/* Text Overlay */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px 30px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.project-card:hover .card-overlay { transform: translateY(0); }

.category-tag {
    display: inline-block;
    align-self: flex-start;
    background: rgba(178, 173, 129, 0.2);
    color: #B2AD81;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    border: 1px solid rgba(178, 173, 129, 0.5);
    backdrop-filter: blur(5px);
}

.card-overlay h3 { color: #fff; font-size: 1.8rem; font-weight: 300; margin-bottom: 15px; }

.view-btn {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateX(-15px);
    transition: all 0.4s ease;
}

.project-card:hover .view-btn { opacity: 1; transform: translateX(0); color: #B2AD81; }
.view-btn span { transition: transform 0.3s ease; }
.project-card:hover .view-btn span { transform: translateX(5px); }


/* --- Scroll Animation Classes --- */
.reveal { opacity: 0; transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0) scale(1); }
.reveal.fade-up { transform: translateY(50px); }
.reveal.zoom-in { transform: scale(0.9); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }