/* Portfolio Page Styles */
.portfolio-section {
    position: relative;
    overflow: hidden;
}

/* Portfolio Filters */
.portfolio-filters {
    margin-bottom: 50px;
    padding: 15px;
    background: var(--light-color);
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.btn-filter {
    background: none;
    border: none;
    padding: 12px 25px;
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 1.1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.btn-filter::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.btn-filter:hover::before,
.btn-filter.active::before {
    width: 80%;
}

.btn-filter:hover,
.btn-filter.active {
    color: var(--primary-color);
    background: rgba(243, 166, 0, 0.1);
}

/* Portfolio Grid */
.portfolio-grid {
    margin: 0 -15px;
}

.portfolio-item {
    padding: 15px;
    margin-bottom: 30px;
}

.portfolio-card {
    background: var(--light-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
}

.portfolio-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 35px rgba(243, 166, 0, 0.1);
}

.portfolio-img {
    position: relative;
    overflow: hidden;
    padding-top: 65%; /* 16:9 Aspect Ratio */
}

.portfolio-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-content {
    padding: 30px;
    position: relative;
}

.portfolio-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    right: 30px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    opacity: 0.2;
}

.portfolio-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-weight: 600;
}

.portfolio-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.tech-stack {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-stack span {
    padding: 6px 15px;
    background: rgba(243, 166, 0, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-stack span:hover {
    background: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-2px);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(rgba(243, 166, 0, 0.05), rgba(243, 166, 0, 0.02));
    padding: 80px 0;
}

.stat-box {
    text-align: center;
    padding: 40px 30px;
    background: var(--light-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(243, 166, 0, 0.05));
    z-index: 0;
}

.stat-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(243, 166, 0, 0.1);
}

.stat-box h3 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
}

.stat-box p {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
    position: relative;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
}

.testimonial-card {
    background: var(--light-color);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 120px;
    color: rgba(243, 166, 0, 0.1);
    font-family: serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(243, 166, 0, 0.1);
}

.client-info {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
}

.client-info img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    padding: 3px;
    margin-right: 20px;
}

.client-info div h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.client-info div p {
    margin: 5px 0 0;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    position: relative;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(45deg, var(--primary-color), #ffb732);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png');
    opacity: 0.1;
}

.cta-section h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    position: relative;
}

.cta-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
}

.btn-light {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.btn-light:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .portfolio-filters {
        padding: 10px;
        border-radius: 30px;
    }

    .btn-filter {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .portfolio-content {
        padding: 25px;
    }

    .stat-box h3 {
        font-size: 2.5rem;
    }

    .cta-section h2 {
        font-size: 2.3rem;
    }
}

@media (max-width: 767px) {
    .portfolio-filters {
        flex-direction: column;
        gap: 5px;
        border-radius: 15px;
    }

    .btn-filter {
        width: 100%;
        text-align: center;
    }

    .portfolio-content h3 {
        font-size: 1.2rem;
    }

    .testimonial-card {
        padding: 30px 20px;
    }

    .client-info img {
        width: 60px;
        height: 60px;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .btn-light {
        padding: 12px 30px;
        font-size: 1rem;
    }
}
