/* Projects Page Styles */

.projects-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.projects-page .hero {
    text-align: center;
    margin-bottom: 3rem;
}

.projects-page .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.projects-page .hero-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.project-card {
    display: flex;
    gap: 2rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    align-items: flex-start;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #007acc;
}

.project-image {
    flex: 0 0 300px;
    border-radius: 8px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.project-image a:hover img {
    transform: scale(1.05);
}

.project-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-image a:hover .project-placeholder {
    transform: scale(1.05);
}

.space-game-preview {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 20%, white 1px, transparent 1px),
        radial-gradient(circle at 60% 30%, white 1px, transparent 1px),
        radial-gradient(circle at 80% 60%, white 1px, transparent 1px),
        radial-gradient(circle at 30% 80%, white 1px, transparent 1px),
        radial-gradient(circle at 90% 40%, white 1px, transparent 1px);
    animation: twinkle 3s ease-in-out infinite alternate;
}

.ship {
    font-size: 2rem;
    position: absolute;
    bottom: 20%;
    left: 20%;
    animation: float 2s ease-in-out infinite;
}

.enemy {
    font-size: 1.5rem;
    position: absolute;
    top: 20%;
    right: 25%;
    animation: float 2.5s ease-in-out infinite reverse;
}

@keyframes twinkle {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-content h2 {
    margin: 0;
    font-size: 1.75rem;
    color: #333;
}

.project-content h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-content h2 a:hover {
    color: #007acc;
}

.project-description {
    margin: 0;
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
}

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

.tech-tag {
    background: #007acc;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.project-link {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.live-link {
    background: #007acc;
    color: white;
}

.live-link:hover {
    background: #0056b3;
    transform: translateX(2px);
}

.code-link {
    background: transparent;
    color: #007acc;
    border: 2px solid #007acc;
}

.code-link:hover {
    background: #007acc;
    color: white;
}

/* Responsive design */
@media (max-width: 768px) {
    .projects-page {
        padding: 1rem;
    }

    .projects-page .hero h1 {
        font-size: 2rem;
    }

    .projects-page .hero-description {
        font-size: 1rem;
    }

    .project-card {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .project-image {
        flex: none;
        width: 100%;
    }

    .project-content h2 {
        font-size: 1.5rem;
    }

    .project-description {
        font-size: 1rem;
    }

    .project-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    .project-link {
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .tech-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
}