/* ==========================================================================
   Portfolio Details Masterpiece - FINAL POLISH
   ========================================================================== */

/* --- Layout Evolution --- */
.pd-masterpiece-container {
    background-color: transparent;
    /* Seamless Background */
}


.pd-masterpiece-container .section-title-center {
    margin-bottom: 0;
}

/* ==========================================================================
   1. Premium Header (Heading / Content)
   ========================================================================= */
.pd-header {
    text-align: left;
    margin-bottom: 0;
    position: relative;
}

.pd-header .badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: color-mix(in srgb, var(--primary-color) 8%, transparent);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font: var(--badge-font);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid color-mix(in srgb, var(--primary-color) 20%, transparent);
    margin-bottom: 2rem;
}

.pd-header h1 {
    font: var(--banner-font);
    font-size: clamp(3.5rem, 10vw, 6.5rem);
    color: var(--heading-color);
    line-height: 0.9;
    margin-bottom: 2.5rem;
    letter-spacing: -4px;
}

.pd-header .lead-text {
    max-width: 800px;
    font: var(--para-font);
    font-size: 1.35rem;
    color: var(--para-color);
    line-height: 1.5;
    opacity: 0.9;
}

/* ==========================================================================
   2. Overview Row Architecture
   ========================================================================= */
.pd-overview-row {
    margin-bottom: 0;
}

.bento-item {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 40px;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

/* ==========================================================================
   3. Terminal Styles Now Native to home.css
   ========================================================================= */

#portfolio-project-overview .terminal-window {
    background: var(--heading-color);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    height: 500px;
    max-height: 500px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    transition: background 0.3s ease;
}

#portfolio-project-overview .terminal-window.light-mode {
    background: var(--white-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

#portfolio-project-overview .terminal-header {
    background: linear-gradient(to bottom, var(--black-color), var(--heading-color));
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    opacity: 0.9;
    transition: background 0.3s ease;
}

#portfolio-project-overview .terminal-window.light-mode .terminal-header {
    background: linear-gradient(to bottom, var(--white-color-behind), var(--gray-bg));
    opacity: 1;
}

#portfolio-project-overview .terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

#portfolio-project-overview .terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.2s;
}

#portfolio-project-overview .terminal-btn:hover {
    opacity: 0.8;
}

#portfolio-project-overview .btn-close-terminal {
    background: #ff5f56;
}

#portfolio-project-overview .btn-minimize {
    background: #ffbd2e;
}

#portfolio-project-overview .btn-maximize {
    background: #27c93f;
}

#portfolio-project-overview .terminal-title {
    font: var(--btn-font);
    color: var(--white-color);
    opacity: 0.8;
    transition: color 0.3s ease;
}

#portfolio-project-overview .terminal-window.light-mode .terminal-title {
    color: var(--heading-color);
}

#portfolio-project-overview .terminal-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

#portfolio-project-overview .terminal-action-btn {
    background: var(--white-color);
    border: none;
    color: var(--black-color);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font: var(--small-btn-font);
    cursor: pointer;
    transition: all 0.2s;
}

#portfolio-project-overview .terminal-action-btn:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

#portfolio-project-overview .mode-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s ease;
    border: 2px solid var(--border-color);
    padding: 0;
}

#portfolio-project-overview .mode-toggle.active {
    background: var(--theme-color);
}

#portfolio-project-overview .mode-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: var(--white-color);
    border-radius: 50%;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#portfolio-project-overview .mode-toggle.active .mode-toggle-slider {
    transform: translateX(30px);
}

#portfolio-project-overview .mode-toggle svg {
    width: 14px;
    height: 14px;
    fill: var(--heading-color);
    transition: fill 0.3s ease;
}

#portfolio-project-overview .mode-toggle.active svg {
    fill: var(--primary-color);
}

#portfolio-project-overview .terminal-body {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: 'Courier New', monospace;
    font-size: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
    line-height: 1.6;
}

