:root {
    --glossy-black: #050505;
    --accent-glow: rgba(255, 255, 255, 0.15);
    --neon-border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--glossy-black);
    color: #ffffff;
    font-family: 'Inter', 'Prompt', sans-serif;
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.heading-font {
    font-family: 'Syncopate', 'Prompt', sans-serif;
    text-transform: uppercase;
    letter-spacing: 4px;
}

/* Glassmorphism Effects */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid var(--neon-border);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* Ambient Glow Background */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% -20%, #1a1a1a 0%, #050505 80%);
    z-index: -1;
}

/* Portfolio Auto-Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

@media (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

.portfolio-item {
    aspect-ratio: 1 / 1.2;
    overflow: hidden;
    border-radius: 8px;
    background: #111;
    position: relative;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: all 0.6s ease;
}

.portfolio-item:hover img {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.05);
}

.lang-active {
    color: white;
    border-bottom: 2px solid white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

/* ซ่อน Scrollbar แต่ยังเลื่อนได้ */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Snap scrolling ให้รูปหยุดตรงกลางพอดี */
.snap-x {
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.snap-center {
    scroll-snap-align: center;
}

/* เพิ่ม Gradient บังด้านข้างเพื่อให้รู้ว่าเลื่อนได้ */
.scroll-container {
    position: relative;
}

.scroll-container::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50px;
    background: linear-gradient(to right, transparent, var(--glossy-black));
    pointer-events: none;
}
