/* ==================== FLAWLESS SPLIT CSS ==================== */

:root {
    --bg-grad-start: #1e3a8a;
    --bg-grad-end: #3b82f6;
    --white: #ffffff;
    --text-main: #0f172a;
    --text-sub: #64748b;

    /* Accents */
    --red: #ef4444;
    --green: #10b981;
    --orange: #f59e0b;
}

.flawless-section {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    display: flex;
}

/* --- Left Panel (Darker Blue) --- */
.intro-panel-flawless {
    background: linear-gradient(135deg, #0c1e47 0%, #1e3a8a 50%, #1e40af 100%);
    width: 30%;
    min-width: 380px;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 60px;
    position: relative;
    z-index: 20;
    box-shadow: 10px 0 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.intro-panel-flawless::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(30, 58, 138, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(30, 64, 175, 0.4) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.restored-circle {
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #dbeafe 100%);
    opacity: 0.5; /* Increased to 0.5 for much better visibility */
    z-index: 0;
}

.intro-content-wrapper {
    max-width: 320px;
    position: relative;
    z-index: 2;
}

.tag-vivid {
    font-size: 0.8rem;
    font-weight: 800;
    color: #93c5fd;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
}

.title-vivid {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 20px;
}

.line-vivid {
    width: 60px;
    height: 5px;
    background: linear-gradient(90deg, #ef4444, #f97316);
    margin-bottom: 25px;
    border-radius: 10px;
}

.desc-vivid {
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 1rem;
}

/* --- Right Panel (Blue Gradient) --- */
.scroll-area-flawless {
    width: 70%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #6766bc 50%, #7987c3 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.scroll-area-flawless::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 20%, rgba(147, 197, 253, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(96, 165, 250, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.cards-track-flawless {
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding: 40px 0;
    width: 100%;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 2;
}

.cards-track-flawless::-webkit-scrollbar {
    display: none;
}

/* --- Card Design --- */
.doc-card-flawless {
    min-width: 320px;
    height: 440px;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    scroll-snap-align: center;
    margin: 0 20px;
}

.doc-card-flawless:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

.card-strip { height: 8px; width: 100%; }
.card-strip.red { background: var(--red); }
.card-strip.green { background: var(--green); }
.card-strip.orange { background: var(--orange); }

.card-content {
    padding: 35px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.icon-bubble {
    width: 75px;
    height: 75px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 20px;
}

.red-bubble { background: var(--red); }
.green-bubble { background: var(--green); }
.orange-bubble { background: var(--orange); }

.pill-badge {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.red-pill { background: #fee2e2; color: var(--red); }
.green-pill { background: #dcfce7; color: var(--green); }
.orange-pill { background: #ffedd5; color: var(--orange); }

.card-heading {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.card-meta {
    font-size: 0.9rem;
    color: var(--text-sub);
    font-weight: 500;
}

.action-row {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: 25px;
}

.btn-action {
    flex: 1;
    padding: 14px 0;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-action.view {
    background: #dbeafe;
    color: #1e40af;
}

/* --- Nav Buttons --- */
.nav-cluster-flawless {
    position: absolute;
    bottom: 40px;
    right: 60px;
    display: flex;
    gap: 15px;
    z-index: 30;
}

.nav-box-flawless {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.2s;
}

.nav-box-flawless:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ==================== RESPONSIVE REFINEMENTS ==================== */

@media (max-width: 991px) {
    .flawless-section {
        flex-direction: column;
        height: auto;
        overflow: auto;
    }

    .intro-panel-flawless {
        width: 100%;
        min-width: unset;
        height: auto;
        padding: 50px 30px;
        text-align: center;
        align-items: center;
        justify-content: center;
    }

    .intro-content-wrapper { max-width: 100%; }

    .scroll-area-flawless {
        width: 100%;
        padding: 30px 0 80px 0;
    }

    .cards-track-flawless {
        padding: 20px 0;
    }

    .doc-card-flawless {
        min-width: 85vw;
        margin: 0 7.5vw;
        height: 400px;
    }

    .line-vivid { margin: 15px auto; }

    .nav-cluster-flawless {
        position: relative;
        bottom: 0;
        right: 0;
        justify-content: center;
        margin-top: 30px;
    }

    .restored-circle {
        width: 200px;
        height: 200px;
        right: -50px;
        bottom: -50px;
    }
}

/* Download button variants */
.red-dl { background: #ef4444 !important; color: white !important; }
.green-dl { background: #10b981 !important; color: white !important; }
.orange-dl { background: #f97316 !important; color: white !important; }
.blue-dl { background: #3b82f6 !important; color: white !important; }

.btn-action.download:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}
