/* 
   faceswapaiporn.love - Main Stylesheet
   A distinct design with purple/blue color scheme
*/

/* Root variables */
:root {
    --primary: #4e54c8;
    --primary-light: #8f94fb;
    --primary-dark: #3a3f9d;
    --secondary: #8f94fb;
    --accent: #6c63ff;
    --text-dark: #333;
    --text-light: #777;
    --white: #fff;
    --light-bg: #f9faff;
    --dark-bg: #1e1e2e;
    --border-radius: 10px;
    --box-shadow: 0 8px 30px rgba(78, 84, 200, 0.15);
    --transition: all 0.3s ease-in-out;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

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

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

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

ul {
    list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.25;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

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

/* Buttons */
.btn-primary {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(78, 84, 200, 0.3);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(78, 84, 200, 0.4);
    color: var(--white);
}

.btn-large {
    padding: 15px 32px;
    font-size: 1rem;
}

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

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

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

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

.logo h1 {
    font-size: 1.4rem;
    margin-bottom: 0;
    color: var(--primary);
}

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

.nav-menu {
    display: flex;
    gap: 2rem;
}

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

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

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

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

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, rgba(78, 84, 200, 0.05) 0%, rgba(143, 148, 251, 0.1) 100%);
    overflow: hidden;
}

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

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

.hero-content h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-content h2 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

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

.hero-svg {
    max-width: 100%;
    height: auto;
}

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

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

.feature-card {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(45deg, var(--primary-light), var(--primary));
    opacity: 0.05;
    transition: var(--transition);
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(78, 84, 200, 0.2);
}

.feature-card:hover::before {
    height: 100%;
}

.feature-icon {
    margin: 0 auto 1.5rem;
    width: 70px;
    height: 70px;
}

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

/* How It Works Section */
.how-it-works {
    padding: 6rem 0;
    background-color: var(--light-bg);
}

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

.step {
    display: flex;
    margin-bottom: 4rem;
    position: relative;
}

.step:last-child {
    margin-bottom: 3rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 2rem;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(78, 84, 200, 0.3);
}

.step-content {
    padding-top: 0.5rem;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.cta-center {
    text-align: center;
    margin-top: 3rem;
}

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

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

.faq-item {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(78, 84, 200, 0.18);
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    color: var(--white);
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
}

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

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

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

.footer-logo svg {
    margin-right: 1rem;
}

.footer-site-name {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

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

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

.footer-nav ul li {
    margin-bottom: 0.7rem;
}

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

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

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

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--white);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 2rem;
        gap: 1.5rem;
        text-align: center;
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        z-index: 1;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-site-info {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto 1rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}
