/* ==========================================================================
   Archidply Portfolio & Projects Page Stylesheet
   Theme Color: Archidply Signature Blue (#00ADF1) & Brand Yellow (#FFDE2D)
   Matching global site header / certifications styling
   ========================================================================== */

/* 1. Page & Layout Reset */
.portfolio-page {
    background-color: #f4f5f9;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
}

/* 2. Hero Section - Matching Certifications & Global Hero Style */
.portfolio-hero {
    position: relative;
    background-color: #00ADF1;
    padding: 40px 0 0;
    overflow: hidden;
}

.portfolio-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.04) 0px,
        rgba(255, 255, 255, 0.04) 2px,
        transparent 2px,
        transparent 18px
    );
    pointer-events: none;
}

.portfolio-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(0, 80, 120, 0.35) 0%,
        rgba(0, 100, 150, 0.15) 50%,
        transparent 100%
    );
    pointer-events: none;
}

.portfolio-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

.portfolio-hero-left {
    flex: 1;
    min-width: 0;
}

.portfolio-hero-right {
    flex-shrink: 0;
    max-width: 380px;
}

.portfolio-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 5px 16px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    margin-bottom: 14px;
}

.portfolio-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.portfolio-hero-title span {
    background: linear-gradient(90deg, #FFDE2D 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-hero-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.65;
    margin-bottom: 24px;
    max-width: 600px;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.portfolio-hero-stats {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.22);
    overflow: hidden;
    width: fit-content;
}

.portfolio-hero-stat {
    text-align: center;
    padding: 12px 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.portfolio-hero-stat:last-child {
    border-right: none;
}

.portfolio-hero-stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 1.65rem;
    font-weight: 900;
    color: #FFDE2D;
    line-height: 1;
    margin-bottom: 3px;
}

.portfolio-hero-stat-label {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 600;
}

.portfolio-hero-badge-card {
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    padding: 24px;
    backdrop-filter: blur(6px);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-hero-badge-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #FFDE2D;
    color: #0b192c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.portfolio-hero-badge-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
}

.portfolio-hero-badge-desc {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin: 0;
}

/* Breadcrumbs */
.portfolio-hero-breadcrumb-wrap {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.18);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 12px 40px;
}

.portfolio-hero-breadcrumb {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
    flex-wrap: wrap;
}

.portfolio-hero-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.portfolio-hero-breadcrumb a:hover {
    color: #FFDE2D;
}

.portfolio-hero-breadcrumb .sep {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
}

.portfolio-hero-breadcrumb li.active {
    color: #FFDE2D;
    font-weight: 700;
}

/* Accent Strip */
.portfolio-palette-strip {
    height: 4px;
    background: linear-gradient(90deg, #FFDE2D 0%, #00ADF1 50%, #FFDE2D 100%);
}

/* Main Container Layout */
.portfolio-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* Category Filter Bar */
.portfolio-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    max-width: 100%;
}

.portfolio-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.portfolio-filter-tab:hover {
    border-color: #00ADF1;
    color: #00ADF1;
    background-color: #f0fbff;
    transform: translateY(-1px);
}

.portfolio-filter-tab.active {
    background-color: #00ADF1;
    color: #ffffff;
    border-color: #00ADF1;
    box-shadow: 0 4px 14px rgba(0, 173, 241, 0.35);
}

.portfolio-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
}

.portfolio-filter-tab.active .portfolio-filter-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Projects Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Project Card */
.project-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
    border-color: #00ADF1;
}

.project-card-image-wrap {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background-color: #f1f5f9;
}

.project-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-card-img {
    transform: scale(1.06);
}

.project-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #cbd5e1;
    background: #e2e8f0;
}

.project-category-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(11, 25, 44, 0.88);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.725rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 30px;
    max-width: calc(100% - 28px);
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    border: 1px solid rgba(0, 173, 241, 0.4);
}

/* Card Body */
.project-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card-meta-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.project-meta-item {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-meta-item i {
    color: #00ADF1;
}

.project-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 10px;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.project-client-name {
    font-size: 0.85rem;
    color: #475569;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.project-client-name i {
    color: #00ADF1;
}

.project-card-desc {
    font-size: 0.925rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Card Footer */
.project-card-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.project-inquire-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.project-inquire-btn:hover {
    background: #00ADF1;
    color: #ffffff;
    border-color: #00ADF1;
}

/* CTA Section - Light Modern */
.portfolio-cta-section {
    background: linear-gradient(135deg, #ffffff 0%, #f0fbff 100%);
    border-top: 1px solid #e2e8f0;
    padding: 70px 0;
}

.portfolio-cta-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.portfolio-cta-inner {
    display: flex;
    align-items: center;
    gap: 30px;
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.portfolio-cta-icon-wrap {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: rgba(0, 173, 241, 0.1);
    color: #00ADF1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.portfolio-cta-content {
    flex: 1;
}

.portfolio-cta-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.portfolio-cta-content p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.portfolio-cta-action {
    flex-shrink: 0;
}

.portfolio-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #00ADF1;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 173, 241, 0.3);
}

.portfolio-cta-btn:hover {
    background: #008cc4;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 173, 241, 0.4);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .portfolio-hero-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 24px 32px;
    }

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

    .portfolio-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .portfolio-cta-icon-wrap {
        margin: 0 auto;
    }

    .portfolio-cta-action {
        width: 100%;
    }

    .portfolio-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .portfolio-hero {
        padding: 25px 0 0;
    }

    .portfolio-hero-inner {
        padding: 0 16px 24px;
    }

    .portfolio-hero-breadcrumb-wrap {
        padding: 10px 16px;
    }

    .portfolio-hero-title {
        font-size: 1.85rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-filter-bar {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .portfolio-filter-tab {
        flex: 0 0 auto;
    }

    .portfolio-hero-stats {
        width: 100%;
        flex-direction: column;
        border-radius: 12px;
    }

    .portfolio-hero-stat {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        width: 100%;
        padding: 16px 20px;
    }

    .portfolio-hero-stat:last-child {
        border-bottom: none;
    }
}
