* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kanit', sans-serif;
}

body {
    background-color: #f5f5f5;
    padding: 20px;
}

.header {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(135deg, #5E5C7F, #80669d);
    color: white;
    border-radius: 10px;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.2em;
    opacity: 0.9;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #333;
}

.project-info p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    margin: 2px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

/* Frontend Technologies */
.tag-html { background: #FF8247; }
.tag-css { background: #63B8FF; }
.tag-javascript { background: #FFFF66; color: black; }
.tag-react { background: #61DAFB; color: black; }
.tag-vue { background: #4FC08D; }
.tag-angular { background: #DD0031; }
.tag-next { background: #000000; }
.tag-material-ui { background: #0081CB; }
.tag-tailwind { background: #38B2AC; }

/* Backend Technologies */
.tag-node { background: #339933; }
.tag-python { background: #3776AB; }
.tag-django { background: #092E20; }
.tag-firebase { background: #FFCA28; color: black; }

/* Databases */
.tag-mongodb { background: #47A248; }
.tag-mysql { background: #4479A1; }
.tag-postgresql { background: #336791; }

/* Cloud & Services */
.tag-aws { background: #232F3E; }
.tag-google { background: #4285F4; }
.tag-socket { background: #010101; }

/* Mobile */
.tag-react-native { background: #61DAFB; color: black; }

/* Other */
.tag-redux { background: #764ABC; }
.tag-d3 { background: #F9A03C; color: black; }
.tag-api { background: #44CC11; }

.view-button {
    display: inline-block;
    padding: 8px 20px;
    background: #5E5C7F;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    transition: background 0.3s ease;
}

.view-button:hover {
    background: #80669d;
}

.footer {
    text-align: center;
    padding: 20px 0;
    background: #564866;
    color: white;
    border-radius: 10px;
    margin-top: 30px;
}

.footer p {
    font-size: 1.0em;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .header {
        padding: 30px 20px;
    }

    .header h1 {
        font-size: 2em;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}