/* Project Carousel Styles */
.project-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 80px;
    /* Add padding to make space for arrows */
    overflow: visible;
    /* Changed from hidden */
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: var(--neon-cyan);
    cursor: pointer;
    transition: var(--transition);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.carousel-arrow:hover {
    background: rgba(0, 245, 255, 0.1);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-arrow:disabled:hover {
    transform: translateY(-50%) scale(1);
    box-shadow: none;
}



.carousel-arrow-left {
    left: 0;
    /* Changed from -25px */
}

.carousel-arrow-right {
    right: 0;
    /* Changed from -25px */
}

.project-container {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-slide {
    min-width: 100%;
    opacity: 0;
    display: none;
}

.project-slide.active {
    display: block;
    animation: slideIn 0.5s ease forwards;
}

.project-slide.hiding {
    animation: slideOut 0.5s ease forwards;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        display: block;
    }

    100% {
        opacity: 1;
        display: block;
    }
}

@keyframes slideOut {
    0% {
        opacity: 1;
        display: block;
    }

    99% {
        opacity: 0;
        display: block;
    }

    100% {
        opacity: 0;
        display: none;
    }
}

.project-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 0;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 600px;
}

.project-media {
    position: relative;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
}

.project-media-item {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.project-media-item iframe,
.project-media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.project-media-item iframe {
    min-height: 200px;
}

.project-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-header {
    margin-bottom: 2rem;
}

.project-type {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}

.project-title {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-subtitle {
    color: var(--neon-cyan);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.project-highlights {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 2rem;
}

.project-highlight {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.project-highlight:last-child {
    margin-bottom: 0;
}

.highlight-icon {
    color: var(--neon-teal);
    font-size: 1.2rem;
}

.highlight-text {
    color: var(--text-secondary);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tech-tag {
    background: rgba(0, 245, 255, 0.1);
    color: var(--neon-cyan);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 245, 255, 0.3);
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid;
}

.github-link {
    color: var(--neon-cyan);
    border-color: rgba(0, 245, 255, 0.3);
    background: rgba(0, 245, 255, 0.05);
}

.github-link:hover {
    background: rgba(0, 245, 255, 0.15);
    transform: translateY(-2px);
}

.demo-link {
    color: var(--neon-green);
    border-color: rgba(0, 204, 102, 0.3);
    background: rgba(0, 204, 102, 0.05);
}

.demo-link:hover {
    background: rgba(0, 204, 102, 0.15);
    transform: translateY(-2px);
}

.cad-link {
    color: var(--neon-teal);
    border-color: rgba(0, 204, 136, 0.3);
    background: rgba(0, 204, 136, 0.05);
}

.cad-link:hover {
    background: rgba(0, 204, 136, 0.15);
    transform: translateY(-2px);
}

.project-indicators {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

.indicator:hover {
    background: rgba(0, 245, 255, 0.7);
}

/* Responsive Design for Projects */
@media (max-width: 768px) {
    .project-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .project-media {
        order: 2;
    }

    .project-info {
        order: 1;
    }

    .project-title {
        font-size: 1.5rem;
    }

    .carousel-arrow-left,
    .carousel-arrow-right {
        display: none;
    }
}