.projects-container {
    min-height: 100vh;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(104, 104, 104, 0.2);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: rgb(104, 104, 104);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.nav-link:hover {
    color: rgb(86, 124, 236);
    transform: scale(0.96);
}

.projects-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: inherit;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.projects-title:hover {
    color: rgb(104, 104, 104);
    transform: scale(0.98);
}

.projects-title:active {
    transform: scale(0.94);
    transition: transform 0.1s ease;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(104, 104, 104, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.project-item:nth-child(1) { animation-delay: 0.3s; }
.project-item:nth-child(2) { animation-delay: 0.4s; }
.project-item:nth-child(3) { animation-delay: 0.5s; }
.project-item:nth-child(4) { animation-delay: 0.6s; }
.project-item:nth-child(5) { animation-delay: 0.7s; }

.project-item:hover {
    border-color: rgb(86, 124, 236);
    transform: scale(0.98);
    box-shadow: 0 4px 15px rgba(86, 124, 236, 0.1);
}

.project-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.project-item:hover .project-icon {
    transform: scale(0.95);
}

.icon-placeholder {
    width: 40px;
    height: 40px;
    border: 2px dashed rgb(104, 104, 104);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: rgb(104, 104, 104);
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
}

.project-item:hover .icon-placeholder {
    border-color: rgb(86, 124, 236);
    color: rgb(86, 124, 236);
    transform: scale(0.95);
}

/* Light theme adjustments for icons */
body.light .icon-placeholder {
    border-color: rgb(80, 80, 80);
    color: rgb(80, 80, 80);
}

body.light .project-item:hover .icon-placeholder {
    border-color: rgb(86, 124, 236);
    color: rgb(86, 124, 236);
}

/* Dark theme adjustments for icons */
body.dark .icon-placeholder {
    border-color: rgb(175, 175, 175);
    color: rgb(175, 175, 175);
}

body.dark .project-item:hover .icon-placeholder {
    border-color: rgb(86, 124, 236);
    color: rgb(86, 124, 236);
}

.project-content {
    flex: 1;
    transition: transform 0.3s ease;
}

.project-item:hover .project-content {
    transform: scale(0.98);
}

.project-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.project-item:hover .project-name {
    color: rgb(104, 104, 104);
}

.external-link {
    font-size: 0.9rem;
    opacity: 0.6;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.project-item:hover .external-link {
    opacity: 1;
    color: rgb(86, 124, 236);
}

.project-description {
    margin: 0;
    color: rgb(104, 104, 104);
    line-height: 1.5;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.project-item:hover .project-description {
    color: rgb(86, 124, 236);
}

body.light .project-description {
    color: rgb(80, 80, 80);
}

body.light .project-item {
    border-color: rgba(80, 80, 80, 0.2);
    background-color: rgba(255, 255, 255, 0.5);
}

body.light .project-item:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

body.light .project-item:hover .project-description {
    color: rgb(60, 60, 60);
}

body.dark .project-item {
    border-color: rgba(175, 175, 175, 0.2);
    background-color: rgba(255, 255, 255, 0.02);
}

body.dark .project-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .projects-container {
        padding: 1.5rem;
    }
    
    .top-nav {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .projects-title {
        font-size: 2rem;
    }
    
    .project-item {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .project-icon {
        width: 40px;
        height: 40px;
    }
    
    .icon-placeholder {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .project-name {
        font-size: 1.1rem;
    }
    
    .project-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .projects-container {
        padding: 1rem;
    }
    
    .projects-title {
        font-size: 1.75rem;
    }
    
    .project-item {
        padding: 0.75rem;
    }
    
    .nav-links {
        font-size: 0.8rem;
    }
}