* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    color: #e0e0e0;
    line-height: 1.8;
    min-height: 100vh;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #f0abfc;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
}

.hero {
    text-align: center;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3rem;
    background: linear-gradient(135deg, #c084fc 0%, #e879f9 50%, #f0abfc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    color: #c084fc;
}

/* Filter Section */
.filter-section {
    margin-bottom: 2rem;
    text-align: center;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    background: rgba(192, 132, 252, 0.1);
    border: 2px solid rgba(192, 132, 252, 0.3);
    color: #d1d5db;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.filter-btn:hover {
    background: rgba(192, 132, 252, 0.2);
    border-color: #e879f9;
    color: #f0abfc;
}

.filter-btn.active {
    background: linear-gradient(135deg, #c084fc 0%, #e879f9 100%);
    border-color: transparent;
    color: #1a1a2e;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: rgba(42, 42, 62, 0.6);
    border: 1px solid rgba(192, 132, 252, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #e879f9;
    box-shadow: 0 10px 40px rgba(192, 132, 252, 0.3);
}

.project-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.2) 0%, rgba(232, 121, 249, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border-bottom: 1px solid rgba(192, 132, 252, 0.2);
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.status-completed {
    background: rgba(34, 197, 94, 0.3);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #86efac;
}

.status-wip {
    background: rgba(251, 191, 36, 0.3);
    border: 1px solid rgba(251, 191, 36, 0.5);
    color: #fcd34d;
}

.status-concept {
    background: rgba(168, 85, 247, 0.3);
    border: 1px solid rgba(168, 85, 247, 0.5);
    color: #c084fc;
}

.status-abandoned {
    background: rgba(156, 163, 175, 0.3);
    border: 1px solid rgba(156, 163, 175, 0.5);
    color: #d1d5db;
}

.project-content {
    padding: 2rem;
}

.project-title {
    font-size: 1.5rem;
    color: #f0abfc;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.project-description {
    color: #d1d5db;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background: linear-gradient(135deg, #c084fc 0%, #e879f9 100%);
    color: #1a1a2e;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.project-link {
    color: #e879f9;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #f0abfc;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #2a2a3e;
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    border: 2px solid rgba(192, 132, 252, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #c084fc 0%, #e879f9 50%, #f0abfc 100%);
    padding: 2rem;
    border-radius: 18px 18px 0 0;
    position: relative;
}

.modal-header h2 {
    color: #1a1a2e;
    font-size: 2rem;
    margin: 0;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(26, 26, 46, 0.3);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #1a1a2e;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(26, 26, 46, 0.5);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.modal-screenshot {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(192, 132, 252, 0.2);
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section h3 {
    color: #e879f9;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.modal-section p {
    color: #d1d5db;
    line-height: 1.7;
}

.modal-section ul {
    list-style: none;
    padding: 0;
}

.modal-section li {
    color: #d1d5db;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.modal-section li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #e879f9;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 1rem;
    }

    .filter-buttons {
        gap: 0.5rem;
    }

    .modal {
        width: 95%;
    }
}