:root {
    --bg-dark: #050714;
    --navy-dark: #0f2a4a;
    --blue-accent: #173b6b;
    --yellow-primary: #fff200;
    --orange-gradient: #ff8a00;
    --red-gradient: #e53e3e;
    --white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.8);
    --text-dark: #1f2937;
    --bg-light: #f3f4f6;
    --bg-blue-light: #eff6ff;
    --bg-yellow-light: #fefce8;
    --card-bg: rgba(10, 16, 32, 0.95);
    --card-bg-alt: rgba(14, 26, 54, 0.95);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 25px 45px rgba(0, 0, 0, 0.45);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Prompt', sans-serif;
    background-color: var(--bg-dark);
    color: var(--white);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: url(./assets/bg_vector.svg);
}

/* Background Overlay (Only affects Hero area visually) */
.bg-gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background:
        radial-gradient(circle at 10% 20%, rgba(23, 59, 107, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 242, 0, 0.05) 0%, transparent 40%);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    position: relative;
    z-index: 100;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
}

/* Language Toggle */
.language-toggle {
    display: flex;
    background: transparent;
    border: 2px solid var(--yellow-primary);
    border-radius: 6px;
    overflow: hidden;
}

.lang-btn {
    background: transparent;
    color: var(--white);
    border: none;
    padding: 4px 8px;
    font-family: 'Prompt', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
     background-color: var(--yellow-primary);
    color: var(--bg-dark);
}

.lang-btn.active {
    
    background-color: unset;
    color:unset;

}

/* Main Container Layout */
.main-container {
    display: flex;
    flex-direction: column;
    /* Removed min-height calc to allow content flow */
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    width: 100%;
}

/* Hero Section Specifics */
.hero-wrapper {
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Hero Content (Left Side) */
.hero-content {
    padding: 2rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 5.5rem);
    line-height: 0.9;
    font-weight: 800;
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
}

.hero-title .block {
    display: block;
}

.hero-text-group {
    margin-bottom: 2.5rem;
}

.hero-desc {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.5;
}

.hero-desc.primary {
    color: var(--white);
    font-weight: 400;
}

.hero-desc.highlight {
    color: var(--yellow-primary);
    font-weight: 600;
    margin-top: 0.25rem;
}

.special-hero-text {
    font-size: 1.1rem;
}

.special-hero-text span {
    display: inline-block;
}

.special-hero-text .special-text-emphasis {
    font-size: 1.25em;
    font-weight: 500;
}

/* CTA Buttons */
.cta-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-manual {
    background: transparent;
    border: none;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Prompt', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}

.icon-circle {
    width: 24px;
    height: 24px;
    border: 2px solid var(--yellow-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yellow-primary);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Hero Graphic (Right Side) */
.hero-graphic {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.5));
}

/* Game Button Style */
.game-btn {
    position: relative;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    outline: none;
    font-family: 'Kanit', sans-serif; /* Fallback to Kanit or Prompt */
    font-size: 24px;
    color: white;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.4);
    height: 60px;
    width: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease;
}

.game-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #ffe600 0%, #ffaa00 50%, #ff3c00 100%);
    z-index: 1;
}

.game-btn::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #5a0b0b;
    clip-path: polygon(0 0, 60% 0, 60% 25%, 100% 25%, 100% 75%, 60% 75%, 60% 100%, 0 100%);
    z-index: 0;
}

.game-btn > span {
    position: relative;
    z-index: 2;
    font-weight: 700;
}

/* =========================================
   RESPONSIVE DESIGN (Desktop vs Mobile)
   ========================================= */

@media (min-width: 1024px) {
    .hero-wrapper {
        flex-direction: row;
        align-items: center;
        padding: 0 4rem;
        /* Remove overflow hidden to allow scrolling to new sections */
    }

    .hero-content {
        flex: 1;
        padding-right: 2rem;
        align-items: flex-start;
    }

    .hero-graphic {
        flex: 1.2;
        height: 100%;
        justify-content: flex-end;
    }

    .illustration-img {
        max-height: 80vh;
        object-position: right center;
    }

    .cta-wrapper {
        flex-direction: row;
    }

    .illustration-img.reflection {
        display: none;
    }

    .special-hero-text {
       font-size: 1.4rem;
    }
}

@media (max-width: 1023px) {
    .navbar {
        padding: 1rem;
    }

    .hero-wrapper {
        display: block;
        padding-bottom: 4rem;
    }

    .hero-graphic {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        z-index: 1;
        pointer-events: none;
        overflow: hidden;
        opacity: 0.6;
        display: flex;
        flex-direction: column;
    }

    .illustration-img {
        width: 50%;
        margin-left: 50%;
    }

    .illustration-img.reflection {
        transform: scaleY(-1);
        opacity: 0.5;
    }

    .hero-content {
        position: relative;
        z-index: 2;
        padding: 1rem 1.5rem;
        margin-top: 2rem;
    }

    .hero-title, .hero-text-group {
        display: flex;
        max-width: 50%;
        flex-direction: column;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }

    .cta-wrapper {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        margin-top: 2rem;
    }

    .game-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* =========================================
   NEW CONTENT STYLES
   ========================================= */

/* Common Utilities */
.section-light,
.section-gray,
.section-gradient-blue {
    position: relative;

    color: var(--white);
    padding: 5rem 1rem;
    overflow: hidden;
}

.section-light::after,
.section-gray::after,
.section-gradient-blue::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 120%, rgba(255, 255, 255, 0.04), transparent 60%);
    mix-blend-mode: screen;
}

