.da-projects-widget {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.da-project-item {
    border: 1px solid #ddd;
    padding: 20px;
}

.da-project-gallery {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.da-project-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.da-project-tag {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 5px 10px;
    margin-bottom: 10px;
}

.da-project-title {
    margin: 10px 0;
}

.da-project-subtitle {
    margin-bottom: 10px;
}

.da-project-location {
    margin-bottom: 15px;
}

.da-project-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #000;
    color: #fff;
    text-decoration: none;
}


/* Projects Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

/* Advanced Project Card (Override base class slightly) */
.project-card {
    position: relative;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(5, 150, 105, 0.1);
    border-color: rgba(5, 150, 105, 0.1);
}

.proj-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    width: 100%;
}

.proj-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.proj-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top,
            rgba(15, 23, 42, 0.9),
            transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .proj-img img {
    transform: scale(1.08);
}

.project-card:hover .proj-overlay {
    opacity: 1;
}

.proj-view-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 20px) scale(0.9);
    opacity: 0;
    background: var(--green);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.project-card:hover .proj-view-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.proj-info {
    padding: 28px;
    position: relative;
}

.proj-tag {
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: inline-block;
    letter-spacing: 0.5px;
}

.proj-title {
    font-size: 22px;
    color: var(--dark);
    font-weight: 800;
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.project-card:hover .proj-title {
    color: var(--green);
}

.proj-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.proj-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--gray);
    font-weight: 600;
}

/* Floating Elements */
.floating-bg-icon {
    position: absolute;
    opacity: 0.03;
    color: var(--green);
    z-index: 0;
    animation: float 8s ease-in-out infinite alternate;
}

.icon-1 {
    top: 5%;
    right: -5%;
    width: 400px;
    height: 400px;
}

.icon-2 {
    bottom: 20%;
    left: -10%;
    width: 350px;
    height: 350px;
    animation-direction: alternate-reverse;
    animation-duration: 10s;
}

@keyframes float {
    from {
        transform: translateY(0) rotate(0);
    }

    to {
        transform: translateY(-40px) rotate(10deg);
    }
}


/* --- Project Card Slider --- */
.proj-img {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.proj-slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.proj-slider-track img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--dark);
    padding: 0;
}

.project-card:hover .slider-arrow,
.featured-card:hover .slider-arrow {
    opacity: 1;
}

.slider-arrow:hover {
    background: var(--green);
    color: white;
}

.slider-arrow.prev {
    left: 10px;
}

.slider-arrow.next {
    right: 10px;
}

/* --- Project Modal --- */
#daProjectModal.modal {
    position: fixed;
    inset: 0;
    background: rgba(2, 44, 34, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 20px;
}

#daProjectModal.modal.active {
    opacity: 1;
    visibility: visible;
}

#daProjectModal .modal-content {
    background: white;
    width: 100%;
    max-width: 1000px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s ease;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

#daProjectModal.modal.active .modal-content {
    transform: translateY(0);
}

#daProjectModal .close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-size: 24px;
    color: var(--dark);
    transition: all 0.3s ease;
}

#daProjectModal .close-modal:hover {
    background: var(--green);
    color: white;
    transform: rotate(90deg);
}

#daProjectModal .modal-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.modal-slider-wrap {
    position: relative;
    height: 100%;
    background: #f0f0f0;
    min-height: 400px;
}

.modal-slider {
    display: flex;
    height: 100%;
    overflow: hidden;
}

.modal-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.modal-details {
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.modal-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
}

.modal-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-weight: 600;
    font-size: 15px;
}

.modal-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.highlight-item {
    display: flex;
    gap: 12px;
    font-size: 15px;
    color: var(--gray);
    line-height: 1.5;
}

.highlight-item svg {
    flex-shrink: 0;
    color: var(--green);
    margin-top: 3px;
}

@media (max-width: 991px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }

    .modal-slider-wrap {
        min-height: 300px;
        height: 300px;
    }

    .modal-details {
        padding: 32px;
    }
}