/* ==========================================================================
   NEON FUTURISTIC PROJECTS DASHBOARD (SPACE TAB)
   Matched to Neon_Futuristic_Project_Portfolio_Dashboard_03e2be98.png
   ========================================================================== */

/* Modal Container & Backdrop */
.demo-modal-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 140, 255, 0.22) 0%, rgba(2, 8, 23, 0.96) 65%), #020817;
    z-index: 99999;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
    transform: scale(0.98);
    display: block;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.demo-modal-area.open {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Light Theme Mode for Modal */
.demo-modal-area.white-version {
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 180, 255, 0.15) 0%, #eef4fc 65%), #f3f7fd !important;
}

/* Wrapper & Shell */
.demo-modal-area .wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 60px 24px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Close Button */
.demo-modal-area .demo-close-btn {
    position: fixed;
    top: 30px;
    right: 36px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(6, 18, 44, 0.85);
    border: 1.5px solid rgba(0, 229, 255, 0.45);
    color: #00e5ff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.demo-modal-area .demo-close-btn:hover {
    background: #00e5ff;
    color: #020817;
    transform: rotate(90deg) scale(1.08);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.7);
}

.demo-modal-area.white-version .demo-close-btn {
    background: #ffffff;
    border-color: rgba(0, 140, 255, 0.4);
    color: #0077cc;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.demo-modal-area.white-version .demo-close-btn:hover {
    background: #0077cc;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 119, 204, 0.5);
}

/* Modal Inner Container */
.demo-modal-area .rn-modal-inner {
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Ambient Cyber Lighting & Matrix Dots */
.neon-ambient-glow-tl {
    position: fixed;
    top: -80px;
    left: -80px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.28) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.neon-ambient-glow-tr {
    position: fixed;
    top: -80px;
    right: -80px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.25) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.neon-ambient-dots-left {
    position: fixed;
    top: 140px;
    left: 40px;
    width: 90px;
    height: 90px;
    background-image: radial-gradient(rgba(0, 229, 255, 0.4) 2px, transparent 2px);
    background-size: 18px 18px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.65;
}

.neon-ambient-dots-right {
    position: fixed;
    top: 220px;
    right: 40px;
    width: 90px;
    height: 90px;
    background-image: radial-gradient(rgba(0, 229, 255, 0.4) 2px, transparent 2px);
    background-size: 18px 18px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.65;
}

/* Top Header Section */
.neon-projects-header {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Top "MY PROJECTS" Pill Kicker */
.neon-kicker-row {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.neon-kicker-line {
    width: 48px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, #00e5ff);
}
.neon-kicker-line.right {
    background: linear-gradient(90deg, #00e5ff, transparent);
}

.neon-kicker-pill {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 9999px;
    border: 1px solid rgba(0, 229, 255, 0.6);
    background: rgba(0, 229, 255, 0.08);
    color: #00e5ff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.35);
}

.demo-modal-area.white-version .neon-kicker-pill {
    background: rgba(0, 119, 204, 0.08);
    border-color: rgba(0, 119, 204, 0.5);
    color: #0077cc;
    box-shadow: 0 0 12px rgba(0, 119, 204, 0.2);
}

/* Main Heading */
.neon-projects-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin: 0 0 8px 0;
    line-height: 1.15;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.neon-projects-title .neon-blue-highlight {
    color: #00e5ff;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
}

.demo-modal-area.white-version .neon-projects-title {
    color: #0f172a;
}
.demo-modal-area.white-version .neon-projects-title .neon-blue-highlight {
    color: #0077cc;
    text-shadow: none;
}

/* Subtitle */
.neon-projects-subtitle {
    color: #94a3b8;
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 22px 0;
}

.demo-modal-area.white-version .neon-projects-subtitle {
    color: #64748b;
}

/* GitHub Glowing Pill Button */
.neon-github-btn-wrap {
    margin-bottom: 24px;
}

.neon-github-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 28px;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(8, 30, 72, 0.8), rgba(3, 14, 38, 0.9));
    border: 1.5px solid #00c8ff;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 0 22px rgba(0, 200, 255, 0.45), inset 0 0 12px rgba(0, 200, 255, 0.15);
    transition: all 0.3s ease;
}

.neon-github-pill-btn i {
    font-size: 18px;
    color: #00e5ff;
    transition: transform 0.3s ease;
}

.neon-github-pill-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 32px rgba(0, 229, 255, 0.7), inset 0 0 18px rgba(0, 229, 255, 0.25);
    border-color: #00ffff;
}

.neon-github-pill-btn:hover i.fa-arrow-right {
    transform: translateX(4px);
}

.demo-modal-area.white-version .neon-github-pill-btn {
    background: #ffffff;
    border-color: #0077cc;
    color: #0f172a !important;
    box-shadow: 0 4px 18px rgba(0, 119, 204, 0.25);
}
.demo-modal-area.white-version .neon-github-pill-btn i {
    color: #0077cc;
}

/* Theme Switcher Toggle Pill Group */
.neon-theme-toggle-group {
    display: inline-flex;
    align-items: center;
    background: rgba(6, 18, 44, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    padding: 5px;
    gap: 8px;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.demo-modal-area.white-version .neon-theme-toggle-group {
    background: #e2e8f0;
    border-color: rgba(0, 0, 0, 0.08);
}

.neon-theme-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 9999px;
    border: 1.5px solid transparent;
    background: transparent;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.neon-theme-pill-btn i {
    font-size: 15px;
}

/* Active State for Dark Theme */
.neon-theme-pill-btn.active {
    background: linear-gradient(135deg, rgba(0, 180, 255, 0.3), rgba(0, 229, 255, 0.1));
    border-color: #00e5ff;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.45), inset 0 0 10px rgba(0, 229, 255, 0.2);
}

.neon-theme-pill-btn.active i {
    color: #00e5ff;
}

/* Inactive button hover */
.neon-theme-pill-btn:not(.active):hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.demo-modal-area.white-version .neon-theme-pill-btn {
    color: #64748b;
}

.demo-modal-area.white-version .neon-theme-pill-btn.active {
    background: #ffffff;
    border-color: #0077cc;
    color: #0077cc;
    box-shadow: 0 2px 12px rgba(0, 119, 204, 0.25);
}

.demo-modal-area.white-version .neon-theme-pill-btn.active i {
    color: #0077cc;
}

/* ==========================================================================
   NEON PROJECT CARDS GRID
   ========================================================================== */
.neon-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    width: 100%;
}

@media (max-width: 1100px) {
    .neon-projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
}

@media (max-width: 680px) {
    .neon-projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Individual Neon Project Card */
.neon-project-card {
    position: relative;
    background: linear-gradient(180deg, rgba(6, 22, 54, 0.82) 0%, rgba(3, 12, 32, 0.92) 100%);
    border: 1.5px solid rgba(0, 229, 255, 0.35);
    border-radius: 22px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    cursor: pointer;
}

/* Subtle corner glow in card */
.neon-project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.8), transparent);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* Featured / Active Glowing Card (Matches 3rd card in image) */
.neon-project-card.featured,
.neon-project-card:hover {
    border-color: #00e5ff;
    box-shadow: 0 0 35px rgba(0, 229, 255, 0.35), 0 15px 40px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(0, 229, 255, 0.12);
    transform: translateY(-6px);
}

/* Light Theme Card Styling */
.demo-modal-area.white-version .neon-project-card {
    background: #ffffff;
    border: 1.5px solid rgba(0, 140, 255, 0.25);
    box-shadow: 0 10px 25px rgba(0, 80, 180, 0.08);
}

.demo-modal-area.white-version .neon-project-card.featured,
.demo-modal-area.white-version .neon-project-card:hover {
    border-color: #0077cc;
    box-shadow: 0 14px 35px rgba(0, 119, 204, 0.22);
    transform: translateY(-6px);
}

/* Card Media / Thumbnail */
.neon-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9.2;
    border-radius: 16px;
    overflow: hidden;
    background: #020b1e;
    margin-bottom: 18px;
}

