/* Base Styles */
:root {
    --primary: #00a65a;
    --primary-dark: #007e33;
    --primary-light: #66d7a8;
    --secondary: #333;
    --accent: #ffb300;
    --bg-color: #fff;
    --bg-alt: #f5f5f5;
    --text-color: #333;
    --text-light: #777;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-light: 0 3px 10px rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

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

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

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
}

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

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

/* Thai-inspired Background Pattern */
.leaf-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--primary-light) 2px, transparent 2px);
    background-size: 30px 30px;
    opacity: 0.05;
    z-index: -1;
}

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

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-container h1 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0;
}

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

.main-nav li {
    list-style: none;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    margin: 6px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-text h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.thai-art {
    width: 100%;
    max-width: 400px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 166, 90, 0.3);
}

.btn.primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 166, 90, 0.4);
}

.btn-wrapper {
    margin-top: 30px;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.thai-divider {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    text-align: center;
    border-bottom: 3px solid var(--primary);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.feature-card p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Curve Separator */
.curve-separator {
    display: block;
    width: 100%;
    height: 120px;
    margin: -1px 0;
}

.curve-separator.flip {
    transform: rotate(180deg);
    margin-top: -1px;
    margin-bottom: -1px;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background-color: var(--bg-alt);
    position: relative;
}

.process-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.process-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.process-step:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow);
}

.step-circle {
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-right: 25px;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.process-connector {
    height: 30px;
    margin-left: 30px;
    width: 2px;
    background-color: var(--primary);
    margin-bottom: 10px;
}

.action-card {
    margin-top: 60px;
    padding: 50px 30px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.action-card h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: white;
}

.action-card .btn {
    background-color: white;
    color: var(--primary);
}

.action-card .btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background-color: var(--bg-color);
}

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

.faq-item {
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.faq-question {
    padding: 20px;
    background-color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question h3 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-color);
    transition: var(--transition);
}

.faq-toggle {
    position: relative;
    width: 20px;
    height: 20px;
}

.faq-toggle span {
    position: absolute;
    background-color: var(--primary);
    transition: var(--transition);
}

.faq-toggle span:first-child {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.faq-toggle span:last-child {
    left: 50%;
    top: 0;
    height: 100%;
    width: 2px;
    transform: translateX(-50%);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    background-color: white;
    transition: all 0.3s ease;
}

.faq-item.active .faq-question {
    background-color: var(--primary);
}

.faq-item.active .faq-question h3 {
    color: white;
}

.faq-item.active .faq-toggle span {
    background-color: white;
}

.faq-item.active .faq-toggle span:last-child {
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 20px;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 300px;
}

.footer-brand-text h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-brand-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
}

.footer-links ul {
    list-style: none;
}

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

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

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text h2 {
        font-size: 2.8rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-brand {
        margin: 0 auto;
        justify-content: center;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .hero-graphic {
        order: -1;
    }
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: white;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
        padding-top: 80px;
    }

    nav.active {
        right: 0;
    }

    .main-nav {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .feature-cards {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px;
        align-items: center;
        text-align: center;
    }

    .footer-links h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media screen and (max-width: 576px) {
    .hero-text h2 {
        font-size: 2.3rem;
    }

    .hero {
        padding-top: 120px;
    }

    .btn {
        padding: 12px 25px;
    }

    .feature-card {
        padding: 20px;
    }

    .process-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .step-circle {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .process-connector {
        display: none;
    }

    .action-card h3 {
        font-size: 1.6rem;
    }
}
