/* 
 * Main Stylesheet for aifaceswapporn.love
 * Optimized for SEO and responsive design
 */

/* ===== BASE STYLES ===== */
:root {
    /* Color Palette - Purple theme */
    --primary-color: #8E44AD;
    --secondary-color: #6C3483;
    --accent-color: #D2B4DE;
    --light-color: #F5EEF8;
    --dark-color: #4A235A;
    --text-color: #333;
    --light-text: #fff;
    --gray-text: #777;
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

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

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

section {
    padding: 80px 0;
}

/* ===== HEADER STYLES ===== */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    margin-left: 10px;
    margin-bottom: 0;
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
}

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

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--light-color) 0%, var(--accent-color) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

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

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

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

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

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== BUTTON STYLES ===== */
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(142, 68, 173, 0.3);
}

.cta-button:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(142, 68, 173, 0.4);
}

.cta-button.large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

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

/* ===== FEATURES SECTION ===== */
.features {
    background-color: #fff;
    text-align: center;
}

.features h2 {
    margin-bottom: 50px;
}

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

.feature-card {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    height: 100%;
}

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

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

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

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works {
    background-color: var(--light-color);
    text-align: center;
}

.how-it-works h2 {
    margin-bottom: 50px;
}

.steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
}

.step {
    flex: 1;
    max-width: 300px;
}

.step-number {
    background-color: var(--primary-color);
    color: var(--light-text);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: 700;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background-color: #fff;
    text-align: center;
}

.testimonials h2 {
    margin-bottom: 50px;
}

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

.testimonial-card {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: left;
    height: 100%;
    position: relative;
}

.testimonial-card:before {
    content: '"';
    font-size: 80px;
    color: var(--accent-color);
    position: absolute;
    top: -20px;
    left: 10px;
    opacity: 0.2;
    font-family: Georgia, serif;
}

.quote {
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.author {
    font-weight: 600;
    color: var(--primary-color);
}

/* ===== FAQ SECTION ===== */
.faq {
    background-color: var(--light-color);
}

.faq h2 {
    text-align: center;
    margin-bottom: 50px;
}

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

.faq-item {
    background-color: #fff;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--light-text);
    text-align: center;
}

.cta-section h2 {
    color: var(--light-text);
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--dark-color);
    color: var(--light-text);
    padding: 60px 0 20px;
}

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

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-icon {
    margin-bottom: 15px;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
}

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

.footer-column h4 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1rem;
}

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

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

.footer-column ul li a {
    color: var(--light-text);
    opacity: 0.8;
}

.footer-column ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
}

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

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 40px;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        margin-bottom: 30px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-logo {
        align-items: center;
        margin-bottom: 30px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

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

    section {
        padding: 60px 0;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.8rem;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .cta-button.large {
        padding: 12px 30px;
        font-size: 1rem;
    }
}
