/* Reset and Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0056b3;
    --secondary-color: #ffc107;
    --accent-color: #28a745;
    --text-color: #333;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-color: #dee2e6;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

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

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

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

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

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

.btn-primary:hover {
    background-color: #004494;
    border-color: #004494;
    color: white;
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

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

.section-header h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    font-size: 18px;
    color: #666;
}

section {
    padding: 80px 0;
}

/* Header Styles */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    z-index: 1000;
    transition: var(--transition);
}

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

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-color);
}

.logo h1 span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 30px;
}

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

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

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
#hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ef 100%);
}

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

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-content h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #555;
}

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

/* Features Section */
#features {
    background-color: #fff;
}

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

.feature-item {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background-color: rgba(0, 86, 179, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 30px;
    color: var(--primary-color);
}

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

.feature-item p {
    color: #666;
}

/* Benefits Section */
#benefits {
    background-color: #f9f9f9;
    overflow: hidden;
}

.benefits-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 40px;
}

.benefit-item.reverse {
    flex-direction: row-reverse;
}

.benefit-image {
    flex: 1;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.benefit-content {
    flex: 1;
}

.benefit-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.benefit-content p {
    margin-bottom: 20px;
    color: #555;
}

.benefit-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
    color: #555;
}

.benefit-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 5px;
}

/* Testimonials Section */
#testimonials {
    background-color: #fff;
}

.testimonials-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 20px 0;
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none; /* For IE and Edge */
}

.testimonials-slider::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Opera */
}

.testimonial-item {
    flex: 0 0 100%;
    max-width: 500px;
    scroll-snap-align: start;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    background-color: #fff;
    margin: 0 auto;
}

.testimonial-content {
    padding: 30px;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
    position: relative;
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '\201C';
    font-size: 50px;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
}

.testimonial-content p::before {
    top: -20px;
    left: -10px;
}

.testimonial-content p::after {
    content: '\201D';
    bottom: -40px;
    right: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.author-info p {
    font-size: 14px;
    color: #666;
}

/* Call to Action */
#cta {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 60px 0;
}

#cta h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

#cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

#cta .btn-primary {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
}

#cta .btn-primary:hover {
    background-color: transparent;
    color: white;
}

/* Privacy Section */
#privacy {
    background-color: #f9f9f9;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.privacy-content p {
    margin-bottom: 20px;
    color: #555;
}

.privacy-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    padding: 5px 15px;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
}

.privacy-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Footer Section */
footer {
    background-color: var(--dark-color);
    color: white;
    padding-top: 60px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 0;
}

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

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

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

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

.footer-column ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-info li i {
    margin-right: 10px;
    color: var(--secondary-color);
}

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

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

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 50px auto;
    padding: 30px;
    width: 80%;
    max-width: 800px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
}

.close-modal:hover {
    color: var(--dark-color);
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.modal-body {
    padding: 10px;
}

.modal-body h3 {
    margin: 25px 0 15px;
    color: var(--dark-color);
}

.modal-body p, .modal-body ul {
    margin-bottom: 15px;
    color: #555;
}

.modal-body ul {
    padding-left: 20px;
    list-style-type: disc;
}

.modal-body ul li {
    margin-bottom: 5px;
}

/* Thai-specific styles */
.emoji {
    font-size: 1.5em;
    margin-right: 5px;
}

.logo-image {
    max-height: 40px;
    width: auto;
    display: block;
}

.logo a {
    display: inline-block;
}

/* Responsive styles for benefits and testimonials */
@media screen and (max-width: 992px) {
    .hero-content h1 {
        font-size: 36px;
    }

    #hero .container {
        flex-direction: column;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }

    .cta-buttons {
        justify-content: center;
    }

    .benefit-item,
    .benefit-item.reverse {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .benefit-list li {
        padding-left: 0;
        padding-top: 25px;
    }

    .benefit-list li::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .testimonial-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    .footer-columns {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 30px auto;
    }
}

/* Animations and Effects */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    opacity: 0;
    transition: opacity 0.5s ease;
}

section.fade-in {
    animation: fadeIn 0.8s forwards;
    opacity: 1;
}

.feature-item, .benefit-item, .testimonial-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Mobile menu animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* Button hover effects */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

/* Thai-inspired decorative elements */
.section-header h2::before {
    content: '•';
    color: var(--secondary-color);
    margin-right: 10px;
    font-size: 28px;
}

.section-header h2::after {
    content: '•';
    color: var(--secondary-color);
    margin-left: 10px;
    font-size: 28px;
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
    transform: none;
} 
