/**
 * Portfolio & Testimonial Styles
 * 
 * @package Asivo
 * @version 1.0.0
 */

/* ================================
   Portfolio Items
   ================================ */

.portfolio-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    transition: transform var(--transition-base);
}

.portfolio-item:hover {
    transform: translateY(-8px);
}

.portfolio-item__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-item__image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.portfolio-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.portfolio-item:hover .portfolio-item__image img {
    transform: scale(1.05);
}

.portfolio-item__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--space-4);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.portfolio-item:hover .portfolio-item__overlay {
    opacity: 1;
}

.portfolio-item__link {
    color: var(--color-accent);
    font-weight: var(--font-semibold);
    font-family: var(--font-ui);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.portfolio-item__content {
    padding: var(--space-4);
    flex: 1;
}

.portfolio-item__title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
}

.portfolio-item__title a {
    color: var(--color-white);
    font-family: var(--font-headline);
    transition: color var(--transition-fast);
}

.portfolio-item__title a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.portfolio-item__excerpt {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-3);
}

.portfolio-item__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
}

/* ================================
   Testimonials
   ================================ */

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-4);
}

.testimonial {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    transition: all var(--transition-base);
}

.testimonial:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-primary);
}

.testimonial__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.testimonial__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-primary);
}

.testimonial__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial__quote {
    color: var(--color-text-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    font-style: italic;
    margin: 0;
    padding-left: var(--space-3);
    border-left: 3px solid var(--color-accent);
}

.testimonial__author {
    margin-top: auto;
}

.testimonial__name {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    font-family: var(--font-headline);
    color: var(--color-white);
    margin-bottom: var(--space-1);
}

.testimonial__company {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin: 0;
}

/* Single Portfolio Page */
.single-portfolio .entry-content {
    max-width: 800px;
    margin: 0 auto;
}

.single-portfolio .entry-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.single-portfolio .post-thumbnail {
    margin-bottom: var(--space-6);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.single-portfolio .post-thumbnail img {
    width: 100%;
    height: auto;
}

/* ================================
   Responsive
   ================================ */

@media (max-width: 768px) {
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
}
