/* ===== PORTFOLIO PAGE - Modern & Sophisticated ===== */

/* Navbar actions (portfolio page header) */
.header .navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.header .action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    color: #fff;
}
.header .teklif-btn {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    border: 2px solid #000;
}
.header .teklif-btn:hover { border-color: #ff0000; }
.header .cart-btn {
    background: linear-gradient(135deg, #ff0000 0%, #ff6b6b 100%);
    border: 2px solid #ff0000;
    min-width: 65px;
    justify-content: center;
}
.header .cart-badge {
    background: #fff;
    color: #ff0000;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    font-weight: 900;
    display: none;
    align-items: center;
    justify-content: center;
}
@media (max-width: 968px) {
    .header .teklif-btn span { display: none; }
    .header .teklif-btn { min-width: 50px; justify-content: center; }
}

.portfolio-hero {
    position: relative;
    padding: 10rem 0 8rem;
    background: #050508;
    overflow: hidden;
}

.portfolio-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 0, 0, 0.12) 0%, transparent 55%),
                radial-gradient(ellipse 60% 40% at 80% 20%, rgba(255, 60, 60, 0.06) 0%, transparent 50%),
                linear-gradient(180deg, #0a0a0c 0%, #050508 100%);
    z-index: 0;
}

.portfolio-hero-noise {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.portfolio-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.portfolio-hero-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #ff3333;
    margin-bottom: 1rem;
}

.portfolio-hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 1.25rem;
}

.portfolio-hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.65;
    margin-bottom: 3rem;
}

.portfolio-hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.portfolio-stat {
    text-align: center;
}

.portfolio-stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.portfolio-stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
}

.portfolio-hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, #0a0a0c, transparent);
    z-index: 1;
    pointer-events: none;
}

/* Filters */
.portfolio-filters-wrap {
    padding: 2rem 0;
    background: #0a0a0c;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.portfolio-filter-btn {
    padding: 0.65rem 1.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    cursor: pointer;
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.portfolio-filter-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.portfolio-filter-btn.active {
    color: #fff;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    border-color: transparent;
}

/* Grid section */
.portfolio-grid-section {
    padding: 4rem 0 6rem;
    background: #0a0a0c;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.portfolio-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.portfolio-card.hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
}

.portfolio-card-wide {
    grid-column: span 2;
}

.portfolio-card-inner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

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

.portfolio-card-wide .portfolio-card-image {
    aspect-ratio: 21/9;
}

.portfolio-card-thumb {
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-card:hover .portfolio-card-thumb {
    transform: scale(1.08);
}

.portfolio-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.4) 45%, transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.75rem;
    opacity: 1;
    transition: background 0.35s ease;
}

.portfolio-card:hover .portfolio-card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.96) 0%, rgba(255, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.3) 100%);
}

.portfolio-card-cat {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #ff4444;
    margin-bottom: 0.5rem;
}

.portfolio-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.portfolio-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    line-height: 1.45;
}

.portfolio-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ff3333;
    text-decoration: none;
    transition: gap 0.25s ease, color 0.25s ease;
}

.portfolio-card-link:hover {
    color: #ff6666;
    gap: 0.75rem;
}

.portfolio-card-link i {
    font-size: 0.75rem;
}

/* CTA */
.portfolio-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
}

.portfolio-cta-inner {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.portfolio-cta h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.portfolio-cta p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.portfolio-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.portfolio-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.75rem;
    font-weight: 600;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.portfolio-cta-outline:hover {
    border-color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
}

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

@media (max-width: 768px) {
    .portfolio-hero {
        padding: 7rem 0 5rem;
    }
    .portfolio-hero-stats {
        gap: 2rem;
    }
    .portfolio-stat-num {
        font-size: 2rem;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .portfolio-card-wide {
        grid-column: span 1;
    }
    .portfolio-card-wide .portfolio-card-image {
        aspect-ratio: 4/3;
    }
    .portfolio-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .portfolio-filters::-webkit-scrollbar {
        display: none;
    }
    .portfolio-filter-btn {
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .portfolio-cta-buttons {
        flex-direction: column;
    }
    .portfolio-cta-outline,
    .portfolio-cta .btn-primary {
        width: 100%;
        justify-content: center;
    }
}
