/* ========== My Design Process Section ========== */
#process {
    text-align: center;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.process-card {
    background: #0a0a0a;
    /* backdrop-filter removed for performance */
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--primary-color);
}

.process-number {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    /* Very subtle number */
    z-index: 1;
}

.process-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.process-title {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.process-description {
    color: var(--text-secondary-color);
    font-size: 0.9rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* ========== FAQ Section (Reusing Price Styles) ========== */
#faq .accordion-content-inner p {
    color: var(--text-secondary-color);
    line-height: 1.7;
    margin-bottom: 15px;
}

#faq .accordion-content-inner ul {
    list-style: disc;
    padding-left: 20px;
    color: var(--text-secondary-color);
    margin-bottom: 15px;
}

#faq .accordion-content-inner ul li {
    margin-bottom: 8px;
}

#faq .accordion-content-inner ul li strong {
    color: var(--text-color);
}

/* --- About Us Redesign --- */
#about-me.about-redesign {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 100px 5%;
    background: #000;
    max-width: 1300px;
    margin: 0 auto;
}

.about-left {
    flex: 0 0 40%;
    position: relative;
    display: flex;
    justify-content: center;
}

.about-portrait {
    width: 100%;
    max-width: 450px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

/* රූපයේ යට කොටස කලු පාටට fade වීම සඳහා */
.portrait-fade {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, #000 10%, transparent 100%);
}

.about-right {
    flex: 0 0 55%;
    text-align: left;
    color: #fff;
}

.about-name {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 5px;
}

.about-title-blue {
    color: #ff7a00;
    /* Blue color from image */
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.about-para {
    color: #a0a0a0;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 50px;
}

.about-bottom-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.about-info-col,
.about-skills-col {
    flex: 1;
}

.block-heading {
    font-size: 1rem;
    color: #fff;
    border-bottom: 2px solid #ff7a00;
    display: inline-block;
    padding-bottom: 8px;
    margin-bottom: 25px;
}

.custom-table {
    width: 100%;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.custom-table td {
    padding: 6px 0;
    vertical-align: top;
}

.custom-table td:first-child {
    width: 130px;
    color: #a0a0a0;
    font-weight: 500;
}

.skills-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-row {
    width: 100%;
}

.skill-texts {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.s-name {
    color: #e0e0e0;
}

.s-pct {
    color: #fff;
}

.s-bar {
    width: 100%;
    height: 3px;
    background: #222;
    border-radius: 2px;
}

.s-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff7a00, #6b21a8);
    /* Blue to Purple Gradient */
    border-radius: 2px;
}

.about-social-icons {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 35px;
}

.about-social-icons a {
    color: #888;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.about-social-icons a:hover {
    color: #ff7a00;
}

/* Mobile Responsive for About Us */
@media (max-width: 992px) {
    #about-me.about-redesign {
        flex-direction: column;
        text-align: center;
    }

    .about-right {
        text-align: center;
    }

    .about-bottom-grid {
        flex-direction: column;
        text-align: left;
        /* Keep table text left-aligned */
    }

    .about-social-icons {
        justify-content: center;
    }
}

/* ========== Contact Section Redesign ========== */
.contact-redesign {
    padding: 100px 5%;
    background: #000;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-form-container {
    background: #050505;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.contact-form-container .form-group {
    margin-bottom: 25px;
}

.contact-form-container input,
.contact-form-container textarea {
    width: 100%;
    background: #0f0f0f;
    border: 1px solid #222;
    padding: 15px 20px;
    color: #fff;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.contact-form-container input:focus,
.contact-form-container textarea:focus {
    outline: none;
    border-color: #ff7a00;
    box-shadow: 0 0 10px rgba(255, 122, 0, 0.2);
}

.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(90deg, #ff7a00, #6b21a8);
    color: #fff;
    border: none;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: auto;
}

.contact-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 122, 0, 0.4);
}

.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-details-box {
    display: flex;
    flex-direction: column;
    gap: 25px;
    background: #050505;
    padding: 35px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: #ff7a00;
    background: rgba(255, 122, 0, 0.1);
    min-width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-text span {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: uppercase;
}

.contact-text a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: #ff7a00;
}

.contact-map-wrapper {
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    min-height: 250px;
}

.contact-map-wrapper iframe {
    width: 100%;
    height: 100%;
    filter: invert(90%) hue-rotate(180deg) contrast(80%);
    transition: filter 0.3s ease;
}

.contact-map-wrapper:hover iframe {
    filter: none;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-map-wrapper {
        min-height: 300px;
    }
}

/* ========== Portfolio Buy Actions & Price Popup ========== */
.portfolio-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    width: 100%;
}

