/* ============================================================
   CodzFlow IT Solutions — Portfolio Page Custom Styles
   Color Palette: #2F1F19 (dark brown) + #FFF669 (golden yellow)
   ============================================================ */


/* ============================================================
   1. PORTFOLIO HERO SECTION
   ============================================================ */
.pf-hero-area {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pf-hero-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(47, 31, 25, 0.25) 0%,
            rgba(47, 31, 25, 0.88) 100%);
    z-index: 1;
}

.pf-hero-content {
    position: relative;
    z-index: 2;
}

.pf-hero-title {
    font-family: var(--tp-ff-teko), 'Teko', sans-serif;
    font-size: clamp(72px, 12vw, 180px);
    font-weight: 700;
    line-height: 1;
    color: #FFF669;
    text-transform: uppercase;
    letter-spacing: -3px;
    margin-bottom: 25px;
    animation: pfHeroTitleIn 1s cubic-bezier(0.165, 0.84, 0.44, 1) both;
}

@keyframes pfHeroTitleIn {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.pf-hero-title-stroke {
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 246, 105, 0.35);
}

.pf-hero-title-fill {
    color: #FFF669;
}

.pf-hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 15px;
    animation: pfHeroTitleIn 1s 0.15s cubic-bezier(0.165, 0.84, 0.44, 1) both;
}

/* Breadcrumb */
.pf-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    animation: pfHeroTitleIn 1s 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) both;
}

.pf-breadcrumb li {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.pf-breadcrumb li a {
    color: #FFF669;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pf-breadcrumb li a:hover {
    color: #fff;
}

.pf-breadcrumb li .separator {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 4px;
    font-size: 12px;
}

.pf-breadcrumb li .separator::before {
    content: '/';
}


/* ============================================================
   2. STATS COUNTER SECTION
   ============================================================ */
.pf-stats {
    background: #2F1F19;
    position: relative;
    overflow: hidden;
}

.pf-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.pf-stat-card {
    background: #3a2a22;
    border-radius: 18px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    box-shadow:
        8px 8px 20px rgba(0, 0, 0, 0.4),
        -4px -4px 12px rgba(80, 55, 40, 0.15);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Subtle inner highlight */
.pf-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.06),
            transparent);
    pointer-events: none;
    border-radius: 18px 18px 0 0;
}

.pf-stat-card:hover {
    transform: translateY(-4px);
    box-shadow:
        10px 10px 28px rgba(0, 0, 0, 0.45),
        -5px -5px 14px rgba(80, 55, 40, 0.18),
        0 0 30px rgba(255, 246, 105, 0.05);
}

.pf-stat-number {
    font-family: var(--tp-ff-teko), 'Teko', sans-serif;
    font-size: 60px;
    font-weight: 700;
    color: #FFF669;
    line-height: 1;
    margin-bottom: 8px;
    display: block;
}

.pf-stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    margin-bottom: 0;
}


/* ============================================================
   3. FILTER BUTTONS
   ============================================================ */
.pf-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.pf-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    font-family: var(--tp-ff-teko), 'Teko', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    white-space: nowrap;
}

.pf-filter-btn:hover {
    color: #2F1F19;
    background: #FFF669;
    border-color: #FFF669;
    box-shadow: 0 4px 18px rgba(255, 246, 105, 0.2);
}

.pf-filter-btn.active {
    color: #2F1F19;
    background: #FFF669;
    border-color: #FFF669;
    box-shadow: 0 4px 18px rgba(255, 246, 105, 0.2);
}


/* ============================================================
   4. PORTFOLIO GRID
   ============================================================ */
.pf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
}

.pf-grid-item {
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}


/* ============================================================
   5. PROJECT CARD
   ============================================================ */
.pf-card {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
}

.pf-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Hover overlay */
.pf-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 30%,
        rgba(47, 31, 25, 0.95) 100%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

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

/* Content slides up on hover */
.pf-card-content {
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.pf-card:hover .pf-card-content {
    transform: translateY(0);
}

.pf-card-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #FFF669;
    margin-bottom: 8px;
}

.pf-card-name {
    font-family: var(--tp-ff-teko), 'Teko', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 14px;
}

.pf-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #FFF669;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: gap 0.3s ease;
}

.pf-card-link:hover {
    gap: 12px;
    color: #FFF669;
}

.pf-card-link i,
.pf-card-link svg {
    font-size: 12px;
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
}

.pf-card-link:hover i,
.pf-card-link:hover svg {
    transform: translateX(3px);
}


/* ============================================================
   6. PROJECT DETAIL MODAL
   ============================================================ */

/* --- Overlay --- */
.pf-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.pf-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* --- Container --- */
.pf-modal-container {
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
    background: #3a2a22;
    border-radius: 20px;
    padding: 0;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.pf-modal-overlay.active .pf-modal-container {
    transform: scale(1);
}

/* --- Custom Scrollbar --- */
.pf-modal-container::-webkit-scrollbar {
    width: 6px;
}

.pf-modal-container::-webkit-scrollbar-track {
    background: transparent;
}

.pf-modal-container::-webkit-scrollbar-thumb {
    background: rgba(255, 246, 105, 0.3);
    border-radius: 3px;
}

.pf-modal-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 246, 105, 0.5);
}

/* Firefox scrollbar */
.pf-modal-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 246, 105, 0.3) transparent;
}

/* --- Close Button --- */
.pf-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}

.pf-modal-close:hover {
    background: #FFF669;
    color: #2F1F19;
    transform: rotate(90deg);
}

/* --- Hero Image --- */
.pf-modal-hero {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.pf-modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Body --- */
.pf-modal-body {
    padding: 50px;
}

/* --- Title --- */
.pf-modal-title {
    font-family: var(--tp-ff-teko), 'Teko', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

/* --- Category Badge --- */
.pf-modal-category {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(255, 246, 105, 0.12);
    border: 1px solid rgba(255, 246, 105, 0.25);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #FFF669;
    margin-bottom: 35px;
}

/* --- Section Title --- */
.pf-modal-section-title {
    font-family: var(--tp-ff-teko), 'Teko', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    border-left: 3px solid #FFF669;
    padding-left: 15px;
    margin-bottom: 18px;
    line-height: 1.2;
}

/* --- Description --- */
.pf-modal-desc {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 35px;
}

/* --- Technology Tags --- */
.pf-modal-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0 0 35px;
}

.pf-modal-tech-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(255, 246, 105, 0.1);
    border: 1px solid rgba(255, 246, 105, 0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #FFF669;
    transition: all 0.3s ease;
}

.pf-modal-tech-tag:hover {
    background: rgba(255, 246, 105, 0.18);
    border-color: rgba(255, 246, 105, 0.35);
}

/* --- Results Grid --- */
.pf-modal-results {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 35px;
}

.pf-modal-result-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.pf-modal-result-number {
    font-family: var(--tp-ff-teko), 'Teko', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #FFF669;
    line-height: 1;
    margin-bottom: 6px;
    display: block;
}

.pf-modal-result-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
    margin-bottom: 0;
}

/* --- Modal CTA Button — Embossed Golden Gradient --- */
.pf-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--tp-ff-teko), 'Teko', sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1a1008;
    background: linear-gradient(135deg, #FFF669 0%, #e6d94f 50%, #FFF669 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    box-shadow:
        6px 6px 14px rgba(0, 0, 0, 0.4),
        -4px -4px 10px rgba(80, 55, 40, 0.2),
        0 0 20px rgba(255, 246, 105, 0.1);
    transition: all 0.4s ease;
}

.pf-modal-btn:hover {
    background-position: 100% 100%;
    color: #1a1008;
    box-shadow:
        4px 4px 10px rgba(0, 0, 0, 0.4),
        -3px -3px 8px rgba(80, 55, 40, 0.2),
        0 0 30px rgba(255, 246, 105, 0.2);
    transform: translateY(-2px);
}

.pf-modal-btn:active {
    transform: translateY(1px);
    box-shadow:
        inset 3px 3px 6px rgba(0, 0, 0, 0.3),
        inset -2px -2px 4px rgba(255, 255, 255, 0.1);
}

/* Shimmer on hover */
.pf-modal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.pf-modal-btn:hover::before {
    left: 100%;
}

.pf-modal-btn i,
.pf-modal-btn svg {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* --- Modal Gallery (optional) --- */
.pf-modal-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 35px;
}

.pf-modal-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.4s ease;
}

.pf-modal-gallery img:hover {
    transform: scale(1.03);
}

/* --- Divider --- */
.pf-modal-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.08),
            transparent);
    margin: 30px 0;
    border: none;
}


/* ============================================================
   7. INDUSTRIES SECTION
   ============================================================ */
.pf-industries {
    background: #FFF669;
    position: relative;
    overflow: hidden;
}

.pf-industries-title {
    font-family: var(--tp-ff-teko), 'Teko', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #2F1F19;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 15px;
}

.pf-industries-subtitle {
    font-size: 16px;
    color: rgba(47, 31, 25, 0.6);
    text-align: center;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pf-industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.pf-industry-item {
    background: #fff;
    border-radius: 14px;
    padding: 30px;
    text-align: center;
    box-shadow:
        3px 3px 8px rgba(0, 0, 0, 0.08),
        -2px -2px 4px rgba(255, 255, 255, 0.5);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: default;
}

.pf-industry-item:hover {
    transform: scale(1.05);
    box-shadow:
        6px 6px 18px rgba(0, 0, 0, 0.14),
        -3px -3px 8px rgba(255, 255, 255, 0.6);
}

.pf-industry-icon {
    font-size: 40px;
    color: #2F1F19;
    margin-bottom: 14px;
    display: block;
    line-height: 1;
}

.pf-industry-icon i,
.pf-industry-icon svg {
    font-size: 40px;
    width: 40px;
    height: 40px;
}

.pf-industry-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.pf-industry-name {
    font-size: 16px;
    font-weight: 700;
    color: #2F1F19;
    margin-bottom: 0;
    line-height: 1.3;
}


/* ============================================================
   8. APPROACH SECTION
   ============================================================ */
.pf-approach {
    background: #2F1F19;
    position: relative;
    overflow: hidden;
}

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

.pf-approach-card {
    background: #3a2a22;
    border-radius: 18px;
    padding: 40px;
    position: relative;
    border-left: 3px solid transparent;
    box-shadow:
        8px 8px 20px rgba(0, 0, 0, 0.4),
        -4px -4px 12px rgba(80, 55, 40, 0.15);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Inner highlight */
.pf-approach-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 3px;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.05),
            transparent);
    pointer-events: none;
    border-radius: 18px 18px 0 0;
}

.pf-approach-card:hover {
    transform: translateY(-6px);
    border-left-color: #FFF669;
    box-shadow:
        10px 10px 28px rgba(0, 0, 0, 0.45),
        -5px -5px 14px rgba(80, 55, 40, 0.18),
        0 0 30px rgba(255, 246, 105, 0.05);
}

/* Icon circle */
.pf-approach-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 246, 105, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #FFF669;
    font-size: 24px;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.pf-approach-card:hover .pf-approach-icon {
    background: rgba(255, 246, 105, 0.15);
    box-shadow: 0 0 20px rgba(255, 246, 105, 0.1);
}

.pf-approach-icon i,
.pf-approach-icon svg {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.pf-approach-title {
    font-family: var(--tp-ff-teko), 'Teko', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 14px;
}

.pf-approach-desc {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0;
}


/* ============================================================
   9. CTA SECTION
   ============================================================ */
.pf-cta {
    position: relative;
    overflow: hidden;
    text-align: center;
}

.pf-cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.pf-cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    display: block;
}

.pf-cta-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(47, 31, 25, 0.6) 0%,
            rgba(47, 31, 25, 0.92) 100%);
}

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

.pf-cta-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.pf-cta-label-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FFF669;
    animation: pfCtaPulse 2s ease-in-out infinite;
}

@keyframes pfCtaPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.6); }
}

.pf-cta-title {
    font-family: var(--tp-ff-teko), 'Teko', sans-serif;
    font-size: 72px;
    font-weight: 700;
    color: #FFF669;
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.pf-cta-desc {
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto 35px;
}

/* CTA button — golden gradient, embossed, shimmer hover */
.pf-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 42px;
    font-family: var(--tp-ff-teko), 'Teko', sans-serif;
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1a1008;
    background: linear-gradient(135deg, #FFF669 0%, #e6d94f 50%, #FFF669 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    box-shadow:
        6px 6px 14px rgba(0, 0, 0, 0.4),
        -4px -4px 10px rgba(80, 55, 40, 0.2),
        0 0 20px rgba(255, 246, 105, 0.15);
    transition: all 0.4s ease;
}

.pf-cta-btn:hover {
    background-position: 100% 100%;
    color: #1a1008;
    box-shadow:
        4px 4px 10px rgba(0, 0, 0, 0.4),
        -3px -3px 8px rgba(80, 55, 40, 0.2),
        0 0 35px rgba(255, 246, 105, 0.25);
    transform: translateY(-3px);
}

.pf-cta-btn:active {
    transform: translateY(1px);
    box-shadow:
        inset 3px 3px 6px rgba(0, 0, 0, 0.3),
        inset -2px -2px 4px rgba(255, 255, 255, 0.1);
}

/* Shimmer */
.pf-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.pf-cta-btn:hover::before {
    left: 100%;
}

.pf-cta-btn i,
.pf-cta-btn svg {
    font-size: 16px;
    width: 16px;
    height: 16px;
}


/* ============================================================
   DECORATIVE ELEMENTS
   ============================================================ */
.pf-yellow-line {
    width: 60px;
    height: 3px;
    background: #FFF669;
    border-radius: 2px;
    display: block;
    margin-bottom: 25px;
}

.pf-section-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #FFF669;
    margin-bottom: 12px;
    display: block;
}

.pf-section-title {
    font-family: var(--tp-ff-teko), 'Teko', sans-serif;
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.pf-section-title-dark {
    color: #2F1F19;
}

.pf-section-desc {
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 40px;
    max-width: 700px;
}

.pf-section-desc-dark {
    color: rgba(47, 31, 25, 0.65);
}


/* ============================================================
   10. RESPONSIVE — 6 Breakpoints
   ============================================================ */

/* ===== LARGE DESKTOP (below 1400px) ===== */
@media (max-width: 1399px) {
    .pf-hero-title {
        font-size: clamp(64px, 10vw, 150px);
    }

    .pf-section-title {
        font-size: 50px;
    }

    .pf-cta-title {
        font-size: 64px;
    }

    .pf-industries-title {
        font-size: 44px;
    }

    .pf-stat-number {
        font-size: 54px;
    }

    .pf-stat-card {
        padding: 35px 25px;
    }

    .pf-modal-title {
        font-size: 38px;
    }
}


/* ===== DESKTOP / SMALL LAPTOP (below 1200px) ===== */
@media (max-width: 1199px) {
    .pf-hero-title {
        font-size: clamp(56px, 9vw, 120px);
    }

    .pf-hero-subtitle {
        font-size: 16px;
        letter-spacing: 2px;
    }

    /* Portfolio grid — 2 columns */
    .pf-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Approach grid — stay 3 for now */
    .pf-approach-card {
        padding: 35px;
    }

    .pf-approach-title {
        font-size: 22px;
    }

    /* Stats */
    .pf-stats-grid {
        gap: 24px;
    }

    .pf-stat-number {
        font-size: 50px;
    }

    /* Section title */
    .pf-section-title {
        font-size: 44px;
    }

    /* CTA */
    .pf-cta-title {
        font-size: 56px;
    }

    .pf-cta-desc {
        font-size: 16px;
    }

    /* Industries */
    .pf-industries-title {
        font-size: 40px;
    }

    /* Modal */
    .pf-modal-hero {
        height: 300px;
    }

    .pf-modal-title {
        font-size: 36px;
    }

    .pf-modal-body {
        padding: 40px;
    }
}


/* ===== TABLET (below 992px) ===== */
@media (max-width: 991px) {
    .pf-hero-area {
        min-height: 50vh;
        padding-bottom: 60px;
    }

    .pf-hero-title {
        font-size: clamp(48px, 10vw, 120px);
        letter-spacing: -2px;
    }

    .pf-hero-subtitle {
        font-size: 14px;
        letter-spacing: 2px;
        margin-bottom: 12px;
    }

    .pf-breadcrumb li {
        font-size: 14px;
    }

    /* Stats — 2 columns */
    .pf-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .pf-stat-card {
        padding: 30px 20px;
    }

    .pf-stat-number {
        font-size: 48px;
    }

    .pf-stat-label {
        font-size: 13px;
    }

    /* Portfolio grid — 2 columns */
    .pf-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* Filter */
    .pf-filter {
        gap: 10px;
        margin-bottom: 40px;
    }

    .pf-filter-btn {
        padding: 8px 22px;
        font-size: 13px;
        letter-spacing: 1.5px;
    }

    /* Approach — 2 columns */
    .pf-approach-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .pf-approach-card {
        padding: 30px;
        border-radius: 16px;
    }

    .pf-approach-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 20px;
    }

    .pf-approach-title {
        font-size: 20px;
    }

    .pf-approach-desc {
        font-size: 13px;
    }

    /* Industries */
    .pf-industries-title {
        font-size: 36px;
    }

    .pf-industries-subtitle {
        font-size: 15px;
        margin-bottom: 35px;
    }

    /* CTA */
    .pf-cta-title {
        font-size: 48px;
    }

    .pf-cta-desc {
        font-size: 15px;
    }

    .pf-cta-btn {
        padding: 14px 36px;
        font-size: 20px;
    }

    /* Section title */
    .pf-section-title {
        font-size: 40px;
    }

    .pf-section-desc {
        font-size: 15px;
    }

    /* Modal */
    .pf-modal-hero {
        height: 280px;
    }

    .pf-modal-title {
        font-size: 32px;
    }

    .pf-modal-section-title {
        font-size: 20px;
    }

    .pf-modal-desc {
        font-size: 15px;
    }

    .pf-modal-results {
        gap: 18px;
    }

    .pf-modal-result-number {
        font-size: 30px;
    }

    .pf-modal-gallery img {
        height: 160px;
    }
}


/* ===== MOBILE LANDSCAPE (below 768px) ===== */
@media (max-width: 767px) {
    .pf-hero-area {
        min-height: 45vh;
        padding-bottom: 40px;
    }

    .pf-hero-title {
        font-size: clamp(38px, 11vw, 80px);
        letter-spacing: -1px;
    }

    .pf-hero-subtitle {
        font-size: 13px;
        letter-spacing: 1.5px;
        margin-bottom: 10px;
    }

    .pf-breadcrumb {
        gap: 8px;
    }

    .pf-breadcrumb li {
        font-size: 13px;
    }

    /* Stats — keep 2 columns */
    .pf-stats-grid {
        gap: 16px;
    }

    .pf-stat-card {
        padding: 25px 18px;
        border-radius: 14px;
    }

    .pf-stat-number {
        font-size: 42px;
    }

    .pf-stat-label {
        font-size: 12px;
        letter-spacing: 1px;
    }

    /* Portfolio grid — 2 columns */
    .pf-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .pf-card-name {
        font-size: 20px;
    }

    .pf-card-category {
        font-size: 11px;
    }

    /* Filter */
    .pf-filter {
        gap: 8px;
        margin-bottom: 30px;
    }

    .pf-filter-btn {
        padding: 7px 18px;
        font-size: 12px;
        letter-spacing: 1px;
    }

    /* Industries — 2 columns */
    .pf-industries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .pf-industry-item {
        padding: 24px;
        border-radius: 12px;
    }

    .pf-industry-icon {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .pf-industry-icon i,
    .pf-industry-icon svg {
        font-size: 32px;
        width: 32px;
        height: 32px;
    }

    .pf-industry-name {
        font-size: 14px;
    }

    .pf-industries-title {
        font-size: 32px;
    }

    .pf-industries-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }

    /* Approach — keep 2 cols */
    .pf-approach-card {
        padding: 28px;
        border-radius: 14px;
    }

    .pf-approach-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
        margin-bottom: 18px;
    }

    .pf-approach-icon i,
    .pf-approach-icon svg {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }

    .pf-approach-title {
        font-size: 19px;
    }

    .pf-approach-desc {
        font-size: 13px;
        line-height: 1.65;
    }

    /* CTA */
    .pf-cta-title {
        font-size: 40px;
    }

    .pf-cta-desc {
        font-size: 14px;
        margin-bottom: 28px;
    }

    .pf-cta-btn {
        padding: 14px 32px;
        font-size: 18px;
    }

    /* Section titles */
    .pf-section-title {
        font-size: 34px;
    }

    .pf-section-desc {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .pf-yellow-line {
        width: 45px;
        height: 2px;
        margin-bottom: 20px;
    }

    /* Modal */
    .pf-modal-body {
        padding: 30px;
    }

    .pf-modal-hero {
        height: 240px;
    }

    .pf-modal-title {
        font-size: 28px;
    }

    .pf-modal-section-title {
        font-size: 18px;
    }

    .pf-modal-desc {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 25px;
    }

    .pf-modal-results {
        gap: 14px;
    }

    .pf-modal-result-card {
        padding: 20px;
    }

    .pf-modal-result-number {
        font-size: 28px;
    }

    .pf-modal-result-desc {
        font-size: 13px;
    }

    .pf-modal-category {
        margin-bottom: 25px;
    }

    .pf-modal-gallery {
        gap: 12px;
    }

    .pf-modal-gallery img {
        height: 140px;
    }

    .pf-modal-close {
        width: 40px;
        height: 40px;
        font-size: 16px;
        top: 14px;
        right: 14px;
    }
}


/* ===== MOBILE PORTRAIT (below 576px) ===== */
@media (max-width: 575px) {
    .pf-hero-area {
        min-height: 40vh;
        padding-bottom: 35px;
    }

    .pf-hero-title {
        font-size: clamp(34px, 13vw, 52px);
        letter-spacing: -1px;
    }

    .pf-hero-subtitle {
        font-size: 11px;
        letter-spacing: 1px;
    }

    .pf-breadcrumb li {
        font-size: 12px;
    }

    .pf-breadcrumb {
        gap: 6px;
    }

    /* Stats — 2 columns */
    .pf-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .pf-stat-card {
        padding: 22px 16px;
        border-radius: 12px;
        box-shadow:
            6px 6px 16px rgba(0, 0, 0, 0.35),
            -3px -3px 10px rgba(80, 55, 40, 0.12);
    }

    .pf-stat-number {
        font-size: 36px;
    }

    .pf-stat-label {
        font-size: 11px;
        letter-spacing: 0.5px;
    }

    /* Portfolio grid — 1 column */
    .pf-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .pf-grid-item {
        border-radius: 14px;
    }

    .pf-card {
        border-radius: 14px;
    }

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

    .pf-card-overlay {
        padding: 24px;
    }

    /* Filter */
    .pf-filter {
        gap: 6px;
        margin-bottom: 25px;
    }

    .pf-filter-btn {
        padding: 6px 14px;
        font-size: 11px;
        letter-spacing: 0.5px;
        border-radius: 30px;
    }

    /* Industries — 2 columns */
    .pf-industries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .pf-industry-item {
        padding: 20px;
        border-radius: 10px;
    }

    .pf-industry-icon {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .pf-industry-icon i,
    .pf-industry-icon svg {
        font-size: 28px;
        width: 28px;
        height: 28px;
    }

    .pf-industry-name {
        font-size: 13px;
    }

    .pf-industries-title {
        font-size: 28px;
    }

    .pf-industries-subtitle {
        font-size: 13px;
        margin-bottom: 25px;
    }

    /* Approach — 1 column */
    .pf-approach-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .pf-approach-card {
        padding: 25px;
        border-radius: 14px;
    }

    .pf-approach-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
        margin-bottom: 16px;
    }

    .pf-approach-title {
        font-size: 18px;
    }

    .pf-approach-desc {
        font-size: 13px;
    }

    /* CTA */
    .pf-cta-title {
        font-size: 34px;
        letter-spacing: 0;
    }

    .pf-cta-desc {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 25px;
    }

    .pf-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 28px;
        font-size: 18px;
        border-radius: 12px;
    }

    .pf-cta-label {
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    /* Section titles */
    .pf-section-title {
        font-size: 30px;
    }

    .pf-section-desc {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 25px;
    }

    .pf-yellow-line {
        width: 40px;
        margin-bottom: 18px;
    }

    /* Modal — full width */
    .pf-modal-container {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }

    .pf-modal-hero {
        height: 200px;
        border-radius: 0;
    }

    .pf-modal-body {
        padding: 25px 20px;
    }

    .pf-modal-title {
        font-size: 24px;
    }

    .pf-modal-section-title {
        font-size: 17px;
        padding-left: 12px;
    }

    .pf-modal-desc {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 22px;
    }

    .pf-modal-category {
        font-size: 11px;
        padding: 5px 14px;
        margin-bottom: 22px;
    }

    .pf-modal-tech-tag {
        padding: 5px 12px;
        font-size: 11px;
    }

    .pf-modal-tech-list {
        gap: 8px;
        margin-bottom: 25px;
    }

    .pf-modal-results {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 25px;
    }

    .pf-modal-result-card {
        padding: 18px;
        border-radius: 12px;
    }

    .pf-modal-result-number {
        font-size: 26px;
    }

    .pf-modal-result-desc {
        font-size: 12px;
    }

    .pf-modal-gallery {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .pf-modal-gallery img {
        height: 180px;
        border-radius: 10px;
    }

    .pf-modal-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 16px;
        border-radius: 12px;
    }

    .pf-modal-close {
        width: 38px;
        height: 38px;
        font-size: 15px;
        top: 12px;
        right: 12px;
    }

    .pf-modal-divider {
        margin: 20px 0;
    }
}


/* ===== SMALL MOBILE (below 400px) ===== */
@media (max-width: 400px) {
    .pf-hero-area {
        min-height: 35vh;
        padding-bottom: 25px;
    }

    .pf-hero-title {
        font-size: clamp(28px, 14vw, 44px);
    }

    .pf-hero-subtitle {
        font-size: 10px;
        letter-spacing: 0.5px;
    }

    .pf-breadcrumb li {
        font-size: 11px;
    }

    /* Stats */
    .pf-stats-grid {
        gap: 10px;
    }

    .pf-stat-card {
        padding: 18px 14px;
        border-radius: 10px;
    }

    .pf-stat-number {
        font-size: 30px;
    }

    .pf-stat-label {
        font-size: 10px;
    }

    /* Grid */
    .pf-grid {
        gap: 14px;
    }

    .pf-grid-item {
        border-radius: 12px;
    }

    .pf-card {
        border-radius: 12px;
    }

    .pf-card-name {
        font-size: 20px;
    }

    .pf-card-overlay {
        padding: 20px;
    }

    /* Filter */
    .pf-filter-btn {
        padding: 5px 12px;
        font-size: 10px;
    }

    /* Industries */
    .pf-industries-title {
        font-size: 24px;
    }

    .pf-industries-grid {
        gap: 10px;
    }

    .pf-industry-item {
        padding: 16px;
        border-radius: 8px;
    }

    .pf-industry-icon {
        font-size: 24px;
    }

    .pf-industry-icon i,
    .pf-industry-icon svg {
        font-size: 24px;
        width: 24px;
        height: 24px;
    }

    .pf-industry-name {
        font-size: 12px;
    }

    /* Approach */
    .pf-approach-card {
        padding: 22px;
    }

    .pf-approach-title {
        font-size: 17px;
    }

    .pf-approach-desc {
        font-size: 12px;
    }

    /* CTA */
    .pf-cta-title {
        font-size: 28px;
    }

    .pf-cta-desc {
        font-size: 13px;
    }

    .pf-cta-btn {
        font-size: 16px;
        padding: 12px 24px;
    }

    /* Section */
    .pf-section-title {
        font-size: 26px;
    }

    .pf-section-desc {
        font-size: 13px;
    }

    /* Modal */
    .pf-modal-hero {
        height: 160px;
    }

    .pf-modal-body {
        padding: 20px 16px;
    }

    .pf-modal-title {
        font-size: 22px;
    }

    .pf-modal-section-title {
        font-size: 16px;
    }

    .pf-modal-desc {
        font-size: 13px;
    }

    .pf-modal-result-number {
        font-size: 24px;
    }

    .pf-modal-result-desc {
        font-size: 11px;
    }

    .pf-modal-tech-tag {
        padding: 4px 10px;
        font-size: 10px;
    }

    .pf-modal-gallery img {
        height: 150px;
    }
}


/* ============================================================
   TOUCH DEVICE & ACCESSIBILITY
   ============================================================ */
@media (hover: none) {
    .pf-card:hover .pf-card-img {
        transform: none;
    }

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

    .pf-card .pf-card-content {
        transform: translateY(0);
    }

    .pf-approach-card:hover {
        transform: none;
        border-left-color: transparent;
    }

    .pf-industry-item:hover {
        transform: none;
    }

    .pf-stat-card:hover {
        transform: none;
    }
}

@media (max-width: 991px) {
    .pf-cta-btn {
        min-height: 48px;
    }

    .pf-modal-btn {
        min-height: 48px;
    }

    .pf-filter-btn {
        min-height: 44px;
    }

    .pf-breadcrumb li a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .pf-card-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}


/* ===== LANDSCAPE PHONE FIX ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .pf-hero-area {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .pf-hero-title {
        font-size: clamp(32px, 8vw, 60px);
    }
}


/* ============================================================
   11. SECTION SPACING OVERRIDES
   ============================================================ */

/* ===== Tablet (below 992px) ===== */
@media (max-width: 991px) {
    .pf-hero-area.pt-155 {
        padding-top: 100px !important;
    }

    .pf-stats.pt-155,
    .pf-stats.pt-130 {
        padding-top: 80px !important;
    }

    .pf-stats.pb-130 {
        padding-bottom: 80px !important;
    }

    .pf-grid-area.pt-155 {
        padding-top: 100px !important;
    }

    .pf-grid-area.pb-130 {
        padding-bottom: 80px !important;
    }

    .pf-industries.pt-130 {
        padding-top: 80px !important;
    }

    .pf-industries.pb-130 {
        padding-bottom: 80px !important;
    }

    .pf-approach.pt-155 {
        padding-top: 100px !important;
    }

    .pf-approach.pb-130 {
        padding-bottom: 80px !important;
    }

    .pf-cta.pt-155 {
        padding-top: 100px !important;
    }

    .pf-cta.pb-130 {
        padding-bottom: 80px !important;
    }

    /* Footer CTA spacing */
    .portfolio-page .tp-footer-area.pt-175 {
        padding-top: 100px !important;
    }

    .portfolio-page .tp-footer-area.pb-140 {
        padding-bottom: 80px !important;
    }

    /* Footer copyright padding */
    .portfolio-page .pp-copyright-right.pl-130,
    .portfolio-page .pp-copyright-right[class*="pl-130"] {
        padding-left: 0 !important;
    }

    /* Award divider margins */
    .portfolio-page .pp-award-divider.ml-80 {
        margin-left: 0 !important;
    }

    .portfolio-page .pp-award-divider.mr-80 {
        margin-right: 0 !important;
    }
}

/* ===== Mobile landscape (below 768px) ===== */
@media (max-width: 767px) {
    .pf-stats.pt-155,
    .pf-stats.pt-130 {
        padding-top: 60px !important;
    }

    .pf-stats.pb-130 {
        padding-bottom: 60px !important;
    }

    .pf-grid-area.pt-155 {
        padding-top: 70px !important;
    }

    .pf-grid-area.pb-130 {
        padding-bottom: 60px !important;
    }

    .pf-industries.pt-130 {
        padding-top: 60px !important;
    }

    .pf-industries.pb-130 {
        padding-bottom: 60px !important;
    }

    .pf-approach.pt-155 {
        padding-top: 70px !important;
    }

    .pf-approach.pb-130 {
        padding-bottom: 60px !important;
    }

    .pf-cta.pt-155 {
        padding-top: 70px !important;
    }

    .pf-cta.pb-130 {
        padding-bottom: 60px !important;
    }

    .portfolio-page .tp-footer-area.pt-175 {
        padding-top: 80px !important;
    }

    .portfolio-page .tp-footer-area.pb-140 {
        padding-bottom: 60px !important;
    }
}

/* ===== Mobile portrait (below 576px) ===== */
@media (max-width: 575px) {
    .pf-stats.pt-155,
    .pf-stats.pt-130 {
        padding-top: 40px !important;
    }

    .pf-stats.pb-130 {
        padding-bottom: 40px !important;
    }

    .pf-grid-area.pt-155 {
        padding-top: 50px !important;
    }

    .pf-grid-area.pb-130 {
        padding-bottom: 40px !important;
    }

    .pf-industries.pt-130 {
        padding-top: 40px !important;
    }

    .pf-industries.pb-130 {
        padding-bottom: 40px !important;
    }

    .pf-approach.pt-155 {
        padding-top: 50px !important;
    }

    .pf-approach.pb-130 {
        padding-bottom: 40px !important;
    }

    .pf-cta.pt-155 {
        padding-top: 50px !important;
    }

    .pf-cta.pb-130 {
        padding-bottom: 40px !important;
    }

    .portfolio-page .tp-footer-area.pt-175 {
        padding-top: 60px !important;
    }

    .portfolio-page .tp-footer-area.pb-140 {
        padding-bottom: 40px !important;
    }

    /* Copyright */
    .portfolio-page .tp-copyright-area .pp-copyright-right {
        padding-left: 0 !important;
    }

    .portfolio-page .tp-copyright-area .row {
        text-align: center;
    }
}


/* ============================================================
   12. OVERFLOW PREVENTION
   ============================================================ */
.pf-hero-area,
.pf-stats,
.pf-grid-area,
.pf-industries,
.pf-approach,
.pf-cta {
    overflow-x: hidden;
}

/* Ensure images don't overflow */
.portfolio-page img {
    max-width: 100%;
    height: auto;
}


/* ============================================================
   13. BR TAG HANDLING
   ============================================================ */
@media (max-width: 767px) {
    .portfolio-page br,
    .pf-hero-title br,
    .pf-section-title br,
    .pf-cta-title br,
    .pf-industries-title br,
    .pp-section-title br,
    .pp-footer-big-title br {
        display: none;
    }
}


/* ============================================================
   14. MODAL CUSTOM SCROLLBAR (Global within portfolio)
   ============================================================ */

/* Already defined on .pf-modal-container above.
   These additional selectors ensure scrollbar styling
   applies to nested scrollable areas if any. */

.pf-modal-container *::-webkit-scrollbar {
    width: 6px;
}

.pf-modal-container *::-webkit-scrollbar-track {
    background: transparent;
}

.pf-modal-container *::-webkit-scrollbar-thumb {
    background: rgba(255, 246, 105, 0.3);
    border-radius: 3px;
}

.pf-modal-container *::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 246, 105, 0.5);
}
