/* Thai-inspired color scheme - different from previous projects */
:root {
    --primary: #F24458;     /* Thai red */
    --secondary: #FBAC3A;   /* Thai gold/amber */
    --accent: #46C1B2;      /* Turquoise */
    --dark: #2E2E43;        /* Dark blue-purple */
    --light: #F7F7FA;       /* Off-white */
    --text: #333333;        /* Dark text */
    --text-light: #666666;  /* Light text */
    --gradient-primary: linear-gradient(135deg, #F24458 0%, #FB7B74 100%);
    --gradient-secondary: linear-gradient(135deg, #FBAC3A 0%, #FFD68A 100%);
    --gradient-accent: linear-gradient(135deg, #46C1B2 0%, #7DEFE2 100%);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 12px;
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans Thai', 'Kanit', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--light);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Kanit', 'Noto Sans Thai', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark);
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
}

h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Thai decorative elements */
.thai-decoration {
    position: absolute;
    width: 80px;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80' fill='none'%3E%3Cpath d='M20 40C30 30 50 50 60 40' stroke='%23FBAC3A' stroke-width='2' opacity='0.5'/%3E%3Cpath d='M40 20C30 30 50 50 40 60' stroke='%23FBAC3A' stroke-width='2' opacity='0.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.4;
    z-index: 0;
}

.top-left {
    top: -40px;
    left: -40px;
    transform: rotate(-45deg);
}

.top-right {
    top: -40px;
    right: -40px;
    transform: rotate(45deg);
}

.bottom-left {
    bottom: -40px;
    left: -40px;
    transform: rotate(-135deg);
}

.bottom-right {
    bottom: -40px;
    right: -40px;
    transform: rotate(135deg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    transition: all .3s;
    z-index: -1;
}

.btn-primary {
    color: white;
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(242, 68, 88, 0.4);
}

.btn-primary:hover {
    color: white;
    box-shadow: 0 6px 20px rgba(242, 68, 88, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    color: var(--dark);
    background: var(--gradient-secondary);
    box-shadow: 0 4px 15px rgba(251, 172, 58, 0.4);
}

.btn-secondary:hover {
    color: var(--dark);
    box-shadow: 0 6px 20px rgba(251, 172, 58, 0.6);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.2rem;
}

/* Header */
header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container img {
    height: 60px;
    width: auto;
}

nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu li a {
    color: var(--dark);
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width 0.3s;
}

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

.nav-menu li a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background-color: var(--light);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: var(--gradient-accent);
    opacity: 0.1;
    border-radius: 50%;
    transform: translate(200px, -200px);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: var(--gradient-secondary);
    opacity: 0.1;
    border-radius: 50%;
    transform: translate(-150px, 150px);
    z-index: 0;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 span {
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.hero-content h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--secondary);
    opacity: 0.3;
    z-index: -1;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    max-width: 500px;
    position: relative;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

.feature-card {
    padding: 30px;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: -1;
}

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

.feature-icon {
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
}

/* Steps Section */
.steps {
    padding: 100px 0;
    background-color: var(--light);
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(251, 172, 58, 0), rgba(251, 172, 58, 0.5) 50%, rgba(251, 172, 58, 0));
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    position: relative;
}

.step-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 250px;
    background: #fff;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 60px;
    height: 60px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(251, 172, 58, 0.3);
}

.step-content h3 {
    margin-bottom: 10px;
}

.step-arrow {
    display: flex;
    color: var(--secondary);
    transform: translateY(-10px);
}

/* AI Tech Section */
.ai-tech {
    padding: 100px 0;
    background-color: var(--dark);
    color: white;
}

.ai-tech .section-header h2,
.ai-tech .section-header p {
    color: white;
}

.ai-tech .section-header h2::after {
    background: var(--gradient-secondary);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.tech-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.tech-card h3 {
    color: var(--secondary);
    margin-bottom: 15px;
}

.tech-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background-color: #fff;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: var(--light);
    cursor: pointer;
    transition: var(--transition);
}

.accordion-header h3 {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.accordion-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background-color: var(--primary);
    transition: var(--transition);
}

.accordion-icon::before {
    top: 9px;
    left: 0;
    width: 20px;
    height: 2px;
}

.accordion-icon::after {
    top: 0;
    left: 9px;
    width: 2px;
    height: 20px;
}

.accordion-item.active .accordion-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    background: #fff;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 300px;
    padding: 25px;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: var(--gradient-primary);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta::before,
.cta::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.cta::before {
    top: -100px;
    left: -100px;
}

.cta::after {
    bottom: -100px;
    right: -100px;
}

.cta h2,
.cta p {
    color: white;
    position: relative;
    z-index: 2;
}

.cta p {
    margin-bottom: 30px;
}

.cta .btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.cta .btn-primary:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* Footer */
footer {
    padding: 80px 0 30px;
    background-color: var(--dark);
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 60px;
    margin-bottom: 50px;
}

.footer-logo img {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.footer-links h3,
.footer-keywords h3 {
    color: var(--secondary);
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--secondary);
}

.footer-keywords p {
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .hero .container {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .hero-content {
        margin-top: 50px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .steps-container {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        margin: 15px 0;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .mobile-toggle {
        display: block;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: 0.5s;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    .feature-grid,
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        margin: 0;
    }
}
