/* Base Styles */
:root {
    --primary: #8e44ad;
    --secondary: #9b59b6;
    --accent: #f9f0ff;
    --dark: #333333;
    --light: #ffffff;
    --text-dark: #333333;
    --text-light: #ffffff;
    --box-shadow: 0 5px 15px rgba(142, 68, 173, 0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sarabun', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--light);
}

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

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

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

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

p {
    margin-bottom: 1.5rem;
}

section {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

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

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: var(--text-light);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover:after {
    width: 100%;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-light);
}

.btn:active {
    transform: scale(0.98);
}

.cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Header Styles */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    flex: 0 0 auto;
}

.logo a {
    font-family: 'Kanit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 100;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: var(--transition);
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 8px;
}

.hamburger span:nth-child(3) {
    top: 16px;
}

.hamburger.active span:nth-child(1) {
    top: 8px;
    transform: rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    top: 8px;
    transform: rotate(-45deg);
}

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

.nav-link {
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-dark);
    padding-bottom: 5px;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(249, 240, 255, 0.5) 0%, rgba(255, 255, 255, 0.9) 100%);
    overflow: hidden;
    position: relative;
}

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

.hero-content {
    flex: 0 0 55%;
    padding-right: 30px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

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

.process-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    gap: 30px;
}

.process-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 0 0 calc(33.333% - 30px);
    padding: 30px;
    background-color: var(--light);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.process-item:hover {
    transform: translateY(-10px);
}

.process-item h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.process-item p {
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* Benefits Section */
.benefits {
    background-color: var(--accent);
    padding: 100px 0;
}

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

.benefit-card {
    background-color: var(--light);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-top: 4px solid transparent;
    border-image: linear-gradient(to right, var(--primary), var(--secondary));
    border-image-slice: 1;
}

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

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

.benefit-card p {
    font-size: 0.95rem;
    color: var(--text-dark);
}

/* Footer */
.footer {
    background-color: #F5F5F5;
    padding: 80px 0 30px;
}

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

.footer-brand {
    flex: 0 0 300px;
}

.footer-brand p {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

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

.footer-bottom p {
    color: var(--text-dark);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

/* Media Queries */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .process-item {
        flex: 0 0 calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--light);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        margin: 15px 0;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        flex: 0 0 100%;
        text-align: center;
        padding-right: 0;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .process-item {
        flex: 0 0 100%;
        max-width: 350px;
        margin: 0 auto 30px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}
