/* =====================================================================
   PAGE MODULE — en-portfolio
   Extracted verbatim from inline <style> of: portafolio.html, en/portfolio.html
   Design unchanged; loaded via `pageCss` front-matter.
   ===================================================================== */

/* ===========================
   CUSTOM PORTFOLIO HERO
   =========================== */

.portfolio-hero {
    background: linear-gradient(135deg, #263159 0%, #5C2A7E 50%, #17A7AF 100%);
    padding: 8rem 2rem 6rem;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

/* Premium button hover effects */
.portfolio-hero a[href="/en/contact"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.portfolio-hero a[href="/en/services"]:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px);
}

.portfolio-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.portfolio-hero-content {
    max-width: 100%;
}

.portfolio-hero-content .eyebrow {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.portfolio-hero-content h1 {
    font-family: 'Mirza', serif;
    font-weight: 500;
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--primary-navy);
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.portfolio-hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.stat-card .stat-icon {
    margin: 0 auto 1rem;
}

.stat-card strong {
    display: block;
    font-family: 'Mirza', serif;
    font-weight: 500;
    font-size: 2rem;
    color: var(--primary-navy);
    margin-bottom: 0.25rem;
}

.stat-card span {
    font-size: 0.95rem;
    color: rgba(38, 49, 89, 0.7);
}

/* Button link styling */
.btn-link {
    transition: all 0.3s ease;
}

.btn-link:hover {
    transform: translateX(4px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .portfolio-hero {
        padding-top: 5rem;
    }
    
    .portfolio-hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .portfolio-hero-content h1 {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons a {
        text-align: center;
        width: 100%;
    }
    
    .portfolio-hero-stats {
        grid-template-columns: 1fr;
    }
    
    /* Stack grid layouts on mobile */
    section div[style*="grid-template-columns: 1fr 1fr"],
    section div[style*="grid-template-columns: repeat(auto-fit"] {
        display: block !important;
    }
    
    section div[style*="grid-template-columns"] > div {
        margin-bottom: 2rem;
    }
    
    section div[style*="order: 1"],
    section div[style*="order: 2"] {
        order: 0 !important;
    }
    
    /* 4-icon grid becomes 2x2 on mobile */
    section div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* 5-logo grid becomes 2-3-on mobile or stacks */
    section div[style*="grid-template-columns: repeat(5, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Testimonials stay 2 columns but adjust */
    section div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
}