#portfolio-project-overview .terminal-body::-webkit-scrollbar {
    width: 8px;
}

#portfolio-project-overview .terminal-body::-webkit-scrollbar-track {
    background: var(--theme-color);
}

#portfolio-project-overview .terminal-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

#portfolio-project-overview .terminal-line {
    margin-bottom: 0;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#portfolio-project-overview .terminal-prompt {
    color: var(--primary-color);
    font-weight: 600;
}

#portfolio-project-overview .terminal-command {
    color: var(--white-color);
    transition: color 0.3s ease;
}

#portfolio-project-overview .terminal-window.light-mode .terminal-command {
    color: var(--theme-color);
}

#portfolio-project-overview .terminal-output {
    color: var(--primary-color);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

#portfolio-project-overview .terminal-error {
    color: var(--primary-color);
    padding-left: 1rem;
}

#portfolio-project-overview .terminal-info {
    color: var(--white-color);
    opacity: 0.8;
    transition: color 0.3s ease;
}

#portfolio-project-overview .terminal-window.light-mode .terminal-info {
    color: var(--para-color);
}

#portfolio-project-overview .terminal-input-line {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

#portfolio-project-overview .terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--white-color);
    font-family: 'Courier New', monospace;
    font-size: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
    outline: none;
    padding: 0;
    margin-left: 0.5rem;
    transition: color 0.3s ease;
}

#portfolio-project-overview .terminal-window.light-mode .terminal-input {
    color: var(--heading-color);
}

#portfolio-project-overview .terminal-input::placeholder {
    color: var(--white-color);
    opacity: 0.5;
}

#portfolio-project-overview .terminal-window.light-mode .terminal-input::placeholder {
    color: var(--para-color);
}

#portfolio-project-overview .cursor {
    display: inline-block;
    width: 8px;
    height: 1em;
    background: var(--primary-color);
    margin-left: 2px;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.bento-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.bento-stat-card h2 {
    font: var(--heading-font);
    font-size: 2.2rem;
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

.intel-list {
    list-style: none;
    padding: 0;
}

.intel-item {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.intel-item:last-child {
    border-bottom: none;
}

.intel-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--para-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.intel-value {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--heading-color);
}

/* ==========================================================================
   4. Execution Process Flow (The Visual Journey)
   ========================================================================= */
.process-flow-section {
    position: relative;
}

.process-flow-container {
    display: block;
    width: 100%;
    position: relative;
    padding-bottom: 50px;
    /* Space for swiper pagination dots */
    padding-top: 20px;
    /* Space for hover animation to not cut off */
    margin-top: 30px;
    overflow: visible;
    /* Prevent Swiper from clipping hover animation */
}

/* Connecting Line */
.process-flow-container::before {
    content: '';
    position: absolute;
    top: 70px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--border-color), var(--border-color) 10px, transparent 10px, transparent 20px);
    z-index: 0;
}

.process-node {
    position: relative;
    z-index: 1;
    text-align: center;
}

.node-icon-wrapper {
    width: 100px;
    height: 100px;
    background: var(--white-color);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    transition: all 0.5s ease;
    box-shadow: var(--shadow-sm);
}

.node-icon-wrapper i,
.node-icon-wrapper img {
    font-size: 2rem;
    color: var(--heading-color);
    transition: all 0.3s ease;
}

.process-node:hover .node-icon-wrapper {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-10px) rotate(10deg);
    box-shadow: 0 15px 30px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.process-node:hover .node-icon-wrapper i {
    color: var(--white-color);
    transform: scale(1.2);
}

.node-content h2 {
    font: var(--sub-heading-font);
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--heading-color);
}

.node-content p {
    font-size: 0.95rem;
    color: var(--para-color);
    line-height: 1.5;
}

/* Animation for the flow line */
@keyframes flow-dash {
    to {
        stroke-dashoffset: -100;
    }
}

/* Custom Pagination styling */
.process-flow-container .swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