.section-light .content-wrapper,
.section-gray .content-wrapper,
.section-gradient-blue .content-wrapper {
    position: relative;
    z-index: 1;
}

.section-light .section-title,
.section-gray .section-title,
.section-gradient-blue .section-title {
    color: var(--white);
}

.section-light .text-gray,
.section-gray .text-gray,
.section-gradient-blue .text-gray {
    color: var(--text-muted);
}

.section-light .feature-card .text-gray,
.section-gray .feature-card .text-gray,
.section-gradient-blue .feature-card .text-gray {
    color: var(--text-muted);
}

.section-light .feature-card .text-navy,
.section-gray .feature-card .text-navy,
.section-gradient-blue .feature-card .text-navy {
    color: #e2ebff;
}

.content-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--navy-dark);
    margin-bottom: 3rem;
}

.text-navy { color: #dbeafe; }
.text-gray { color: var(--text-muted); }
.font-bold { font-weight: 700; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-6 { margin-bottom: 1.5rem; }

/* Grid Systems */
.grid-cols-1 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.grid-cols-2 { display: grid; grid-template-columns: repeat(1, 1fr); gap: 3rem; }
.grid-cols-4 { display: grid; grid-template-columns: repeat(1, 1fr); gap: 2rem; }

@media (min-width: 768px) {
    .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .lg-grid-2 { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* Feature Flip Cards */
.feature-card-container {
    perspective: 1000px;
    height: 320px;
}

.feature-card {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.feature-card-container:hover .feature-card {
    transform: rotateY(180deg);
}

.feature-card-front, .feature-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1rem;
    padding: 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--card-shadow);
    background: linear-gradient(145deg, var(--card-bg-alt), var(--card-bg));
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    color: var(--white);
}

.feature-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(145deg, rgba(23, 59, 107, 0.35), rgba(5, 7, 20, 0.95));
}

.icon-circle-lg {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.bg-navy { background-color: var(--navy-dark); color: white; }
.bg-yellow { background-color: var(--yellow-primary); color: var(--navy-dark); }

/* SVG Styling */
.icon-svg { width: 2.5rem; height: 2.5rem; }
.icon-svg-sm { width: 1.5rem; height: 1.5rem; }

/* Image Styling */
.img-responsive {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Steps / How It Works */
.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    background: linear-gradient(155deg, var(--card-bg-alt), var(--card-bg));
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}
.step-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% -20%, rgba(255, 242, 0, 0.2), transparent 60%);
    pointer-events: none;
}
.step-circle {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-size: 1.5rem;
    font-weight: 700;
}

/* List Items in sections */
.list-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}
.dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    margin-right: 0.75rem;
}

/* Benefits Grid */
.benefit-card {
    background: linear-gradient(145deg, var(--card-bg-alt), var(--card-bg));
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(8px);
}
.benefit-card:hover {
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.55);
    transform: translateY(-6px);
}

.icon-box {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--white);
}
.bg-blue-soft {
    background: rgba(50, 86, 145, 0.45);
    color: #9fd4ff;
    border: 1px solid rgba(159, 212, 255, 0.4);
    box-shadow: inset 0 0 20px rgba(15, 26, 60, 0.4);
}
.bg-yellow-soft {
    background: rgba(255, 210, 0, 0.2);
    color: #ffe680;
    border: 1px solid rgba(255, 242, 0, 0.5);
    box-shadow: inset 0 0 20px rgba(107, 79, 0, 0.45);
}
.bg-green-soft {
    background: rgba(16, 163, 74, 0.25);
    color: #b0ffcf;
    border: 1px solid rgba(176, 255, 207, 0.35);
    box-shadow: inset 0 0 20px rgba(4, 44, 23, 0.5);
}
.bg-purple-soft {
    background: rgba(147, 51, 234, 0.25);
    color: #e7c7ff;
    border: 1px solid rgba(231, 199, 255, 0.4);
    box-shadow: inset 0 0 20px rgba(42, 7, 73, 0.5);
}

/* =========================================
   FOOTER
   ========================================= */
.main-footer {
    background-color: var(--navy-dark);
    color: var(--white);
    padding: 3rem 1rem;
    margin-top: auto;
}

.footer-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 100%;
}

.footer-agency {
    font-size: 1.125rem; /* Equivalent to text-lg */
    font-weight: 600;
    margin: 0;
}

.footer-system {
    font-size: 0.875rem; /* Equivalent to text-sm */
    opacity: 0.9;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.footer-contact {
    margin-top: 0.75rem;
}

.footer-contact p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0.25rem 0;
}

.footer-copyright {
    font-size: 0.75rem; /* Equivalent to text-xs */
    opacity: 0.75;
    margin-top: 1rem;
}
