/* ===== Portfolio Page ===== */
.portfolio-hero {
    background: linear-gradient(135deg, #0a1628 0%, #1a3a6e 60%, #0d2d6e 100%);
    padding: 100px 0 70px;
    position: relative;
    overflow: hidden;
}

.portfolio-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.portfolio-hero .badge-pill {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 16px;
}

.portfolio-hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.portfolio-hero p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 17px;
    max-width: 560px;
}

/* ===== Stats Strip ===== */
.stats-strip {
    background: #fff;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 32px 40px;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.stat-item {
    text-align: center;
    padding: 10px 20px;
    border-right: 1px solid #eee;
}

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

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #002f7b;
    line-height: 1;
}

.stat-number span {
    color: #002f7b;
}

.stat-label {
    font-size: 13px;
    color: #777;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Screenshots Gallery ===== */
.screenshots-section {
    padding: 60px 0 20px;
}

.screenshots-section .section-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #e84d1c;
    font-weight: 600;
    margin-bottom: 8px;
}

.screenshot-img {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
    transition: transform .3s ease, box-shadow .3s ease;
}

.screenshot-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.screenshot-img:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
}

.screenshot-img.tall img {
    height: 460px;
}

/* ===== Project Cards ===== */
.portfolio-grid {
    padding-bottom: 70px;
}

.project-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
    transition: all .3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.13);
}

.project-card-img {
    position: relative;
    overflow: hidden;
}

.project-card-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .4s ease;
}

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

.project-cat-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.cat-web    { background: #e8f4fd; color: #1565c0; }
.cat-mobile { background: #fce8ff; color: #7b1fa2; }
.cat-cloud  { background: #e8fff4; color: #1b5e20; }
.cat-dm     { background: #fff3e8; color: #bf360c; }
.cat-it     { background: #f0f0f0; color: #333; }
.cat-ai     { background: #fff8e1; color: #e65100; }

.project-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-client {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.project-client i {
    margin-right: 4px;
}

.project-title {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin-bottom: 10px;
    line-height: 1.35;
}

.project-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 16px;
    flex: 1;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.tech-tag {
    background: #f4f6f8;
    color: #555;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
}

.project-card-footer {
    border-top: 1px solid #f0f0f0;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-result {
    font-size: 12px;
    color: #27ae60;
    font-weight: 600;
}

.project-result i {
    margin-right: 4px;
}

/* ===== Clients Strip ===== */
.clients-section {
    background: #f8f9fa;
    padding: 60px 0;
}

.clients-section h5 {
    text-align: center;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    margin-bottom: 40px;
}

.client-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px 60px;
}

.client-logo-item {
    font-size: 22px;
    font-weight: 700;
    color: #bbb;
    letter-spacing: -0.5px;
    transition: color .3s;
    font-family: 'Poppins', sans-serif;
}

.client-logo-item:hover {
    color: #555;
}

/* ===== CTA ===== */
.portfolio-cta {
    background: linear-gradient(135deg, #111 0%, #333 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.portfolio-cta::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.portfolio-cta h2 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 12px;
}

.portfolio-cta p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.btn-cta-white {
    background: #fff;
    color: #111;
    border-radius: 8px;
    font-weight: 600;
    padding: 14px 36px;
    font-size: 15px;
    transition: .3s;
    text-decoration: none;
    display: inline-block;
    margin: 6px;
}

.btn-cta-white:hover {
    background: #e84d1c;
    color: #fff;
}

.btn-cta-outline {
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    padding: 14px 36px;
    font-size: 15px;
    transition: .3s;
    text-decoration: none;
    display: inline-block;
    margin: 6px;
}

.btn-cta-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

@media (max-width: 768px) {
    .stats-strip {
        padding: 24px 16px;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 16px;
    }

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

    .screenshot-img img {
        height: 180px;
    }

    .screenshot-img.tall img {
        height: 180px;
    }
}
