/* Projects App Styles */
.project-item {
    /* Glassmorphism card */
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.project-item h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.project-item p {
    font-size: 13px;
    margin-bottom: 10px;
    color: #666;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tech-stack span {
    /* Glass pill */
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #000;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* Projects Folder Styles */
.folder-app .app-icon {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 15px;
    overflow: hidden;
}

.folder-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1px;
    padding: 2px;
    width: 100%;
    height: 100%;
}

.mini-app {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    aspect-ratio: 1;
    font-size: 6px;
    color: white;
}

/* Projects Folder View */
.projects-folder {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 75%;
    margin: 205px auto;
    padding: 1px;
    border-radius: 20px;
}

.folder-title {
    display: none;
}

.folder-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 15px;
    padding: 5px;
}

.folder-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}

.folder-app:active {
    transform: scale(0.95);
}

.folder-app-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.folder-app-name {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Animation for folder opening */
.app-screen[id="projects-app"] {
    animation: folderOpen 0.2s ease-out;
    background-color: rgba(0, 0, 0, 0.5);
}

@keyframes folderOpen {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 480px) {
    .projects-folder {
        width: 200px;
        padding: 12px;
    }

    .folder-grid-container {
        gap: 12px;
    }

    .folder-app-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .folder-app-name {
        font-size: 8px;
        max-width: 55px;
    }
} 

.project-image-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 20px 0;
}

.project-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 2;
}

.carousel-arrow:hover {
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.carousel-arrow i {
    color: #333;
    font-size: 16px;
}

.carousel-arrow-left {
    left: 10px;
}

.carousel-arrow-right {
    right: 10px;
}

/* Animation for image transitions */
.project-image {
    transition: opacity 0.3s ease;
}

.project-image.fade {
    opacity: 0;
}

/* Image Popup Styles */
.image-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: pointer;
}

.image-popup-container {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: 20px;
    animation: popupFadeIn 0.3s ease-out;
}

.image-popup-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.image-popup-close {
    position: absolute;
    top: -40px;
    right: 0;
    background-color: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.2s ease;
}

.image-popup-close:hover {
    transform: scale(1.1);
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Project Media Container */
.project-media-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    margin-bottom: 20px; /* Add spacing below media content */
}

.project-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-video {
    width: 100%;
    max-height: 400px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #000;
    margin-bottom: 10px; /* Extra spacing for video elements */
}

/* Video controls styling */
.project-video::-webkit-media-controls {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 0 0 12px 12px;
}

.project-video::-webkit-media-controls-panel {
    padding: 0 10px;
}

.project-video::-webkit-media-controls-play-button {
    color: white;
}

/* Animation for media transitions */
.project-media-container {
    transition: opacity 0.3s ease;
}

.project-media-container.fade {
    opacity: 0;
} 