/* ==========================================================================
   COMPLETE PORTFOLIO SECTION (FIXED SHAKE, SMOOTH LIFT & DYNAMIC HOVERS)
   ========================================================================== */

/* 1. सेक्शन बैकग्राउंड (Animated Gradient Effect) */
.galaxy-bg {
    background: linear-gradient(-45deg, #0b0f19, #170d2b, #111827, #1a0b2e) !important;
    background-size: 400% 400% !important;
    animation: gradientBG 15s ease infinite;
    position: relative;
    padding-bottom: 3rem;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 2. सब-टाइटल Badge Style */
.galaxy-bg .section-title span {
    background: rgba(168, 85, 247, 0.12) !important;
    border: 1px solid var(--accent-purple, #a855f7) !important;
    color: var(--accent-purple, #a855f7) !important;
    padding: 6px 22px !important;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

/* 3. हेडिंग और सर्च बार */
.galaxy-bg #projects-heading {
    background: rgba(26, 20, 48, 0.7) !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
    backdrop-filter: blur(10px);
    border-radius: 14px;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight: 600;
    box-shadow: inset 0 0 20px rgba(168, 85, 247, 0.15);
}

.galaxy-bg .search-bar #search-input {
    width: 100%;
    max-width: 480px;
    background: rgba(15, 23, 42, 0.9) !important;
    border: 1.5px solid rgba(168, 85, 247, 0.4) !important;
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 30px;
    outline: none;
    font-size: 0.9rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.galaxy-bg .search-bar #search-input::placeholder { color: #94a3b8; }

.galaxy-bg .search-bar #search-input:focus {
    border-color: var(--accent-purple, #a855f7) !important;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5) !important;
}

/* 4. फ़िल्टर कैटेगरी बटन्स */
.galaxy-bg .filter-buttons .btn {
    background: rgba(26, 29, 45, 0.8) !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
    color: #cbd5e1 !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    padding: 7px 18px !important;
    border-radius: 20px !important;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(8px);
}

.galaxy-bg .filter-buttons .btn:hover,
.galaxy-bg .filter-buttons .btn.active {
    background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow: 0 5px 18px rgba(168, 85, 247, 0.5) !important;
}

/* ==========================================================================
   5. PORTFOLIO CARDS (NO SHAKE, STABLE GRID, SMOOTH LIFT)
   ========================================================================== */

#cards-container .col {
    margin-bottom: 24px;
}

/* कार्ड बैकग्राउंड और स्मूथ अप-डाउन एनिमेशन */
#cards-container .card {
    background: rgba(22, 27, 38, 0.9) !important;
    border: 1.5px solid rgba(168, 85, 247, 0.25) !important;
    border-radius: 16px !important;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    /* बिना शेक के स्मूथ लिफ्ट के लिए पक्का ट्रांसफॉर्म रूल */
    will-change: transform;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                border-color 0.4s ease,
                box-shadow 0.4s ease !important;

    backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    outline: none !important;
}

/* 🟢 SMOOTH CARD LIFT ON HOVER (दूसरों को हिलाए बिना सिर्फ खुद ऊपर उठेगा) */
#cards-container .card:hover {
    transform: translateY(-8px) !important;
    border-color: var(--accent-purple, #a855f7) !important;
    box-shadow: 0 16px 30px rgba(168, 85, 247, 0.25) !important;
    outline: none !important;
}

/* 6. कार्ड हेडर - डिफ़ॉल्ट वाइट कलर */
#cards-container .card-header-accent {
    background: rgba(168, 85, 247, 0.15);
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
    padding: 12px 16px;
}

/* हेडर टाइटल - डिफ़ॉल्ट वाइट कलर */
#cards-container .card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff !important; /* डिफ़ॉल्ट रूप से वाइट */
    margin-bottom: 0;
}

/* 7. कार्ड इमेज wrapper */
#cards-container .card-img-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

#cards-container .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

#cards-container .card:hover .card-img-top {
    transform: scale(1.06);
}

/* 8. कार्ड बॉडी कंटेंट */
#cards-container .card-body {
    padding: 16px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

#cards-container .card-text {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* 9. कैटेगरी बैज */
#cards-container .category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--accent-purple, #a855f7);
    color: var(--accent-purple, #a855f7);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    z-index: 2;
}

/* ==========================================================================
   10. ACTION BUTTONS (LINK & DOWNLOAD - WHITE DEFAULT & ROOT COLOR HOVER)
   ========================================================================== */

#cards-container .card-footer {
    background: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 12px 16px;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}

/* डिफ़ॉल्ट वाइट स्टाइल एक्शन लिंक्स (Link & Download) */
#cards-container .card-action-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #ffffff !important; /* डिफ़ॉल्ट वाइट बैकग्राउंड */
    color: #0f1117 !important; /* वाइट पर डार्क टेक्स्ट */
    border: 1px solid #ffffff !important;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 20px;
    text-decoration: none !important;

    /* स्मूथ एनिमेटेड बैकग्राउंड और टेक्स्ट कलर ट्रांज़िशन */
    transition: background-color 0.35s ease,
                color 0.35s ease,
                border-color 0.35s ease,
                box-shadow 0.35s ease,
                transform 0.25s ease !important;

    white-space: nowrap;
}

/* 🟢 BUTTON HOVER ANIMATION: Root Color (--accent-purple) में एनिमेट होकर बदलना */
#cards-container .card-action-btn:hover {
    background-color: var(--accent-purple, #a855f7) !important; /* रूट पर्पल कलर */
    color: #ffffff !important; /* वाइट टेक्स्ट */
    border-color: var(--accent-purple, #a855f7) !important;
    box-shadow: 0 4px 15px var(--accent-purple-glow, rgba(168, 85, 247, 0.4)) !important;
    transform: translateY(-2px); /* बटन हल्का सा ऊपर पॉप होगा */
}

/* ==========================================================================
   MOBILE & RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 575.98px) {
    #cards-container .card-img-wrapper {
        height: 140px;
    }
    #cards-container .card-footer {
        flex-direction: column;
        gap: 8px;
    }
    #cards-container .card-action-btn {
        width: 100%;
    }
}





.bg-primary, .btn-primary {
    background-color: white !important;
    color: rgb(17, 19, 17) !important;
}



@media screen and (min-width: 401px) and (max-width: 435px) {
    #cards-container .card-body {
        padding: 1px 5px !important;
    }
}