/* 
 * undressaipornTH.site Stylesheet
 * Thai-inspired design system with royal purple, gold, and teal accents
 */

:root {
    /* Thai-inspired color palette */
    --royal-purple: #6F2DA8; /* Thai royal purple */
    --thai-gold: #F9C22E;    /* Traditional Thai gold */
    --ocean-teal: #41A7B3;   /* Thai ocean color */
    --coral-pink: #EE4D5F;   /* Thai silk accent */
    --light-cream: #FFF9E6;  /* Rice paper color */
    --dark-text: #333333;    /* Dark text color */
    --light-text: #FFFFFF;   /* Light text color */
    --grey-text: #666666;    /* Secondary text */
    
    /* Font families */
    --thai-heading: 'Prompt', sans-serif;
    --thai-body: 'Sarabun', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 999px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* For fixed header */
}

body {
    font-family: var(--thai-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-cream);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--thai-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    color: var(--royal-purple);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

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

a:hover {
    color: var(--ocean-teal);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md) 0;
    position: relative;
}

/* Header styles */
header {
    background-color: var(--light-text);
    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: var(--spacing-sm) 0;
}

.logo img {
    height: 40px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

nav a {
    font-weight: 500;
    font-size: 1.1rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 200;
}

.mobile-menu-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--royal-purple);
    border-radius: var(--radius-sm);
    left: 0;
    transition: all 0.25s ease-in-out;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 9px;
}

.mobile-menu-toggle span:nth-child(3) {
    top: 18px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

/* Hero section */
.hero-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--royal-purple);
    color: var(--light-text);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(249, 194, 46, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(65, 167, 179, 0.15) 0%, transparent 30%);
    z-index: 1;
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    gap: var(--spacing-md);
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    color: var(--light-text);
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-content h1 span {
    color: var(--thai-gold);
    display: block;
    font-size: 0.7em;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cta-button {
    display: inline-block;
    padding: 0.9rem 2rem;
    background-color: var(--thai-gold);
    color: var(--dark-text);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: var(--radius-full);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--light-text);
    color: var(--royal-purple);
    border-color: var(--royal-purple);
    transform: translateY(-3px);
}

/* Features section */
.features-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--light-text);
}

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

.feature-card {
    background-color: var(--light-cream);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--royal-purple);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    margin-bottom: var(--spacing-sm);
}

/* Process section */
.process-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--light-cream);
    position: relative;
    overflow: hidden;
}

.process-section::before {
    content: "";
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30C10 30 10 15 20 15C30 15 30 30 40 30C50 30 50 15 60 15' stroke='%236F2DA8' stroke-width='1' opacity='0.05' fill='none'/%3E%3Cpath d='M0 45C10 45 10 30 20 30C30 30 30 45 40 45C50 45 50 30 60 30' stroke='%236F2DA8' stroke-width='1' opacity='0.05' fill='none'/%3E%3C/svg%3E") repeat;
    z-index: 0;
}

.process-steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.process-step {
    flex: 1;
    min-width: 250px;
    background-color: var(--light-text);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--royal-purple);
    color: var(--light-text);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
}

/* AI Models section */
.ai-models-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--royal-purple);
    color: var(--light-text);
}

