/* ============================================================
   Qubexis Portfolio Showcase — v1.1.0
   Primary  : Blue gradient  #0099FF → #0055CC
   Secondary: Gold           #FFAA0F
   https://qubexis.com
   ============================================================ */

/* ── CSS Custom Properties ── */
.qps-portfolio {
    --qps-primary-start : #0099FF;
    --qps-primary-end   : #0055CC;
    --qps-primary       : linear-gradient(135deg, #0099FF 0%, #0055CC 100%);
    --qps-primary-solid : #0099FF;
    --qps-primary-glow  : rgba(0, 136, 255, 0.40);
    --qps-secondary     : #FFAA0F;
    --qps-secondary-bg  : rgba(255, 170, 15, 0.08);
    --qps-secondary-bdr : rgba(255, 170, 15, 0.35);
    --qps-card-bg       : #06090F;
    --qps-card-border   : rgba(0, 120, 255, 0.18);
    --qps-card-shadow   : rgba(0, 100, 255, 0.12);
    font-family: inherit;
}

/* ── Tab Bar ─────────────────────────────────────────── */
.qps-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
}

.qps-tab {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: background 0.22s ease, border-color 0.22s ease,
                color 0.22s ease, box-shadow 0.22s ease;
    font-family: inherit;
    line-height: 1;
    white-space: nowrap;
    outline: none;
}

/* Hover → gold accent */
.qps-tab:hover {
    color: var(--qps-secondary);
    border-color: var(--qps-secondary);
    background: var(--qps-secondary-bg);
}

/* Active → blue gradient */
.qps-tab.active {
    background: var(--qps-primary);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 100, 255, 0.38);
}

/* ── Project Cards ─────────────────────────────────── */
.qps-projects {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.qps-card {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--qps-card-bg);
    border-radius: 20px;
    border: 1px solid var(--qps-card-border);
    box-shadow: 0 40px 100px -20px var(--qps-card-shadow);
    overflow: hidden;
    padding: 64px 72px;
    margin-bottom: 32px;
    transition: box-shadow 0.3s ease;
    position: relative;
}

/* Subtle gold top-edge highlight */
.qps-card::before {
    content: '';
    position: absolute;
    top: 0; left: 72px;
    width: 50px; height: 2px;
    background: var(--qps-secondary);
    border-radius: 0 0 2px 2px;
    opacity: 0.7;
}

.qps-card:hover {
    box-shadow: 0 48px 110px -20px rgba(0, 100, 255, 0.22);
}

.qps-card.qps-hidden {
    display: none;
}

/* ── Left Column ─────────────────────────────────── */
.qps-card-left {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 56px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Ghost project number */
.qps-ghost-num {
    font-size: 148px;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.04);
    margin-bottom: -74px;
    margin-left: -4px;
    user-select: none;
    letter-spacing: -4px;
    pointer-events: none;
}

/* Category label → GOLD */
.qps-category {
    font-size: 10px;
    letter-spacing: 2.5px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: 'Courier New', 'Lucida Console', monospace;
    color: var(--qps-secondary);
    margin-bottom: 12px;
}

/* Title */
.qps-title {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: 4px;
    line-height: 1.05;
    color: #ffffff;
    margin-bottom: 6px;
    margin-top: 0;
}

/* Tagline → GOLD */
.qps-tagline {
    font-size: 16px;
    font-weight: 400;
    color: var(--qps-secondary);
    letter-spacing: 0.4px;
    margin-bottom: 20px;
    margin-top: 0;
}

/* Accent divider → BLUE GRADIENT */
.qps-divider {
    width: 50px;
    height: 3px;
    background: var(--qps-primary);
    border-radius: 2px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

/* Description */
.qps-desc {
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
    line-height: 1.85;
    margin-bottom: 20px;
    margin-top: 0;
    max-width: 430px;
}

/* Meta icon list */
.qps-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.qps-meta li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 12.5px;
    line-height: 1.4;
}

/* Meta icons → BLUE */
.qps-meta li i {
    color: var(--qps-primary-solid);
    font-size: 11px;
    width: 14px;
    flex-shrink: 0;
    text-align: center;
}

/* Tags → GOLD pills */
.qps-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.qps-tag {
    display: inline-block;
    padding: 5px 14px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--qps-secondary);
    background: var(--qps-secondary-bg);
    border: 1px solid var(--qps-secondary-bdr);
    border-radius: 30px;
    line-height: 1;
}

/* CTA Button → BLUE GRADIENT */
.qps-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    background: var(--qps-primary);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 8px 24px var(--qps-primary-glow);
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    line-height: 1;
    border: none;
}

.qps-cta:hover {
    opacity: 0.88;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 12px 32px var(--qps-primary-glow);
    text-decoration: none;
}

.qps-cta i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.qps-cta:hover i {
    transform: translateX(3px);
}

/* ── Right Column ─────────────────────────────────── */
.qps-card-right {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center,
        rgba(0, 60, 200, 0.10) 0%,
        rgba(0, 0, 0, 0)       70%);
}

/* Browser frame */
.qps-browser-frame {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(0, 153, 255, 0.22);
    overflow: hidden;
    box-shadow: 0 24px 80px -8px rgba(0, 136, 255, 0.35);
    background: #0C101A;
}

/* Browser chrome bar */
.qps-browser-bar {
    background: #111620;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 170, 15, 0.08);
}

.qps-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.qps-dot-red    { background: #FF5F57; }
.qps-dot-yellow { background: #FFBD2E; }
.qps-dot-green  { background: #28CA42; }

.qps-url-pill {
    display: block;
    flex: 1;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 16px;
    border-radius: 20px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    margin: 0 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Project screenshot */
.qps-img {
    display: block;
    width: 100%;
    height: auto;
    border: none;
    vertical-align: bottom;
}

/* Placeholder when no image is added */
.qps-img-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0C101A;
    border-radius: 14px;
    border: 1px dashed rgba(255, 170, 15, 0.22);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.18);
    font-size: 13px;
}

.qps-img-placeholder i {
    font-size: 36px;
    opacity: 0.4;
    color: var(--qps-secondary);
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
    .qps-card        { padding: 52px 48px; }
    .qps-card-left   { padding-right: 40px; }
    .qps-title       { font-size: 46px; }
    .qps-ghost-num   { font-size: 120px; margin-bottom: -60px; }
}

@media (max-width: 768px) {
    .qps-card {
        flex-direction: column;
        padding: 40px 32px;
    }
    .qps-card-left,
    .qps-card-right {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
    }
    .qps-card-left  { margin-bottom: 32px; }
    .qps-ghost-num  { font-size: 96px; margin-bottom: -48px; }
    .qps-title      { font-size: 36px; letter-spacing: 2px; }
    .qps-desc       { max-width: 100%; }
    .qps-tab        { font-size: 12px; padding: 8px 16px; }
    .qps-card::before { left: 32px; }
}

@media (max-width: 480px) {
    .qps-card         { padding: 32px 24px; border-radius: 14px; }
    .qps-title        { font-size: 30px; }
    .qps-ghost-num    { font-size: 80px; margin-bottom: -40px; }
    .qps-tabs         { gap: 6px; margin-bottom: 32px; }
    .qps-tab          { font-size: 11px; padding: 7px 14px; }
    .qps-card::before { left: 24px; }
}

/* ── Elementor editor hover ─────────── */
.elementor-editor-active .qps-card:hover {
    outline: 2px dashed rgba(255, 170, 15, 0.35);
    outline-offset: 4px;
}