/* ── View All button: fills all remaining space ── */
.portfolio-actions a.portfolio-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 18px;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #e8eeff;
    background: rgba(255, 122, 0, 0.07);
    border: 1.5px solid rgba(255, 122, 0, 0.55);
    border-radius: 10px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.25s ease, border-color 0.25s ease,
                color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.portfolio-actions a.portfolio-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 18px rgba(255, 122, 0, 0.45);
    transform: translateY(-2px);
}

/* ── Buy icon button: fixed square, matches height ── */
.portfolio-actions .buy-btn {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 160, 0, 0.08);
    color: #ffc84a;
    border: 1.5px solid rgba(255, 160, 0, 0.45);
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    box-sizing: border-box;
    transition: background 0.25s ease, border-color 0.25s ease,
                color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.portfolio-actions .buy-btn:hover {
    background: #e08c00;
    border-color: #ffc84a;
    color: #fff;
    box-shadow: 0 0 18px rgba(255, 160, 0, 0.45);
    transform: translateY(-2px) scale(1.06);
}

/* Overlay completely removed as requested */
.price-popup-overlay {
    display: none;
}

.price-popup {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    background: #111;
    /* Dark chat bubble background */
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    width: 280px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.2s ease-out;
    display: flex;
    flex-direction: column;
}

/* Chat bubble arrow/pointer */
.price-popup::after {
    content: '';
    position: absolute;
    bottom: -8px;
    /* Arrow pointing down */
    right: 20px;
    /* Positioned near the button */
    width: 15px;
    height: 15px;
    background: #111;
    border-right: 1px solid var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
    transform: rotate(45deg);
}

.price-popup.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.price-popup-header {
    background: rgba(255, 122, 0, 0.1);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px 12px 0 0;
}

.price-popup-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
}

.price-popup-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.price-popup-close:hover {
    color: var(--primary-color);
}

.price-popup-content {
    padding: 20px;
}

.price-range {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-details {
    color: #bbb;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    white-space: pre-line;
}

.price-popup-buy-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #25D366;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.price-popup-buy-btn:hover {
    background: #128C7E;
}

@media (max-width: 768px) {
    /* Kept chat bubble behavior for mobile too, just center it nicely relative to button */
}


/* ========== Premium Homepage Cards & Link styles ========== */
a.portfolio-card {
    text-decoration: none !important;
    color: inherit !important;
}

.portfolio-card {
    background: rgba(10, 10, 15, 0.75) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.portfolio-card:hover {
    transform: translateY(-8px) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 20px 40px rgba(255, 122, 0, 0.2), 0 0 25px rgba(255, 122, 0, 0.1) !important;
}

/* Event Management premium cards hover override for anchor wrapper */
a.em-card {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
}

/* Restrict animated background gradient-orbs strictly to the top Hero section (100vh) */
.animated-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100svh !important;
    max-height: 100svh !important;
    z-index: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* ========== Fail-safe Footer Gap & Spacing ========== */
#main-footer {
    position: relative;
    margin-top: 120px !important;
    margin-bottom: 0 !important;
    padding-top: 80px !important;
    padding-bottom: 90px !important;
    background-color: #000 !important;
    background: #000000 !important;
    z-index: 10 !important;
}

/* Ensure Chatbot Container is strictly fixed so it never leaks 700px height below footer in document flow */
.chatbot-container {
    position: fixed !important;
    bottom: 33px !important;
    left: 53px !important;
    z-index: 10002 !important;
    pointer-events: none !important;
    width: auto !important;
    height: auto !important;
}

.chatbot-container * {
    pointer-events: auto;
}

#main-footer .thank-you-banner {
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    max-width: 450px;
    z-index: 5;
    background-color: #000 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

