:root {
    --primary-color: #28a745;
    --primary-dark: #218838;
    --secondary-color: #e9ecef;
    --text-color: #333;
    --light-text: #666;
    --white: #ffffff;
    --container-width: 1200px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kanit', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f9fa;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header & Navigation */
header {
    background: var(--white);
    height: var(--header-height);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    min-height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    height: 100%;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    height: 100%;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
    padding: 5px 0;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
    z-index: 1001;
    height: 100%;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover span,
.mobile-menu-toggle.active span {
    background: var(--primary-color);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: #dee2e6;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 100%);
    padding: 60px 0;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-text .subtitle {
    font-size: 18px;
    color: var(--light-text);
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-height: 350px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
    border-radius: 30px;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: 15px;
    background: #fdfdfd;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card img {
    max-height: 120px;
    max-width: 100%;
    width: auto;
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 10px;
}

.feature-card h3 {
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--light-text);
}

/* About Section */
.about {
    padding: 80px 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image img {
    max-width: 500px;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 25px;
    color: var(--light-text);
}

/* Footer */
footer {
    background: #333;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
}

.footer-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links a {
    color: #ccc;
    font-size: 14px;
    padding: 5px 0;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #888;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content, .about-content {
        flex-direction: column;
        text-align: center;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .hero-text h1 {
        font-size: 36px;
    }
}

/* Mobile Navigation */
@media (max-width: 768px) {
    header {
        height: auto;
        min-height: 70px;
        display: flex;
        align-items: center;
    }

    nav {
        flex-wrap: wrap;
        padding: 15px 0;
        display: flex;
        align-items: center;
        width: 100%;
    }

    .logo {
        font-size: 20px;
        display: flex;
        align-items: center;
    }

    .logo img {
        height: 35px;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 2;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid #eee;
        order: 3;
        animation: slideDown 0.3s ease;
    }

    .nav-links.active {
        display: flex;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 15px 20px;
        border-radius: 8px;
        margin-bottom: 5px;
        transition: all 0.3s;
        font-size: 16px;
    }

    .nav-links a:hover, .nav-links a.active {
        background: #e8f5e9;
        color: var(--primary-color);
        transform: translateX(5px);
    }

    .nav-links a.active::after {
        display: none;
    }

    /* Footer Mobile */
    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
        margin-bottom: 30px;
    }

    .footer-logo {
        justify-content: center;
        margin-bottom: 15px;
    }

    .footer-logo span {
        font-size: 20px;
    }

    .footer-links {
        justify-content: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }

    .footer-links a {
        margin-left: 0;
        font-size: 13px;
        padding: 8px 12px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 20px;
    }

    .footer-links a:hover {
        background: rgba(40, 167, 69, 0.2);
    }

    footer {
        padding: 40px 0 20px;
    }

    .footer-bottom {
        font-size: 12px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-text .subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 24px;
    }
}

