/* 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:  var(--wd-primary-color);
    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:  var(--wd-primary-color);
    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: rgb(255 255 255 / 0%);
    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  var(--wd-primary-color);
    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:  var(--wd-primary-color);
    position: relative;
   
}

.project-section .projects-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 8px;
    /* background: linear-gradient(135deg, #f7e600, #ffb347); */
    /*background: linear-gradient(135deg, #f7e600, #ffb347);*/
    background: linear-gradient(135deg,  var(--wd-primary-color),  var(--wd-primary-color));
    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, #f7e600, #f7e600); */
    /* background: linear-gradient(135deg, #f7e600, #f7e600); */
    background: linear-gradient(135deg,  var(--wd-primary-color),  var(--wd-primary-color));
    color: #221e1f;
    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(245, 124, 0, 0.3);
    color: #221e1f;
    text-decoration: none;
}

/* Right scrolling projects - 60% width */
.project-section .projects-showcase {
    width: 60%;
    padding: 2rem;
}

.project-section .project-card,
.project-section a.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;
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-section .project-card:hover,
.project-section a.project-card:hover {
    transform: translateY(-10px);
    border-color:  var(--wd-primary-color);
    box-shadow: 0 20px 40px rgba(245, 124, 0, 0.2);
    text-decoration: none;
    color: inherit;
}

.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;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 10;
}

.project-section .project-details {
    flex: 1;
}

.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:  var(--wd-primary-color);
    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-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg,  var(--wd-primary-color),  var(--wd-primary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 10px;
    color: #ffffff;
    text-align: center;
    line-height: 1.1;
    flex-shrink: 0;
    margin-left: 20px;
    transition: transform 0.3s ease;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.project-section .project-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.project-section .project-card:hover .project-logo,
.project-section a.project-card:hover .project-logo {
    transform: scale(1.1);
}

/* 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,
    .project-section a.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,
    .project-section a.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;
    }

    .project-section .project-details {
        flex: 1;
        padding-right: 10px;
    }

    .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-logo {
        width: 50px;
        height: 50px;
        margin-left: 10px;
        margin-top: 0;
        font-size: 8px;
        flex-shrink: 0;
    }

    .project-section .project-card:hover .project-scope,
    .project-section a.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,
    .project-section a.project-card {
        height: 280px;
    }

    .project-section .project-info {
        padding: 12px;
    }

    .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-logo {
        width: 45px;
        height: 45px;
        font-size: 7px;
    }
}

/* 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);
}