/* WebLite Portfolio Page Styles */

/* ---- HERO ---- */
.pf-hero {
    position: relative;
    overflow: hidden;
    padding: 7rem 1.5rem 5rem;
    text-align: center;
    color: #fff;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pf-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #0f172a 100%);
    z-index: 0;
}
.pf-hero-bg::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(99,102,241,.25) 0%, transparent 60%);
    animation: pf-glow-drift 12s ease-in-out infinite alternate;
}
.pf-hero-bg::after {
    content: "";
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 70%;
    height: 180%;
    background: radial-gradient(circle, rgba(37,99,235,.2) 0%, transparent 60%);
    animation: pf-glow-drift 10s ease-in-out infinite alternate-reverse;
}
@keyframes pf-glow-drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(40px, -30px) scale(1.1); }
}
.pf-hero-content {
    position: relative;
    z-index: 1;
    max-width: 750px;
    margin: 0 auto;
}
.pf-badge {
    display: inline-block;
    padding: .45rem 1.4rem;
    font-size: .9rem;
    font-weight: 700;
    border-radius: 50px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(6px);
    margin-bottom: 1.5rem;
    letter-spacing: .02em;
}
.pf-hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 30%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pf-hero p {
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: .85;
    max-width: 600px;
    margin: 0 auto 2rem;
}
.pf-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- BUTTONS ---- */
.pf-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .9rem 2rem;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all .3s cubic-bezier(.22, 1, .36, 1);
    font-family: inherit;
}
.pf-btn-primary {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    box-shadow: 0 6px 20px rgba(37,99,235,.35);
}
.pf-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37,99,235,.45);
}
.pf-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.35);
}
.pf-btn-outline:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.6);
    transform: translateY(-2px);
}

/* ---- TRUST BAR ---- */
.pf-trust-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1.5rem 1rem;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}
.pf-trust-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .92rem;
    font-weight: 600;
    color: #334155;
}
.pf-trust-item i {
    color: #2563eb;
    font-size: 1.1rem;
}

/* ---- FILTER SECTION ---- */
.pf-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
}
.pf-filter-section {
    padding: 2.5rem 0 1rem;
    background: #f8fafc;
    position: sticky;
    top: 85px;
    z-index: 50;
    border-bottom: 1px solid #e2e8f0;
}
.pf-filter-bar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}
.pf-search-box {
    position: relative;
    width: 100%;
    max-width: 420px;
}
.pf-search-box i {
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
}
.pf-search-box input {
    width: 100%;
    padding: .85rem 2.8rem .85rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    color: #1e293b;
    transition: border-color .25s;
    direction: rtl;
}
.pf-search-box input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59,130,246,.12);
}
.pf-filter-tags {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.pf-tag {
    padding: .5rem 1.2rem;
    font-size: .88rem;
    font-weight: 600;
    font-family: inherit;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    transition: all .25s;
}
.pf-tag:hover {
    border-color: #3b82f6;
    color: #2563eb;
}
.pf-tag.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}
.pf-results-count {
    text-align: center;
    font-size: .9rem;
    color: #64748b;
    margin-top: .75rem;
    min-height: 1.4em;
}

/* ---- GALLERY SECTION ---- */
.pf-gallery-section {
    padding: 3rem 0 4rem;
    background: #f8fafc;
}
.pf-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* ---- CARD ---- */
.pf-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .5s ease, transform .5s ease;
    will-change: opacity, transform;
}
.pf-card.pf-visible {
    opacity: 1;
    transform: translateY(0);
}
.pf-card.pf-hidden {
    display: none;
}
.pf-card-link {
    display: block;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s;
    text-decoration: none;
    color: inherit;
}
.pf-card-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,.12);
}
.pf-card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2/3;
    background: #e2e8f0;
}
.pf-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .6s cubic-bezier(.22, 1, .36, 1);
    border-radius: 0;
}
.pf-card-link:hover .pf-card-img-wrap img {
    transform: scale(1.05);
}
.pf-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15,23,42,.7) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1.5rem;
    opacity: 0;
    transition: opacity .35s;
}
.pf-card-link:hover .pf-card-overlay {
    opacity: 1;
}
.pf-card-view {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .65rem 1.5rem;
    background: rgba(255,255,255,.95);
    color: #1e293b;
    font-weight: 700;
    font-size: .9rem;
    border-radius: 50px;
    transform: translateY(10px);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.pf-card-link:hover .pf-card-view {
    transform: translateY(0);
}
.pf-card-info {
    padding: 1.1rem 1.3rem 1.3rem;
}
.pf-card-cat {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .8rem;
    font-weight: 600;
    color: #6366f1;
    margin-bottom: .35rem;
}
.pf-card-cat i {
    font-size: .75rem;
}
.pf-card-info h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 .2rem;
    line-height: 1.3;
}
.pf-card-name {
    font-size: .85rem;
    color: #94a3b8;
    font-weight: 500;
}

/* ---- CTA SECTION ---- */
.pf-cta-section {
    padding: 4rem 0 5rem;
    background: linear-gradient(180deg, #f8fafc, #eef2ff);
}
.pf-cta-card {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 4rem 2.5rem;
    border-radius: 28px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #fff;
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
}
.pf-cta-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(99,102,241,.2) 0%, transparent 60%);
    pointer-events: none;
}
.pf-cta-card h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.25;
}
.pf-cta-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: .8;
    max-width: 600px;
    margin: 0 auto 2rem;
}
.pf-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.pf-btn-cta {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(99,102,241,.35);
}
.pf-btn-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(99,102,241,.5);
}
.pf-btn-whatsapp {
    background: #25D366;
    color: #fff;
    padding: 1rem 2.2rem;
    font-size: 1.05rem;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(37,211,102,.3);
}
.pf-btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37,211,102,.45);
}
.pf-cta-trust {
    display: flex;
    justify-content: center;
    gap: 1.8rem;
    flex-wrap: wrap;
    font-size: .88rem;
    opacity: .7;
}
.pf-cta-trust span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.pf-cta-trust i {
    color: #34d399;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .pf-hero { padding: 5rem 1rem 3.5rem; min-height: 350px; }
    .pf-trust-bar { gap: 1rem; padding: 1rem .5rem; }
    .pf-trust-item { font-size: .82rem; }
    .pf-filter-section { position: static; }
    .pf-masonry { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
    .pf-cta-card { padding: 2.5rem 1.5rem; }
    .pf-cta-trust { gap: 1rem; flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
    .pf-masonry { grid-template-columns: 1fr; }
    .pf-hero-actions { flex-direction: column; }
    .pf-cta-actions { flex-direction: column; align-items: center; }
}

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
    .pf-hero-bg::before, .pf-hero-bg::after { animation: none; }
    .pf-card { opacity: 1; transform: none; transition: none; }
    .pf-card-link:hover { transform: none; }
    .pf-card-link:hover .pf-card-img-wrap img { transform: none; }
}
