/* ================================================================
   portfolio.css — Vividhity Portfolio Page
   All styles live here. No inline styles in the HTML template.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ================================================================
   DESIGN TOKENS
   ================================================================ */
:root {
    /* Brand blues */
    --blue: #2563EB;
    --blue-dark: #1D4ED8;
    --blue-deeper: #1340B0;
    --blue-light: #EFF6FF;
    --blue-mid: #DBEAFE;

    /* Colour palette — accent families */
    --c-blue-bg: #EFF6FF;
    --c-blue-border: rgba(37, 99, 235, 0.2);
    --c-blue-text: #2563EB;

    --c-purple-bg: #F5F3FF;
    --c-purple-border: rgba(108, 92, 231, 0.2);
    --c-purple-text: #6C5CE7;

    --c-sky-bg: #EFF6FF;
    --c-sky-border: rgba(9, 132, 227, 0.2);
    --c-sky-text: #0984E3;

    --c-orange-bg: #FFF7ED;
    --c-orange-border: rgba(225, 112, 85, 0.2);
    --c-orange-text: #E17055;

    --c-green-bg: #ECFDF5;
    --c-green-border: rgba(0, 184, 148, 0.2);
    --c-green-text: #00B894;

    /* Neutrals */
    --ink: #0F172A;
    --ink-2: #1E293B;
    --body: #475569;
    --muted: #94A3B8;
    --border: #E2E8F0;
    --white: #FFFFFF;
    --page-bg: #F8FAFF;

    /* Typography */
    --font-head: 'Manrope', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Radii */
    --radius: 20px;
    --radius-sm: 12px;
    --radius-xs: 9px;

    /* Shadows */
    --shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 40px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 24px 80px rgba(15, 23, 42, 0.14);
    --shadow-blue: 0 8px 32px rgba(37, 99, 235, 0.22);

    /* Transitions */
    --tr: 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ================================================================
   RESET
   ================================================================ */
.pf-page *,
.pf-page *::before,
.pf-page *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.pf-page {
    font-family: var(--font-body);
    color: var(--body);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ================================================================
   LAYOUT WRAPPER
   ================================================================ */
.pf-wrap {
    max-width: 1477px;
    margin: 0 auto;
    padding: 0 48px;
    width: 100%;
    box-sizing: border-box;
}

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
.pf-reveal-up {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.pf-reveal-up.pf-visible {
    opacity: 1;
    transform: translateY(0);
}

.pf-d2 {
    transition-delay: 0.13s;
}

.pf-d3 {
    transition-delay: 0.26s;
}

/* ================================================================
   COLOUR MODIFIER SYSTEM
   Icon backgrounds / borders
   ================================================================ */
.pf-icon--blue {
    background: var(--c-blue-bg);
    border-color: var(--c-blue-border);
}

.pf-icon--purple {
    background: var(--c-purple-bg);
    border-color: var(--c-purple-border);
}

.pf-icon--sky {
    background: var(--c-sky-bg);
    border-color: var(--c-sky-border);
}

.pf-icon--orange {
    background: var(--c-orange-bg);
    border-color: var(--c-orange-border);
}

.pf-icon--green {
    background: var(--c-green-bg);
    border-color: var(--c-green-border);
}

/* Stack pills (hero visual) */
.pf-stack-pill {
    margin-left: auto;
    font-size: 0.64rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.pf-pill--blue {
    background: var(--c-blue-bg);
    color: var(--c-blue-text);
}

.pf-pill--purple {
    background: var(--c-purple-bg);
    color: var(--c-purple-text);
}

.pf-pill--sky {
    background: var(--c-sky-bg);
    color: var(--c-sky-text);
}

.pf-pill--orange {
    background: var(--c-orange-bg);
    color: var(--c-orange-text);
}

.pf-pill--green {
    background: var(--c-green-bg);
    color: var(--c-green-text);
}

/* Row-card accent colours — sets CSS var used by card children */
.pf-row--blue {
    --row-accent: var(--c-blue-text);
}

.pf-row--purple {
    --row-accent: var(--c-purple-text);
}

.pf-row--sky {
    --row-accent: var(--c-sky-text);
}

.pf-row--orange {
    --row-accent: var(--c-orange-text);
}

.pf-row--green {
    --row-accent: var(--c-green-text);
}

/* Left-panel badges on row cards */
.pf-row-left__badge {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
    flex-shrink: 0;
    border: 1px solid transparent;
}

.pf-badge--blue {
    background: var(--c-blue-bg);
    color: var(--c-blue-text);
    border-color: var(--c-blue-border);
}

.pf-badge--purple {
    background: var(--c-purple-bg);
    color: var(--c-purple-text);
    border-color: var(--c-purple-border);
}

.pf-badge--sky {
    background: var(--c-sky-bg);
    color: var(--c-sky-text);
    border-color: var(--c-sky-border);
}

.pf-badge--orange {
    background: var(--c-orange-bg);
    color: var(--c-orange-text);
    border-color: var(--c-orange-border);
}

.pf-badge--green {
    background: var(--c-green-bg);
    color: var(--c-green-text);
    border-color: var(--c-green-border);
}

/* ================================================================
   HERO
   ================================================================ */
.pf-hero {
    background: var(--white);
    height: 90vh;
    padding: 73px 0 30px;
    position: relative;
    overflow: hidden;
}

/* Dot-grid texture — full hero */
.pf-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(37, 99, 235, 0.07) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
    z-index: 0;
}

.pf-hero-inner {
    max-width: 1519px;
    margin: 0 auto;
    padding: 0 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 1;
    min-height: unset;
}

/* LEFT SIDE */
.pf-hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0;
}

/* RIGHT IMAGE BOX */
.pf-hero-visual {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: 440px;

    background:
        radial-gradient(circle at top left,
            rgba(255, 255, 255, 0.08),
            transparent 30%),
        linear-gradient(135deg,
            #10227a 0%,
            #155fd1 55%,
            #2f7cff 100%);

    border-radius: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 36px;
    position: relative;
    overflow: hidden;

    box-shadow:
        0 16px 48px rgba(37, 99, 235, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

/* White dot-grid overlay on dark blue panel */
.pf-hero-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
    border-radius: inherit;
}

.pf-hero-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    display: block;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

/* ── Eyebrow pill ── */
.pf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 20px;
    padding: 6px 14px 6px 10px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 30px;
    width: fit-content;
}

.pf-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--blue);
    border-radius: 50%;
    animation: pf-pulse 2s ease infinite;
    flex-shrink: 0;
}

@keyframes pf-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .45;
        transform: scale(.82);
    }
}

