/* --- Portfolio Page Specific Styles --- */

/* Page Hero */
.page-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    padding: 6rem 0;
}

.page-hero-title {
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: #fff;
}

.page-hero-subtitle {
    max-width: 42rem;
    margin: 1.5rem auto 0;
    font-size: 1rem;
    color: var(--color-text-secondary);
}

/* Portfolio Section */
.portfolio-section {
    max-width: 1280px;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
    transition: color 0.2s, background-color 0.2s;
}

.filter-btn.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.filter-btn:not(.active) {
    color: #d1d5db;
}

.filter-btn:not(.active):hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

.portfolio-grid {
    display: grid;
    gap: 2rem;
}

.portfolio-card {
    border-radius: 0.75rem;
    text-align: left;
    overflow: hidden;
}

.portfolio-card-image-wrapper {
    overflow: hidden;
    height: 14rem;
}

.portfolio-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-card-image-wrapper img {
    transform: scale(1.05);
}

.portfolio-card-content {
    padding: 1.5rem;
}

.portfolio-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.portfolio-card-text {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.portfolio-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.portfolio-card-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
}

.tag-purple {
    background-color: rgba(168, 85, 247, 0.2);
    color: #d8b4fe;
}

.tag-blue {
    background-color: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.tag-green {
    background-color: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.tag-red {
    background-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.tag-yellow {
    background-color: rgba(234, 179, 8, 0.2);
    color: #fde047;
}

.tag-indigo {
    background-color: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.portfolio-card-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-purple-light);
    transition: color 0.2s;
}

.portfolio-card-link:hover {
    color: #fff;
}

/* Testimonials Section */
.testimonials-section {
    max-width: 1280px;
}

.testimonials-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: left;
}

.testimonial-card p {
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    object-fit: cover;
    margin-right: 1rem;
}

.testimonial-author h4 {
    font-weight: 600;
    color: #fff;
}

.testimonial-author p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
    max-width: 1024px;
}

.cta-card {
    border-radius: 1rem;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 9999px;
    filter: blur(100px);
}

.cta-glow.top-left {
    top: -50%;
    left: -50%;
    background-color: rgba(147, 51, 234, 0.4);
}

.cta-glow.bottom-right {
    bottom: -50%;
    right: -50%;
    background-color: rgba(37, 99, 235, 0.4);
}

.cta-content {
    position: relative;
    z-index: 10;
}

.cta-content p {
    color: #d1d5db;
    margin-top: 1rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    margin-top: 2rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background-image: linear-gradient(to right, var(--color-blue), var(--color-purple));
    border-radius: 0.5rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.cta-button:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* --- Responsive Styles --- */
@media (min-width: 640px) {
    .page-hero {
        padding: 8rem 0;
    }

    .page-hero-title {
        font-size: 3.75rem;
    }

    .page-hero-subtitle {
        font-size: 1.125rem;
    }

    .cta-card {
        padding: 4rem;
    }
}

@media (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (min-width: 1024px) {
    .page-hero-title {
        font-size: 4.5rem;
    }

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

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}