/* Portfolio Page Styles */

/* Hero Section */
.portfolio-hero {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--blue) 100%);
    color: var(--white);
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.portfolio-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800" opacity="0.05"><path d="M0,0V800H1200V0ZM200,400C200,533,333,600,400,600S600,533,600,400,467,200,400,200,200,267,200,400Z" fill="white"/></svg>');
    background-size: cover;
}

.portfolio-hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.portfolio-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--white);
}

.text-gradient {
    background: linear-gradient(135deg, var(--orange) 0%, #ff9d00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-hero p {
    font-size: 1.2rem;
    margin-bottom: 50px;
    opacity: 0.9;
    line-height: 1.6;
    color: var(--white);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--orange);
    margin-bottom: 10px;
    font-weight: 700;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    color: var(--white);
    font-weight: 500;
}

/* Filter Section */
.portfolio-filter {
    padding: 80px 0 40px;
    background: var(--section-bg);
}

.filter-container {
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--orange);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--blue);
    max-width: 700px;
    margin: 0 auto 40px;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.filter-btn {
    padding: 12px 28px;
    background: var(--card-bg);
    color: var(--text-color);
    border: 2px solid transparent;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.filter-btn.active {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

/* Portfolio Grid */
.portfolio-grid-section {
    padding: 80px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.portfolio-item {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 28, 79, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: var(--transition);
    padding: 20px;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.overlay-content {
    transform: translateY(20px);
    transition: var(--transition);
    color: var(--white);
}

.portfolio-item:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.overlay-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.btn-view {
    background: var(--orange);
    color: var(--dark-blue);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    transition: var(--transition);
}

.btn-view:hover {
    background: var(--white);
    transform: translateY(-3px);
}

.portfolio-info {
    padding: 25px;
}

.portfolio-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.portfolio-info p {
    color: var(--blue);
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.portfolio-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: var(--light-blue);
    color: var(--blue);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.portfolio-load-more {
    text-align: center;
    margin-top: 40px;
}

/* Case Studies */
.case-studies {
    padding: 80px 0;
    background: var(--section-bg);
}

.case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.case-study-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.case-study-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.case-study-image {
    height: 200px;
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.case-study-card:hover .case-study-image img {
    transform: scale(1.05);
}

.case-study-content {
    padding: 25px;
}

.case-study-category {
    display: inline-block;
    background: var(--orange);
    color: var(--dark-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.case-study-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.case-study-excerpt {
    color: var(--blue);
    margin-bottom: 20px;
    line-height: 1.6;
}

.case-study-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 1px solid var(--light-blue);
    border-bottom: 1px solid var(--light-blue);
}

.stat {
    text-align: center;
}

.stat h4 {
    font-size: 1.5rem;
    color: var(--blue);
    margin-bottom: 5px;
}

.stat p {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.8;
    margin: 0;
}

.case-study-link {
    display: inline-flex;
    align-items: center;
    color: var(--blue);
    font-weight: 600;
    transition: var(--transition);
}

.case-study-link:hover {
    color: var(--orange);
}

.case-study-link i {
    margin-left: 8px;
    transition: var(--transition);
}

.case-study-link:hover i {
    transform: translateX(5px);
}

/* Client Testimonials */
.client-testimonials {
    padding: 80px 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    margin-bottom: 25px;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
}

.testimonial-content p::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: var(--orange);
    opacity: 0.3;
}

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

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--orange);
    color: var(--dark-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 15px;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.author-info p {
    font-size: 0.9rem;
    color: var(--blue);
    margin: 0;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--blue) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800" opacity="0.05"><path d="M0,0V800H1200V0ZM200,400C200,533,333,600,400,600S600,533,600,400,467,200,400,200,200,267,200,400Z" fill="white"/></svg>');
    background-size: cover;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .portfolio-hero h1 {
        font-size: 2.8rem;
    }
    
    .portfolio-stats {
        gap: 40px;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .portfolio-hero {
        padding: 150px 0 80px;
    }
    
    .portfolio-hero h1 {
        font-size: 2.2rem;
    }
    
    .portfolio-hero p {
        font-size: 1rem;
    }
    
    .portfolio-stats {
        gap: 30px;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .case-study-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .portfolio-hero h1 {
        font-size: 1.8rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .portfolio-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .case-study-stats {
        grid-template-columns: 1fr;
    }
}
