/* Scope all styles to project-section container */
.project-section * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.project-section {
    background: #0a0a0a;
    color: white;
    overflow-x: hidden;
    position: relative;
}

/* Floating particles background */
.project-section .floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.project-section .particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #c7a668;
    border-radius: 50%;
    opacity: 0.6;
    animation: float-particle 8s linear infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-10px) translateX(100px);
        opacity: 0;
    }
}

/* Side navigation */
.project-section .side-nav {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.project-section .nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-section .nav-dot.active {
    background: #c7a668;
    transform: scale(1.5);
}

/* Main projects section */
.project-section .projects-section {
    position: relative;
    background: #0a0a0a;
    z-index: 10;
}

.project-section .projects-container {
    display: flex;
    min-height: 100vh;
}

/* Left fixed content - 40% width */
.project-section .projects-content {
    position: sticky;
    top: 0;
    width: 40%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5% 3% 5% 5%;
    background: #0a0a0a;
    z-index: 20;
}

.project-section .projects-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.project-section .projects-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.project-section .projects-title .highlight {
    /* background: linear-gradient(135deg, #e96852, #ffb347); */
    /*background: linear-gradient(135deg, #eb6c56, #ffb347);*/
    /*-webkit-background-clip: text;*/
    /*-webkit-text-fill-color: transparent;*/
    /*background-clip: text;*/
    color: #c7a668;
    position: relative;
   
}

.project-section .projects-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 8px;
    /* background: linear-gradient(135deg, #e96852, #ffb347); */
    /*background: linear-gradient(135deg, #ea6a54, #ffb347);*/
    background: linear-gradient(135deg, #c7a668, #c7a668);
    opacity: 0.3;
    border-radius: 4px;
}

.project-section .projects-description {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
    line-height: 1.7;
    color: #cccccc;
}

.project-section .view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    /* background: linear-gradient(135deg, #e96852, #ee7e5f); */
    /* background: linear-gradient(135deg, #E96852, #FF8F78); */
    background: linear-gradient(135deg, #c7a668, #c7a668);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: fit-content;
    border: 2px solid transparent;
}

.project-section .view-all-btn:hover {
    transform: translateY(-2px);
box-shadow: 0 10px 25px rgba(199, 166, 104, 0.3);
    color: white;
    text-decoration: none;
}

/* Right scrolling projects - 60% width */
.project-section .projects-showcase {
    width: 60%;
    padding: 2rem;
}

.project-section .project-card {
    width: 100%;
    height: 60vh;
    margin-bottom: 2rem;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    background: #111;
    border: 1px solid #333;
    position: relative;
}

.project-section .project-card:hover {
    transform: translateY(-10px);
    border-color: #c7a668;
  box-shadow: 0 20px 40px rgba(199, 166, 104, 0.2);

}

.project-section .project-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.project-section .project-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.project-section .project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: transparent;
    padding: 30px;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 16px;
    z-index: 10;
}