.process-flow-container .swiper-pagination {
    bottom: 0px;
}

/* Responsive */
@media (max-width: 1200px) {

    .process-flow-container {
        padding-bottom: 50px;
        /* Keep space for pagination */
    }

    .process-flow-container::before {
        display: none;
    }
}

@media (max-width: 1199px) {
    #portfolio-project-overview .terminal-body {
        width: 100%;
        overflow-x: hidden;
    }
}

/* Neutralize the tablet padding that home.css applies to #portfolio-project-overview.
   On this page that ID is on a div.row, not a section, so we must reset it. */
@media (max-width: 991px) {
    #portfolio-project-overview {
        padding: 0 !important;
    }

    #portfolio-project-overview .terminal-window {
        max-width: 100%;
        flex-wrap: wrap;
    }

    #portfolio-project-overview .terminal-header {
        flex-wrap: wrap;
        justify-content: space-between;
        width: 100%;
        flex-direction: column-reverse;
    }

    #portfolio-project-overview .terminal-buttons {
        flex: 0 0 80%;
    }

    #portfolio-project-overview .about-us-btn-group {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    #portfolio-project-overview .terminal-window.light-mode .terminal-title {
        text-align: left;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .cards-interactive-area {
        cursor: auto;
        /* Return to normal cursor on mobile */
    }

    .custom-drag-cursor {
        display: none !important;
        /* Hide custom cursor on touch */
    }

    .cards-slider-2026 {
        cursor: grab;
        padding: 20px 0;
        width: 100%;
        overflow: visible;
        /* Prevent mobile clipping */
    }

    .brutalist-card {
        width: 85%;
        /* Let cards shrink to fit mobile width */
        height: 350px;
        background: transparent;
        box-shadow: none;
        border: none;
    }

    .cards-slider-2026:active {
        cursor: grabbing;
    }

    .card-caption {
        bottom: 10px;
        left: 10px;
        padding: 10px 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .step-num {
        font-size: 1.1rem;
        /* Slightly bigger on mobile */
    }

    .step-text {
        font-size: 1.3rem;
        /* Bigger font on mobile */
    }
}

/* ==========================================================================
   6. Swiper Gallery Slider
   ========================================================================= */

.pd-swiper-gallery {
    position: relative;
    overflow: hidden;
    padding-bottom: 2rem;
}

.gallery-slider-wrapper {
    position: relative;
    width: 100%;
    margin-top: 1rem;
}

/* Main Slider */
.gallery-main-slider {
    width: 100%;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    background: var(--white-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: relative;
    aspect-ratio: 16 / 9;
}

.gallery-main-slider .swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-main-slider .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-main-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-main-slider .swiper-slide:hover img {
    transform: scale(1.05);
}

.slider-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    backdrop-filter: blur(4px);
    transition: all 0.4s ease;
}

.view-text {
    background: var(--white-color);
    color: var(--heading-color);
    padding: 12px 24px;
    border-radius: 30px;
    font: var(--btn-font);
    font-size: 0.9rem;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-main-slider .swiper-slide:hover .slider-overlay {
    opacity: 1;
}

.gallery-main-slider .swiper-slide:hover .view-text {
    transform: translateY(0);
}

/* Slider Controls over Main Slider */
.slider-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    pointer-events: none;
    /* Let clicks pass through to slide if not clicking controls */
}

/* Enable pointer events on actual controls */
.gallery-btn-prev,
.gallery-btn-next,
.gallery-pagination {
    pointer-events: auto;
}

