/* IR Infotech – Creative portfolio page */
.pf-page {
    --pf-dark: #0a0618;
    --pf-purple: #4f46e5;
    --pf-violet: #7c3aed;
    --pf-text: #0f0928;
    --pf-muted: #5c5c6f;
    --pf-radius: 20px;
    background: #f4f3f8;
    overflow-x: hidden;
}

/* Hide legacy portfolio blocks if any leak through */
.pf-page ~ .portfolio-section-page,
.pf-page .banner-section:not(.pf-hero) {
    display: none !important;
}

html.page-portfolio-ready .pace,
html.page-portfolio-ready .pace-cover,
body.page-portfolio .pace,
body.page-portfolio .pace-cover {
    display: none !important;
    height: 0 !important;
    visibility: hidden !important;
}

/* —— Hero —— */
.pf-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    padding: 110px 0 80px;
    background: var(--pf-dark);
    overflow: hidden;
}

.pf-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.pf-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    animation: pf-float 14s ease-in-out infinite;
}

.pf-blob-1 {
    width: 480px;
    height: 480px;
    background: #4f46e5;
    top: -120px;
    right: -80px;
}

.pf-blob-2 {
    width: 360px;
    height: 360px;
    background: #7c3aed;
    bottom: -80px;
    left: -60px;
    animation-delay: -5s;
}

.pf-blob-3 {
    width: 280px;
    height: 280px;
    background: #06b6d4;
    top: 40%;
    left: 35%;
    opacity: 0.35;
    animation-delay: -9s;
}

.pf-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
}

@keyframes pf-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(12px, -18px) scale(1.05); }
}

.pf-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: end;
}

.pf-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a5b4fc;
    margin-bottom: 16px;
    padding: 6px 14px;
    border: 1px solid rgba(165, 180, 252, 0.35);
    border-radius: 100px;
    background: rgba(79, 70, 229, 0.15);
}

.pf-hero-title {
    font-size: clamp(42px, 7vw, 88px);
    font-weight: 800;
    line-height: 0.95;
    color: #fff;
    margin: 0 0 20px;
    letter-spacing: -0.03em;
}

.pf-hero-title span {
    display: block;
    background: linear-gradient(120deg, #c4b5fd 0%, #818cf8 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0;
}

.pf-hero-desc {
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
    max-width: 520px;
    margin: 0 0 28px;
}

.pf-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.pf-btn-ghost {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 22px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 100px;
    transition: background 0.25s, border-color 0.25s;
}

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

.pf-hero-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pf-stat {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 18px 24px;
    min-width: 160px;
}

.pf-stat strong {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}

.pf-stat span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pf-scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    z-index: 2;
}

.pf-scroll-hint span {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    background: #fff;
    border-radius: 2px;
    animation: pf-scroll-dot 1.8s ease-in-out infinite;
}

@keyframes pf-scroll-dot {
    0%, 100% { transform: translateY(0); opacity: 1; }
    60% { transform: translateY(14px); opacity: 0.2; }
}

/* —— Work section —— */
.pf-work {
    padding: 72px 0 48px;
}

.pf-work-head {
    max-width: 640px;
    margin-bottom: 48px;
}

.pf-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pf-purple);
    margin-bottom: 12px;
}

.pf-work-head h2 {
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--pf-text);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.pf-work-head h2 em {
    font-style: normal;
    background: linear-gradient(120deg, var(--pf-purple), var(--pf-violet));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pf-work-head p {
    font-size: 17px;
    line-height: 1.6;
    color: var(--pf-muted);
    margin: 0;
}

/* —— Bento grid —— */
.pf-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.pf-card {
    grid-column: span 6;
    border-radius: var(--pf-radius);
    overflow: hidden;
    min-height: 320px;
}

.pf-card--featured {
    grid-column: span 7;
    grid-row: span 2;
    min-height: 100%;
}

.pf-card:nth-child(2) { grid-column: span 5; }
.pf-card:nth-child(3) { grid-column: span 5; }
.pf-card:nth-child(4) { grid-column: span 7; }
.pf-card:nth-child(2),
.pf-card:nth-child(3) { min-height: 280px; }

.pf-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid rgba(15, 9, 40, 0.08);
    border-radius: var(--pf-radius);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
    box-shadow: 0 4px 24px rgba(15, 9, 40, 0.06);
}

.pf-card-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(79, 70, 229, 0.18);
}

.pf-card--featured .pf-card-link {
    flex-direction: row;
}

.pf-card--featured .pf-card-visual {
    flex: 0 0 48%;
    min-height: 360px;
}

.pf-card--featured .pf-card-content {
    flex: 1;
    justify-content: center;
    padding: 40px 36px;
}

