/* Projects Section Styles */

.projects-section {
    background: linear-gradient(180deg, #001D24 0%, #001D24 100%);
    position: relative;
}

.projects-bg-grid {
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(0, 205, 255, 0.03) 50px, rgba(0, 205, 255, 0.03) 51px),
        repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(0, 205, 255, 0.03) 50px, rgba(0, 205, 255, 0.03) 51px);
}

/* Projects Viewer */
.projects-viewer {
    position: relative;
}

.projects-main-image-wrapper {
    background: linear-gradient(135deg, rgba(0, 205, 255, 0.1), rgba(0, 205, 255, 0.1));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    min-height: 400px;
}

#project-main-image {
    transition: opacity 0.3s ease;
}

/* Gallery Thumbnails */
.projects-gallery-thumbs {
    position: relative;
}

.gallery-thumb {
    position: relative;
    transition: transform 0.3s ease;
}

.gallery-thumb:hover {
    transform: scale(1.05);
}

.gallery-thumb.active img {
    border-color: #00CDFF !important;
    box-shadow: 0 0 20px rgba(0, 205, 255, 0.5);
}

.gallery-thumb img {
    transition: all 0.3s ease;
}

/* Project Cards */
.projects-cards-container {
    position: relative;
}

.project-card {
    transition: transform 0.3s ease;
    background-color: #001D24;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card.active .project-card-inner {
    background: #00CDFF !important;
    border-color: #00CDFF !important;
    box-shadow: 0 0 30px rgba(0, 205, 255, 0.4);
}

.project-card-inner {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 205, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.project-card:hover .project-card-inner::before {
    left: 100%;
}

.project-card-icon img {
    transition: transform 0.3s ease;
}

.project-card:hover .project-card-icon img {
    transform: scale(1.1);
}

/* Responsive Projects */
@media (max-width: 1024px) {
    .projects-gallery-thumbs {
        display: flex;
        gap: 0.75rem;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .gallery-thumb {
        flex-shrink: 0;
        width: 120px;
    }
    
    .gallery-thumb img {
        height: 80px !important;
    }
}

@media (max-width: 768px) {
    .projects-main-image-wrapper {
        min-height: unset !important;
        aspect-ratio: 16 / 9;
        position: relative;
    }

    #project-main-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .projects-cards-container {
        margin-top: 2rem;
    }
}

.project-section-img{
    position: absolute;
    right: 0;
    top: 0;
    width: 900px;
    animation: rotateProjectCircle 80s linear infinite;
}

@keyframes rotateProjectCircle {
    from {
        transform: translateX(50%) rotate(0deg);
    }
    to {
        transform: translateX(50%) rotate(360deg);
    }
}

