/* =====================================================================
   Winghorizon — Main Stylesheet (base + variables + layout)
   Theme: Modern Gaming — Red / Black / White
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Mitr:wght@300;400;500;600;700&family=Cabin:wght@400;600;700&family=Orbitron:wght@500;700;900&family=Russo+One&display=swap');

/* ---------- CSS Variables ---------- */
:root {
    --bg-0:      #0a0a0a;
    --bg-1:      #141414;
    --bg-2:      #1d1d1d;
    --bg-3:      #2b2b2b;
    --bg-4:      #3a3a3a;
    --red-1:     #ff1a1a;
    --red-2:     #db0000;
    --red-3:     #8b0000;
    --red-glow:  rgba(255, 26, 26, 0.55);
    --white:     #ffffff;
    --gray-1:    #e0e0e0;
    --gray-2:    #b0b0b0;
    --gray-3:    #707070;
    --accent:    #ffd166;   /* gold accent นิดๆ */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.5);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.6);
    --shadow-neon: 0 0 14px var(--red-glow);
    --radius:    12px;
    --radius-sm: 8px;
    --transition: 0.25s cubic-bezier(.4,0,.2,1);

    --font-display: 'Orbitron', 'Russo One', sans-serif;
    --font-thai:    'Mitr', sans-serif;
    --font-body:    'Cabin', 'Inter', system-ui, sans-serif;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    margin: 0;
    background: var(--bg-1);
    color: var(--white);
    font-family: var(--font-body), var(--font-thai);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* gaming subtle bg pattern */
    background-image:
        radial-gradient(circle at 20% 0%,  rgba(219, 0, 0, 0.10) 0%, transparent 40%),
        radial-gradient(circle at 90% 100%, rgba(255, 26, 26, 0.08) 0%, transparent 40%),
        linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
    background-attachment: fixed;
}

main, section { display: block; }
img { max-width: 100%; height: auto; }
p  { margin: 0 0 .8rem 0; }
a  { color: var(--white); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-1); }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track  { background: var(--bg-0); }
::-webkit-scrollbar-thumb  { background: var(--red-3); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--red-1); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, .display {
    font-family: var(--font-display);
    color: var(--white);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin: 0 0 .5rem 0;
}

.thai, .mitr { font-family: var(--font-thai); }

.text-red    { color: var(--red-1) !important; }
.text-accent { color: var(--accent) !important; }
.text-muted  { color: var(--gray-2) !important; }
.text-glow   { text-shadow: 0 0 12px var(--red-glow); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

main { flex: 1; }

section {
    padding: 5rem 0;
}
section:first-of-type { padding-top: 2.5rem; }
@media (max-width: 768px) {
    section { padding: 3rem 0; }
}

/* ---------- Section Title ---------- */
.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}
.section-title .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-display);
    font-size: .75rem;
    letter-spacing: .35em;
    color: var(--red-1);
    text-transform: uppercase;
    margin-bottom: .8rem;
}
.section-title .eyebrow::before,
.section-title .eyebrow::after {
    content: ''; width: 32px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--red-1));
}
.section-title .eyebrow::after {
    background: linear-gradient(90deg, var(--red-1), transparent);
}
.section-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    background: linear-gradient(180deg, var(--white) 35%, var(--red-1) 130%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: .8rem;
}
.section-title p { color: var(--gray-2); max-width: 720px; margin: 0 auto; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}.mt-5{margin-top:3rem}
.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}.mb-5{margin-bottom:3rem}
.py-3{padding:1.5rem 0}.py-4{padding:2rem 0}.py-5{padding:3rem 0}

.d-flex{display:flex}
.flex-center{display:flex;align-items:center;justify-content:center}
.gap-1{gap:.5rem}.gap-2{gap:1rem}.gap-3{gap:1.5rem}.gap-4{gap:2rem}
.flex-wrap{flex-wrap:wrap}

/* Grid */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 992px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
