/* ==========================================================================
   PORTFOLIO PAGE — Estilos específicos (herda tudo do style.css)
   ========================================================================== */
:root {
    --purple: #7C3AED;
    --purple-hover: #6d28d9;
    --purple-light: #7c3aed12;
    --purple-glow: rgba(124, 58, 237, 0.15);
    --gray-600: #555;
    --gray-400: #999;
    --gray-200: #e5e5ea;
    --gray-50: #fafafb;
    --radius: 14px;
}

/* ── HERO ── */
.pf-hero {
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(8rem, 14vw, 10rem) 24px 56px;
    text-align: center;
}

.pf-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    background: var(--purple-light);
    color: var(--purple);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeDown 0.6s ease both;
}

.pf-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--purple);
    animation: pulse 2s infinite;
}

.pf-hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--dark);
    margin-bottom: 16px;
    animation: fadeDown 0.6s ease 0.1s both;
}

.pf-hero h1 span {
    background: linear-gradient(135deg, var(--purple), #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pf-hero p {
    font-size: 17px;
    color: var(--gray-400);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
    animation: fadeDown 0.6s ease 0.2s both;
}

/* ── SECTION HEADER ── */
.pf-section-header {
    margin-bottom: 32px;
    animation: fadeUp 0.5s ease both;
}

.pf-section-label {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    background: var(--purple-light);
    color: var(--purple);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.pf-section-title {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.pf-section-desc {
    font-size: 15px;
    color: var(--gray-400);
    line-height: 1.6;
    max-width: 480px;
}

/* ── PROJECTS GRID ── */
.pf-projects {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.pf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

/* ── PROJECT CARD ── */
.pf-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeUp 0.5s ease both;
    cursor: default;
}

.pf-card:nth-child(1) {
    animation-delay: 0.05s;
}

.pf-card:nth-child(2) {
    animation-delay: 0.1s;
}

.pf-card:nth-child(3) {
    animation-delay: 0.15s;
}

.pf-card:nth-child(4) {
    animation-delay: 0.2s;
}

.pf-card:nth-child(5) {
    animation-delay: 0.25s;
}

.pf-card:nth-child(6) {
    animation-delay: 0.3s;
}

.pf-card:hover {
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 8px 32px var(--purple-glow);
    transform: translateY(-4px);
}

.pf-card-preview {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--gray-50);
}

.pf-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* Preview placeholder quando não tem imagem */
.pf-card-preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #f8f7ff 0%, #f0edff 100%);
}

.pf-card-preview-placeholder svg {
    opacity: 0.4;
}

.pf-card-preview-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.pf-card:hover .pf-card-preview-overlay {
    opacity: 1;
}

.pf-card-tags {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pf-tag {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.92);
    color: var(--gray-600);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.pf-tag.tech {
    color: var(--purple);
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.15);
}

.pf-card-body {
    padding: 22px 24px;
}

.pf-card-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--purple);
    margin-bottom: 8px;
}

.pf-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.pf-card-desc {
    font-size: 14px;
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 20px;
}

.pf-card-footer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.pf-btn-primary {
    background: var(--purple);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.pf-btn-primary:hover {
    background: var(--purple-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

.pf-btn-outline {
    background: transparent;
    color: var(--gray-600);
    border: 1.5px solid var(--gray-200);
}

.pf-btn-outline:hover {
    border-color: var(--purple);
    color: var(--purple);
    background: var(--purple-light);
}

/* ── CTA SECTION ── */
.pf-cta {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.pf-cta-box {
    background: linear-gradient(135deg, var(--purple) 0%, #9333ea 100%);
    border-radius: 20px;
    padding: 56px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pf-cta-box::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.pf-cta-box::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.pf-cta-content {
    position: relative;
    z-index: 1;
}

.pf-cta h2 {
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.pf-cta p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.pf-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 12px;
    background: var(--white);
    color: var(--purple);
    font-size: 15px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.pf-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* ── ANIMATIONS ── */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .pf-header {
        padding: 0 16px;
    }

    .pf-nav {
        gap: 4px;
    }

    .pf-nav a {
        padding: 8px 10px;
        font-size: 13px;
    }

    .pf-hero {
        padding: 48px 20px 40px;
    }

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

    .pf-projects {
        padding: 0 16px 56px;
    }

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

    .pf-card-footer {
        flex-direction: column;
    }

    .pf-card-footer .pf-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .pf-nav a span {
        display: none;
    }

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