/* --- Projects Premium Overhaul --- */

/* Logo Ticker (Infinite Scroll) */
.logo-ticker-container {
    width: 100%;
    overflow: hidden;
    padding: 60px 0;
    background: transparent;
    position: relative;
}

.logo-ticker-track {
    display: flex;
    width: max-content;
    animation: ticker-scroll 30s linear infinite;
}

.logo-item {
    flex: 0 0 auto;
    width: 180px;
    height: 180px;
    margin: 0 30px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s var(--ease-premium);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.logo-item:hover {
    transform: scale(1.1) translateY(-10px);
    box-shadow: 0 20px 40px rgba(15, 69, 240, 0.15);
    border-color: var(--accent);
}

.logo-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(1);
    transition: all 0.4s ease;
    opacity: 0.6;
}

.logo-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


.projects-section {
    padding: 80px 0;
    position: relative;
    background: var(--bg-white);
}

.section-description {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: var(--fs-h2);
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.03em;
    color: var(--text-main);
    font-family: var(--font-heading);
}

.section-subtitle {
    font-family: var(--font-secondary);
    font-size: var(--fs-lead);
    color: var(--text-dim);
    font-weight: 300;
}

/* Slider Overhaul */
.slider-container {
    position: relative;
    padding: 20px 80px;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

.slider-track {
    display: flex;
    gap: 30px;
    transition: transform 0.6s var(--ease-premium);
}

/* Slide Card - Updated for 2 per view */
.slide-card {
    flex: 0 0 48%;
    /* 2 per view with gap */
    background: var(--bg-white);
    border-radius: 28px;
    padding: 25px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-premium);
    transition: var(--transition-mid);
    display: flex;
    flex-direction: column;
}

.slide-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(15, 69, 240, 0.12);
    border-color: rgba(15, 69, 240, 0.15);
}

.slide-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.slide-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
    font-family: var(--font-heading);
}

.slide-card p {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.website-thumbnail {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    height: 240px;
    margin-bottom: 20px;
}

.website-thumbnail img {
    margin-bottom: 0;
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 11, 0.85);
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0;
    transition: var(--transition-mid);
    text-align: center;
}

.slide-card:hover .thumbnail-overlay {
    opacity: 1;
}

/* Pagination Dots */
.slider-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #D1D1D6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-dot.active {
    background: var(--accent);
    transform: scale(1.2);
    width: 30px;
    border-radius: 10px;
}

.pagination-dot:hover {
    background: #D1D1D6;
}

.pagination-dot.active:hover {
    background: var(--accent);
}

/* Buttons */
.preview-btn {
    margin-top: auto;
    width: 100%;
    padding: 14px 28px;
    border-radius: 980px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-mid);
    display: inline-block;
    background: var(--gradient-premium);
    background-size: 200% auto;
    color: white;
    border: none;
    box-shadow: 0 10px 30px rgba(15, 69, 240, 0.2);
    cursor: pointer;
    font-family: var(--font-body);
    text-align: center;
}

.preview-btn:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(15, 69, 240, 0.35);
}


/* ============================================================
   PAMPIRI FLAGSHIP SECTION — Design-System Compliant
   Follows: Premium Technical Minimalist / NexMotion UI tokens
   ============================================================ */

/* Screen-reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Section wrapper */
#pampiri-flagship {
    background: linear-gradient(135deg, #000c24 0%, #001f3f 100%);
    width: 100%;
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Signature gradient radial echo — matches site's radial-gradient pattern */
#pampiri-flagship::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(15, 69, 240, 0.08) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* Inner two-column grid */
.flagship-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* LEFT — glass card — matches site glassmorphism pattern */
.flagship-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Badge — uses accent brand colour */
.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: #fff;
    border-radius: 980px;                 /* matches site pill system */
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 14px;
    width: fit-content;
}

/* Flagship heading — uses site heading font + tokens */
.flagship-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0;
}

/* Flagship body copy — Genos matches site secondary font for descriptions */
.flagship-content p {
    font-family: var(--font-secondary);
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--fs-body);
    line-height: 1.6;
    font-weight: 300;
    margin: 0;
}

/* CTA row */
.flagship-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

/* Primary — site gradient-premium pill pattern */
.btn-flagship-primary {
    background: var(--gradient-premium);
    background-size: 200% auto;
    color: #fff;
    padding: 14px 28px;
    border-radius: 980px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-mid);
    box-shadow: 0 10px 30px rgba(15, 69, 240, 0.2);
    display: inline-block;
}

.btn-flagship-primary:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(15, 69, 240, 0.35);
}

/* Ghost — site btn-secondary pattern adapted for dark bg */
.btn-flagship-ghost {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
    padding: 14px 28px;
    border-radius: 980px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--gradient-glass);
    position: relative;
    overflow: hidden;
    transition: var(--transition-mid);
    display: inline-block;
}

.btn-flagship-ghost::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.btn-flagship-ghost:hover::before {
    left: 100%;
}

.btn-flagship-ghost:hover {
    border-color: var(--accent-light);
    color: var(--accent-light);
    transform: translateY(-3px);
}

/* RIGHT — visual column */
.flagship-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Radial glow — uses site's accent colour */
.mockup-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(15, 182, 240, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: blur(20px);
}

/* Float animation — hardware-accelerated per design system performance spec */
.mockup-float {
    position: relative;
    width: 100%;
    max-width: 520px;
    height: auto;
    animation: floatMockup 4s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(15, 182, 240, 0.3));
    border-radius: 30px;                /* Premium rounded corners */
    overflow: hidden;                   /* Ensures image clips to corners */
    will-change: transform;             /* GPU layer — follows will-change spec */
    transform: translateZ(0);           /* compositing hint */
}