.gallery-btn-prev,
.gallery-btn-next {
    position: static;
    margin: 0;
    width: 45px;
    height: 45px;
    background: var(--white-color);
    border-radius: 50%;
    color: var(--heading-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-btn-prev::after,
.gallery-btn-next::after {
    font-size: 1rem;
    font-weight: bold;
}

.gallery-btn-prev:hover,
.gallery-btn-next:hover {
    background: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.gallery-pagination {
    position: static;
    font: var(--btn-font);
    font-size: 1.2rem;
    color: var(--white-color);
    letter-spacing: 2px;
    font-weight: 500;
    width: auto;
}

/* Thumbnails Slider */
.gallery-thumbs-slider {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 0;
}

.gallery-thumbs-slider .swiper-slide {
    width: 20%;
    height: 100px;
    opacity: 0.5;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
}

.gallery-thumbs-slider .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--primary-color);
}

.gallery-thumbs-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cards-interactive-area {
        cursor: auto;
        /* Return to normal cursor on mobile */
    }

    .custom-drag-cursor {
        display: none !important;
        /* Hide custom cursor on touch */
    }

    .cards-slider-2026 {
        cursor: grab;
        padding: 20px 0;
        width: 100%;
        overflow: visible;
        /* Prevent mobile clipping */
    }

    .brutalist-card {
        width: 85%;
        /* Let cards shrink to fit mobile width */
        height: 350px;
        box-shadow: none;
        border: none;
    }

    .cards-slider-2026:active {
        cursor: grabbing;
    }

    .card-caption {
        bottom: 10px;
        left: 10px;
        padding: 10px 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .step-num {
        font-size: 1.1rem;
        /* Slightly bigger on mobile */
    }

    .step-text {
        font-size: 1.3rem;
        /* Bigger font on mobile */
    }
}

/* ==========================================================================
   Breadcrumb – Mobile Alignment Fix
   ========================================================================= */
@media (max-width: 767px) {
    #breadcrumb .breadcrumb-modern {
        flex-wrap: wrap;
        white-space: normal;
        gap: 0;
    }

    #breadcrumb .breadcrumb-item-modern {
        display: flex;
        align-items: center;
        margin-bottom: 4px;
    }

    /* Remove left padding from the very first item so Home and Project Name
       share the same left baseline when they wrap */
    #breadcrumb .breadcrumb-item-modern:first-child>a {
        padding-left: 0;
    }

    #breadcrumb .breadcrumb-item-modern .separator {
        margin: 0 6px 0 0;
    }
}

/* =========================================================================
 * 4. Gallery / Screenshots Section (2026 Brutalist Stacked Cards)
 * ========================================================================= */
.pd-gallery-2026 {
    background-color: var(--bg-color);
    /* Match Brand Flow */
    position: relative;
    cursor: none;
    /* Hide default cursor */
}

/* Massive Outline Typography */
.brutalist-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(8rem, 20vw, 25rem);
    font-weight: 900;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 2px var(--border-color);
    /* Match theme borders */
    opacity: 0.15;
    /* subtle ghost text */
    letter-spacing: -5px;
    z-index: 0;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

/* Custom Interactive Cursor */
.custom-drag-cursor {
    position: absolute;
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    pointer-events: none;
    /* Crucial so it doesn't block dragging */
    z-index: 9999;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    transition: width 0.3s, height 0.3s, opacity 0.3s ease, background-color 0.3s;
}

/* Interactive Tracking Bounds */
.cards-interactive-area {
    position: relative;
    width: 100%;
    cursor: none;
    /* Hide cursor internally too */
}

/* Cards Swiper Layout */
.cards-slider-2026 {
    width: 100%;
    max-width: 900px;
    height: 50vh;
    /* Reduced height */
    min-height: 450px;
    margin: 0 auto;
    padding: 0 0 20px 0;
    /* Removed top padding to pull cards closer to title */
    cursor: none;
    overflow: visible;
    /* CRITICAL: Prevents rotating side cards from being chopped at edges */
}

.brutalist-card {
    width: 700px;
    /* Make cards a little smaller than full width */
    border-radius: var(--radius-2xl);
    /* Match homepage */
    overflow: hidden;
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    /* Match homepage shadow */
    transition: box-shadow 0.8s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.8s ease;
    /* DO NOT TRANSITION TRANSFORM. IT DESTROYS SWIPER DRAG CALCULATIONS */
}