.ai-models-section h2 {
    color: var(--light-text);
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.model-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.model-card:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.model-card h3 {
    color: var(--light-text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.model-features {
    margin-top: var(--spacing-md);
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.model-features span {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
}

.model-tag {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background-color: var(--thai-gold);
    color: var(--dark-text);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

/* FAQ section */
.faq-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--light-text);
}

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

.accordion-item {
    margin-bottom: var(--spacing-sm);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.accordion-header {
    background-color: var(--light-cream);
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.accordion-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.accordion-icon:before,
.accordion-icon:after {
    content: "";
    position: absolute;
    background-color: var(--royal-purple);
    transition: all 0.3s ease;
}

.accordion-icon:before {
    width: 20px;
    height: 2px;
    top: 9px;
}

.accordion-icon:after {
    width: 2px;
    height: 20px;
    left: 9px;
    top: 0;
}

.accordion-item.active .accordion-icon:after {
    transform: rotate(90deg);
    opacity: 0;
}

.accordion-item.active .accordion-header h3 {
    color: var(--ocean-teal);
}

.accordion-content {
    background-color: var(--light-text);
    padding: 0 var(--spacing-md);
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item.active .accordion-content {
    padding: var(--spacing-md);
    max-height: 500px;
}

/* CTA Banner */
.cta-banner {
    padding: var(--spacing-lg) 0;
    background-color: var(--ocean-teal);
    color: var(--light-text);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner h2 {
    color: var(--light-text);
    margin-bottom: var(--spacing-sm);
}

.cta-banner p {
    max-width: 600px;
    margin: 0 auto var(--spacing-md);
    font-size: 1.1rem;
}

.cta-banner .cta-button {
    background-color: var(--light-text);
    color: var(--ocean-teal);
}

.cta-banner .cta-button:hover {
    background-color: var(--thai-gold);
    color: var(--dark-text);
}

.thai-pattern {
    position: absolute;
    width: 100px;
    height: 100px;
    opacity: 0.15;
    background-size: contain;
    background-repeat: no-repeat;
}

.top-left {
    top: 0;
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20C30 10 40 20 50 10C60 20 70 10 80 20' stroke='white' stroke-width='2' opacity='1' fill='none'/%3E%3Cpath d='M10 30C20 20 30 30 40 20C50 30 60 20 70 30' stroke='white' stroke-width='2' opacity='1' fill='none'/%3E%3Cpath d='M0 40C10 30 20 40 30 30C40 40 50 30 60 40' stroke='white' stroke-width='2' opacity='1' fill='none'/%3E%3C/svg%3E");
    transform: rotate(0deg);
}

.top-right {
    top: 0;
    right: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20C30 10 40 20 50 10C60 20 70 10 80 20' stroke='white' stroke-width='2' opacity='1' fill='none'/%3E%3Cpath d='M10 30C20 20 30 30 40 20C50 30 60 20 70 30' stroke='white' stroke-width='2' opacity='1' fill='none'/%3E%3Cpath d='M0 40C10 30 20 40 30 30C40 40 50 30 60 40' stroke='white' stroke-width='2' opacity='1' fill='none'/%3E%3C/svg%3E");
    transform: rotate(90deg);
}

.bottom-left {
    bottom: 0;
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20C30 10 40 20 50 10C60 20 70 10 80 20' stroke='white' stroke-width='2' opacity='1' fill='none'/%3E%3Cpath d='M10 30C20 20 30 30 40 20C50 30 60 20 70 30' stroke='white' stroke-width='2' opacity='1' fill='none'/%3E%3Cpath d='M0 40C10 30 20 40 30 30C40 40 50 30 60 40' stroke='white' stroke-width='2' opacity='1' fill='none'/%3E%3C/svg%3E");
    transform: rotate(270deg);
}

.bottom-right {
    bottom: 0;
    right: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20C30 10 40 20 50 10C60 20 70 10 80 20' stroke='white' stroke-width='2' opacity='1' fill='none'/%3E%3Cpath d='M10 30C20 20 30 30 40 20C50 30 60 20 70 30' stroke='white' stroke-width='2' opacity='1' fill='none'/%3E%3Cpath d='M0 40C10 30 20 40 30 30C40 40 50 30 60 40' stroke='white' stroke-width='2' opacity='1' fill='none'/%3E%3C/svg%3E");
    transform: rotate(180deg);
}

/* Footer */
footer {
    background-color: var(--dark-text);
    color: var(--light-text);
    padding: var(--spacing-md) 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--spacing-md);
}

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

.footer-logo img {
    margin-bottom: var(--spacing-sm);
}

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

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

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

.footer-links a:hover {
    opacity: 1;
    color: var(--thai-gold);
}

.footer-keywords {
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer-disclaimer {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image {
        margin-top: var(--spacing-md);
        justify-content: center;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--light-text);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--spacing-lg);
        z-index: 100;
    }
    
    nav ul.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .process-steps {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-sm);
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .container {
        width: 95%;
    }
    
    .feature-card,
    .process-step,
    .model-card {
        padding: var(--spacing-sm);
    }
}