.pf-card-visual {
    position: relative;
    min-height: 200px;
    overflow: hidden;
}

.pf-card-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.92;
}

.pf-card--saffron .pf-card-gradient {
    background: linear-gradient(145deg, #f59e0b 0%, #ea580c 45%, #7c2d12 100%);
}

.pf-card--teal .pf-card-gradient {
    background: linear-gradient(145deg, #06b6d4 0%, #0891b2 45%, #164e63 100%);
}

.pf-card--rose .pf-card-gradient {
    background: linear-gradient(145deg, #f472b6 0%, #db2777 45%, #831843 100%);
}

.pf-card--mint .pf-card-gradient {
    background: linear-gradient(145deg, #34d399 0%, #059669 45%, #064e3b 100%);
}

.pf-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    mix-blend-mode: overlay;
    z-index: 2;
    transition: transform 0.6s ease, opacity 0.4s ease;
}

.pf-card-link:hover .pf-card-img {
    transform: scale(1.06);
    opacity: 0.5;
}

.pf-card-noise {
    position: absolute;
    inset: 0;
    z-index: 3;
    opacity: 0.12;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.pf-card-num {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 4;
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: -0.04em;
}

.pf-card-icon {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 4;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    color: #fff;
    font-size: 20px;
}

.pf-card-content {
    padding: 24px 26px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #fff;
}

.pf-card-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pf-purple);
    margin-bottom: 10px;
}

.pf-card-title {
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 700;
    line-height: 1.25;
    color: var(--pf-text);
    margin: 0 0 10px;
}

.pf-card--featured .pf-card-title {
    font-size: clamp(22px, 2.8vw, 30px);
}

.pf-card-excerpt {
    font-size: 14px;
    line-height: 1.55;
    color: var(--pf-muted);
    margin: 0 0 16px;
    flex: 1;
}

.pf-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--pf-purple);
    margin-top: auto;
    transition: gap 0.25s ease;
}

.pf-card-link:hover .pf-card-cta {
    gap: 14px;
}

.pf-card-cta svg {
    flex-shrink: 0;
}

/* —— Marquee —— */
.pf-marquee {
    padding: 20px 0;
    background: var(--pf-dark);
    overflow: hidden;
    border-block: 1px solid rgba(255, 255, 255, 0.06);
}

.pf-marquee-track {
    display: flex;
    gap: 48px;
    width: max-content;
    animation: pf-marquee 28s linear infinite;
}

.pf-marquee-track span {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
}

.pf-marquee-track span::after {
    content: "◆";
    margin-left: 48px;
    font-size: 8px;
    vertical-align: middle;
    opacity: 0.5;
}

@keyframes pf-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* —— CTA —— */
.pf-cta {
    padding: 56px 0 80px;
}

.pf-cta-box {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f0928 0%, #312e81 40%, #4f46e5 100%);
    padding: 56px 48px;
}

.pf-cta-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.5) 0%, transparent 70%);
    top: -100px;
    right: -80px;
    pointer-events: none;
}

.pf-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

.pf-cta-inner h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: #fff !important;
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.pf-cta-inner p {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0 0 28px;
}

.pf-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.pf-btn-ghost--light {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.pf-btn-ghost--light:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* —— Reveal animation —— */
.pf-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: var(--pf-delay, 0s);
}

.pf-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* —— Responsive —— */
@media (max-width: 1199px) {
    .pf-card,
    .pf-card--featured,
    .pf-card:nth-child(2),
    .pf-card:nth-child(3),
    .pf-card:nth-child(4) {
        grid-column: span 12;
    }

    .pf-card--featured .pf-card-link {
        flex-direction: column;
    }

    .pf-card--featured .pf-card-visual {
        flex: none;
        min-height: 240px;
    }
}

@media (max-width: 991px) {
    .pf-hero-inner {
        grid-template-columns: 1fr;
    }

    .pf-hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .pf-stat {
        flex: 1;
        min-width: 140px;
    }
}

@media (max-width: 576px) {
    .pf-hero {
        min-height: auto;
        padding: 100px 0 72px;
    }

    .pf-hero-stats {
        flex-direction: column;
    }

    .pf-cta-box {
        padding: 40px 24px;
    }
}

/* Hero CTA contrast on dark background */
.pf-hero .btn.btn-style1,
.pf-hero .pf-btn-primary {
    background: #fff !important;
    color: #0f0928 !important;
    border: none !important;
}

.pf-hero .btn.btn-style1:before {
    background: #4f46e5 !important;
}

.pf-hero .btn.btn-style1:hover {
    color: #fff !important;
}

.pf-work-head h2,
.pf-work-head p {
    color: var(--pf-text) !important;
}

.pf-work-head h2 em {
    -webkit-text-fill-color: transparent;
}
