* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: Poppins, sans-serif;
    background: #F5EFE6;
    color: #091434;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; cursor: pointer; }

@font-face {
    font-family: Poppins;
    font-style: normal;
    font-weight: 400;
    src: url(poppins-v19-latin-regular.woff) format("woff");
    font-display: swap;
}
@font-face {
    font-family: Poppins;
    font-style: normal;
    font-weight: 500;
    src: url(poppins-v19-latin-500.woff) format("woff");
    font-display: swap;
}
@font-face {
    font-family: Poppins;
    font-style: normal;
    font-weight: 600;
    src: url(poppins-v19-latin-600.woff) format("woff");
    font-display: swap;
}
@font-face {
    font-family: Poppins;
    font-style: normal;
    font-weight: 700;
    src: url(poppins-v19-latin-700.woff) format("woff");
    font-display: swap;
}

/* Header */
.pf-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(245, 239, 230, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #e8dfd3;
    padding: 0 40px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pf-back {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #7c8594;
    transition: color 0.2s;
}

.pf-back:hover { color: #FF923E; }

.pf-back svg { transition: transform 0.2s; }
.pf-back:hover svg { transform: translateX(-3px); }

.pf-header-name {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.3px;
    color: #091434;
}

/* Hero */
.pf-hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 70px 40px 48px;
}

.pf-subheader {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.pf-subheader hr {
    width: 40px;
    height: 2px;
    background: #FF923E;
    border: none;
}

.pf-subheader h5 {
    color: #FF923E;
    font-size: 1.1rem;
    font-weight: 500;
}

.pf-hero h1 {
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.pf-hero p {
    font-size: 1.05rem;
    color: #7c8594;
    max-width: 480px;
    line-height: 1.7;
}

/* Grid */
.pf-grid-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px 100px;
}

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

/* Card */
.pf-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.pf-card:hover {
    border-color: #FF923E;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(231, 111, 81, 0.12);
}

.pf-card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: #f0ebe4;
}

.pf-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

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

.pf-card-body {
    padding: 20px 20px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pf-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #091434;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.pf-card-desc {
    font-size: 0.88rem;
    color: #7c8594;
    line-height: 1.65;
    flex: 1;
}

.pf-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 14px;
}

.pf-tag {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 10px;
    color: white;
    background: #a7adb8;
    text-transform: lowercase;
}

.pf-tag.tag-backend   { background: #5b7cfa; }
.pf-tag.tag-javascript { background: #f0b429; color: #091434; }
.pf-tag.tag-html      { background: #e76f51; }
.pf-tag.tag-css       { background: #2bbcf0; }
.pf-tag.tag-api       { background: #7c4dff; }
.pf-tag.tag-socketio  { background: #25d366; }
.pf-tag.tag-php       { background: #777bb4; }
.pf-tag.tag-react     { background: #61dafb; color: #091434; }
.pf-tag.tag-nodejs    { background: #3c873a; }
.pf-tag.tag-flutter   { background: #54c5f8; color: #091434; }
.pf-tag.tag-vuejs     { background: #42b883; }
.pf-tag.tag-javascript.tag-nodejs { background: #3c873a; }

.pf-card-footer {
    display: flex;
    gap: 10px;
    padding: 0 20px 18px;
    margin-top: 4px;
}

.pf-btn {
    flex: 1;
    text-align: center;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: background-size 0.3s, opacity 0.2s;
}

.pf-btn-primary {
    color: white;
    background-color: #E76F51;
    background-image: radial-gradient(circle at center, #ec9079 50%, transparent 50%);
    background-repeat: no-repeat;
    background-size: 0 0;
    background-position: 50% 50%;
}

.pf-btn-primary:hover { background-size: 200% 200%; }

.pf-btn-secondary {
    color: #091434;
    background: #f5f5f5;
}

.pf-btn-secondary:hover { background: #ece8e2; }

/* Empty state */
.pf-empty {
    text-align: center;
    padding: 80px 20px;
    color: #7c8594;
    font-size: 1rem;
    grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 900px) {
    .pf-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
    .pf-header { padding: 0 20px; }
    .pf-hero { padding: 50px 20px 36px; }
    .pf-hero h1 { font-size: 2.6rem; }
    .pf-grid-wrapper { padding: 0 20px 80px; }
    .pf-grid { grid-template-columns: 1fr; gap: 18px; }
}
