/* ==========================================================================
   PORTFOLIO PAGE STYLES
   ========================================================================== */

body.portfolio-page {
    background-color: #0a0a0a; /* Dark fallback to prevent white flash */
    background-image: url('/contact-hero-bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

/* Portfolio Hero */
.portfolio-hero {
    padding: 180px 20px 100px;
    position: relative;
}

.portfolio-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.portfolio-hero .hero-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    margin-bottom: 2rem;
}

.portfolio-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.portfolio-hero .hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #d1d5db;
    max-width: 600px;
    margin: 0 auto;
}

/* Portfolio Grid */
.portfolio-grid-section {
    padding: 60px 20px 100px;
}

.portfolio-grid-section .container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.portfolio-item.featured {
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.portfolio-image {
    position: relative;
    width: 100%;
    height: 280px;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    z-index: 2;
}

.portfolio-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.3);
}

.portfolio-placeholder svg {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.portfolio-placeholder p {
    font-size: 0.875rem;
    font-style: italic;
}

.portfolio-content {
    padding: 30px 35px;
}

.portfolio-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.portfolio-category {
    font-size: 1rem;
    font-weight: 600;
    color: #818cf8;
    margin-bottom: 1.5rem;
}

.portfolio-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
}

.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 1.5rem;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3rem;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 500;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.portfolio-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(5px);
}

.portfolio-link svg {
    transition: transform 0.3s ease;
}

.portfolio-link:hover svg {
    transform: translateX(3px);
}

/* Portfolio CTA Section */
.portfolio-cta-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-cta-section .cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.portfolio-cta-section h2 {
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.portfolio-cta-section p {
    font-size: 1.25rem;
    color: #d1d5db;
    margin-bottom: 2.5rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1.25rem 3rem;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.cta-button svg {
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 1024px) {
    .portfolio-hero .hero-title {
        font-size: 3rem;
    }
    
    .portfolio-grid-section .container {
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .portfolio-hero {
        padding: 140px 20px 60px;
    }
    
    .portfolio-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .portfolio-hero .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .portfolio-image {
        height: 220px;
    }
    
    .portfolio-content {
        padding: 25px 20px;
    }
    
    .portfolio-content h2 {
        font-size: 1.5rem;
    }
    
    .portfolio-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        text-align: center;
        padding: 12px 0;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .portfolio-tags {
        gap: 6px;
    }
    
    .tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.7rem;
    }
    
    .portfolio-link {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .portfolio-hero {
        padding: 120px 15px 40px;
    }
    
    .portfolio-hero .hero-title {
        font-size: 2rem;
    }
    
    .portfolio-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .portfolio-grid-section {
        padding: 40px 15px 80px;
    }
    
    .portfolio-grid-section .container {
        gap: 40px;
    }
    
    .portfolio-image {
        height: 200px;
    }
    
    .portfolio-content {
        padding: 20px 15px;
    }
    
    .portfolio-content h2 {
        font-size: 1.35rem;
    }
    
    .portfolio-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .portfolio-stats {
        gap: 8px;
        padding: 10px 0;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }
    
    .portfolio-link {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

