* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #000;
    color: #fff;
    min-height: 100vh;
    padding: 40px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 60px;
}

header h1 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    display: flex;
    flex-direction: column;
    background: rgba(20, 20, 30, 0.7);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.project-thumbnail {
    width: 100%;
    height: 200px;
    background: #000;
    position: relative;
    overflow: hidden;
}

.thumbnail-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blackhole-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, #4a90e2 0%, #000 70%);
    position: relative;
    box-shadow: 0 0 40px rgba(74, 144, 226, 0.6);
}

.blackhole-preview::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #000;
}

.blackhole-preview::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(74, 144, 226, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.tower-defense-preview {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 8px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.tower-defense-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 24px, rgba(255,255,255,0.1) 24px, rgba(255,255,255,0.1) 25px),
        repeating-linear-gradient(90deg, transparent, transparent 24px, rgba(255,255,255,0.1) 24px, rgba(255,255,255,0.1) 25px);
    pointer-events: none;
}

.tower-defense-preview .tower {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tower-defense-preview .tower::after {
    content: '';
    width: 40%;
    height: 40%;
    border-radius: 50%;
    background: #4a90e2;
}

.tower-defense-preview .tower:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.tower-defense-preview .tower:nth-child(2) {
    grid-column: 3;
    grid-row: 2;
}

.tower-defense-preview .tower:nth-child(3) {
    grid-column: 2;
    grid-row: 3;
}

.tower-defense-preview .tower:nth-child(4) {
    grid-column: 4;
    grid-row: 4;
}

.tower-defense-preview .tower:nth-child(2)::after {
    background: #e24a4a;
}

.tower-defense-preview .tower:nth-child(3)::after {
    background: #4ae24a;
}

.tower-defense-preview .tower:nth-child(4)::after {
    background: #e2e24a;
}

.project-info {
    padding: 24px;
}

.project-info h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.project-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 36px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-thumbnail {
        height: 180px;
    }
}