/* ── Hero title ── */
.pf-hero-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.12;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    animation: fadeUp 0.8s 0.1s both;


}

.pf-hero-accent {
    color: var(--blue);
    position: relative;
    display: inline-block;
}

.pf-hero-accent::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 60%;
    height: 3px;
    background: var(--blue);
    border-radius: 2px;
    opacity: 0.5;
}

/* ── Hero desc ── */
.pf-hero-desc {
    font-size: 1rem;
    color: var(--body);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 420px;
}

/* ── Feature badges row ── */
.pf-hero-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.pf-hero-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 10px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
    flex: 1;
    min-width: 130px;
    transition: box-shadow var(--tr), border-color var(--tr);
}

.pf-hero-badge:hover {
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.10);
}

.pf-hero-badge__icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.pf-hero-badge__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.pf-hero-badge__title {
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}

.pf-hero-badge__sub {
    font-size: 0.68rem;
    color: var(--muted);
    font-weight: 500;
}

/* ================================================================
   SECTION SHELL
   ================================================================ */
.pf-section {
    padding: 88px 0 100px;
    background: var(--page-bg);
    position: relative;
}

/* Subtle top gradient band */
.pf-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.18), rgba(108, 92, 231, 0.12), transparent);
}

.pf-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 56px;
}

.pf-section-head__left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pf-tag {
    display: inline-block;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 4px;
}

.pf-section-title {
    font-family: var(--font-head);
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--ink);
    letter-spacing: -0.4px;
}

.pf-section-head__sub {
    font-size: 0.85rem;
    color: var(--body);
    line-height: 1.6;
    width: 220px;
    flex-shrink: 0;
    text-align: right;
    align-self: flex-end;
    padding-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ================================================================
   ROW CARDS
   ================================================================ */
.pf-row-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05), 0 4px 16px rgba(15, 23, 42, 0.05);
    margin-bottom: 14px;
    transition: transform var(--tr), box-shadow var(--tr);
    position: relative;
}

/* Left coloured accent bar */
.pf-row-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: var(--row-accent, var(--blue));
    border-radius: 3px 0 0 3px;
    z-index: 1;
}

/* Subtle inner glow behind accent bar */
.pf-row-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 3px;
    bottom: 0;
    width: 40px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--row-accent, var(--blue)) 6%, transparent), transparent);
    pointer-events: none;
}

.pf-row-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07), 0 16px 40px rgba(15, 23, 42, 0.09);
}

/* ── Left panel ── */
.pf-row-left {
    padding: 22px 20px 20px 24px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: linear-gradient(160deg, var(--white) 60%, #f8faff 100%);
}

.pf-row-left__header {
    display: flex;
    align-items: center;
    gap: 11px;
}

.pf-row-left__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    line-height: 0;
    flex-shrink: 0;
    transition: transform var(--tr), box-shadow var(--tr);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

/* When icon contains a PNG logo — remove coloured bg, border & shadow */
.pf-row-left__icon:has(.pf-row-left__logo) {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    width: 40px;
    height: 40px;
}

.pf-row-left__logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    display: block;
}

