:root {
    --primary: #00d2ff;
    --accent: #00f2fe;
    --dark-bg: #0a0b10;
    --card-bg: rgba(255, 255, 255, 0.03);
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kanit', sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* เอฟเฟกต์แสงฟุ้งด้านหลัง */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #1a1b25 0%, #0a0b10 100%);
    z-index: -1;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 80px 20px;
}

/* Header Design */
header {
    text-align: center;
    margin-bottom: 80px;
    animation: fadeInDown 1s ease;
}

.badge {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(0, 210, 255, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 210, 255, 0.3);
}

header h1 {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.highlight {
    background: linear-gradient(to right, #00d2ff, #9face6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 200;
}

.header-line {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 30px auto;
    border-radius: 10px;
}

/* Grid & Cards */
.web-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.web-card {
    position: relative;
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.web-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.card-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.web-card:hover .card-image {
    transform: scale(1.1);
}

.card-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.card-content {
    padding: 30px;
    background: linear-gradient(to top, rgba(10, 11, 16, 1), rgba(10, 11, 16, 0.8));
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.card-content p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.main-footer {
    text-align: center;
    margin-top: 100px;
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    header h1 { font-size: 2.5rem; }
    .web-grid { grid-template-columns: 1fr; }
}