/* --- Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.container {
    text-align: center;
    padding: 2rem;
}

/* --- Header --- */
.main-header h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.main-header p {
    font-size: 1.2rem;
    font-weight: 300;
    color: #a7a7b1;
    margin-bottom: 3rem;
}

/* --- Project Selector --- */
.project-selector {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap; /* ให้การ์ดขึ้นบรรทัดใหม่ในจอเล็ก */
}

.project-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    padding: 2rem 2.5rem;
    width: 280px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari */
}

.project-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-card .icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.project-card h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-card p {
    font-size: 0.9rem;
    font-weight: 300;
    color: #c0c0d0;
}

/* --- Responsive Design for smaller screens --- */
@media (max-width: 768px) {
    .main-header h1 {
        font-size: 2.5rem;
    }
    .project-selector {
        flex-direction: column;
        gap: 2rem;
    }
    .project-card {
        width: 100%;
    }
}