.card-inner-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.card-inner-wrap img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: brightness(0.6) contrast(1.1) grayscale(0.5);
    /* Moody inactive state */
    transition: filter 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transform: scale(1);
}

.swiper-slide-active .card-inner-wrap img {
    filter: brightness(1) contrast(1.1) grayscale(0);
    /* Bright active state */
    transform: scale(1.05);
    /* Very slight zoom on active */
}

/* Stacked Caption Inside Image */
.card-caption {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: var(--white-color);
    color: var(--heading-color);
    padding: 15px 25px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.2s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* Soft shadow */
}

.step-num {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-family: 'Space Mono', monospace;
}

.step-text {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    font-weight: 800;
    text-transform: uppercase;
}

.swiper-slide-active .card-caption {
    transform: translateY(0);
    opacity: 1;
}

/* Outer Navigation Arrows */
.brutalist-nav-wrapper {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 10;
    pointer-events: none;
    /* Let clicks pass through */
}

.brutalist-prev,
.brutalist-next {
    pointer-events: auto;
    /* Re-enable clicks */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--white-color);
    color: var(--heading-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.brutalist-prev:hover,
.brutalist-next:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

.brutalist-prev::after,
.brutalist-next::after {
    display: none;
    /* Hide default swiper icons */
}

/* Responsive fixes */
@media (max-width: 991px) {
    .brutalist-nav-wrapper {
        position: static;
        transform: none;
        justify-content: center;
        gap: 20px;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .cards-interactive-area {
        cursor: auto;
        /* Return to normal cursor on mobile */
    }

    .custom-drag-cursor {
        display: none !important;
        /* Hide custom cursor on touch */
    }

    .cards-slider-2026 {
        cursor: grab;
        padding: 0 0 20px 0;
        /* Reduced top padding */
        width: 100%;
        overflow: visible;
        /* Prevent mobile clipping */
    }

    .brutalist-card {
        width: 85%;
        /* Let cards shrink to fit mobile width */
        height: 350px;

        box-shadow: none;
        border: none;
    }

    .cards-slider-2026:active {
        cursor: grabbing;
    }

    .card-caption {
        bottom: 10px;
        left: 10px;
        padding: 10px 15px;
        box-shadow: unset;
        background: unset;
    }

    .step-num {
        font-size: 1.1rem;
        /* Slightly bigger on mobile */
    }

    .step-text {
        font-size: 1.3rem;
        /* Bigger font on mobile */
    }
}

/* ==========================================================================
   Technology Used Section (Modern Marquee)
   ========================================================================= */
.pd-technology-used {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.tech-marquee-container {
    padding-top: 0px;
    padding-bottom: 30px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    position: relative;
}

/* Optional fading edges for the marquee */
.tech-marquee-container::before,
.tech-marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.tech-marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color) 0%, transparent 100%);
}

.tech-marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color) 0%, transparent 100%);
}

.tech-marquee-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: marqueeScroll 30s linear infinite;
    padding: 10px 0;
}

.tech-marquee-track:hover {
    animation-play-state: paused;
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: var(--white-color);
    padding: 15px 40px 15px 15px;
    border-radius: 80px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.tech-pill:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: color-mix(in srgb, var(--primary-color) 40%, transparent);
}

.tech-icon-box {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--gray-bg) 50%, var(--white-color));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
}

.tech-pill:hover .tech-icon-box {
    transform: rotate(15deg) scale(1.1);
}

.tech-icon-box img {
    transition: all 0.3s ease;
}

.tech-name {
    font: var(--heading-font);
    font-size: 1.4rem;
    color: var(--heading-color);
    letter-spacing: -0.5px;
}

/* Subtle brand glow on hover */
.tech-pill:hover .react-glow {
    background: rgba(97, 218, 251, 0.1);
    border-color: rgba(97, 218, 251, 0.4);
}

