/* Portfolio-first homepage
   Less landing page, more designer/developer portfolio.
*/

:root {
    --pf-bg: #0d1117;
    --pf-bg-soft: #111820;
    --pf-card: rgba(255,255,255,.045);
    --pf-card-strong: rgba(255,255,255,.065);
    --pf-border: rgba(255,255,255,.11);
    --pf-text: rgba(255,255,255,.82);
    --pf-muted: rgba(255,255,255,.58);
    --pf-green: #00d88c;
    --pf-white: #f7f8fa;
}

html,
body {
    overflow-x: hidden;
}

body {
    background: var(--pf-bg) !important;
    color: var(--pf-white) !important;
}

.pf-page {
    position: relative;
    background:
        radial-gradient(circle at 14% 0%, rgba(0,216,140,.10), transparent 25%),
        var(--pf-bg);
    color: var(--pf-white);
}

.pf-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .18;
    background-image:
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
}

.pf-container {
    position: relative;
    z-index: 2;
    width: min(1160px, calc(100% - 42px));
    margin: 0 auto;
}

.pf-page h1,
.pf-page h2,
.pf-page h3,
.pf-page p {
    margin: 0;
}

.pf-page h1,
.pf-page h2,
.pf-page h3 {
    font-weight: 680;
    letter-spacing: -0.9px;
}

.pf-page p {
    color: var(--pf-muted);
    line-height: 1.72;
    font-size: 16px;
}

.pf-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s ease, transform .65s ease;
}

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

.pf-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--pf-green);
    background: rgba(0,216,140,.08);
    border: 1px solid rgba(0,216,140,.18);
    font-size: 13px;
    font-weight: 650;
}

.pf-btn,
.pf-text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 13px 19px;
    border-radius: 13px;
    text-decoration: none;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 700;
    transition: .22s ease;
}

.pf-btn:hover,
.pf-text-link:hover {
    transform: translateY(-2px);
}

.pf-btn-primary {
    color: #07130e;
    background: var(--pf-green);
}

.pf-btn-primary:hover {
    color: #07130e;
    background: #00ef9b;
}

.pf-btn-secondary,
.pf-text-link {
    color: #fff;
    background: rgba(255,255,255,.045);
    border-color: var(--pf-border);
}

.pf-btn-secondary:hover,
.pf-text-link:hover {
    color: #fff;
    border-color: rgba(0,216,140,.35);
}

/* Header compact */
.navbar-brand img,
.logo img,
.site-logo img,
.header-logo img,
.custom-logo,
header img.logo {
    max-height: 42px !important;
    width: auto !important;
    object-fit: contain !important;
}

/* Hero compact */
.pf-hero {
    padding: 74px 0 52px;
}

.pf-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: 38px;
    align-items: center;
}

.pf-hero h1 {
    max-width: 760px;
    margin-top: 18px;
    font-size: clamp(42px, 5vw, 66px);
    line-height: 1.04;
}

.pf-hero p {
    max-width: 700px;
    margin-top: 18px;
    font-size: 17px;
}

.pf-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.pf-quick-info {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 26px;
}

.pf-quick-info span {
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--pf-border);
    color: rgba(255,255,255,.68);
    font-size: 13px;
    font-weight: 600;
}

.pf-hero-preview {
    position: relative;
}

.pf-featured-preview {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 26px;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--pf-border);
    min-height: 420px;
    text-decoration: none;
}

.pf-featured-preview img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.pf-featured-preview:hover img {
    transform: scale(1.04);
}

.pf-preview-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    min-height: 420px;
}

.pf-preview-empty strong {
    display: block;
    margin-top: 8px;
    color: #fff;
    font-size: 24px;
}

.pf-preview-empty p {
    margin-top: 8px;
}

.pf-preview-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(13,17,23,.82);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(14px);
}

.pf-preview-caption span {
    color: var(--pf-green);
    font-size: 13px;
    font-weight: 700;
}

.pf-preview-caption strong {
    display: block;
    margin-top: 5px;
    color: #fff;
    font-size: 22px;
    line-height: 1.25;
}

.pf-mini-card {
    position: absolute;
    z-index: 4;
    padding: 13px 15px;
    border-radius: 16px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(0,216,140,.16);
    box-shadow: 0 18px 46px rgba(0,0,0,.22);
}

.pf-mini-card strong {
    display: block;
    color: #111827;
    font-size: 18px;
    line-height: 1;
}

.pf-mini-card span {
    display: block;
    margin-top: 5px;
    color: #374151;
    font-size: 12px;
    font-weight: 650;
}

.pf-mini-one {
    left: -20px;
    top: 42px;
}

.pf-mini-two {
    right: -16px;
    bottom: 72px;
}

/* Sections */
.pf-section {
    padding: 72px 0;
}

.pf-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.pf-section-head h2 {
    max-width: 720px;
    margin-top: 13px;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.1;
}

.pf-section-head p {
    max-width: 680px;
    margin-top: 10px;
}

/* Work grid */
.pf-work-section {
    padding-top: 60px;
}

.pf-work-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.pf-work-card {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--pf-border);
    transition: .22s ease;
}

.pf-work-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0,216,140,.28);
}

.pf-work-img {
    display: block;
    overflow: hidden;
    background: rgba(255,255,255,.035);
}

.pf-work-img img,
.pf-img-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pf-muted);
    transition: transform .5s ease;
}

.pf-work-card:hover img {
    transform: scale(1.04);
}

.pf-work-info {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
}

.pf-work-info span {
    color: var(--pf-green);
    font-size: 13px;
    font-weight: 700;
}

.pf-work-info h3 {
    margin-top: 5px;
    font-size: 22px;
    line-height: 1.23;
}

