@font-face {
	font-family: 'Kanit';
	src: url('../fonts/Kanit-Regular.ttf')format('truetype');
	font-weight: normal;
	font-style: normal;
}

/* Main styles with modern design and animations */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --light-blue: #e3f2fd;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #666666;
}

body {
    font-family: 'Kanit';
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Modern header */
header {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

nav ul {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

/* Sections */
section {
    padding: 6rem 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.animate-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}

.animate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.animate-btn:hover::before {
    left: 100%;
}

/* เพิ่มเอฟเฟกต์เมื่อกดปุ่ม */
.animate-btn:active {
    transform: scale(0.95);
    box-shadow: 0 5px 10px rgba(0, 123, 255, 0.2);
}

/*About section*/
.about-section{
    background: linear-gradient(135deg, #FFF 0%, #eef2f7 100%);
}

.about-card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.about-icon {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1.5rem;
    text-align: center;
}

.about-content h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.about-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #555;
}

.about-features li i {
    color: #28a745;
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .about-card {
        margin-bottom: 1.5rem;
    }
}

/* Hero section */
#home {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    background: linear-gradient(180deg, #051630 0%, #2c3e50 100%);
    color: var(--white);
}

#home canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 2rem;
    margin: 1rem;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Buttons */
.btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.2);
}

/* Showcase section */
#showcase {
    background: linear-gradient(180deg, var(--white) 0%, #f5f9ff 100%);
    padding: 6rem 0;
}

/* Game gallery */
.game-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    padding: 2rem 1rem;
    margin-top: 2rem;
}

.game-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.game-card-image {
    position: relative;
    overflow: hidden;
}

.game-card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-card-image img {
    transform: scale(1.1);
}

.game-card-content {
    padding: 2rem;
}

.game-card-content h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.game-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.game-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.game-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

.game-features li i {
    color: var(--primary-color);
    margin-right: 0.8rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Features section */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-card i {
    font-size: 2.5rem;
    color: #115DA8;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* Luckydraw tables */
.Luckydraw-section {
    background: #ffffff;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.Luckydraw-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230066cc' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.Luckydraw-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.Luckydraw-card {
    background: #e6f3ff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 102, 204, 0.2);
}

.Luckydraw-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.2);
}

.Luckydraw-card.featured {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border: 2px solid #0066cc;
    transform: scale(1.05);
}

.Luckydraw-card.featured:hover {
    transform: translateY(-15px) scale(1.07);
    box-shadow: 0 25px 50px rgba(0, 102, 204, 0.3);
}

.Luckydraw-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.Luckydraw-card ul li {
    margin-bottom: 1.2rem;
    color: #333;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.Luckydraw-card ul li:hover {
    background: rgba(0, 102, 204, 0.1);
}

.Luckydraw-card ul li i {
    color: #0066cc;
    margin-right: 12px;
    font-size: 1.2rem;
}

/* Pricing tables */
.pricing-section {
    background: linear-gradient(135deg, #f6f9fc 0%, #eef2f7 100%);
    padding: 5rem 0;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
}

.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.price-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.price-card.featured {
    border: 2px solid #007bff;
    transform: scale(1.05);
}

.recommended-badge {
    position: absolute;
    top: 0;
    right: 2rem;
    background: linear-gradient(45deg, #0066cc, #003366);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 0 0 15px 15px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 102, 204, 0.3);
    animation: badgePulse 2s infinite;
}

.popular-badge {
    background: linear-gradient(180deg, #115DA8, #0066cc);
    border-radius: 10px;
    padding: 5px 20px;
    margin: 10px;
    color: white;
    animation: popularGlow 2s infinite;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: #007bff;
    margin-right: 1rem;
}

.contact-info-item h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
}

.contact-info-item p {
    margin: 0.5rem 0 0 0;
    color: #666;
}

.info-item {
    display: block;
    margin-bottom: 1.5rem;
}

.info-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.info-item i {
    font-size: 1.5rem;
    color: #115DA8;
    margin-right: 1rem;
    display: inline-block;
    vertical-align: middle;
}

.info-item h3 {
    margin-bottom: 0;
    margin-top: 0;
    display: inline-block;
    vertical-align: middle;
}

.social-links i{
     font-size: 40px;
     margin-right: 20px;
     color: #115DA8;
     transition: color 0.3s ease;
}

.social-links i:hover {
    color: #007bff;
}

@keyframes popularGlow {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

@keyframes badgePulse {
    0% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
    100% { transform: translateY(0); }
}

.Luckydraw-card .card-header {
    background: #EBF5FF;
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.Luckydraw-card .card-header h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.Luckydraw-card .card-header .price {
    font-size: 1.8rem;
    color: #007bff;
    font-weight: bold;
    margin-bottom: 1rem;
}

.card-header {
    background: #f8f9fa;
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.card-header h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card-header .price {
    font-size: 1.8rem;
    color: #007bff;
    font-weight: bold;
    margin-bottom: 1rem;
}

.package-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.price-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-body {
    padding: 2rem;
}

.card-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-body ul li {
    margin-bottom: 0.5rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.card-body ul li:hover {
    background: rgba(0, 123, 255, 0.05);
}

.card-body ul li i {
    color: #115DA8;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.price-card ul li i {
    color: #28a745;
    margin-right: 10px;
}

.card-footer {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-top: 1px solid rgba(0, 123, 255, 0.1);
}

.card-footer .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.card-footer .btn-primary {
    background: #115DA8;
    border-color: #115DA8;
}

.card-footer .btn-primary:hover {
    background: #0d4a8a;
    border-color: #0d4a8a;
    transform: translateY(-2px);
}

.card-footer .btn-outline-primary {
    color: #115DA8;
    border-color: #115DA8;
}

.card-footer .btn-outline-primary:hover {
    background: #115DA8;
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: #007bff;
    border: 2px solid #007bff;
    background: transparent;
    padding: 10px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
}

.btn-outline-primary:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.btn-primary {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Contact form */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    transition: color 0.3s ease;
}

.form-control {
    width: 100%;
    padding: 1rem 1rem 1rem 2.5rem;
    border: 2px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.form-control:focus + i {
    color: var(--primary-color);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Responsive design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    section {
        padding: 4rem 1rem;
    }
}

/* Services Section Styles */
.service-card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 0;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 1.5rem;
    position: relative;
    background: #fff;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.service-icon {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1.5rem;
    text-align: center;
}

.service-content h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #555;
}

.service-features li i {
    color: #28a745;
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .service-card {
        margin-bottom: 1.5rem;
    }
}