.tech-pill:hover .nextjs-glow {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.tech-pill:hover .php-glow {
    background: rgba(119, 123, 179, 0.1);
    border-color: rgba(119, 123, 179, 0.4);
}

.tech-pill:hover .seo-glow {
    background: rgba(66, 133, 244, 0.1);
    border-color: rgba(66, 133, 244, 0.4);
}

html[data-theme="dark"] .tech-pill:hover .nextjs-glow {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

html[data-theme="dark"] .nextjs-icon {
    filter: invert(1);
}

@keyframes marqueeScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 15px));
    }
}

@media (max-width: 768px) {

    .tech-marquee-container::before,
    .tech-marquee-container::after {
        width: 50px;
    }

    .tech-pill {
        padding: 10px 25px 10px 10px;
        gap: 15px;
    }

    .tech-icon-box {
        width: 55px;
        height: 55px;
    }

    .tech-icon-box img {
        width: 30px;
        height: 30px;
    }

    .tech-name {
        font-size: 1.2rem;
    }
}

/* ==========================================================================
   Key Features Section (Dribbble/Pinterest Inspired Cards)
   ========================================================================= */
.pd-key-features {
    position: relative;
    z-index: 1;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon-wrapper {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(-8deg);
    color: var(--white-color);
}

.feature-card h3 {
    font: var(--sub-heading-font);
    font-size: 1.35rem;
    color: var(--heading-color);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    font-weight: 700;
}

.feature-card p {
    font-size: 1rem;
    color: var(--para-color);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Unique Glow Variants */
.pulse-glow-1 {
    color: #ff5f56;
    background: rgba(255, 95, 86, 0.1);
}

.feature-card:hover .pulse-glow-1 {
    background: #ff5f56;
    box-shadow: 0 10px 25px rgba(255, 95, 86, 0.35);
}

.pulse-glow-2 {
    color: #ffbd2e;
    background: rgba(255, 189, 46, 0.1);
}

.feature-card:hover .pulse-glow-2 {
    background: #ffbd2e;
    box-shadow: 0 10px 25px rgba(255, 189, 46, 0.35);
}

.pulse-glow-3 {
    color: #27c93f;
    background: rgba(39, 201, 63, 0.1);
}

.feature-card:hover .pulse-glow-3 {
    background: #27c93f;
    box-shadow: 0 10px 25px rgba(39, 201, 63, 0.35);
}

.pulse-glow-4 {
    color: #8a2be2;
    background: rgba(138, 43, 226, 0.1);
}

.feature-card:hover .pulse-glow-4 {
    background: #8a2be2;
    box-shadow: 0 10px 25px rgba(138, 43, 226, 0.35);
}

.pulse-glow-5 {
    color: #00bfff;
    background: rgba(0, 191, 255, 0.1);
}

.feature-card:hover .pulse-glow-5 {
    background: #00bfff;
    box-shadow: 0 10px 25px rgba(0, 191, 255, 0.35);
}

.pulse-glow-6 {
    color: #ff1493;
    background: rgba(255, 20, 147, 0.1);
}

.feature-card:hover .pulse-glow-6 {
    background: #ff1493;
    box-shadow: 0 10px 25px rgba(255, 20, 147, 0.35);
}

@media (max-width: 768px) {
    .feature-card {
        padding: 30px;
    }
}


/* ==========================================================================
   Brand Guidelines & CTA Refined Styles
   ========================================================================== */

.pd-pdf-flipbook-branding {
    padding-bottom: 5rem;
    margin-bottom: 3rem;
}

.flipbook-wrapper {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 700px;
}

.pd-cta-section {
    padding-top: 8rem;
    padding-bottom: 6rem;
    background: var(--body-color);
}

.custom-pd-cta-card {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
}

.cta-badge-wrapper {
    background: rgba(11,102,106,0.08);
    padding: 8px 20px;
    border-radius: 50px;
    font: var(--badge-font);
    font-weight: 700;
    color: var(--theme-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-status-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

.cta-heading {
    font: var(--sub-heading-font);
    color: var(--heading-color);
    margin-bottom: 24px;
    line-height: 1.2;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    letter-spacing: -0.5px;
}

.cta-highlight-box {
    background: rgba(245, 135, 37, 0.1);
    color: var(--primary-color);
    padding: 0 10px;
    border-radius: 8px;
}

.cta-description {
    font: var(--para-font);
    color: var(--para-color);
    margin-bottom: 40px;
    line-height: 1.8;
    font-size: 1.1rem;
    max-width: 90%;
}

.cta-right-visuals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.flat-visual-card {
    border-radius: 20px;
    padding: 24px;
    display: flex;
    transition: all 0.3s ease;
}

.flat-visual-card.full-width {
    grid-column: span 2;
    background: rgba(11,102,106,0.05);
    border: 1px solid rgba(11,102,106,0.1);
    align-items: center;
    gap: 20px;
}

.flat-visual-card.half-width {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.flat-visual-card.primary {
    background: rgba(245, 135, 37, 0.05);
    border: 1px solid rgba(245, 135, 37, 0.1);
}

.flat-visual-card.accent {
    background: rgba(92, 134, 255, 0.05);
    border: 1px solid rgba(92, 134, 255, 0.1);
}

.cta-visual-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cta-visual-icon-box.theme {
    background: var(--theme-color);
}

.cta-visual-icon-box.primary-bg {
    background: rgba(245, 135, 37, 0.15);
}

.cta-visual-icon-box.accent-bg {
    background: rgba(92, 134, 255, 0.15);
}

.filtered-icon-white {
    filter: brightness(0) invert(1);
}

.filtered-icon-primary {
    filter: brightness(0) saturate(100%) invert(56%) sepia(85%) saturate(718%) hue-rotate(345deg) brightness(101%) contrast(97%);
}

.filtered-icon-accent {
    filter: brightness(0) saturate(100%) invert(60%) sepia(50%) saturate(5412%) hue-rotate(209deg) brightness(101%) contrast(106%);
}

.visual-card-title {
    display: block;
    font-size: 1.25rem;
    color: var(--heading-color);
    margin-bottom: 4px;
}

.visual-card-title.small {
    font-size: 1.1rem;
}

.visual-card-text {
    font-size: 0.95rem;
    color: var(--para-color);
}

.visual-card-text.small {
    font-size: 0.9rem;
}

/* Base Mobile Responsive */
@media (max-width: 991px) {
    .custom-pd-cta-card {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .pd-pdf-flipbook-branding {
        padding-bottom: 2rem; /* Balanced spacing */
        margin-bottom: 0;
    }

    .flipbook-wrapper {
        height: 40vh;
        min-height: 250px;
    }

    .pd-cta-section {
        padding-top: 2rem; /* Reduced to match top spacing */
    }
}

@media (max-width: 575px) {
    .cta-right-visuals {
        grid-template-columns: 1fr;
    }

    .flat-visual-card.half-width {
        grid-column: span 1;
    }

    .custom-pd-cta-card h2 {
        font-size: 2rem;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 135, 37, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(245, 135, 37, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 135, 37, 0);
    }
}

.cta-description a {
    color: var(--heading-color);
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 600;
}

/* ==========================================================================
   Social Share Section
   ========================================================================== */

.pd-social-share-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
    background: var(--body-color);
}

.social-share-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.share-label {
    font: var(--badge-font);
    font-size: 1rem;
    color: var(--para-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white-color);
    border: 1px solid var(--border-color);
    color: var(--heading-color);
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-5px);
    color: var(--white-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.share-btn.facebook:hover {
    background: #3b5998;
    border-color: #3b5998;
}

.share-btn.x-twitter:hover {
    background: #000000;
    border-color: #000000;
}

.share-btn.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
}

.share-btn.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
}

.share-btn.email:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .pd-social-share-section {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .share-buttons {
        gap: 10px;
    }
    
    .share-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
