/* style.css */

/* Import Google Font: IBM Plex Sans Thai */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@300;400;500;600;700&display=swap');

:root {
    --primary-gold: #F59E0B; /* สีส้มทอง */
    --secondary-saffron: #D97706; /* สีจีวรเข้ม */
}

body {
    font-family: 'IBM Plex Sans Thai', sans-serif;
    background-color: #FFFBEB; /* สีเหลืองอ่อนพาสเทล */
    color: #1F2937;
    overflow-x: hidden;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #FEF3C7;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #F59E0B, #D97706);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #B45309;
}

/* --- Smooth Scroll --- */
html {
    scroll-behavior: smooth;
}

/* --- Custom Animations --- */

/* Pulse Glow Effect สำหรับหัวข้อ */
@keyframes glow-pulse {
    0% { text-shadow: 0 0 5px rgba(245, 158, 11, 0.2); }
    50% { text-shadow: 0 0 20px rgba(245, 158, 11, 0.6); }
    100% { text-shadow: 0 0 5px rgba(245, 158, 11, 0.2); }
}

.text-glow {
    animation: glow-pulse 3s infinite;
}

/* Fade-in Animation เมื่อ Scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Click Animation Effect */
.click-effect:active {
    transform: scale(0.95);
    transition: transform 0.1s;
}

/* Text Selection Color */
::selection {
    background-color: #FCD34D;
    color: #78350F;
}