@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== BASE ===== */
:root {
    --accent: #3B82F6;
    --accent-hover: #2563EB;
    --neon: #60A5FA;
}

* { box-sizing: border-box; }

body {
    font-family: 'Sarabun', 'Inter', sans-serif;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-hover); }

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== NAVBAR ===== */
.nav-scrolled {
    background-color: rgba(30, 64, 175, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.dark .nav-scrolled {
    background-color: rgba(6, 9, 15, 0.92) !important;
}

/* Dropdown smooth open */
.nav-dropdown {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.group:hover .nav-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ===== SECTION BADGE ===== */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(59,130,246,0.12);
    border: 1px solid rgba(59,130,246,0.3);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 4px 14px;
    border-radius: 99px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* ===== ANIMATED GRADIENT BORDER on CARDS ===== */
.card-glow {
    position: relative;
    transition: box-shadow 0.3s ease;
}
.card-glow:hover {
    box-shadow: 0 0 0 1px rgba(59,130,246,0.4), 0 8px 32px rgba(59,130,246,0.12);
}

/* ===== STAT CARDS ===== */
.stat-card {
    background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(96,165,250,0.04) 100%);
    border: 1px solid rgba(59,130,246,0.15);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 20px 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(59,130,246,0.18);
}

/* ===== MARQUEE ===== */
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-marquee {
    animation: marquee 50s linear infinite;
    will-change: transform;
}
.animate-marquee:hover { animation-play-state: paused; }

/* ===== HERO OVERLAY GRADIENT ===== */
.hero-overlay {
    background: linear-gradient(to right, rgba(0,0,0,0.35) 0%, transparent 60%);
    pointer-events: none;
}

/* ===== GLOWING PULSE DOT ===== */
@keyframes pulse-ring {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}
.pulse-dot {
    position: relative;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
}
.pulse-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse-ring 1.4s ease-out infinite;
}

/* ===== FOOTER ===== */
.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.75);
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-link:hover {
    color: #fff;
    padding-left: 4px;
}
.dark .footer-link { color: rgba(156,163,175,1); }
.dark .footer-link:hover { color: var(--accent); }

/* ===== NO SCROLLBAR ===== */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ===== SWIPER CUSTOMIZATION ===== */
.swiper-pagination-bullet {
    background: rgba(255,255,255,0.5) !important;
    opacity: 1 !important;
    width: 8px !important; height: 8px !important;
    transition: all 0.3s ease !important;
}
.swiper-pagination-bullet-active {
    background: var(--accent) !important;
    width: 24px !important;
    border-radius: 4px !important;
}

/* ===== LINE CLAMP ===== */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== DIVIDER GLOW ===== */
.divider-glow {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(59,130,246,0.5), transparent);
}

/* ===== BACK TO TOP & THEME TOGGLE ===== */
#back-to-top, #theme-toggle {
    backdrop-filter: blur(8px);
}
