/* ============================================
   PORTFOLIO PAGE - PROFESSIONAL DESIGN SYSTEM
   Prefix: pf- (portfolio)
   ============================================ */

/* ============================================
   1. HERO SECTION
   ============================================ */

.pf-hero-section {
    position: relative;
    padding: 120px 0 40px;
    background: linear-gradient(135deg, #0A214F 0%, #1A3C82 50%, #0A214F 100%);
    overflow: hidden;
}

.pf-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(62, 120, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(26, 60, 130, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.pf-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.pf-hero-content {
    position: relative;
    z-index: 10;
}

.pf-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.pf-hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.pf-gradient-text {
    display: inline-block;
    background: linear-gradient(135deg, #3E78C6 0%, #8DD6FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pf-hero-description {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto 0;
    line-height: 1.6;
}

/* Filter Navigation - Now in Projects Section */
.pf-filter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 30px;
    padding: 0;
}

.pf-filter-btn {
    padding: 10px 24px;
    background: #fff;
    border: 1.5px solid #E0E5ED;
    border-radius: 8px;
    color: #2C3E50;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pf-filter-btn:hover {
    background: #F8FAFC;
    border-color: #1A3C82;
    color: #1A3C82;
    box-shadow: 0 2px 6px rgba(26, 60, 130, 0.12);
}

.pf-filter-btn.active {
    background: linear-gradient(135deg, #1A3C82 0%, #2B5AA8 100%);
    border-color: #1A3C82;
    color: #fff;
    box-shadow: 0 4px 12px rgba(26, 60, 130, 0.3);
}

/* ============================================
   2. PROJECTS SECTION
   ============================================ */

.pf-projects-section {
    padding: 40px 0 50px;
    background: #F8F9FA;
}

.pf-projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Project Item */
.pf-project-item {
    opacity: 1;
    transform: scale(1);
    transition: all 0.4s ease;
}

.pf-project-item.hidden {
    opacity: 0;
    transform: scale(0.9);
    height: 0;
    margin: 0;
    overflow: hidden;
}

/* Project Card Link - Remove underline and make clickable */
.pf-project-card-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
    outline: none;
}

.pf-project-card-link:hover,
.pf-project-card-link:focus,
.pf-project-card-link:active {
    text-decoration: none !important;
    color: inherit;
    outline: none;
}

.pf-project-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pf-project-card-link:hover .pf-project-card {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Project Image */
.pf-project-image {
    position: relative;
    overflow: hidden;
    height: 340px;
    background: linear-gradient(135deg, #E8ECF1 0%, #D4DBE5 100%);
}

.pf-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pf-project-card-link:hover .pf-project-image img {
    transform: scale(1.08);
}

/* Project Overlay */
.pf-project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 33, 79, 0.97) 0%, rgba(26, 60, 130, 0.96) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 25px;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pf-project-card-link:hover .pf-project-overlay {
    opacity: 1;
}

.pf-overlay-content {
    text-align: center;
    color: #fff;
    transform: translateY(6px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
    width: 100%;
}

.pf-project-card-link:hover .pf-overlay-content {
    transform: translateY(0);
}

.pf-category {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    margin-bottom: 14px;
    backdrop-filter: blur(10px);
}

.pf-project-name {
    font-size: 1.55rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
    line-height: 1.25;
}

.pf-project-desc {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
    line-height: 1.5;
    max-width: 93%;
    margin-left: auto;
    margin-right: auto;
}

.pf-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 28px;
    background: #fff;
    color: #1A3C82;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
}

.pf-view-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.35);
    color: #1A3C82;
}

.pf-view-btn i {
    transition: transform 0.3s ease;
    font-size: 12.5px;
}

.pf-view-btn:hover i {
    transform: translateX(4px);
}

/* Project Info */
.pf-project-info {
    padding: 18px;
    background: #fff;
}

.pf-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.pf-info-header h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0A214F;
    margin: 0;
    text-decoration: none !important;
}

.pf-tag {
    padding: 4px 12px;
    background: rgba(26, 60, 130, 0.08);
    color: #1A3C82;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.pf-info-stats {
    display: flex;
    gap: 18px;
}

.pf-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.pf-stat i {
    color: #3E78C6;
    font-size: 14px;
}

/* ============================================
   3. TESTIMONIALS SECTION
   ============================================ */

.pf-testimonials-section {
    padding: 50px 0;
    background: #fff;
    position: relative;
}

.pf-testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(26, 60, 130, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(62, 120, 198, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.pf-badge-light {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(26, 60, 130, 0.08);
    border: 1px solid rgba(26, 60, 130, 0.12);
    border-radius: 50px;
    color: #1A3C82;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.pf-section-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #0A214F;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.pf-section-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0;
}

/* Testimonial Card */
.pf-testimonial-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 25px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.pf-testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(26, 60, 130, 0.1);
}

.pf-quote-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1A3C82 0%, #3E78C6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.pf-quote-icon i {
    font-size: 20px;
    color: #fff;
}

.pf-testimonial-text {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
    font-style: italic;
}

.pf-client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.pf-client-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #F0F0F0;
}

.pf-client-details {
    flex: 1;
}

.pf-client-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0A214F;
    margin-bottom: 5px;
}

.pf-client-role {
    font-size: 14px;
    color: #777;
    margin-bottom: 0;
}

.pf-rating {
    display: flex;
    gap: 5px;
    color: #FFB800;
    font-size: 15px;
}

/* ============================================
   4. CTA SECTION
   ============================================ */

.pf-cta-section {
    padding: 50px 0;
    background: #F8F9FA;
}

