/* ==========================================================================
   المدار المتخصصة | AL MADAR AGENCY - LUXURY UI COMPONENT LIBRARY
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. LAYOUT & CONTAINERS
   -------------------------------------------------------------------------- */
.container-custom {
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section-padding {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

@media (min-width: 992px) {
    .section-padding {
        padding-top: 4.5rem;
        padding-bottom: 4.5rem;
    }
}

/* Section Header Structure */
.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2.25rem auto;
}


.section-header.text-start {
    text-align: right;
    margin-right: 0;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    background: rgba(75, 0, 246, 0.12);
    border: 1px solid rgba(205, 176, 255, 0.25);
    color: var(--color-lavender);
    font-size: var(--fs-sm);
    font-weight: 600;
    margin-bottom: 1.25rem;
    backdrop-filter: var(--glass-blur);
}

.section-title {
    font-size: var(--fs-2xl);
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.25;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}

@media (min-width: 992px) {
    .section-title {
        font-size: var(--fs-3xl);
    }
}

.section-desc {
    font-size: var(--fs-base);
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* --------------------------------------------------------------------------
   2. BUTTONS SYSTEM (نظام الأزرار الفاخرة)
   -------------------------------------------------------------------------- */
.btn-luxury {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.25rem;
    border-radius: var(--radius-full);
    font-family: var(--font-arabic);
    font-size: var(--fs-base);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    outline: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Primary Button (الأكشن الأساسي) */
.btn-primary-glow {
    background: var(--grad-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-glow-sm);
}

.btn-primary-glow::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--grad-primary-hover);
    opacity: 0;
    z-index: -1;
    transition: var(--transition-normal);
}

.btn-primary-glow:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-lg);
    color: var(--color-white);
}

.btn-primary-glow:hover::before {
    opacity: 1;
}

/* Glass Button (زر شفاف فاخر) */
.btn-glass {
    background: var(--glass-bg);
    border: var(--glass-border);
    color: var(--color-white);
    backdrop-filter: var(--glass-blur);
}

.btn-glass:hover {
    background: rgba(75, 0, 246, 0.25);
    border-color: rgba(205, 176, 255, 0.4);
    transform: translateY(-3px);
    color: var(--color-white);
    box-shadow: var(--shadow-glow-sm);
}

/* WhatsApp Conversion Button */
.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
    color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   3. LUXURY CARDS SYSTEM (نظام البطاقات الزجاجية)
   -------------------------------------------------------------------------- */
.card-luxury {
    background: var(--grad-card);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: var(--glass-blur);
    transition: var(--transition-normal);
}

.card-banner-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.card-banner-bg:hover {
    box-shadow: 0 20px 50px rgba(15, 11, 28, 0.9), 0 0 40px rgba(75, 0, 246, 0.4);
    border-color: rgba(205, 176, 255, 0.4);
}


.card-luxury::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-lavender), transparent);
    opacity: 0.3;
    transition: var(--transition-normal);
}

.card-luxury:hover {
    transform: translateY(-8px);
    border-color: rgba(75, 0, 246, 0.5);
    box-shadow: 0 20px 40px rgba(15, 11, 28, 0.8), 0 0 30px rgba(75, 0, 246, 0.25);
}

.card-luxury:hover::before {
    opacity: 1;
    background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-lavender), transparent);
}

/* Icon Box inside cards */
.icon-box-luxury {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: rgba(75, 0, 246, 0.15);
    border: 1px solid rgba(205, 176, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-lavender);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-normal);
}

.card-luxury:hover .icon-box-luxury {
    background: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1) rotate(-3deg);
    box-shadow: var(--shadow-glow-sm);
}

/* --------------------------------------------------------------------------
   4. LUXURY FORM CONTROLS (نماذج تحويل الزوار)
   -------------------------------------------------------------------------- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-light);
    margin-bottom: 0.5rem;
}

.input-luxury, .select-luxury, .textarea-luxury {
    width: 100%;
    background: rgba(15, 11, 28, 0.6);
    border: 1px solid rgba(205, 176, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.35rem;
    color: var(--color-white);
    font-family: var(--font-arabic);
    font-size: var(--fs-base);
    outline: none;
    transition: var(--transition-normal);
    backdrop-filter: var(--glass-blur);
}

.input-luxury:focus, .select-luxury:focus, .textarea-luxury:focus {
    border-color: var(--color-primary);
    background: rgba(23, 15, 42, 0.85);
    box-shadow: 0 0 20px rgba(75, 0, 246, 0.35);
}

.input-luxury::placeholder, .textarea-luxury::placeholder {
    color: var(--color-text-muted);
    opacity: 0.7;
}

/* --------------------------------------------------------------------------
   5. MARQUEE & STATS BADGES
   -------------------------------------------------------------------------- */
.badge-glow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: 700;
    background: rgba(75, 0, 246, 0.2);
    border: 1px solid rgba(205, 176, 255, 0.3);
    color: var(--color-lavender);
}

.badge-glow .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
    box-shadow: 0 0 10px var(--color-success);
}

/* --------------------------------------------------------------------------
   6. LUXURY PROJECT CARD & LOGO DISPLAY
   -------------------------------------------------------------------------- */
.project-card-header {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(31, 18, 53, 0.95), rgba(15, 11, 28, 0.98));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid rgba(205, 176, 255, 0.12);
}

.project-card-logo {
    max-height: 175px;
    max-width: 92%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 6px 25px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 18px rgba(75, 0, 246, 0.45));
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}

.portfolio-card-luxury:hover .project-card-logo {
    transform: scale(1.08);
    filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 25px rgba(139, 63, 255, 0.65));
}

