html {
    scroll-behavior: smooth; /* ทำให้การเลื่อนหน้าเว็บสมูทขึ้นเมื่อกดปุ่ม */
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Prompt', sans-serif;
    /* ปรับสีพื้นหลังให้ใกล้เคียงกับภาพต้นแบบ */
    background: linear-gradient(135deg, #4622da 0%, #6b46c1 50%, #8a3fd9 100%);
    background-attachment: fixed;
    color: white;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
}

/* Isometric floating animation for hero */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Subtle Bounce for scroll down arrows */
@keyframes bounce-subtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}
.animate-bounce-subtle {
    animation: bounce-subtle 2s infinite ease-in-out;
}

/* Navbar Styles (Mini Floating Pill) */
.nav-wrapper {
    transition: padding 0.3s ease;
}
.nav-wrapper.scrolled {
    padding-top: 0.75rem;
}

.glass-nav {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.glass-nav.scrolled {
    background: rgba(59, 32, 194, 0.85);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

.nav-link {
    position: relative;
    padding-bottom: 4px;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #00f2fe;
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #2d1b7a;
}
::-webkit-scrollbar-thumb {
    background: #8a3fd9;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a855f7;
}