#main-footer .floating-profile {
    position: absolute !important;
    right: 3% !important;
    bottom: 20px !important;
    width: 240px !important;
    z-index: 4;
}

/* Secret admin link - must look 100% pure white like surrounding text */
#admin-trigger-btn,
#admin-trigger-btn:link,
#admin-trigger-btn:visited,
#admin-trigger-btn:hover,
#admin-trigger-btn:active,
#admin-trigger-btn:focus,
.footer-credit a,
.footer-credit a:link,
.footer-credit a:visited,
.footer-credit a:hover,
.footer-credit a:active,
.footer-credit a:focus,
.bottom-bar-credit a,
.bottom-bar-credit a:link,
.bottom-bar-credit a:visited,
.bottom-bar-credit a:hover,
.bottom-bar-credit a:active,
.bottom-bar-credit a:focus {
    color: #ffffff !important;
    text-decoration: none !important;
    cursor: default !important;
    border: none !important;
    background: none !important;
    outline: none !important;
    font-weight: inherit !important;
    font-size: inherit !important;
    pointer-events: auto;
}

/* Full-Width GET NOW Button at bottom of Portfolio Cards */
.portfolio-card {
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    overflow: hidden !important;
}

.portfolio-card .portfolio-content {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    padding: 22px 24px 18px !important;
}

/* Full-Width GET NOW Button at bottom of Portfolio Cards */
a.portfolio-card .portfolio-card-btn,
.portfolio-card .portfolio-card-btn,
div.portfolio-card-btn {
    width: 100% !important;
    min-height: 46px !important;
    height: 46px !important;
    padding: 12px 16px !important;
    background: #000000 !important;
    background-color: #000000 !important;
    color: #ffffff !important;
    font-family: var(--font-body) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    text-align: center !important;
    border: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 0 0 16px 16px !important;
    margin-top: auto !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: none !important;
    z-index: 10 !important;
    opacity: 1 !important;
    visibility: visible !important;
    cursor: pointer !important;
}

a.portfolio-card:hover .portfolio-card-btn,
.portfolio-card:hover .portfolio-card-btn {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25) !important;
}

@media (max-width: 768px) {
    #main-footer {
        margin-top: 80px !important;
        padding-top: 60px !important;
        padding-bottom: 90px !important;
    }
    #main-footer .thank-you-banner {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        margin: 0 auto 30px auto !important;
    }
    #main-footer .floating-profile {
        position: relative !important;
        right: auto !important;
        bottom: auto !important;
        margin: 20px auto 0 auto !important;
    }
}

