/* Project Popup Styles */

.project-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.project-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.project-popup {
    position: relative;
    width: 85%;
    max-width: 1000px;
    max-height: 80vh;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(67, 97, 238, 0.2);
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.project-popup-overlay.active .project-popup {
    transform: scale(1);
    opacity: 1;
}

.project-popup-header {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-popup-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #333;
    font-weight: 700;
}

.project-popup-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
}

.project-popup-close:hover {
    color: #4361ee;
}

.project-popup-content {
    display: flex;
    flex-direction: row;
    overflow-y: hidden;
    padding: 25px;
    max-height: calc(80vh - 75px);
}

.project-popup-media {
    flex: 1;
    padding-right: 25px;
}

.project-popup-details {
    flex: 1;
    padding-left: 25px;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.project-popup-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-popup-details h3 {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.project-popup-details p {
    font-size: 1.05rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1;
}

.project-popup-details .tech-stack {
    margin-top: 20px;
}

.project-popup-details .tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.project-popup-details .tech-tag {
    background: #e0e7ff;
    color: #4361ee;
    border-radius: 12px;
    padding: 5px 12px;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-popup-details .results {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.project-popup-details .results h4 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.project-popup-details .results ul {
    padding-left: 20px;
}

.project-popup-details .results li {
    margin-bottom: 10px;
    font-size: 1.05rem;
    color: #555;
}

/* Wave Animation */
.wave-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.wave {
    position: absolute;
    border-radius: 50%;
    background: rgba(67, 97, 238, 0.1);
    transform: scale(0);
    animation: wave-animation 2s ease-out forwards;
}

@keyframes wave-animation {
    0% {
        transform: scale(0);
        opacity: 0.8;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Media Queries */
@media (max-width: 992px) {
    .project-popup-content {
        flex-direction: column;
    }
    
    .project-popup-media {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .project-popup-details {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        padding-top: 30px;
    }
}

@media (max-width: 768px) {
    .project-popup-header h2 {
        font-size: 1.5rem;
    }
    
    .project-popup-content {
        padding: 20px;
    }
}

.project-media-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.project-source-link {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.project-source-link .btn-outline {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 1.05rem;
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    transition: all 0.3s ease;
}

.project-source-link .btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.project-source-link .btn-outline i {
    margin-right: 8px;
}
/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    display: none;
}

.carousel-slide.active {
    display: block;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.carousel-nav:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.carousel-nav.prev {
    left: 10px;
}

.carousel-nav.next {
    right: 10px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}