/* =============================================
   Portfolio Page - Modern Design
   ============================================= */

/* Hero Section */
.portfolio-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.portfolio-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.portfolio-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.portfolio-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(184, 150, 46, 0.1);
    color: #B8962E;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(184, 150, 46, 0.25);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.portfolio-hero .hero-badge i {
    font-size: 1rem;
}

.portfolio-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.1;
}

.portfolio-hero h1 span {
    background: linear-gradient(135deg, #F5D061, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-hero p {
    font-size: 1.15rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

/* Stats Bar */
.portfolio-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #B8962E, #D4AF37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    color: #64748b;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Filter Tabs */
.portfolio-filters {
    padding: 30px 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 70px;
    z-index: 100;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 12px 24px;
    border: 2px solid #e2e8f0;
    background: #fff;
    border-radius: 50px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-tab:hover {
    border-color: #d4af37;
    color: #d4af37;
}

.filter-tab.active {
    background: linear-gradient(135deg, #1a1a1a, #333);
    border-color: transparent;
    color: #fff;
}

/* Portfolio Grid */
.portfolio-section {
    padding: 60px 0;
    background: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Project Card */
.project-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: #d1d5db;
}

.project-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15,23,42,0.85) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.project-card:hover .project-tags {
    transform: translateY(0);
}

.project-tag {
    background: rgba(212, 175, 55, 0.25);
    color: #F5D061;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-content {
    padding: 20px;
}

.project-category {
    display: inline-block;
    background: rgba(184, 150, 46, 0.1);
    color: #B8962E;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.project-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.project-description {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.project-results {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.result-item {
    text-align: center;
    flex: 1;
}

.result-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #10b981;
    display: block;
}

.result-label {
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Before/After Section */
.before-after-section {
    padding: 80px 0;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #B8962E;
    background: rgba(184, 150, 46, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.section-header p {
    color: #64748b;
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.before-after-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .before-after-grid {
        grid-template-columns: 1fr;
    }
}

.before-after-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.comparison-slider {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.comparison-before,
.comparison-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.comparison-before {
    z-index: 1;
}

.comparison-after {
    z-index: 2;
    width: 50%;
    overflow: hidden;
    border-right: 3px solid #D4AF37;
}

.comparison-before img,
.comparison-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparison-label {
    position: absolute;
    bottom: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
}

.comparison-before .comparison-label {
    right: 12px;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
}

.comparison-after .comparison-label {
    left: 12px;
    background: rgba(16, 185, 129, 0.9);
    color: #fff;
}

.comparison-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: #D4AF37;
    border-radius: 50%;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.comparison-handle i {
    color: #0f172a;
    font-size: 1rem;
}

.before-after-content {
    padding: 24px;
}

.before-after-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.before-after-meta {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.before-after-results {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.ba-result {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ba-result i {
    color: #10b981;
    font-size: 1rem;
}

.ba-result span {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.9rem;
}

/* Testimonials Section */
.portfolio-testimonials {
    padding: 80px 0;
    background: #fff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

.testimonial-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    position: relative;
}

.testimonial-card .quote-icon {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 2.5rem;
    color: rgba(184, 150, 46, 0.15);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card .stars {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.testimonial-card .stars i {
    color: #F5D061;
    font-size: 0.9rem;
}

.testimonial-card .content {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 16px;
    font-style: italic;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-card .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(184, 150, 46, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #B8962E;
}

.testimonial-card .author-info h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 2px;
}

.testimonial-card .author-info p {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0;
}

/* CTA Section */
.portfolio-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.portfolio-cta h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.portfolio-cta h2 span {
    background: linear-gradient(135deg, #B8962E, #D4AF37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-cta p {
    color: #64748b;
    font-size: 1rem;
    max-width: 550px;
    margin: 0 auto 28px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #d4af37, #F5D061);
    color: #0f172a;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.35);
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #fff;
    color: #1a1a1a;
    font-weight: 600;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-outline-light:hover {
    background: #f8fafc;
    border-color: #B8962E;
    color: #B8962E;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.trust-badges span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.85rem;
}

.trust-badges i {
    color: #10b981;
}

/* Responsive */
@media (max-width: 768px) {
    .portfolio-hero {
        padding: 110px 0 50px;
    }
    
    .portfolio-stats {
        gap: 24px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .filter-tabs {
        gap: 8px;
    }
    
    .filter-tab {
        padding: 10px 18px;
        font-size: 0.8rem;
    }
    
    .portfolio-cta {
        padding: 60px 0;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: fadeInUp 0.5s ease forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }
