/* Client Project - Project Flow Immersive Section */
:root {
    --pf-bg-dark: #050505;
    --pf-surface: rgba(255, 255, 255, 0.03);
    --pf-surface-glass: rgba(20, 20, 20, 0.6);
    --pf-border: rgba(255, 255, 255, 0.08);
    --pf-accent: #3b82f6;
    /* Blue accent */
    --pf-accent-glow: rgba(59, 130, 246, 0.4);
    --pf-text-primary: #ffffff;
    --pf-text-secondary: rgba(255, 255, 255, 0.6);
    --pf-transition: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Container */
.project-flow-showcase {
    width: 100%;
    background-color: var(--pf-bg-dark);
    color: var(--pf-text-primary);
    overflow: hidden;
    position: relative;
    font-family: 'Inter', sans-serif;
    opacity: 0;
    animation: pf-fade-in 0.8s var(--pf-transition) forwards;
}

@keyframes pf-fade-in {
    to {
        opacity: 1;
    }
}

/* Typography Defaults */
.pf-title-lg {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #fff, #a5a5a5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
}

.pf-title-md {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.pf-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--pf-text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pf-subtitle--center {
    text-align: center;
}

/* Overview Section */
.pf-overview {
    padding: 8rem 2rem;
    text-align: center;
    background: linear-gradient(to bottom, transparent, rgba(59, 130, 246, 0.03));
}

.pf-overview__logo {
    height: 60px;
    margin-bottom: 3rem;
}

.pf-overview__text {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.pf-overview__paragraph {
    font-size: 1.125rem;
    color: var(--pf-text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.pf-overview__paragraph strong {
    color: var(--pf-text-primary);
}

.pf-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* === HERO SECTION === */
.pf-hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    perspective: 1000px;
}

.pf-hero__video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: 0;
    transform: scale(1.1);
    /* Slight zoom for parallax default */
    transition: transform 0.5s ease-out;
}

/* Gradient Overlay */
.pf-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(5, 5, 5, 0.3) 0%,
            var(--pf-bg-dark) 95%);
    z-index: 1;
}

.pf-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 2rem;
    max-width: 900px;
    transform: translateY(30px);
    opacity: 0;
    animation: pf-slide-up 1s var(--pf-transition) 0.3s forwards;
}

@keyframes pf-slide-up {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pf-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0.5;
    animation: pf-bounce 2s infinite;
}

@keyframes pf-bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* === GLobal Feature Section Styles === */
.pf-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
    z-index: 2;
}

.pf-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.pf-content-col {
    padding: 2rem;
}

.pf-visual-col {
    position: relative;
    height: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

/* Glass Card */
.pf-card-visual {
    position: relative;
    width: 100%;
    border-radius: 20px;
    background: var(--pf-surface-glass);
    border: 1px solid var(--pf-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.5s ease-out;
}

.pf-card-visual img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s var(--pf-transition);
}

.pf-card-visual:hover img {
    transform: scale(1.05);
    /* Subtle zoom on hover */
}

/* Feature 1: POS - Floating UI Overlays */
.pf-feature-pos .pf-visual-col::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at 50% 50%, var(--pf-accent-glow), transparent 70%);
    z-index: -1;
    opacity: 0.5;
}

.pf-ui-float {
    position: absolute;
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 2;
    backdrop-filter: blur(10px);
    animation: float-y 6s ease-in-out infinite;
}

.pf-ui-float--1 {
    top: 10%;
    right: -5%;
    width: 180px;
    animation-delay: 0s;
}

.pf-ui-float--2 {
    bottom: 15%;
    left: -5%;
    width: 200px;
    animation-delay: 2s;
}

@keyframes float-y {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Feature 2: Kanban - Alternate Layout */
.pf-feature-kanban {
    background: linear-gradient(to top, #0a0a0a, #050505);
}

.pf-feature-kanban .pf-container {
    direction: rtl;
    /* Flip grid for alternate visual */
}

.pf-feature-kanban .pf-content-col {
    direction: ltr;
    /* Reset text direction */
}

.pf-kanban-card {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: all 0.5s ease;
}

.pf-feature-kanban:hover .pf-kanban-card {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* Feature 3: Landing Page - Full width/Deep Parallax */
.pf-feature-landing {
    min-height: 120vh;
    display: block;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.pf-landing-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: url('../images/projects/cuan-landing-generator.png');
    background-size: cover;
    background-position: center top;
    opacity: 0.15;
    z-index: 0;
    transform: translateY(0);
}

.pf-feature-landing .pf-container {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center vertically */
    align-items: center;
    /* Center horizontally */
    text-align: center;
    max-width: 800px;
}

.pf-feature-landing .pf-card-visual {
    max-width: 900px;
    margin-top: 3rem;
    box-shadow: 0 0 100px rgba(59, 130, 246, 0.1);
}

/* Feature List Grid */
.pf-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
}

.pf-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #d1d5db;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--pf-accent);
}

/* Feature 4: Clara AI */
.pf-feature-clara {
    background: radial-gradient(circle at 10% 90%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
}

.pf-clara-card {
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.1);
}

.pf-ai-pulse {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    animation: pf-ai-pulse-anim 2s infinite;
}

@keyframes pf-ai-pulse-anim {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.pf-ai-chips {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pf-chip {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

/* Integrated Certs (Simplified) */
.cert-grid-simple {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.cert-item:hover {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(5px);
}

.cert-item__icon {
    width: 50px;
    height: 50px;
    background: var(--pf-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.cert-item__content {
    flex-grow: 1;
}

.cert-item__content h4 {
    margin: 0;
    font-size: 1rem;
}

.cert-item__content p {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: var(--pf-text-secondary);
}

.btn-view-cert {
    background: transparent;
    border: 1px solid var(--pf-accent);
    color: var(--pf-accent);
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-cert:hover {
    background: var(--pf-accent);
    color: #fff;
}

/* Cert Modal */
.cert-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.cert-modal.active {
    display: flex;
}

.cert-modal__content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.cert-modal__img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
}

.cert-modal__close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Animations */
[data-pf-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-pf-animate].in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .pf-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .pf-feature-kanban .pf-container {
        direction: ltr;
    }

    .pf-visual-col {
        min-height: 300px;
        order: -1;
        /* Image first on mobile */
    }

    .pf-subtitle {
        margin: 0 auto 2rem auto;
    }

    .pf-ai-chips {
        justify-content: center;
    }
}

/* Certifications Section - Cabinet Style */
.cert-archives {
    padding: 4rem 1rem;
    display: flex;
    justify-content: center;
    perspective: 2000px;
}

.cert-cabinet {
    display: flex;
    gap: 15px;
    height: 480px;
    align-items: flex-end;
    padding-bottom: 2rem;
}

.cert-file {
    position: relative;
    width: 120px;
    height: 380px;
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px 30px 8px 8px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: bottom center;
}

.cert-file__tab {
    position: absolute;
    top: -25px;
    left: 0;
    width: 80%;
    height: 30px;
    background: #333;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    padding-left: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #888;
    transition: all 0.3s ease;
}

.cert-file__paper {
    position: absolute;
    inset: 10px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    opacity: 0.2;
    transition: all 0.5s ease;
    transform: translateY(20px);
}

.cert-file__content {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: #111;
}

.cert-file__content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    display: none;
    /* Only show when expanded */
}

.cert-file__content p {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1.5rem;
    display: none;
}

.cert-file__content img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Hover Effects */
.cert-file:hover {
    width: 450px;
    height: 440px;
    background: #333;
    transform: translateY(-20px);
    z-index: 10;
    border-color: var(--pf-accent);
}

.cert-file:hover .cert-file__tab {
    background: var(--pf-accent);
    color: #fff;
    width: 40%;
}

.cert-file:hover .cert-file__paper {
    opacity: 1;
    transform: translateY(0);
}

.cert-file:hover .cert-file__content h4,
.cert-file:hover .cert-file__content p {
    display: block;
}

/* Different Folder Colors */
.cert-file[data-cert="0"] .cert-file__tab {
    border-left: 3px solid #3b82f6;
}

.cert-file[data-cert="1"] .cert-file__tab {
    border-left: 3px solid #10b981;
}

.cert-file[data-cert="2"] .cert-file__tab {
    border-left: 3px solid #f59e0b;
}

.cert-file[data-cert="3"] .cert-file__tab {
    border-left: 3px solid #8b5cf6;
}

.cert-file[data-cert="4"] .cert-file__tab {
    border-left: 3px solid #ec4899;
}

/* Responsive Archives */
@media (max-width: 1200px) {
    .cert-archives {
        perspective: none;
    }

    .cert-cabinet {
        flex-wrap: wrap;
        height: auto;
        justify-content: center;
        gap: 40px;
    }

    .cert-file {
        width: 200px;
        height: 280px;
    }

    .cert-file:hover {
        width: 320px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .cert-file {
        width: 140px;
        height: 200px;
    }

    .cert-file:hover {
        width: 280px;
        height: 380px;
    }
}