/* Portfolio Page Styles */

/* Portfolio Hero */
.portfolio-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.portfolio-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.portfolio-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.portfolio-stats .stat {
    text-align: center;
}

.portfolio-stats .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffd700;
    margin-bottom: 10px;
}

.portfolio-stats .label {
    font-size: 1rem;
    opacity: 0.8;
}

/* Portfolio Filters */
.portfolio-filters {
    padding: 40px 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* Case Studies */
.case-studies {
    padding: 100px 0;
    background: white;
}

.case-study {
    background: #f8fafc;
    border-radius: 20px;
    padding: 60px;
    margin-top: 40px;
}

.case-study-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.case-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
}

.case-study h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #1e293b;
}

.case-study p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 30px;
}

.case-challenge,
.case-solution,
.case-results {
    margin-bottom: 30px;
}

.case-challenge h4,
.case-solution h4,
.case-results h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1e293b;
}

.case-solution ul {
    list-style: none;
    padding: 0;
}

.case-solution li {
    padding: 8px 0;
    color: #64748b;
    position: relative;
    padding-left: 25px;
}

.case-solution li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28ca42;
    font-weight: bold;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.result-item {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.result-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 5px;
}

.result-label {
    font-size: 14px;
    color: #64748b;
}

/* Before/After Visual */
.before-after {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.before,
.after {
    text-align: center;
    flex: 1;
}

.before h4,
.after h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1e293b;
}

.before .chart-container,
.after .chart-container {
    display: flex;
    align-items: end;
    gap: 8px;
    height: 120px;
    margin-bottom: 15px;
    justify-content: center;
}

.chart-bar.low {
    background: linear-gradient(to top, #ef4444, #f87171);
    border-radius: 4px 4px 0 0;
    width: 20px;
}

.chart-bar.high {
    background: linear-gradient(to top, #28ca42, #4ade80);
    border-radius: 4px 4px 0 0;
    width: 20px;
}

.before p,
.after p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* Portfolio Grid Section */
.portfolio-grid-section {
    padding: 100px 0;
    background: #f8fafc;
}

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

.portfolio-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

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

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

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

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.overlay-content {
    text-align: center;
    color: white;
}

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

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

.overlay-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.overlay-stats span {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.portfolio-content {
    padding: 30px;
}

.portfolio-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tag {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.tag.ai-seo {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

.tag.ui-ux {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.tag.web-dev {
    background: rgba(40, 202, 66, 0.1);
    color: #28ca42;
}

.tag.hosting {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.tag.ecommerce {
    background: rgba(156, 39, 176, 0.1);
    color: #9c27b0;
}

.tag.saas {
    background: rgba(0, 150, 136, 0.1);
    color: #009688;
}

.tag.mobile {
    background: rgba(255, 87, 34, 0.1);
    color: #ff5722;
}

.tag.local {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.tag.migration {
    background: rgba(96, 125, 139, 0.1);
    color: #607d8b;
}

.tag.corporate {
    background: rgba(63, 81, 181, 0.1);
    color: #3f51b5;
}

.tag.content {
    background: rgba(233, 30, 99, 0.1);
    color: #e91e63;
}

.portfolio-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1e293b;
}

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

.portfolio-metrics {
    display: flex;
    gap: 20px;
}

.portfolio-metrics .metric {
    text-align: center;
    flex: 1;
}

.portfolio-metrics .metric-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

.portfolio-metrics .metric-label {
    font-size: 12px;
    color: #64748b;
}

/* Client Testimonials */
.client-testimonials {
    padding: 100px 0;
    background: white;
}

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

.testimonial-card {
    background: #f8fafc;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.stars {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.stars i {
    color: #ffd700;
    font-size: 16px;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 30px;
    font-style: italic;
}

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

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-weight: 600;
    margin-bottom: 5px;
    color: #1e293b;
}

.author-info span {
    color: #64748b;
    font-size: 14px;
}

/* Portfolio CTA */
.portfolio-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

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

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

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

.btn-primary,
.btn-secondary {
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Active Navigation Link */
.nav-link.active {
    color: #667eea;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-hero h1 {
        font-size: 2.5rem;
    }
    
    .portfolio-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .case-study-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .case-study {
        padding: 40px 20px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .before-after {
        flex-direction: column;
        gap: 20px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-tabs {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .portfolio-hero {
        padding: 100px 0 60px;
    }
    
    .portfolio-hero h1 {
        font-size: 2rem;
    }
    
    .case-study {
        padding: 30px 15px;
    }
    
    .portfolio-content {
        padding: 20px;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
}
