/* ========================================
   PORTFOLIO PAGE STYLES
   ======================================== */

/* Portfolio Header */
.portfolio-header {
    padding: 10rem 2rem 6rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.portfolio-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.portfolio-header .header-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.portfolio-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.portfolio-header p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Portfolio Introduction */
.portfolio-intro {
    padding: 6rem 2rem;
    background: var(--white);
}

.intro-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.intro-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.intro-content p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-light);
}

/* Portfolio Categories */
.portfolio-categories {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
}

.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn {
    padding: 0.8rem 2rem;
    border: 2px solid var(--text-light);
    background: transparent;
    color: var(--text-dark);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 122, 0.3);
}

/* Portfolio Grid */
.portfolio-grid-section {
    padding: 4rem 2rem 6rem;
    background: var(--white);
}

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

.portfolio-item {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.item-image {
    height: 250px;
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.portfolio-item:hover .image-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.image-overlay h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.image-overlay p {
    font-size: 1rem;
    opacity: 0.9;
}

.item-content {
    padding: 2rem;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.category {
    background: var(--light-gradient);
    color: var(--dark);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.item-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.item-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.item-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.item-skills li {
    background: rgba(255, 182, 163, 0.2);
    color: var(--coral);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Portfolio PDF Section */
.portfolio-pdf {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.pdf-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 4rem 3rem;
    border-radius: 30px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.pdf-icon {
    color: var(--coral);
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.pdf-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.pdf-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.pdf-card .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pdf-note {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* Achievements Section */
.achievements-section {
    padding: 6rem 2rem;
    background: var(--white);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.achievement-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.achievement-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.achievement-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    padding: 6rem 2rem;
    background: var(--dark-gradient);
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-primary {
    background: var(--primary-gradient);
}

.cta-section .btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cta-section .btn-secondary:hover {
    background: var(--white);
    color: var(--dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-header h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .category-filters {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 100%;
        max-width: 300px;
    }

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

@media (max-width: 480px) {
    .portfolio-header {
        padding: 8rem 1rem 4rem;
    }

    .portfolio-header h1 {
        font-size: 2rem;
    }

    .portfolio-intro,
    .portfolio-categories,
    .portfolio-grid-section,
    .portfolio-pdf,
    .achievements-section,
    .cta-section {
        padding: 4rem 1rem;
    }

    .pdf-card {
        padding: 3rem 1.5rem;
    }
}
