/* PORTFOLIO PAGE CSS */
body {
    margin: 0;
    font-family: system-ui;
    background: #f7f8fc;
    color: #111;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.site-header {
    position: sticky;
    top: 0;
    background: #0b1120cc;
    backdrop-filter: blur(12px);
    padding: 12px 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #fff;
    font-weight: 600;
}

.logo-mark {
    background: #fc8a10;
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
}

.main-nav ul {
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: #c7d2fe;
    font-size: 14px;
}

.main-nav a.active {
    color: #ff8502;
}

/* HERO */
.portfolio-hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #FFF4E7 0%, #FFF4E7 100%);
}

.hero-content h1 {
    font-size: 38px;
    margin-bottom: 10px;
}

.subtitle {
    max-width: 900px;
    margin: auto;
    color: #555;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin: 30px 0;
}

@media (max-width: 768px) {
    .stats-row {
        display: grid;
        max-width: 100%;
    }
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat strong {
    font-size: 32px;
    color: #fc8a10;
}

.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.filter {
    padding: 8px 18px;
    border-radius: 20px;
    white-space: nowrap;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
}

.filter.active {
    background: #fc8a10;
    color: #fff;
    border-color: #fc8a10;
}

/* GRID */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 20px #0001;
    padding-bottom: 20px;
}

.p-img {
    height: 180px;
    background: #ddd;
    border-radius: 16px 16px 0 0;
    position: relative;
    background-size: cover;
}

.img1 {
    background-image: linear-gradient(#999, #666);
}

.img2 {
    background-image: linear-gradient(#666, #444);
}

.img3 {
    background-image: linear-gradient(#aaa, #777);
}

.img4 {
    background-image: linear-gradient(#ccc, #999);
}

.img5 {
    background-image: linear-gradient(#bbb, #555);
}

.img6 {
    background-image: linear-gradient(#ddd, #999);
}

.p-tag {
    display: inline-block;
    position: absolute;
    padding: 5px 13px;
    top: 14px;
    border-radius: 20px;
    font-size: 12px;
    margin: 10px 0 0 12px;
    background: #dbeafe;
    color: #1d4ed8;
}


.project-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 420px;
    font-family: 'Inter', sans-serif;
    transition:
        opacity .3s ease,
        transform .3s ease;
}

/* Left tag */
.p-tag.blue {
    background: #fc8a10;
    color: #fff;
}

/* Right tag */
.p-tag.white {
    right: 16px;
    background: #fff;
    color: #374151;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 600;
}

.card-content p {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.p-link {
    color: #fc8a10;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.p-link:hover {
    text-decoration: underline;
}

.live-site {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6b7280;
}

.card h3 {
    margin: 12px;
    font-size: 18px;
}

.card p {
    margin: 0 12px 12px;
    color: #555;
    font-size: 14px;
}

.p-link {
    margin-left: 2px;
    color: #fc8a10;
    font-weight: 600;
}

/* WHY US */
.why-us {
    background: #f8fafc;
    padding: 80px 0;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

.why-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.why-card h2 {
    font-size: 28px;
    margin-bottom: 40px;
    color: #111827;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    text-align: left;
}

.why-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.check {
    background: #fc8a10;
    color: #ffffff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 4px;
}

.why-item strong {
    display: block;
    font-size: 16px;
    color: #111827;
    margin-bottom: 6px;
}

.why-item p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.center {
    margin-top: 40px;
}

.btn-primary {
    background: #173f84d6;
    color: #ffffff;
    padding: 12px 26px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.btn-primary:hover {
    background: #1d4ed8;
}

/* Responsive */
@media (max-width: 768px) {
    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-card {
        padding: 35px 25px;
    }
}

/* CTA */
.cta {
    background: #fc8a10;
    color: white;
    padding: 70px 0;
    text-align: center;
    margin-top: 60px;
}

.btn {
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
}

.btn-light {
    background: white;
    color: #fc8a10;
    font-weight: 600;
}


/* ===============================
   PORTFOLIO – PERFORMANCE MOTION
================================ */

/* Reveal */
.fx-reveal {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition:
        opacity .55s cubic-bezier(.2, .8, .2, 1),
        transform .55s cubic-bezier(.2, .8, .2, 1);
    will-change: transform, opacity;
}

.fx-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    will-change: auto;
}

/* Card hover (desktop only) */
@media (hover: hover) and (pointer: fine) {
    .project-card {
        transition: transform .18s ease, box-shadow .18s ease;
    }

    .project-card:hover {
        transform: translate3d(0, -6px, 0);
        box-shadow: 0 22px 60px rgba(0, 0, 0, .14);
    }
}

/* Respect accessibility */
@media (prefers-reduced-motion: reduce) {
    .fx-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* ==============================
   PORTFOLIO GRID – CENTER ALIGN
   Auto-center 1–2 cards
   ============================== */

.portfolio-grid {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    /* 🔑 center items */
    align-items: stretch;
    gap: 24px;
}

/* each card keeps same visual width */
.portfolio-grid>.card,
.portfolio-grid>.project-card {
    flex: 0 1 340px;
    /* responsive card width */
    max-width: 420px;
    width: 100%;
}