/* ============================================
   Project Modal & Section Styles
   ============================================ */

/* Projects Section - Animated Background */
.section-projects-custom {
    position: relative;
    background: #0a0a0a;
    overflow: hidden;
    padding: 100px 0;
}

.section-projects-custom .bg-image-list {
    display: none;
}

/* Animated Floating Circles - More Visible */
.floating-lights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.floating-light {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.7;
    animation: floatLight 20s ease-in-out infinite;
}

.floating-light:nth-child(1) {
    width: 500px;
    height: 500px;
    background: rgba(29, 185, 185, 0.5);
    top: 5%;
    left: -10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.floating-light:nth-child(2) {
    width: 400px;
    height: 400px;
    background: rgba(29, 185, 185, 0.45);
    top: 50%;
    right: -8%;
    animation-delay: -5s;
    animation-duration: 20s;
}

.floating-light:nth-child(3) {
    width: 350px;
    height: 350px;
    background: rgba(29, 185, 185, 0.4);
    top: 25%;
    left: 45%;
    animation-delay: -10s;
    animation-duration: 22s;
}

.floating-light:nth-child(4) {
    width: 450px;
    height: 450px;
    background: rgba(29, 185, 185, 0.35);
    bottom: 5%;
    left: 15%;
    animation-delay: -7s;
    animation-duration: 28s;
}

.floating-light:nth-child(5) {
    width: 300px;
    height: 300px;
    background: rgba(29, 185, 185, 0.55);
    top: 0%;
    right: 25%;
    animation-delay: -12s;
    animation-duration: 18s;
}

@keyframes floatLight {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(60px, 40px) scale(1.15);
    }
    50% {
        transform: translate(-40px, 80px) scale(0.85);
    }
    75% {
        transform: translate(50px, -30px) scale(1.1);
    }
}

/* Projects Section Content */
.section-projects-custom .container {
    position: relative;
    z-index: 1;
}

/* Rounded Images */
.section-projects-custom .wg-service-2 .main-image .image {
    border-radius: 20px;
    overflow: hidden;
}

.section-projects-custom .wg-service-2 .main-image .image img {
    border-radius: 20px;
}

.section-projects-custom .wg-service-2 .image-2 {
    border-radius: 16px;
    overflow: hidden;
}

.section-projects-custom .wg-service-2 .image-2 img {
    border-radius: 16px;
}

/* Hide the arrow button on images */
.section-projects-custom .wg-service-2 .main-image .action {
    display: none !important;
}

/* ============================================
   Project Modal Styles
   ============================================ */

.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.project-modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.project-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 25px;
}

.project-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 30px;
    overflow-y: auto;
}

.project-modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 2px;
    z-index: 10;
    transition: color 0.3s ease;
}

.project-modal-close:hover {
    color: var(--primary);
}

.project-modal-close i {
    font-size: 20px;
}

.project-modal-inner {
    display: flex;
    gap: 60px;
    padding-top: 60px;
    height: 100%;
    align-items: center;
}

.project-modal-left {
    flex: 1;
    max-width: 55%;
}

.project-modal-right {
    flex: 1;
    max-width: 45%;
    padding-right: 40px;
}

/* ============================================
   Gallery Styles
   ============================================ */

.project-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-gallery-main-wrapper {
    position: relative;
}

.project-gallery-main {
    width: 100%;
    height: 500px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.project-gallery-thumbs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: stretch;
}

.project-gallery-thumbs .thumb {
    flex: 1;
    min-width: 80px;
    max-width: 120px;
    height: 80px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 2px solid transparent;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-gallery-thumbs .thumb:hover {
    opacity: 0.8;
    transform: translateY(-3px);
}

.project-gallery-thumbs .thumb.active {
    opacity: 1;
    border-color: var(--primary);
}

.project-gallery-thumbs .thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Gallery Controls Wrapper */
.project-gallery-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

/* Gallery Navigation Buttons */
.project-gallery-controls .nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-gallery-controls .nav-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.project-gallery-controls .nav-btn i {
    font-size: 18px;
}

/* Pagination Dots */
.project-gallery-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

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

.project-gallery-dots .dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.project-gallery-dots .dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 10px;
}

/* Image Description Text */
.project-image-desc {
    margin-top: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 3px solid var(--primary);
}

.project-image-desc p {
    color: var(--white-64);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   Modal Content Styles
   ============================================ */

.project-modal-title {
    font-size: 42px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 30px;
    letter-spacing: -1px;
    transition: opacity 0.2s ease;
}

.project-modal-desc {
    color: var(--white-64);
    line-height: 1.8;
    transition: opacity 0.2s ease;
}

.project-modal-desc p {
    margin-bottom: 20px;
    font-size: 16px;
}

.project-modal-desc h5 {
    color: var(--white);
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.project-modal-desc .tf-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-modal-desc .tf-list li {
    padding: 10px 0;
    color: var(--white-64);
    font-size: 15px;
    letter-spacing: 0.5px;
}

.project-modal-desc .tf-list li .text-primary {
    color: var(--primary);
    margin-right: 10px;
}

/* Project Link Button */
.project-link {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-link .tf-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.project-link .tf-btn:hover {
    background: var(--white);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(29, 185, 185, 0.3);
}

.project-link .tf-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.project-link .tf-btn:hover i {
    transform: translate(3px, -3px);
}

/* ============================================
   Responsive Styles
   ============================================ */

@media (max-width: 991px) {
    .project-modal-inner {
        flex-direction: column;
        gap: 40px;
        padding-top: 80px;
        align-items: flex-start;
    }

    .project-modal-left,
    .project-modal-right {
        max-width: 100%;
        width: 100%;
    }

    .project-modal-right {
        padding-right: 0;
    }

    .project-modal-title {
        font-size: 32px;
    }

    .floating-light {
        filter: blur(60px);
    }
}

@media (max-width: 767px) {
    .project-gallery-main {
        height: 400px;
    }

    .project-gallery-thumbs .thumb {
        min-width: 70px;
        max-width: 100px;
        height: 70px;
    }
}

@media (max-width: 575px) {
    .project-modal-content {
        padding: 20px;
    }

    .project-modal-close {
        top: 20px;
        right: 20px;
    }

    .project-gallery-main {
        height: 300px;
    }

    .project-gallery-thumbs {
        gap: 8px;
    }

    .project-gallery-thumbs .thumb {
        min-width: 60px;
        max-width: 80px;
        height: 60px;
    }

    .project-modal-title {
        font-size: 26px;
    }

    .project-modal-desc p {
        font-size: 14px;
    }

    .floating-light {
        filter: blur(40px);
    }

    .floating-light:nth-child(1),
    .floating-light:nth-child(4) {
        width: 200px;
        height: 200px;
    }

    .floating-light:nth-child(2),
    .floating-light:nth-child(3),
    .floating-light:nth-child(5) {
        width: 150px;
        height: 150px;
    }
}

/* Body overflow hidden when modal is open */
body.modal-open {
    overflow: hidden;
}