.pf-row-card:hover .pf-row-left__icon {
    transform: scale(1.1) rotate(-4deg);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.pf-row-left__name {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.pf-row-left__desc {
    font-size: 0.76rem;
    color: var(--muted);
    line-height: 1.6;
}

.pf-row-left__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--row-accent, var(--blue));
    transition: gap var(--tr), opacity var(--tr);
    width: fit-content;
    padding: 5px 10px 5px 0;
    border-radius: 6px;
}

.pf-row-left__link:hover {
    gap: 8px;
    opacity: 0.75;
}

.pf-row-left__link svg {
    flex-shrink: 0;
}

/* ── Right panel — 3×2 grid ── */
.pf-row-right {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr auto;
}

.pf-row-cell {
    padding: 16px 18px 14px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: background var(--tr);
}

.pf-row-cell:nth-child(3) {
    border-right: none;
}

.pf-row-cell:nth-child(4) {
    border-bottom: none;
}

.pf-row-cell:nth-child(5) {
    border-bottom: none;
}

.pf-row-cell:nth-child(6) {
    border-right: none;
    border-bottom: none;
}

.pf-row-card:hover .pf-row-cell--feature {
    background: #fafbff;
}

/* Feature cells (top row) */
.pf-row-cell--feature .pf-cell-icon {
    font-size: 1rem;
    margin-bottom: 6px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--page-bg);
    border: 1px solid var(--border);
    border-radius: 7px;
}

.pf-row-cell--feature .pf-cell-title {
    font-family: var(--font-head);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 2px;
}

.pf-row-cell--feature .pf-cell-desc {
    font-size: 0.68rem;
    color: var(--muted);
    line-height: 1.55;
}

/* Stat cells (bottom row) */
.pf-row-cell--stat {
    background: #F7FAFF;
    justify-content: center;
    padding: 12px 18px;
    transition: background var(--tr);
    position: relative;
}

.pf-row-cell--stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--row-accent, var(--blue)) 20%, transparent), transparent);
}

.pf-row-card:hover .pf-row-cell--stat {
    background: #EFF5FF;
}

.pf-row-cell--stat .pf-cell-val {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--row-accent, var(--blue));
    line-height: 1;
    letter-spacing: -0.5px;
}

.pf-row-cell--stat .pf-cell-label {
    font-size: 0.63rem;
    color: var(--muted);
    font-weight: 500;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ================================================================
   BUTTONS (kept for any other use)
   ================================================================ */
.pf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 11px 22px;
    border-radius: 10px;
    text-decoration: none;
    transition: background var(--tr), transform 0.18s, box-shadow var(--tr), color var(--tr), border-color var(--tr);
    letter-spacing: 0.01em;
    cursor: pointer;
}

.pf-btn svg {
    transition: transform var(--tr);
}

.pf-btn:hover svg {
    transform: translateX(4px);
}

.pf-btn--primary {
    background: var(--blue);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.30);
}

.pf-btn--primary:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.38);
}

.pf-btn--ghost {
    background: transparent;
    color: var(--ink-2);
    border: 1.5px solid var(--border);
}

.pf-btn--ghost:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--blue-light);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .pf-hero-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .pf-hero-visual {
        height: 360px;
        border-radius: 24px;
    }
}

@media (max-width: 900px) {
    .pf-row-card {
        grid-template-columns: 1fr;
    }

    .pf-row-left {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
}

@media (max-width: 768px) {
    .pf-wrap {
        padding: 0 20px;
    }

    .pf-hero-inner {
        padding: 0 20px;
    }

    .pf-hero {
        padding: 48px 0 0;
    }

    .pf-section {
        padding: 60px 0 72px;
    }

    .pf-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .pf-section-head__sub {
        text-align: left;
        max-width: 100%;
    }
}

@media (max-width: 560px) {
    .pf-row-right {
        grid-template-columns: repeat(2, 1fr);
    }

    .pf-row-cell:nth-child(2) {
        border-right: none;
    }

    .pf-row-cell:nth-child(3) {
        border-right: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }

    .pf-row-cell:nth-child(4) {
        border-bottom: none;
    }

    .pf-row-cell:nth-child(5) {
        border-right: none;
        border-bottom: none;
    }

    .pf-row-cell:nth-child(6) {
        display: none;
    }
}

@media (max-width: 480px) {
    .pf-hero-title {
        font-size: 1.9rem;
    }

    .pf-section-title {
        font-size: 1.5rem;
    }
}