.pf-cta-card {
    background: linear-gradient(135deg, #1A3C82 0%, #0A214F 100%);
    border-radius: 20px;
    padding: 45px 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(26, 60, 130, 0.25);
}

.pf-cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.6;
}

.pf-cta-card .row {
    position: relative;
    z-index: 2;
}

.pf-cta-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.pf-cta-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
    line-height: 1.6;
}

.pf-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 38px;
    background: #fff;
    color: #1A3C82;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.pf-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.3);
    color: #1A3C82;
}

.pf-cta-btn i {
    transition: transform 0.3s ease;
}

.pf-cta-btn:hover i {
    transform: translateX(5px);
}

/* ============================================
   5. RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1399.98px) {
    .pf-projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (max-width: 1199.98px) {
    .pf-projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 991.98px) {
    .pf-hero-section {
        padding: 100px 0 35px;
    }

    .pf-hero-title {
        font-size: 2.5rem;
    }

    .pf-hero-description {
        font-size: 1rem;
    }

    .pf-projects-section {
        padding: 35px 0 45px;
    }

    .pf-projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .pf-project-image {
        height: 290px;
    }

    .pf-project-overlay {
        padding: 25px 16px;
    }

    .pf-category {
        font-size: 9.5px;
        padding: 5px 14px;
        margin-bottom: 11px;
    }

    .pf-project-name {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .pf-project-desc {
        font-size: 12px;
        margin-bottom: 16px;
    }

    .pf-view-btn {
        padding: 10px 22px;
        font-size: 12.5px;
    }

    .pf-section-title {
        font-size: 2rem;
    }

    .pf-testimonials-section {
        padding: 45px 0;
    }

    .pf-cta-section {
        padding: 45px 0;
    }

    .pf-cta-title {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .pf-cta-card {
        padding: 35px 30px;
    }
}

@media (max-width: 767.98px) {
    .pf-hero-section {
        padding: 80px 0 30px;
    }

    .pf-hero-title {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .pf-hero-description {
        font-size: 0.95rem;
    }

    .pf-filter-nav {
        gap: 6px;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        padding: 0 15px 8px;
        margin-bottom: 25px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(26, 60, 130, 0.3) transparent;
    }

    .pf-filter-nav::-webkit-scrollbar {
        height: 4px;
    }

    .pf-filter-nav::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.04);
        border-radius: 10px;
    }

    .pf-filter-nav::-webkit-scrollbar-thumb {
        background: rgba(26, 60, 130, 0.25);
        border-radius: 10px;
    }

    .pf-filter-nav::-webkit-scrollbar-thumb:hover {
        background: rgba(26, 60, 130, 0.4);
    }

    .pf-filter-btn {
        padding: 9px 20px;
        font-size: 13px;
        flex-shrink: 0;
    }

    .pf-projects-section {
        padding: 30px 0 40px;
    }

    .pf-projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .pf-project-image {
        height: 270px;
    }

    .pf-project-overlay {
        padding: 20px 13px;
    }

    .pf-category {
        font-size: 9px;
        padding: 4px 12px;
        margin-bottom: 9px;
    }

    .pf-project-name {
        font-size: 1.15rem;
        margin-bottom: 8px;
    }

    .pf-project-desc {
        font-size: 11px;
        margin-bottom: 13px;
        line-height: 1.45;
    }

    .pf-view-btn {
        padding: 9px 19px;
        font-size: 12px;
        gap: 6px;
    }

    .pf-project-info {
        padding: 15px;
    }

    .pf-info-header h4 {
        font-size: 0.95rem;
    }

    .pf-info-stats {
        gap: 12px;
    }

    .pf-stat {
        font-size: 11px;
    }

    .pf-testimonials-section {
        padding: 40px 0;
    }

    .pf-section-title {
        font-size: 1.7rem;
    }

    .pf-testimonial-card {
        padding: 20px;
    }

    .pf-cta-section {
        padding: 40px 0;
    }

    .pf-cta-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .pf-cta-text {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .pf-cta-card {
        padding: 30px 20px;
    }

    .pf-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 32px;
        font-size: 15px;
    }
}

@media (max-width: 575.98px) {
    .pf-hero-section {
        padding: 70px 0 25px;
    }

    .pf-hero-title {
        font-size: 1.75rem;
        margin-bottom: 10px;
    }

    .pf-hero-description {
        font-size: 0.9rem;
    }

    .pf-filter-nav {
        padding: 0 10px 8px;
        margin-bottom: 20px;
    }

    .pf-filter-btn {
        padding: 8px 18px;
        font-size: 12px;
    }

    .pf-projects-section {
        padding: 25px 0 35px;
    }

    .pf-projects-grid {
        gap: 10px;
    }

    .pf-project-image {
        height: 245px;
    }

    .pf-project-overlay {
        padding: 16px 10px;
    }

    .pf-category {
        font-size: 8.5px;
        padding: 3px 10px;
        margin-bottom: 8px;
    }

    .pf-project-name {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .pf-project-desc {
        font-size: 10px;
        margin-bottom: 11px;
        line-height: 1.35;
    }

    .pf-view-btn {
        padding: 8px 17px;
        font-size: 11px;
        gap: 5px;
    }

    .pf-view-btn i {
        font-size: 10px;
    }

    .pf-project-info {
        padding: 12px;
    }

    .pf-info-header h4 {
        font-size: 0.9rem;
    }

    .pf-stat {
        font-size: 10px;
    }

    .pf-testimonials-section {
        padding: 35px 0;
    }

    .pf-cta-section {
        padding: 35px 0;
    }
}

/* ============================================
   6. ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: #3E78C6;
    color: #fff;
}

::-moz-selection {
    background: #3E78C6;
    color: #fff;
}