/* === Migrated Dynamic Page Styles === */

        /* --- BOTTOM BAR STYLES --- */
        .bottom-bar-container {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 9999;
            display: flex;
            align-items: center;
            background: rgba(10, 10, 15, 0.7) !important;
            backdrop-filter: blur(25px) !important;
            -webkit-backdrop-filter: blur(25px) !important;
            border: 1px solid rgba(255, 255, 255, 0.08) !important;
            border-radius: 40px;
            padding: 8px 12px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
            width: 750px;
            max-width: 90vw;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        @media (max-width: 768px) {
            .bottom-bar-container {
                display: none !important;
            }
        }
        .bar-section-btn {
            background: transparent;
            border: none;
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 10px 20px;
            cursor: pointer;
            text-align: left;
            flex: 1;
            border-radius: 30px;
            transition: all 0.2s ease;
        }
        .bar-section-btn:hover {
            background: rgba(255, 255, 255, 0.03);
        }
        .bar-section-btn:active {
            transform: scale(0.98);
        }
        .section-icon-wrap {
            width: 45px;
            height: 45px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            color: #fff;
            transition: all 0.3s ease;
            flex-shrink: 0;
        }
        .bar-section-btn:hover .section-icon-wrap {
            background: rgba(255, 204, 0, 0.1);
            border-color: #ffcc00;
            color: #ffcc00;
            box-shadow: 0 0 15px rgba(255, 204, 0, 0.3);
        }
        .section-details {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .section-title-wrapper {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .section-title-text {
            font-family: var(--font-heading);
            font-size: 14px;
            font-weight: 700;
            letter-spacing: 1px;
            color: #fff;
        }
        .section-free-badge {
            font-family: var(--font-body);
            font-size: 8px;
            background: #ff7a00;
            color: #fff;
            padding: 2px 6px;
            border-radius: 20px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .section-subdesc {
            font-family: var(--font-body);
            font-size: 10px;
            color: #888;
            margin: 0;
            line-height: 1.3;
        }
        .bar-vertical-line {
            width: 1px;
            height: 40px;
            background: rgba(255, 255, 255, 0.1);
            flex-shrink: 0;
        }

        /* --- DESKTOP POPUP PANEL (Full Page style with gap) --- */
        .desktop-bar-popup {
            position: fixed;
            bottom: 130px; /* Increased from 110px to prevent collision with bottom bar */
            left: 50%;
            transform: translateX(-50%) translateY(20px);
            width: 1100px;
            max-width: 90vw;
            max-height: 70vh;
            background: rgba(10, 10, 15, 0.85) !important;
            backdrop-filter: blur(35px) !important;
            -webkit-backdrop-filter: blur(35px) !important;
            border: 1px solid rgba(255, 255, 255, 0.06) !important;
            border-radius: 22px;
            padding: 30px;
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
            z-index: 9998;
            opacity: 0;
            visibility: hidden;
            overflow-y: auto;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            display: flex;
            flex-direction: column;
        }
        .desktop-bar-popup.open {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
        }
        
        /* Search Input */
        .ap-search-input {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            color: #fff;
            padding: 8px 12px;
            font-size: 14px;
            width: 200px;
            transition: all 0.3s ease;
        }
        .ap-search-input:focus {
            outline: none;
            border-color: #ff7a00;
            background: rgba(255, 255, 255, 0.08);
        }
        .ap-search-input.mobile {
            width: 100%;
            margin-bottom: 10px;
        }

        .popup-head-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            padding-bottom: 15px;
            flex-shrink: 0;
        }
        .popup-head-row h3 {
            margin: 0;
            font-family: var(--font-heading);
            font-size: 1.4rem;
            letter-spacing: 1.5px;
            color: #fff;
            text-transform: uppercase;
        }
        .popup-close-x {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ccc;
            font-size: 18px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .popup-close-x:hover {
            background: rgba(239, 68, 68, 0.1);
            border-color: #ef4444;
            color: #ef4444;
        }

        /* --- CARDS LISTING (Grid) --- */
        .ap-cards-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 15px;
            overflow-y: auto;
            flex-grow: 1;
            align-content: start; /* Prevents rows from stretching vertically in full-page */
            padding-right: 5px;
        }
        .ap-card-item {
            display: flex;
            flex-direction: column;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.04);
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            height: auto;
        }
        .ap-card-item:hover {
            background: rgba(255, 255, 255, 0.04);
            border-color: rgba(255, 122, 0, 0.3);
            transform: translateY(-4px);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
        }
        .ap-card-thumb {
            width: 100%;
            height: 160px; /* Fixed height for image */
            object-fit: cover;
            border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        }
        .ap-card-body {
            padding: 15px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .ap-card-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .ap-card-category {
            font-family: var(--font-body);
            font-size: 9px;
            color: #ff7a00;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            font-weight: 700;
        }
        .ap-card-title {
            margin: 0;
            font-family: var(--font-heading);
            font-size: 15px;
            font-weight: 700;
            color: #fff;
        }
        .ap-card-desc {
            margin: 0;
            font-family: var(--font-body);
            font-size: 11px;
            color: #bbb;
            line-height: 1.4;
            flex-grow: 1;
        }
        .ap-get-btn {
            background: rgba(255, 122, 0, 0.08);
            border: 1px solid rgba(255, 122, 0, 0.2);
            color: #ff7a00;
            padding: 6px 12px;
            border-radius: 6px;
            font-family: var(--font-body);
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            cursor: pointer;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            width: 100%;
            box-sizing: border-box;
        }

        /* --- PAGINATION STYLES --- */
        .ap-pagination-container {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            margin-top: 15px;
            padding-top: 12px;
            border-top: 1px solid rgba(255, 255, 255, 0.04);
            flex-shrink: 0;
        }
        .ap-page-nav-btn {
            background: rgba(255, 255, 255, 0.02) !important;
            border: 1px solid rgba(255, 255, 255, 0.08) !important;
            color: #fff !important;
            padding: 6px 12px !important;
            border-radius: 6px !important;
            font-family: var(--font-body) !important;
            font-size: 11px !important;
            font-weight: 600 !important;
            cursor: pointer !important;
            transition: all 0.2s ease !important;
            display: inline-flex !important;
            align-items: center !important;
            gap: 4px !important;
        }
        .ap-page-nav-btn:hover:not(:disabled) {
            background: var(--primary-color) !important;
            border-color: var(--primary-color) !important;
            box-shadow: 0 0 10px rgba(255, 122, 0, 0.3) !important;
        }
        .ap-page-nav-btn:disabled {
            opacity: 0.25 !important;
            cursor: not-allowed !important;
        }
        .ap-page-indicators {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .ap-page-indicator-dot {
            width: 6px;
            height: 6px;
            background: rgba(255, 255, 255, 0.2);
            border: none;
            border-radius: 50%;
            cursor: pointer;
            padding: 0;
            transition: all 0.2s ease;
        }
        .ap-page-indicator-dot:hover {
            background: rgba(255, 255, 255, 0.5);
        }
        .ap-page-indicator-dot.active {
            background: var(--primary-color);
            transform: scale(1.2);
            box-shadow: 0 0 8px var(--primary-color);
        }
        .ap-get-btn:hover {
            background: #ff7a00;
            color: #fff;
            border-color: #ff7a00;
            box-shadow: 0 0 15px rgba(255, 122, 0, 0.4);
        }

        /* --- COMING SOON --- */
        .ap-coming-soon {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 40px 0;
            text-align: center;
            gap: 12px;
        }
        .ap-coming-soon-icon {
            font-size: 32px;
            color: #ff7a00;
            animation: pulse-ap 2s infinite ease-in-out;
        }
        @keyframes pulse-ap {
            0%, 100% { transform: scale(1); opacity: 0.7; }
            50% { transform: scale(1.1); opacity: 1; }
        }
        .ap-coming-soon h4 {
            margin: 0;
            font-family: var(--font-heading);
            font-size: 16px;
            color: #fff;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .ap-coming-soon p {
            margin: 0;
            font-family: var(--font-body);
            font-size: 12px;
            color: #666;
            max-width: 300px;
        }

        /* --- MOBILE TOGGLE & DROPDOWN --- */
        .mobile-apps-trigger {
            position: fixed;
            top: 18px;
            right:  73px;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: transparent !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            border: none !important;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size:  1.2rem !important;
            cursor: pointer;
            z-index: 10002;
            box-shadow: none !important;
            transition: all 0.3s ease;
        }
        .mobile-apps-trigger:hover {
            color: #ff7a00;
            border-color: #ff7a00;
        }
        .mobile-apps-trigger:active {
            transform: scale(0.9);
            background: #ff7a00 !important;
            color: #fff;
            border-color: #ff7a00;
        }
        @media (min-width: 769px) {
            .mobile-apps-trigger {
                display: none !important;
            }
        }
        .mobile-apps-dropdown {
            position: fixed;
            top: 75px;
            left: 15px;
            width: calc(100vw - 30px);
            max-height: 70vh;
            background: rgba(10, 10, 15, 0.95) !important;
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.08) !important;
            border-radius: 16px;
            z-index: 9999;
            transform: translateY(20px) scale(0.95);
            opacity: 0;
            pointer-events: none;
            transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
        }
        .mobile-apps-dropdown.open {
            opacity: 1;
            transform: translateY(0) scale(1);
            pointer-events: auto;
        }
        .mobile-tabs-header {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            padding: 15px 15px 10px 15px;
            overflow-x: auto;
        }
        .mob-tab-btn {
            background: transparent;
            border: none;
            color: #888;
            font-family: var(--font-heading);
            font-size: 13px;
            font-weight: 600;
            padding: 8px 15px;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            transition: all 0.2s ease;
            position: relative;
            flex: 1;
            border-radius: 8px;
        }
        .mob-tab-btn.active {
            color: #fff;
            background: rgba(255, 255, 255, 0.1);
        }
        .mob-tab-btn:hover {
            color: #ccc;
        }
        .mobile-apps-list {
            padding: 0 15px 15px 15px;
            overflow-y: auto;
            flex: 1;
        }
        .mobile-ap-card-item {
            display: flex;
            flex-direction: column;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.04);
            border-radius: 10px;
            overflow: hidden;
            margin-bottom: 15px;
        }
        .mobile-ap-card-thumb {
            width: 100%;
            height: 140px;
            object-fit: cover;
        }
        .mobile-ap-card-body {
            padding: 15px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        /* --- FLOATING ACTIONS & SCROLL SECTION INDICATOR (Desktop Only) --- */
        .desktop-floating-actions {
            position: fixed;
            bottom: 115px; /* Leaves a 15px gap above bottom bar which ends at 100px */
            left: 50%;
            transform: translateX(-50%);
            z-index: 9997;
            pointer-events: auto;
            transition: all 0.3s ease;
        }
        @media (max-width: 768px) {
            .desktop-floating-actions {
                display: none !important;
            }
        }

        /* State A: Hero Buttons */
        .hero-floating-buttons {
            display: flex;
            gap: 15px;
            align-items: center;
            transform: translateY(-80px); /* Shift up significantly to increase gap from bottom bar */
        }
        .floating-hero-btn {
            position: relative;
            background: rgba(10, 10, 15, 0.75) !important;
            backdrop-filter: blur(15px) !important;
            -webkit-backdrop-filter: blur(15px) !important;
            border: 1px solid rgba(255, 255, 255, 0.08) !important;
            color: #fff;
            padding: 12px 28px;
            font-family: var(--font-heading);
            font-size: 13px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            border-radius: 50px;
            cursor: pointer;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        }
        .floating-hero-btn.official-btn {
            border-color: rgba(255, 122, 0, 0.2) !important;
            color: #ff7a00;
        }
        .floating-hero-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                90deg,
                transparent,
                rgba(255, 255, 255, 0.08),
                transparent
            );
            transition: 0.5s;
        }
        .floating-hero-btn:hover::before {
            left: 100%;
        }
        .floating-hero-btn:hover {
            transform: translateY(-3px) scale(1.03);
            box-shadow: 0 15px 30px rgba(255, 122, 0, 0.15);
            background: rgba(20, 20, 30, 0.9) !important;
        }
        .floating-hero-btn.official-btn:hover {
            border-color: #ff7a00 !important;
            box-shadow: 0 15px 30px rgba(255, 122, 0, 0.25);
        }

        /* State B: Section Indicator Badge */
        .section-badge-container {
            display: flex;
            align-items: center;
            gap: 10px;
            background: rgba(10, 10, 15, 0.6) !important;
            backdrop-filter: blur(15px) !important;
            -webkit-backdrop-filter: blur(15px) !important;
            border: 1px solid rgba(255, 255, 255, 0.05) !important;
            padding: 8px 20px;
            border-radius: 50px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
            animation: fadeInIndicator 0.4s ease-out forwards;
        }
        .section-dot {
            width: 6px;
            height: 6px;
            background: #ff7a00;
            border-radius: 50%;
            box-shadow: 0 0 10px #ff7a00;
            animation: pulseDot 2s infinite;
        }
        .section-name {
            font-family: var(--font-heading);
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 2px;
            color: rgba(255, 255, 255, 0.8);
            text-transform: uppercase;
        }

        @keyframes fadeInIndicator {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        @keyframes pulseDot {
            0% {
                transform: scale(1);
                box-shadow: 0 0 4px #ff7a00;
            }
            50% {
                transform: scale(1.3);
                box-shadow: 0 0 12px #ff7a00;
            }
            100% {
                transform: scale(1);
                box-shadow: 0 0 4px #ff7a00;
            }
        }

        /* --- CHATBOT PULSE & GLOW (Deep Blue to match astronaut icon) --- */
        @keyframes chatbotPulse {
            0% {
                box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.4);
            }
            70% {
                box-shadow: 0 0 0 15px rgba(255, 122, 0, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(255, 122, 0, 0);
            }
        }
        .chatbot-button.pulse {
            animation: chatbotPulse 2s infinite !important;
            background: rgba(10, 10, 15, 0.8) !important;
            backdrop-filter: blur(10px) !important;
            -webkit-backdrop-filter: blur(10px) !important;
            border: 1px solid rgba(255, 122, 0, 0.3) !important;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
            transition: all 0.3s ease !important;
        }
        .chatbot-button.pulse:hover {
            transform: scale(1.1) !important;
            border-color: rgba(255, 122, 0, 0.8) !important;
            box-shadow: 0 8px 32px rgba(255, 122, 0, 0.3) !important;
        }
        .chatbot-button.pulse i {
            color: #ff7a00 !important;
        }

        /* ========== Bottom Bar Credit Text ========== */
        .bottom-bar-credit {
            position: fixed;
            bottom: 8px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 9999;
            font-size: 10px;
            color: rgba(255, 255, 255, 0.5);
            font-family: 'Poppins', sans-serif;
            text-align: center;
            white-space: nowrap;
            letter-spacing: 0.5px;
        }

        @media (max-width: 768px) {
            .bottom-bar-credit {
                display: none !important;
            }
        }

        /* ========== Premium Floating Search Bar Styles (Top Right) ========== */
        .floating-search-wrapper {
            position: fixed !important;
            top: 20px !important;
            right: 80px !important;
            z-index: 10005 !important;
            display: flex !important;
            align-items: center !important;
            gap: 10px !important;
            pointer-events: auto !important;
        }

        .floating-search-bar {
            display: flex !important;
            align-items: center !important;
            padding: 4px 6px 4px 12px !important;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
            width: 45px !important;
            height: 45px !important;
            overflow: hidden !important;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
        }

        .floating-search-bar.expanded {
            width: 260px !important;
            border-color: rgba(255, 122, 0, 0.45) !important;
            box-shadow: 0 4px 25px rgba(255, 122, 0, 0.25) !important;
            background: rgba(8, 10, 20, 0.9) !important;
        }

        .search-toggle-btn {
            background: none !important;
            border: none !important;
            color: #ffffff !important;
            cursor: pointer !important;
            font-size:  1.2rem !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            width: 35px !important;
            height: 35px !important;
            border-radius: 50% !important;
            transition: all 0.3s ease !important;
            padding: 0 !important;
            flex-shrink: 0 !important;
        }

        .search-toggle-btn .btn-text {
            display: none !important; /* Keep search bar clean and compact */
        }

        .search-toggle-btn:hover {
            color: #ff7a00 !important;
        }

        .search-input {
            background: none !important;
            border: none !important;
            outline: none !important;
            color: #ffffff !important;
            font-family: 'Poppins', sans-serif !important;
            font-size: 0.9rem !important;
            width: 0 !important;
            padding: 0 !important;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
            opacity: 0 !important;
        }

        .floating-search-bar.expanded .search-input {
            width: 170px !important;
            padding: 0 10px !important;
            opacity: 1 !important;
        }

        .search-results-dropdown {
            position: absolute !important;
            top: 55px !important; /* Open downwards since search bar is at top */
            right: 0 !important;
            width: 300px !important;
            max-height: 380px !important;
            overflow-y: auto !important;
            background: rgba(10, 13, 26, 0.95) !important;
            backdrop-filter: blur(25px) !important;
            -webkit-backdrop-filter: blur(25px) !important;
            border: 1px solid rgba(255, 255, 255, 0.08) !important;
            border-radius: 16px !important;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
            opacity: 0 !important;
            visibility: hidden !important;
            transform: translateY(-10px) !important;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
            z-index: 2400 !important;
            padding: 8px !important;
        }

        .search-results-dropdown.show {
            opacity: 1 !important;
            visibility: visible !important;
            transform: translateY(0) !important;
        }

        /* Dropdown results items */
        .search-result-item {
            padding: 10px 12px !important;
            border-radius: 8px !important;
            cursor: pointer !important;
            transition: all 0.2s ease !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
            text-align: left !important;
        }

        .search-result-item:last-child {
            border-bottom: none !important;
        }

        .search-result-item:hover {
            background: rgba(255, 122, 0, 0.12) !important;
        }

        .search-result-title {
            font-size: 0.88rem !important;
            font-weight: 600 !important;
            color: #ffffff !important;
            margin-bottom: 4px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
        }

        .search-result-desc {
            font-size: 0.75rem !important;
            color: rgba(255, 255, 255, 0.5) !important;
            line-height: 1.4 !important;
        }

        .search-no-results {
            padding: 15px !important;
            text-align: center !important;
            color: rgba(255, 255, 255, 0.4) !important;
            font-size: 0.85rem !important;
        }

        /* Mobile Adjustments */
        @media (max-width: 768px) {
            .floating-search-wrapper {
                top: 15px !important;
                left: 15px !important;
                right: auto !important;
                bottom: auto !important;
            }
            .floating-search-bar.expanded {
                width: 200px !important;
                flex-direction: row-reverse !important; /* To keep icon logic intact if needed, though default flex is fine */
            }
            .floating-search-bar.expanded .search-input {
                width: 120px !important;
            }
            .search-results-dropdown {
                width: 260px !important;
                max-height: 300px !important;
                top: 50px !important;
                bottom: auto !important;
                left: 0 !important;
                right: auto !important;
            }
            .jgs-service-launcher {
                top: 15px !important;
                right: 175px !important;
            }
            .service-launcher-btn {
                width: 40px !important;
                height: 40px !important;
                border-radius: 50% !important;
                font-size: 1.1rem !important;
            }
        }
      
/* === Premium Animations for Sections === */
html, body {
    scroll-behavior: smooth !important;
}

.fade-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Hero Background Image (Desktop Left) === */
header#home {
    position: relative;
    overflow: hidden;
}

header#home .hero-title,
header#home .hero-description,
header#home .scroll-down {
    position: relative;
    z-index: 2; /* Ensure text and buttons stay above the background image */
}

