/* ============================================
   PROJECTS PAGE — Mahipal Katha
   Extends styles.css (do not duplicate base vars)
   ============================================ */

/* ========== PROJECTS HERO ========== */

.projects-hero {
    position: relative;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 50%, #0f2654 100%);
    padding: clamp(5rem, 10vw, 9rem) 0 clamp(3rem, 6vw, 5rem);
    overflow: hidden;
}

.projects-hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 60% 50% at 80% 50%, rgba(217,119,6,.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 10% 80%, rgba(30,58,138,.4) 0%, transparent 60%);
    pointer-events: none;
}

.projects-hero-inner {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.projects-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(217,119,6,.15);
    border: 1px solid rgba(217,119,6,.35);
    color: var(--gold-300);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .45rem 1.1rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.projects-hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.2rem;
}

.projects-hero-sub {
    font-size: clamp(.95rem, 2vw, 1.12rem);
    color: rgba(255,255,255,.72);
    line-height: 1.75;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.projects-hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.ph-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
}

.ph-stat strong {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--gold-400);
    line-height: 1;
}

.ph-stat span {
    font-size: .8rem;
    font-weight: 600;
    color: rgba(255,255,255,.6);
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ========== FILTER BAR ========== */

.projects-filter-bar {
    background: var(--navy-800);
    border-bottom: 1px solid rgba(255,255,255,.08);
    position: sticky;
    top: 70px;
    z-index: 90;
    padding: 0;
}

.filter-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: .6rem 0;
}

.filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
    flex-shrink: 0;
    background: none;
    border: none;
    color: rgba(255,255,255,.6);
    font-family: 'Inter', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .03em;
    padding: .55rem 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: color .2s, background .2s;
}

.filter-tab:hover {
    color: #fff;
    background: rgba(255,255,255,.07);
}

.filter-tab.active {
    color: var(--gold-300);
    background: rgba(217,119,6,.18);
}

/* ========== PROJECTS SECTION ========== */

.projects-section {
    background: var(--navy-900);
    padding: 4rem 0 5rem;
}

/* ========== PROJECTS GRID ========== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

/* ========== PROJECT CARD ========== */

.project-card {
    border-radius: 16px;
    overflow: hidden;
    transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(217,119,6,.25);
}

.project-card-inner {
    background: var(--navy-800);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 16px;
    padding: 2rem 1.75rem 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color .35s ease;
}

.project-card:hover .project-card-inner {
    border-color: rgba(217,119,6,.35);
}

/* Icon */
.project-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(217,119,6,.2), rgba(245,158,11,.12));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform .35s ease;
}

.project-card:hover .project-icon-wrap {
    transform: scale(1.1) rotate(-3deg);
}

.project-icon {
    font-size: 1.6rem;
    line-height: 1;
}

/* AI badge on icon */
.project-icon-wrap .ai-label {
    position: absolute;
    bottom: -6px;
    right: -6px;
    background: var(--gold-600);
    color: #fff;
    font-size: .55rem;
    font-weight: 800;
    letter-spacing: .06em;
    padding: 2px 5px;
    border-radius: 4px;
    line-height: 1.4;
}

.project-icon-wrap {
    position: relative;
}

/* Category pill */
.project-cat-pill {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: .28rem .75rem;
    border-radius: 100px;
    width: fit-content;
}