.pf-work-info > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #fff;
    background: rgba(255,255,255,.055);
    border: 1px solid var(--pf-border);
    text-decoration: none;
}

.pf-empty-card {
    grid-column: 1 / -1;
    padding: 28px;
    border-radius: 22px;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--pf-border);
}

.pf-empty-card h3 {
    font-size: 22px;
}

.pf-empty-card p {
    margin-top: 8px;
}

/* About */
.pf-about-section {
    background: rgba(255,255,255,.018);
    border-top: 1px solid rgba(255,255,255,.055);
    border-bottom: 1px solid rgba(255,255,255,.055);
}

.pf-about-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 22px;
}

.pf-about-card {
    padding: 30px;
    border-radius: 24px;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--pf-border);
}

.pf-about-card h2 {
    max-width: 650px;
    margin-top: 13px;
    font-size: clamp(30px, 3.6vw, 44px);
    line-height: 1.16;
}

.pf-about-card p {
    margin-top: 14px;
}

.pf-tool-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.pf-tool-list span {
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--pf-border);
    color: rgba(255,255,255,.7);
    font-size: 13px;
    font-weight: 600;
}

/* Services row */
.pf-service-list {
    display: grid;
    gap: 12px;
}

.pf-service-row {
    display: grid;
    grid-template-columns: 58px 54px 1fr;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--pf-border);
    transition: .22s ease;
}

.pf-service-row:hover {
    transform: translateX(6px);
    border-color: rgba(0,216,140,.28);
}

.pf-service-row > span {
    color: var(--pf-green);
    font-weight: 800;
}

.pf-service-row > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: rgba(0,216,140,.10);
    color: var(--pf-green);
    font-size: 23px;
}

.pf-service-row h3 {
    font-size: 22px;
}

.pf-service-row p {
    margin-top: 5px;
    font-size: 15px;
}

/* Featured case */
.pf-featured-section {
    background: rgba(255,255,255,.018);
    border-top: 1px solid rgba(255,255,255,.055);
    border-bottom: 1px solid rgba(255,255,255,.055);
}

.pf-featured-case {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 26px;
    align-items: center;
    padding: 28px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 100% 0%, rgba(0,216,140,.11), transparent 32%),
        rgba(255,255,255,.045);
    border: 1px solid var(--pf-border);
}

.pf-featured-text h2 {
    margin-top: 13px;
    font-size: clamp(32px, 4.2vw, 54px);
    line-height: 1.1;
}

.pf-featured-text p {
    margin-top: 14px;
    max-width: 560px;
}

.pf-featured-text .pf-btn {
    margin-top: 24px;
}

.pf-featured-img {
    display: block;
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255,255,255,.035);
}

.pf-featured-img img,
.pf-featured-img .pf-img-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pf-muted);
}

/* CTA */
.pf-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding: 34px;
    border-radius: 28px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(0,216,140,.20);
}

.pf-cta-card h2 {
    max-width: 640px;
    margin-top: 13px;
    font-size: clamp(31px, 4vw, 50px);
    line-height: 1.13;
}

.pf-cta-card p {
    max-width: 650px;
    margin-top: 11px;
}

.pf-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex: 0 0 auto;
}

/* Back to top */
.scroll-top,
.back-to-top,
#backToTop,
.backtop,
.to-top {
    width: 48px !important;
    height: 48px !important;
    right: 18px !important;
    bottom: 18px !important;
    border-radius: 14px !important;
    z-index: 80 !important;
}

/* Responsive */
@media (max-width: 991px) {
    .pf-hero-grid,
    .pf-about-grid,
    .pf-featured-case {
        grid-template-columns: 1fr;
    }

    .pf-section-head,
    .pf-cta-card {
        align-items: start;
        flex-direction: column;
    }

    .pf-work-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pf-featured-preview,
    .pf-featured-preview img {
        min-height: 360px;
    }

    .pf-mini-one {
        left: 14px;
    }

    .pf-mini-two {
        right: 14px;
    }
}

@media (max-width: 767px) {
    .pf-container {
        width: min(100% - 30px, 1160px);
    }

    .pf-hero {
        padding: 48px 0 42px;
    }

    .pf-hero h1 {
        font-size: 36px;
        line-height: 1.12;
        letter-spacing: -.7px;
    }

    .pf-hero p {
        font-size: 15.5px;
    }

    .pf-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .pf-section {
        padding: 56px 0;
    }

    .pf-section-head {
        margin-bottom: 26px;
    }

    .pf-section-head h2,
    .pf-featured-text h2,
    .pf-cta-card h2 {
        font-size: 30px;
        line-height: 1.18;
    }

    .pf-work-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .pf-featured-preview,
    .pf-featured-preview img {
        min-height: 320px;
    }

    .pf-mini-card {
        display: none;
    }

    .pf-about-card,
    .pf-featured-case,
    .pf-cta-card {
        padding: 22px;
        border-radius: 22px;
    }

    .pf-service-row {
        grid-template-columns: 42px 1fr;
        gap: 12px;
        padding: 17px;
    }

    .pf-service-row > i {
        display: none;
    }

    .pf-service-row h3 {
        font-size: 20px;
    }

    .pf-cta-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .navbar-brand img,
    .logo img,
    .site-logo img,
    .header-logo img,
    .custom-logo,
    header img.logo {
        max-height: 38px !important;
        max-width: 170px !important;
    }
}

@media (max-width: 390px) {
    .pf-hero h1 {
        font-size: 33px;
    }

    .pf-section-head h2,
    .pf-featured-text h2,
    .pf-cta-card h2 {
        font-size: 28px;
    }
}
