/* Thai DeepfakeTH Website Styles
 * Author: Cascade AI
 * Date: 2025-08-18
 * Purple/Gold Theme with Thai Lotus Design Elements
*/

/* Variables */
:root {
    --primary: #9C27B0;
    --primary-dark: #7B1FA2;
    --primary-light: #D1C4E9;
    --secondary: #FFD700;
    --secondary-dark: #F9A825;
    --secondary-light: #FFF9C4;
    --accent: #FF5722;
    --bg-color: #fff;
    --bg-alt: #F5F5F5;
    --text-color: #333;
    --text-light: #666;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sukhumvit Set', 'Prompt', 'Sarabun', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-color);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 20px;
}

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

a:hover {
    color: var(--primary-dark);
}

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

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    color: var(--primary);
}

.section-title::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.highlight {
    color: var(--secondary);
    font-weight: 700;
}

/* Thai Lotus Patterns & Design Elements */
.lotus-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(156, 39, 176, 0.05), rgba(255, 215, 0, 0.05));
    clip-path: polygon(
        0% 0%,
        25% 0%,
        35% 15%,
        50% 0%,
        65% 15%,
        75% 0%,
        100% 0%,
        100% 75%,
        85% 60%,
        100% 50%,
        85% 40%,
        100% 25%,
        100% 100%,
        75% 100%,
        65% 85%,
        50% 100%,
        35% 85%,
        25% 100%,
        0% 100%,
        0% 75%,
        15% 60%,
        0% 50%,
        15% 40%,
        0% 25%
    );
    z-index: -1;
}

.lotus-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 50% 50%, rgba(156, 39, 176, 0.05) 20%, transparent 21%),
                      radial-gradient(circle at 45% 45%, rgba(255, 215, 0, 0.05) 15%, transparent 16%);
    background-size: 60px 60px;
    z-index: -1;
}

.lotus-divider {
    height: 60px;
    width: 100%;
    position: absolute;
    left: 0;
}

.top-divider {
    top: -30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' fill='%23f5f5f5'%3E%3C/path%3E%3C/svg%3E");
    transform: rotate(180deg);
}

.bottom-divider {
    bottom: -30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' fill='%23f5f5f5'%3E%3C/path%3E%3C/svg%3E");
}

/* Header & Navigation */
.header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    z-index: 1000;
}

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

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

.logo a {
    display: flex;
    align-items: center;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-icon {
    margin-right: 10px;
}

.desktop-nav {
    display: flex;
}

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

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

.desktop-nav a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

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

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary);
    transition: var(--transition);
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    padding: 20px 0;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    padding: 10px 20px;
    border-bottom: 1px solid var(--bg-alt);
}

.mobile-nav li:last-child {
    border-bottom: none;
}

.mobile-nav a {
    color: var(--text-color);
    font-weight: 500;
    display: block;
}

/* Hero Section */
.hero {
    padding-top: 150px;
    padding-bottom: 100px;
    position: relative;
    background: linear-gradient(to right bottom, var(--bg-color), var(--bg-alt));
    overflow: hidden;
}

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

.hero-content {
    flex: 1;
    min-width: 300px;
    margin-right: 30px;
}

.hero-content h1 {
    margin-bottom: 10px;
    font-size: 3.5rem;
    color: var(--primary);
}

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

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.hero-graphic {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.cta-button {
    display: inline-block;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.3);
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(156, 39, 176, 0.4);
    color: white;
}

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

/* Feature Cards */
.features {
    background-color: var(--bg-alt);
    position: relative;
    padding-top: 100px;
    padding-bottom: 100px;
}

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

.feature-card {
    background-color: var(--bg-color);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    z-index: 2;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-card h3 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 15px;
}

.feature-card p {
    text-align: center;
    color: var(--text-light);
    line-height: 1.7;
}

/* Technology Section */
.technology {
    padding: 100px 0;
    position: relative;
    background-color: var(--bg-color);
}

.tech-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

.tech-content {
    flex: 1;
    min-width: 300px;
}

.tech-content h3 {
    color: var(--primary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.tech-content h3:first-child {
    margin-top: 0;
}

.tech-content p {
    line-height: 1.8;
}

.tech-graphic {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.tech-feature {
    padding: 30px;
    background-color: var(--bg-alt);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tech-feature::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.tech-feature h4 {
    color: var(--primary);
    margin-bottom: 15px;
}

.tech-feature p {
    margin-bottom: 0;
    color: var(--text-light);
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
    position: relative;
    background-color: var(--bg-alt);
}

.steps {
    max-width: 900px;
    margin: 0 auto;
}

.step {
    display: flex;
    margin-bottom: 60px;
    position: relative;
}

.step:last-child {
    margin-bottom: 0;
}

.step::after {
    content: "";
    position: absolute;
    top: 80px;
    left: 40px;
    width: 2px;
    height: calc(100% + 30px);
    background: linear-gradient(to bottom, var(--primary-light), transparent);
    z-index: -1;
}

.step:last-child::after {
    display: none;
}

.step-icon {
    margin-right: 30px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

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

.step-content p {
    color: var(--text-light);
    line-height: 1.7;
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    position: relative;
    background-color: var(--bg-color);
}

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

.accordion-item {
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background-color: var(--bg-color);
    overflow: hidden;
}

.accordion-header {
    padding: 20px 30px;
    background-color: var(--bg-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.accordion-header h3 {
    font-size: 1.2rem;
    margin-bottom: 0;
    color: var(--text-color);
    flex: 1;
}

.accordion-icon {
    width: 18px;
    height: 18px;
    position: relative;
    transition: var(--transition);
}

.accordion-icon::before,
.accordion-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--primary);
    transition: var(--transition);
}

.accordion-icon::before {
    width: 18px;
    height: 2px;
}

.accordion-icon::after {
    width: 2px;
    height: 18px;
}

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

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 30px;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding-bottom: 20px;
}

.accordion-item.active .accordion-header {
    background-color: rgba(156, 39, 176, 0.05);
}

/* Footer */
.footer {
    background: linear-gradient(to right bottom, var(--primary-dark), var(--primary));
    color: white;
    padding: 60px 0 30px;
    position: relative;
}

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

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo a {
    color: white;
    display: flex;
    align-items: center;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 10px;
}

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

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

.footer-nav a {
    color: white;
    position: relative;
    transition: var(--transition);
}

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

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

.footer-bottom p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Mobile Navigation Toggle Styles */
.mobile-nav-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.mobile-nav-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Media Queries */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero-content {
        margin-right: 0;
        margin-bottom: 40px;
    }
    
    .tech-content, .tech-graphic {
        min-width: 100%;
    }
    
    .tech-graphic {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .hero-content,
    .hero-graphic {
        min-width: 100%;
    }
    
    .hero-graphic {
        margin-top: 50px;
    }
    
    .step {
        flex-direction: column;
    }
    
    .step-icon {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .step::after {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-nav ul {
        margin-top: 20px;
        justify-content: center;
    }
    
    .footer-nav li {
        margin: 10px 15px;
    }
}
