/* Portfolio Page Styles */

/* Container principal */
.portfolio-container {
    padding-top: 140px;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 60px;
    padding-right: 60px;
    padding-bottom: 80px;
}

/* Header */
.portfolio-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.portfolio-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(64px, 8vw, 96px);
    font-weight: 300;
    color: var(--charcoal);
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.2s both;
    letter-spacing: -2px;
}

.portfolio-subtitle {
    font-size: 20px;
    color: var(--silver);
    font-weight: 300;
    animation: fadeInUp 0.8s ease 0.4s both;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Filters */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.filter-btn {
    padding: 12px 30px;
    background: transparent;
    border: 1px solid rgba(26, 26, 26, 0.15);
    color: var(--charcoal);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

/* Projects grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 40px;
    margin-bottom: 100px;
}

.project-card {
    background: var(--white);
    border: 1px solid rgba(26, 26, 26, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    cursor: pointer;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    border-color: var(--accent);
}

.project-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    background: var(--cream);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(206, 28, 28, 0.9) 0%, rgba(26, 26, 26, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-view-btn {
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 15px 30px;
    border: 2px solid var(--white);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-view-btn:hover {
    background: var(--white);
    color: var(--accent);
}

.project-content {
    padding: 40px 35px;
}

.project-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 15px;
}

.project-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 15px;
    line-height: 1.3;
}

.project-description {
    font-size: 14px;
    color: var(--silver);
    line-height: 1.7;
    margin-bottom: 25px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tag {
    font-size: 11px;
    padding: 6px 14px;
    background: var(--cream);
    color: var(--charcoal);
    border-radius: 20px;
    font-weight: 500;
}

/* Stats section */
.portfolio-stats {
    background: linear-gradient(135deg, var(--white) 0%, var(--cream) 100%);
    border: 1px solid rgba(26, 26, 26, 0.08);
    padding: 80px 60px;
    margin-bottom: 100px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.stat-item:nth-child(1) { animation-delay: 0.2s; }
.stat-item:nth-child(2) { animation-delay: 0.3s; }
.stat-item:nth-child(3) { animation-delay: 0.4s; }
.stat-item:nth-child(4) { animation-delay: 0.5s; }

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 56px;
    font-weight: 300;
    color: var(--accent);
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 13px;
    color: var(--charcoal);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 100px 40px;
    background: var(--charcoal);
    color: var(--white);
    margin: 0 -60px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 56px;
    font-weight: 300;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 50px;
}

.cta-button {
    display: inline-block;
    padding: 18px 40px;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Back navigation */
.back-navigation {
    position: fixed;
    top: 40px;
    left: 60px;
    z-index: 1001;
    animation: fadeIn 1s ease 0.8s both;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--silver);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    padding: 12px 20px;
    background: rgba(250, 249, 247, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(26, 26, 26, 0.08);
    border-radius: 50px;
}

.back-link:hover {
    color: var(--accent);
    transform: translateX(-5px);
    border-color: rgba(206, 28, 28, 0.2);
}

.back-arrow {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.back-link:hover .back-arrow {
    transform: translateX(-3px);
}

/* Responsive */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .portfolio-container {
        padding-top: 120px;
        padding-left: 30px;
        padding-right: 30px;
    }

    .back-navigation {
        top: 30px;
        left: 30px;
    }

    .portfolio-title {
        font-size: 48px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project-image {
        height: 220px;
    }

    .project-content {
        padding: 30px 25px;
    }

    .portfolio-stats {
        padding: 60px 30px;
        margin-left: -30px;
        margin-right: -30px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .stat-number {
        font-size: 42px;
    }

    .cta-section {
        margin: 0 -30px;
        padding: 80px 30px;
    }

    .cta-title {
        font-size: 40px;
    }

    .back-link {
        padding: 10px 16px;
        font-size: 12px;
    }

    .portfolio-filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 11px;
    }
}
