
:root {
    --primary-color: #ffc107;
    --dark-color: #212529;
    --light-bg: #f8f9fa;
    --text-muted: #6c757d;
}

body {
    font-family: 'Sarabun', sans-serif;
    color: #333;
    overflow-x: hidden;
    background-color: #fdfdfd;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .btn {
    font-family: 'Prompt', sans-serif;
}

/* --- Navigation --- */
.modern-nav {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}
.hover-underline-anim {
    position: relative;
    color: var(--dark-color) !important;
}
.hover-underline-anim::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}
.hover-underline-anim:hover::after {
    width: 100%;
}
.btn-contact-anim {
    transition: all 0.3s ease;
}
.btn-contact-anim:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.4) !important;
}

/* --- Advanced Animations --- */
.animate-pulse {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.floating-img {
    animation: floatUpDown 4s ease-in-out infinite;
}
.floating-item {
    animation: floatUpDown 3s ease-in-out infinite alternate;
}
@keyframes floatUpDown {
    0% { transform: translateY(0); }
    100% { transform: translateY(-15px); }
}

.bounce-icon {
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.hover-zoom {
    transition: transform 0.4s ease;
}
.hover-zoom:hover {
    transform: scale(1.05);
}

.slide-link {
    transition: all 0.3s;
    color: rgba(255,255,255,0.7);
}
.slide-link:hover {
    color: var(--primary-color) !important;
    padding-left: 10px;
}

/* Text slide in animations */
.text-slide-right { animation: slideRight 1s ease forwards; }
.text-slide-left { animation: slideLeft 1s ease forwards; }
@keyframes slideRight { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideLeft { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }

/* --- Components --- */
.hero-modern {
    position: relative;
    padding: 120px 0 150px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(33,37,41,0.6) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    transition: all 0.4s ease;
}
.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.img-hover-effect {
    overflow: hidden;
    border-radius: 15px;
}
.img-hover-effect img {
    transition: transform 0.6s ease;
}
.img-hover-effect:hover img {
    transform: scale(1.1);
}

.icon-box-modern {
    width: 80px; height: 80px;
    background: linear-gradient(45deg, #ffc107, #ff9800);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; color: white;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.3);
    transition: transform 0.3s;
}
.icon-box-modern:hover {
    transform: rotate(10deg) scale(1.1);
}

/* --- Cookie Consent Glassmorphism --- */
.cookie-consent-glass {
    position: fixed;
    bottom: 20px;
    left: 5%;
    right: 5%;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 100px;
    padding: 15px 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}
.cookie-consent-glass.show {
    opacity: 1;
    transform: translateY(0);
}
@media (max-width: 991px) {
    .cookie-consent-glass { border-radius: 20px; text-align: center; }
}

/* --- Footer Decor --- */
.footer-modern {
    background: #111418;
}
.footer-modern .social-icon {
    width: 40px; height: 40px;
    transition: all 0.3s;
}
.footer-modern .social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.2);
}
/* ทำให้เมนูที่ Active แสดงเส้นใต้ค้างไว้เสมอ */
.navbar-nav .nav-link.active::after {
    width: 100% !important;
}
.navbar-nav .nav-link.active {
    color: #d39e00 !important; /* ปรับสีตัวหนังสือให้เข้มขึ้นเล็กน้อยเวลา active */
}