/* --------------------------------------------------------------------------
   7. LUXURY LIGHTBOX SYSTEM
   -------------------------------------------------------------------------- */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 5, 16, 0.94);
    backdrop-filter: blur(25px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.lightbox-dialog {
    position: relative;
    z-index: 2;
    max-width: 92vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-image-wrapper {
    position: relative;
    max-width: 88vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: 0 25px 70px rgba(0,0,0,0.85), 0 0 50px rgba(75, 0, 246, 0.35);
    border: 1px solid rgba(205, 176, 255, 0.25);
    background: rgba(15, 11, 28, 0.95);
}

.lightbox-image {
    max-width: 88vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    user-select: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.lightbox-close-btn {
    position: fixed;
    top: 1.75rem;
    left: 1.75rem;
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(35, 19, 62, 0.85);
    border: 1px solid rgba(205, 176, 255, 0.3);
    color: var(--color-white);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.lightbox-close-btn:hover {
    background: var(--color-primary);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(75, 0, 246, 0.6);
}

.lightbox-arrow-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(35, 19, 62, 0.85);
    border: 1px solid rgba(205, 176, 255, 0.3);
    color: var(--color-white);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.lightbox-arrow-btn:hover {
    background: var(--color-primary);
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 0 25px rgba(75, 0, 246, 0.6);
}

.lightbox-arrow-prev {
    right: 2rem;
}

.lightbox-arrow-next {
    left: 2rem;
}

.lightbox-meta-bar {
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.6rem 1.75rem;
    background: rgba(35, 19, 62, 0.85);
    border: 1px solid rgba(205, 176, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 700;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox-meta-counter {
    color: var(--color-lavender);
    font-family: 'Outfit', var(--font-arabic), sans-serif;
    font-size: 0.9rem;
    background: rgba(75, 0, 246, 0.3);
    padding: 0.2rem 0.75rem;
    border-radius: var(--radius-full);
}

@media (max-width: 768px) {
    .lightbox-arrow-btn {
        width: 44px;
        height: 44px;
        font-size: 1.15rem;
    }
    .lightbox-arrow-prev { right: 0.75rem; }
    .lightbox-arrow-next { left: 0.75rem; }
    .lightbox-close-btn { top: 1rem; left: 1rem; width: 42px; height: 42px; font-size: 1.1rem; }
    .project-card-header { height: 210px; padding: 1.25rem; }
    .project-card-logo { max-height: 145px; }
}

/* ==========================================================================
   FLOATING STANDALONE REVIEWS SLIDER & MINIMAL AUDIO BAR (NO CARD BG)
   ========================================================================== */
.floating-reviews-deck {
    position: relative;
    padding: 2rem 0;
    overflow: visible;
}

.floating-review-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, filter 0.5s ease;
    opacity: 0.45;
    transform: scale(0.85);
    filter: blur(2px);
}

.floating-review-slide.swiper-slide-active {
    opacity: 1;
    transform: scale(1.05);
    filter: blur(0px);
    z-index: 10;
}

.floating-review-img-box {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    /* ABSOLUTELY NO CARD BACKGROUND COLOR OR GRAY BOX */
    background: transparent;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(75, 0, 246, 0.25);
    border: 1px solid rgba(205, 176, 255, 0.25);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    max-width: 520px;
    margin: 0 auto;
}

.floating-review-slide.swiper-slide-active .floating-review-img-box:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(75, 0, 246, 0.45);
    border-color: rgba(205, 176, 255, 0.5);
}

.floating-review-img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    display: block;
    border-radius: var(--radius-xl);
}

/* Elongated Dynamic Pagination Indicators */
.minimal-swiper-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 2.25rem;
}

.minimal-swiper-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(205, 176, 255, 0.3);
    opacity: 1;
    transition: all 0.35s ease;
    cursor: pointer;
}

.minimal-swiper-pagination .swiper-pagination-bullet-active {
    width: 34px;
    border-radius: 6px;
    background: var(--grad-primary);
    box-shadow: 0 0 12px var(--color-primary);
}

/* Standalone Minimal Audio Player Bar Below Slider */
.standalone-audio-bar-wrapper {
    max-width: 560px;
    margin: 0 auto;
    background: rgba(24, 17, 44, 0.85);
    border: 1px solid rgba(205, 176, 255, 0.22);
    border-radius: var(--radius-full);
    padding: 0.85rem 1.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(75, 0, 246, 0.2);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.standalone-play-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: var(--grad-primary);
    border: none;
    color: white;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(75, 0, 246, 0.5);
    transition: all 0.25s ease;
}

.standalone-play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(75, 0, 246, 0.8);
}

.standalone-play-btn.playing {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
}

.standalone-audio-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.standalone-audio-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-lavender);
}

.standalone-seekbar-bg {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.standalone-seekbar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4B00F6, #10B981);
    border-radius: 4px;
    transition: width 0.1s linear;
}

/* Floating Navigation Arrows */
.floating-swiper-button-prev,
.floating-swiper-button-next {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(35, 19, 62, 0.7);
    border: 1px solid rgba(205, 176, 255, 0.25);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    transition: all 0.25s ease;
    z-index: 20;
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
}

.floating-swiper-button-prev { right: 1.5rem; }
.floating-swiper-button-next { left: 1.5rem; }

.floating-swiper-button-prev:hover,
.floating-swiper-button-next:hover {
    background: var(--color-primary);
    border-color: var(--color-lavender);
    box-shadow: 0 0 25px rgba(75, 0, 246, 0.6);
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .floating-swiper-button-prev { right: 0.25rem; width: 40px; height: 40px; font-size: 0.95rem; }
    .floating-swiper-button-next { left: 0.25rem; width: 40px; height: 40px; font-size: 0.95rem; }
    .floating-review-img { max-height: 380px; }
    .standalone-audio-bar-wrapper { max-width: 95%; padding: 0.75rem 1rem; }
}