.neon-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.neon-project-card:hover .neon-card-media img {
    transform: scale(1.05);
}

/* Floating "New" Badge on Card (Card 2) */
.neon-card-badge-new {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 9999px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    z-index: 2;
}

/* Card Body Content */
.neon-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Category Pill Badge */
.neon-card-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    padding: 4px 12px;
    border-radius: 9999px;
    border: 1px solid rgba(0, 229, 255, 0.45);
    background: rgba(0, 229, 255, 0.08);
    color: #00e5ff;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.neon-card-category-pill i {
    font-size: 12px;
}

.demo-modal-area.white-version .neon-card-category-pill {
    border-color: rgba(0, 119, 204, 0.4);
    background: rgba(0, 119, 204, 0.08);
    color: #0077cc;
}

/* Card Title */
.neon-card-title {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.3;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: color 0.25s ease;
}

.neon-project-card:hover .neon-card-title {
    color: #00e5ff;
}

.demo-modal-area.white-version .neon-card-title {
    color: #0f172a;
}
.demo-modal-area.white-version .neon-project-card:hover .neon-card-title {
    color: #0077cc;
}

/* Card Description */
.neon-card-description {
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.55;
    margin: 0 0 20px 0;
    flex: 1;
}

.demo-modal-area.white-version .neon-card-description {
    color: #64748b;
}

/* Card Footer / Action Row */
.neon-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-modal-area.white-version .neon-card-footer {
    border-top-color: rgba(0, 0, 0, 0.07);
}

/* "View Project ->" Action Button */
.neon-view-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #00e5ff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.neon-view-action i {
    font-size: 13px;
    transition: transform 0.25s ease;
}

.neon-project-card:hover .neon-view-action {
    color: #38bdf8 !important;
}

.neon-project-card:hover .neon-view-action i {
    transform: translate(2px, -2px);
}

.demo-modal-area.white-version .neon-view-action {
    color: #0077cc !important;
}

/* Heart / Like Counter */
.neon-card-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: #38bdf8;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.neon-card-like-btn i {
    font-size: 15px;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.25s ease;
}

.neon-card-like-btn:hover {
    color: #00e5ff;
}

.neon-card-like-btn:hover i {
    transform: scale(1.2);
}

.neon-card-like-btn.liked i {
    color: #ff3366 !important;
}
.neon-card-like-btn.liked {
    color: #ff3366 !important;
}

.demo-modal-area.white-version .neon-card-like-btn {
    color: #0284c7;
}

/* Tab panes fade */
.tab-pane {
    display: none;
}
.tab-pane.show.active {
    display: block;
    animation: neonFadeIn 0.35s ease forwards;
}

@keyframes neonFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure single project modals opened from or outside the space tab appear cleanly above */
.modal-backdrop {
    z-index: 100000 !important;
}

.modal {
    z-index: 100005 !important;
}