.cat-healthcare  { background: rgba(5,150,105,.2);  color: #34d399; border: 1px solid rgba(52,211,153,.25); }
.cat-realestate  { background: rgba(59,130,246,.2);  color: #93c5fd; border: 1px solid rgba(147,197,253,.25); }
.cat-beauty      { background: rgba(236,72,153,.2);  color: #f9a8d4; border: 1px solid rgba(249,168,212,.25); }
.cat-marketing   { background: rgba(245,158,11,.2);  color: #fcd34d; border: 1px solid rgba(252,211,77,.25); }
.cat-ai          { background: rgba(139,92,246,.2);  color: #c4b5fd; border: 1px solid rgba(196,181,253,.25); }
.cat-hospitality { background: rgba(239,68,68,.2);   color: #fca5a5; border: 1px solid rgba(252,165,165,.25); }
.cat-fitness     { background: rgba(6,182,212,.2);   color: #67e8f9; border: 1px solid rgba(103,232,249,.25); }
.cat-education   { background: rgba(16,185,129,.2);  color: #6ee7b7; border: 1px solid rgba(110,231,183,.25); }
.cat-automotive  { background: rgba(251,146,60,.2);  color: #fdba74; border: 1px solid rgba(253,186,116,.25); }

/* Title */
.project-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin: 0;
}

/* Description */
.project-desc {
    font-size: .88rem;
    color: rgba(255,255,255,.65);
    line-height: 1.7;
    margin: 0;
    flex-grow: 1;
}

/* Features */
.project-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.project-features li {
    font-size: .82rem;
    color: rgba(255,255,255,.7);
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.5;
}

.project-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-500);
}

/* Impact box */
.project-impact {
    background: rgba(217,119,6,.08);
    border: 1px solid rgba(217,119,6,.2);
    border-radius: 10px;
    padding: .85rem 1rem;
}

.impact-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: .55rem;
}

.impact-stats {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.impact-stats span {
    font-size: .8rem;
    color: rgba(255,255,255,.8);
    font-weight: 500;
}

/* CTA row */
.project-cta-row {
    display: flex;
    gap: .75rem;
    margin-top: .25rem;
}

.btn-proj {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .65rem .9rem;
    border-radius: 8px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-decoration: none;
    transition: all .25s ease;
    white-space: nowrap;
}

.btn-proj-primary {
    background: linear-gradient(135deg, var(--gold-600), var(--gold-500));
    color: #fff;
    border: none;
}

.btn-proj-primary:hover {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(217,119,6,.4);
    color: #fff;
}

.btn-proj-outline {
    background: transparent;
    color: rgba(255,255,255,.75);
    border: 1px solid rgba(255,255,255,.2);
}

.btn-proj-outline:hover {
    background: rgba(255,255,255,.07);
    color: #fff;
    border-color: rgba(255,255,255,.4);
}

/* Hidden card (filtered out) */
.project-card.hidden {
    display: none;
}

/* No results */
.projects-no-results {
    text-align: center;
    padding: 4rem 1rem;
    color: rgba(255,255,255,.5);
    font-size: 1rem;
}

.projects-no-results span {
    display: block;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.projects-no-results a {
    color: var(--gold-400);
    text-decoration: underline;
}

/* ========== BOTTOM CTA STRIP ========== */

.projects-cta-strip {
    background: linear-gradient(135deg, #0a1628 0%, #0d1f3c 60%, #1a2f5e 100%);
    border-top: 1px solid rgba(217,119,6,.2);
    padding: 4.5rem 0;
    position: relative;
    overflow: hidden;
}

.projects-cta-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 70% at 90% 50%, rgba(217,119,6,.1) 0%, transparent 70%);
    pointer-events: none;
}

.projects-cta-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.projects-cta-text h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: .6rem;
}

.projects-cta-text p {
    color: rgba(255,255,255,.65);
    font-size: .95rem;
    max-width: 460px;
    line-height: 1.7;
    margin: 0;
}

.projects-cta-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.btn-whatsapp-cta {
    color: rgba(255,255,255,.85) !important;
    border-color: rgba(255,255,255,.25) !important;
}

.btn-whatsapp-cta:hover {
    background: rgba(255,255,255,.08) !important;
    color: #fff !important;
}

/* ========== NAV ACTIVE STATE ========== */

.nav-active {
    color: var(--gold-300) !important;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-filter-bar {
        top: 60px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .projects-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .projects-cta-text p {
        max-width: 100%;
    }

    .projects-cta-actions {
        justify-content: center;
    }

    .projects-hero-stats {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .project-cta-row {
        flex-direction: column;
    }

    .btn-proj {
        flex: none;
        width: 100%;
    }

    .filter-tab {
        font-size: .75rem;
        padding: .5rem .85rem;
    }

    .projects-cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .projects-cta-actions .btn {
        text-align: center;
    }
}