/* ── Card logo column (left) ── */
.project-section .project-card-logo {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 20;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(199, 166, 104, 0.35);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-section .project-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.project-section .project-card-logo--initials {
    font-size: 11px;
    font-weight: 700;
    color: #c7a668;
    text-align: center;
    line-height: 1.2;
    padding: 6px;
    letter-spacing: 0.5px;
}

.project-section .project-card:hover .project-card-logo {
    transform: scale(1.07);
    border-color: rgba(199, 166, 104, 0.7);
}

.project-section .project-details {
    flex: 1;
    min-width: 0;
}

.project-section .project-customer {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.project-section .project-location {
    font-size: 1rem;
    color: #c7a668;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.project-section .project-scope {
    font-size: 0.9rem;
    color: #cccccc;
    line-height: 1.4;
    opacity: 1;
    transform: translateY(0);
    max-height: none;
    overflow: visible;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.project-section .project-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid #c7a668;
    color: #c7a668;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-section .project-details-btn .btn-icon {
    display: none;
}

.project-section .project-details-btn:hover {
    background: #c7a668;
    color: #fff;
}


/* Slot kept for any legacy .project-logo references */

/* Force Elementor containers to allow sticky positioning */
.project-section,
.project-section .elementor-widget-container,
.project-section .e-con-inner,
.project-section .e-con {
    overflow: visible !important;
    height: auto !important;
}

/* Ensure compatibility with common themes and page builders */
.project-section .elementor-element,
.project-section .wpb_wrapper,
.project-section .vc_column-inner {
    overflow: visible !important;
}

/* Responsive design */
@media (max-width: 1024px) {
    .project-section .projects-container {
        flex-direction: column;
    }
    
    .project-section .projects-content {
        position: relative;
        width: 100%;
        height: auto;
        padding: 3rem 2rem;
        text-align: center;
    }
    
    .project-section .projects-showcase {
        width: 100%;
        padding: 0 2rem 2rem;
    }
    
    .project-section .project-card {
        height: 60vh;
    }
    
    .project-section .projects-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 768px) {
    .project-section .projects-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .project-section .project-card {
        height: 50vh;
        margin-bottom: 1rem;
    }
    
    .project-section .projects-content {
        padding: 2rem 1rem;
    }
    
    .project-section .projects-showcase {
        padding: 0 1rem 1rem;
    }

    .project-section .project-info {
        padding: 20px;
        flex-direction: row;
        align-items: flex-end;
        gap: 12px;
    }

    .project-section .project-details {
        flex: 1;
        padding-right: 0;
    }

    .project-section .project-customer {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .project-section .project-location {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .project-section .project-scope {
        font-size: 0.8rem;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .project-section .project-card-logo {
        width: 52px;
        height: 52px;
    }

    .project-section .project-card-logo--initials {
        font-size: 9px;
    }

    .project-section .project-card:hover .project-scope {
        -webkit-line-clamp: unset;
        max-height: none;
    }

    .project-section .side-nav {
        display: none;
    }

    .project-section .project-image {
        height: 60%;
    }
}

@media (max-width: 480px) {
    .project-section .projects-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .project-section .project-card {
        height: 280px;
    }

    .project-section .project-info {
        padding: 12px;
        gap: 10px;
    }

    .project-section .project-customer {
        font-size: 0.9rem;
    }

    .project-section .project-location {
        font-size: 0.75rem;
    }

    .project-section .project-scope {
        font-size: 0.7rem;
    }

    .project-section .project-card-logo {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .project-section .project-card-logo--initials {
        font-size: 8px;
    }
}

/* Scroll animation styles */
.project-section .fade-up {
    opacity: 0;
    transform: translateY(50px);
}

.project-section .fade-up.animate {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Arabic RTL Support */
.project-section.arabic-version {
    direction: rtl;
}

.project-section.arabic-version .projects-container {
    flex-direction: row;
}

.project-section.arabic-version .projects-content {
    text-align: right;
    padding: 5% 5% 5% 3%;
}

.project-section.arabic-version .projects-title {
    text-align: right;
}

.project-section.arabic-version .projects-description {
    text-align: right;
}

.project-section.arabic-version .view-all-btn {
    flex-direction: row-reverse;
}

.project-section.arabic-version .view-all-btn svg {
    transform: scaleX(-1);
}

.project-section.arabic-version .project-info {
    flex-direction: row-reverse;
}

.project-section.arabic-version .project-details {
    text-align: right;
}

.project-section.arabic-version .project-card-logo {
    right: auto;
    left: 20px;
}

.project-section.arabic-version .side-nav {
    left: auto;
    right: 30px;
}

/* Arabic responsive adjustments */
@media (max-width: 1024px) {
    .project-section.arabic-version .projects-container {
        flex-direction: column;
    }
    
    .project-section.arabic-version .projects-content {
        text-align: center;
        padding: 3rem 2rem;
    }
    
    .project-section.arabic-version .projects-title {
        text-align: center;
    }
    
    .project-section.arabic-version .projects-description {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .project-section.arabic-version .project-info {
        flex-direction: row-reverse;
        align-items: flex-end;
    }
    
    .project-section.arabic-version .project-details {
        text-align: right;
        padding-right: 0;
        padding-left: 10px;
    }
}

/* Arabic font improvements */
.project-section.arabic-version .projects-title,
.project-section.arabic-version .projects-description,
.project-section.arabic-version .project-customer,
.project-section.arabic-version .project-scope {
    line-height: 1.6;
}

.project-section.arabic-version .projects-title {
    font-weight: 700;
}

.project-section.arabic-version .project-customer {
    font-weight: 600;
}

/* black phantom edits */
.project-section .project-image::before {
    background: linear-gradient(180deg, rgb(0 0 0 / 15%) 0%, rgb(0 0 0 / 25%) 100%) !important;
}

.project-info {
    backdrop-filter: blur(10px);
    border: 1px solid #c7a66842;
    background-color: rgba(15, 15, 15, 0.65) !important;
}
@media(min-width: 767px) {
.project-section.arabic-version .projects-container {
    flex-direction: row !important;
}
}

@media (max-width: 768px) {
    .project-section .project-details-btn {
        position: absolute;
        bottom: 30px;
        left: 30px;
        margin-top: 0;
        padding: 0;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        justify-content: center;
        background: rgba(199, 166, 104, 0.1);
    }
    
    .project-section .project-details-btn .btn-text {
        display: none;
    }
    
    .project-section .project-details-btn .btn-icon {
        display: block;
    }
    
    .project-section .project-details,
    .project-section.arabic-version .project-details {
        padding-left: 60px !important;
        padding-bottom: 5px;
    }
}

/* ################ SERVICES SECTION SCROLLABLE IN MOBILE #######*/
@media(max-width: 767px) {
	.project-section .project-card {
    height: 400px !important;
}

.project-section .project-info {
 
    padding: 10px 20px !important;
bottom: 5px !important;
  background: linear-gradient(180deg, rgb(17 17 17 / 20%) 0%, rgb(17 17 17 / 40%) 100%) !important;
    align-items: center !important;
}
a.project-details-btn {
    left: 20px !important;
    bottom: 20px !important;
}
}

/* ################ COMING SOON BADGE ################ */
.project-section .project-coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 7px 16px;
    background: rgba(199, 166, 104, 0.08);
    border: 1px solid rgba(199, 166, 104, 0.45);
    color: #c7a668;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    pointer-events: none;
    user-select: none;
    position: relative;
    box-shadow:
        0 0 8px rgba(199, 166, 104, 0.25),
        0 0 20px rgba(199, 166, 104, 0.10),
        inset 0 0 12px rgba(199, 166, 104, 0.05);
    animation: cs-badge-pulse 2.8s ease-in-out infinite;
}

.project-section .coming-soon-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c7a668;
    flex-shrink: 0;
    box-shadow: 0 0 6px 2px rgba(199, 166, 104, 0.6);
    animation: cs-dot-blink 2.8s ease-in-out infinite;
}

@keyframes cs-badge-pulse {
    0%, 100% {
        box-shadow:
            0 0 8px rgba(199, 166, 104, 0.25),
            0 0 20px rgba(199, 166, 104, 0.10),
            inset 0 0 12px rgba(199, 166, 104, 0.05);
        border-color: rgba(199, 166, 104, 0.45);
    }
    50% {
        box-shadow:
            0 0 14px rgba(199, 166, 104, 0.55),
            0 0 35px rgba(199, 166, 104, 0.20),
            inset 0 0 18px rgba(199, 166, 104, 0.10);
        border-color: rgba(199, 166, 104, 0.80);
    }
}

@keyframes cs-dot-blink {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 6px 2px rgba(199, 166, 104, 0.6);
    }
    50% {
        opacity: 0.4;
        box-shadow: 0 0 3px 1px rgba(199, 166, 104, 0.3);
    }
}

/* Mobile: match the absolute positioning of the details btn */
@media (max-width: 768px) {
    .project-section .project-coming-soon-badge {
        position: absolute;
        bottom: 30px;
        left: 30px;
        margin-top: 0;
    }
}

@media(max-width: 767px) {
    .project-section .project-coming-soon-badge {
        left: 20px !important;
        bottom: 20px !important;
    }
}

/* RTL: flip left → right for Arabic version */
.project-section.arabic-version .project-coming-soon-badge {
    direction: rtl;
}

@media (max-width: 768px) {
    .project-section.arabic-version .project-coming-soon-badge {
        left: auto;
        right: 30px;
    }
}

@media(max-width: 767px) {
    .project-section.arabic-version .project-coming-soon-badge {
        right: 20px !important;
        left: auto !important;
    }
}


/* ============================================================
   PROJECT DETAIL POPUP MODAL
   ============================================================ */
.ps-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: psOverlayIn 0.25s ease forwards;
}

.ps-modal-overlay.ps-modal-active {
    display: flex;
}

@keyframes psOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.ps-modal-content {
    background: #111111;
    border: 1px solid rgba(199, 166, 104, 0.3);
    border-radius: 20px;
    padding: 60px 40px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(199, 166, 104, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: psModalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes psModalIn {
    from { opacity: 0; transform: scale(0.88) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Scrollbar styling */
.ps-modal-content::-webkit-scrollbar { width: 4px; }
.ps-modal-content::-webkit-scrollbar-track { background: transparent; }
.ps-modal-content::-webkit-scrollbar-thumb { background: rgba(199,166,104,0.4); border-radius: 4px; }

/* Close button */
.ps-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
}
.ps-modal-close:hover {
    background: rgba(199, 166, 104, 0.15);
    border-color: rgba(199, 166, 104, 0.4);
    color: #c7a668;
    transform: rotate(90deg);
}

/* RTL: flip close to left */
[dir="rtl"] .ps-modal-close {
    right: auto;
    left: 16px;
}
[dir="rtl"] .ps-modal-close {
       position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
/* Header: logo + title/location */
.ps-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(199, 166, 104, 0.15);
}

.ps-modal-logo {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(199, 166, 104, 0.1);
    border: 1px solid rgba(199, 166, 104, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ps-modal-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ps-modal-logo-placeholder {
    font-size: 11px;
    font-weight: 700;
    color: #c7a668;
    text-align: center;
    line-height: 1.3;
    letter-spacing: 0.5px;
    padding: 6px;
}

.ps-modal-header-text {
    flex: 1;
    min-width: 0;
}

.ps-modal-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.ps-modal-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: #c7a668;
    opacity: 0.9;
}
.ps-modal-location svg {
    flex-shrink: 0;
    opacity: 0.8;
}

/* Description */
.ps-modal-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.75;
    margin-bottom: 28px;
}

/* Contact details */
.ps-modal-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ps-modal-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ps-modal-contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(199, 166, 104, 0.1);
    border: 1px solid rgba(199, 166, 104, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #c7a668;
}

.ps-modal-contact-link,
.ps-modal-contact-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
    word-break: break-all;
}
.ps-modal-contact-link:hover {
    color: #c7a668;
    text-decoration: underline;
}

/* CTA button */
.ps-modal-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #c7a668, #b8965a);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.ps-modal-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(199, 166, 104, 0.35);
    color: #fff;
    text-decoration: none;
}

/* RTL adjustments for modal */
[dir="rtl"] .ps-modal-header {
    flex-direction: row-reverse;
}
[dir="rtl"] .ps-modal-contact-item {
/*     flex-direction: row-reverse; */
}
[dir="rtl"] .ps-modal-location {
/*     flex-direction: row-reverse; */
}
[dir="rtl"] .ps-modal-cta {
    flex-direction: row-reverse;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .ps-modal-content {
        padding: 24px 20px;
        border-radius: 16px;
    }
    .ps-modal-title {
        font-size: 1.1rem;
    }
    .ps-modal-header {
        gap: 14px;
    }
    .ps-modal-logo {
        width: 56px;
        height: 56px;
    }
}

/* Make the button styled as button not link */
button.project-details-btn {
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}