@keyframes floatMockup {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}


/* ============================================================
   PAMPIRI FEATURE HIGHLIGHTS
   ============================================================ */

.pampiri-features-section {
    background: var(--bg-soft);         /* matches site soft-bg sections */
    padding: var(--section-padding) var(--container-padding);
}

.pampiri-features-section .section-description {
    margin-bottom: clamp(32px, 6vw, 60px);
}

.features-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-premium);
    transition: var(--transition-mid);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    will-change: transform;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(15, 69, 240, 0.12);
}

/* Icon bubble */
.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(15, 69, 240, 0.06);  /* tinted with site accent */
    flex-shrink: 0;
    transition: var(--transition-mid);
}

.feature-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--accent);
    transition: stroke 0.3s var(--ease-premium);
}

.feature-card:hover .feature-icon {
    background: var(--gradient-premium);
    background-size: 200% auto;
}

.feature-card:hover .feature-icon svg {
    stroke: #ffffff;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.01em;
    margin: 0;
}

.feature-card p {
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.55;
    font-weight: 300;
    margin: 0;
}


/* ============================================================
   PAMPIRI USE-CASES / WORKFLOWS
   ============================================================ */

.pampiri-usecases-section {
    background: var(--bg-white);
    padding: var(--section-padding) var(--container-padding);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.usecases-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.usecases-inner h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.03em;
    margin: 0;
}

.usecases-inner p {
    font-family: var(--font-secondary);
    font-size: var(--fs-lead);
    color: var(--text-dim);
    line-height: 1.4;
    font-weight: 300;
    margin: 0;
}

/* Pills — match site's accent palette */
.workflow-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 0.5rem;
}

.pill {
    background: rgba(15, 69, 240, 0.06);
    color: var(--accent);
    border-radius: 980px;
    padding: 8px 18px;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;                   /* 44px WCAG touch target */
    border: 1px solid rgba(15, 69, 240, 0.12);
    transition: var(--transition-mid);
    cursor: default;
}

.pill:hover {
    background: var(--gradient-premium);
    background-size: 200% auto;
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 69, 240, 0.2);
}

/* Badge icon spacing */
.badge-tag i {
    margin-right: 3px;
}


/* ============================================================
   RESPONSIVE — Flagship & Pampiri sections
   Breakpoints mirror style.css: 1024 → 768 → 480
   ============================================================ */

@media (max-width: 1024px) {
    /* Stack to single column — content above, image below */
    .flagship-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    #pampiri-flagship {
        padding: clamp(60px, 10vh, 100px) 0;
    }

    .flagship-content { order: 1; }
    .flagship-visual  { order: 2; }

    .mockup-float {
        max-width: 420px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Global Mobile Centering & Spacing */
    .hero-content,
    .flagship-content,
    .feature-card,
    .usecases-inner,
    .projects-section .section-description {
        text-align: center;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .slider-container {
        padding: 10px 15px;
        overflow: hidden;
        position: relative;
    }

    .slider-track {
        gap: 15px;
        display: flex;
        flex-wrap: nowrap;
    }

    .hero-description,
    .section-subtitle,
    .flagship-content p,
    .feature-card p,
    .usecases-inner p {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        max-width: 100%;
    }

    .section-title,
    .hero-title {
        font-size: var(--fs-h2);
        text-align: center;
        width: 100%;
    }

    /* Hero Specifics */
    .pricing-hero {
        padding-top: 100px !important;
        padding-bottom: 40px !important;
        min-height: auto !important;
    }

    /* Flagship Specifics */
    .flagship-content {
        padding: 2rem 1.5rem;
        border-radius: 24px;
        width: 100%;
    }

    .flagship-ctas {
        justify-content: center;
        width: 100%;
        flex-direction: column;
        gap: 15px;
    }

    .btn-flagship-primary,
    .btn-flagship-ghost {
        text-align: center;
        width: 100%;
        padding: 14px 20px;
        border-radius: 12px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mockup-float {
        max-width: 300px;
    }

    .mockup-glow {
        width: 260px;
        height: 260px;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
    }

    .feature-card {
        padding: 2rem 1.5rem;
        width: 100%;
    }

    /* Pills */
    .workflow-pills {
        justify-content: center;
    }

    .pill {
        min-height: 48px;
        padding: 10px 18px;
    }
    
    /* Logo Ticker Mobile */
    .logo-item {
        width: 130px;
        height: 130px;
        margin: 0 15px;
        padding: 25px;
    }

    .logo-ticker-track {
        animation-duration: 40s;
    }

    /* Slide Cards on Mobile */
    .slide-card {
        flex: 0 0 100%;
        width: 100%;
        min-width: 100%;
        padding: 20px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .slide-card img {
        height: 200px;
        width: 100%;
        object-fit: cover;
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .slide-card h3 {
        font-size: 1.25rem;
        margin-bottom: 10px;
    }

    .slide-card p {
        font-size: 0.95rem;
        margin-bottom: 20px;
        line-height: 1.6;
    }

    .slide-card .preview-btn {
        margin-top: auto;
        width: 100%;
        justify-content: center;
        padding: 12px;
        background: var(--accent);
        color: #ffffff !important;
        border-radius: 12px;
        box-shadow: 0 5px 15px rgba(15, 69, 240, 0.3);
    }
}

@media (max-width: 480px) {
    /* Smallest screens — single column everything */
    .flagship-content h2 {
        font-size: 1.75rem;
    }

    .usecases-inner h3 {
        font-size: 1.5rem;
    }

    .mockup-float {
        max-width: 260px;
    }
}