.hero-bg-img {
    position: absolute !important;
    left: -5% !important;
    bottom: 0 !important;
    height: 100% !important;
    width: auto !important;
    max-width: 50% !important;
    object-fit: contain !important;
    object-position: bottom left !important;
    z-index: 1 !important; /* Below text, above deep background */
    pointer-events: none !important; /* Do not block clicks */
    animation: fadeSlideRight 1.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
    transform: translateX(-50px);
}

@keyframes fadeSlideRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 1024px) {
    .hero-bg-img {
        opacity: 0.2 !important; 
        max-width: 60% !important;
        left: -10% !important;
    }
}

@media (max-width: 768px) {
    .hero-bg-img {
        display: none !important; /* Hide on mobile to keep it clean */
    }
}

/* ==========================================================================
   Premium Ambient Lighting Effects (Matching Hero Image)
   ========================================================================== */

/* 1. Hero Section Lighting (Right to Left spreading) */
header#home::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to left, rgba(255, 122, 0, 0.15) 0%, rgba(255, 122, 0, 0.04) 50%, transparent 90%);
    z-index: 0;
    pointer-events: none;
    animation: pulseLight 6s infinite alternate ease-in-out;
}

@keyframes pulseLight {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* 2. Global Section Ambient Lighting (Subtle glows from both sides) */
#project-categories, #portfolio, #faq, #contact-me {
    position: relative;
}

#project-categories::before, #portfolio::before, #faq::before, #contact-me::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 35%;
    background: radial-gradient(ellipse at left center, rgba(255, 122, 0, 0.08) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

#project-categories::after, #portfolio::after, #faq::after, #contact-me::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 35%;
    background: radial-gradient(ellipse at right center, rgba(255, 122, 0, 0.08) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* Elevate section content above the ambient lights */
#project-categories > *, #portfolio > *, #faq > *, #contact-me > * {
    position: relative;
    z-index: 1;
}

/* Maintain edge lighting on mobile, but make it softer */
@media (max-width: 768px) {
    header#home::before {
        background: linear-gradient(to left, rgba(255, 122, 0, 0.1) 0%, rgba(255, 122, 0, 0.02) 40%, transparent 80%);
    }
    
    #project-categories::before, #portfolio::before, #faq::before, #contact-me::before {
        width: 25%;
        background: radial-gradient(ellipse at left center, rgba(255, 122, 0, 0.06) 0%, transparent 80%);
    }
    
    #project-categories::after, #portfolio::after, #faq::after, #contact-me::after {
        width: 25%;
        background: radial-gradient(ellipse at right center, rgba(255, 122, 0, 0.06) 0%, transparent 80%);
    }
}
