/* 
   realaiporn.love CSS Styles
   Modern, responsive design with SEO optimization
*/

/* Base Styles and Reset */
:root {
    --primary-color: #E94057;
    --secondary-color: #8A2BE2;
    --dark-color: #222831;
    --light-color: #f5f5f5;
    --gray-color: #888;
    --white-color: #ffffff;
    --gradient: linear-gradient(135deg, #E94057 0%, #8A2BE2 100%);
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

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

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

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

/* Header Styles */
.header {
    background-color: var(--white-color);
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

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

.logo-svg {
    height: 45px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
}

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

.nav-list li {
    margin-left: 2rem;
}

.nav-list a {
    color: var(--dark-color);
    font-weight: 600;
    position: relative;
}

.nav-list a:hover {
    color: var(--primary-color);
}

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

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

.cta-button {
    display: inline-block;
    background: var(--gradient);
    color: var(--white-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.cta-button:hover {
    background: linear-gradient(135deg, #8A2BE2 0%, #E94057 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(233, 64, 87, 0.3);
    color: var(--white-color);
}

.cta-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 10px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 7rem 0 5rem;
    background-color: var(--light-color);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

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

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--gray-color);
}

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

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--white-color);
}

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

.feature-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-content {
    z-index: 2;
}

.about-content h2 {
    text-align: left;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-content .cta-button {
    margin-top: 1rem;
}

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

/* FAQ Section */
.faq {
    padding: 5rem 0;
    background-color: var(--white-color);
}

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

.accordion-item {
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.accordion-header {
    padding: 1.5rem;
    background-color: var(--white-color);
    cursor: pointer;
    font-size: 1.2rem;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    transition: var(--transition);
}

.accordion-item.active .accordion-header::after {
    content: '−';
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    background-color: var(--white-color);
    padding: 0 1.5rem;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    padding: 0 1.5rem 1.5rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: var(--gradient);
    text-align: center;
    color: var(--white-color);
}

.cta-section h2 {
    color: var(--white-color);
}

.cta-section .cta-button {
    background: var(--white-color);
    color: var(--primary-color);
    margin-top: 1.5rem;
}

.cta-section .cta-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer h4 {
    color: var(--white-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--gray-color);
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--white-color);
}

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

.footer-bottom p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero .container,
    .about .container {
        grid-template-columns: 1fr;
    }
    
    .about-visual,
    .hero-visual {
        margin-top: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-logo {
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-list {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--white-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        transition: var(--transition);
        opacity: 0;
        z-index: 5;
    }
    
    .nav-list.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-list li {
        margin: 1.5rem 0;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* Font Loading */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: local('Montserrat Regular'), local('Montserrat-Regular'),
         url('../fonts/montserrat-v15-latin-regular.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    src: local('Montserrat Bold'), local('Montserrat-Bold'),
         url('../fonts/montserrat-v15-latin-700.woff2') format('woff2');
    font-display: swap;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Additional SEO Styles */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Image Optimization for SEO */
img, svg {
    max-width: 100%;
    height: auto;
}
