/* 
 * Styles for aipornpicturegenerator.site
 * A unique purple/violet color scheme with modern layout
 * Optimized for mobile responsiveness and SEO
 */

/* Base Styles & Variables */
:root {
    --primary: #7C3AED; /* Vibrant violet */
    --primary-dark: #6D28D9; /* Darker violet */
    --primary-light: #C084FC; /* Light purple */
    --secondary: #4C1D95; /* Deep purple */
    --accent: #DDD6FE; /* Very light purple */
    --background: #F5F3FF; /* Lightest purple background */
    --text: #1F1646; /* Deep purple text */
    --text-light: #4B5563; /* Gray text */
    --white: #FFFFFF;
    --black: #000000;
    --shadow: 0 5px 15px rgba(124, 58, 237, 0.15);
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset & Base Elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
}

.main-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

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

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

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

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

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 80px;
    height: 4px;
    background: var(--primary);
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title p {
    max-width: 600px;
    margin: 0.5rem auto 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

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

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

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

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: var(--transition);
}

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

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

.logo-icon {
    width: 40px;
    height: 40px;
}

.site-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--secondary);
    display: none;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
}

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

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

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

.nav-menu li a.nav-cta {
    background: var(--primary);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
}

.nav-menu li a.nav-cta:hover {
    background: var(--primary-dark);
}

.nav-menu li a.nav-cta::after {
    display: none;
}

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

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--secondary);
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.menu-toggle span:nth-child(1) {
    top: 8px;
}

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

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

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

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

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

/* Hero Section */
.hero-section {
    padding: 10rem 0 6rem;
    background: var(--background);
    position: relative;
    overflow: hidden;
}

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

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

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.stats-row {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.2rem;
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    animation: float 6s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.wave-separator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-separator svg {
    width: 100%;
    height: 80px;
}

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

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

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

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.25);
}

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

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

.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 4rem;
}

.step-card {
    width: 300px;
    padding: 2rem;
    border-radius: var(--radius);
    background-color: var(--white);
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.step-icon {
    width: 100px;
    height: 100px;
    margin: 0.5rem auto 1.5rem;
}

.step-connector {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
}

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

/* Gallery Section */
.gallery-section {
    padding: 6rem 0;
    background-color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.2);
}

.gallery-image-wrapper {
    height: 200px;
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-caption {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--text);
    background-color: var(--white);
    border-top: 3px solid var(--primary-light);
}

.gallery-cta {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: var(--radius);
    background-color: var(--background);
}

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

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

.faq-item {
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    background-color: var(--white);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    padding-bottom: 1.5rem;
    max-height: 500px;
}

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

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

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta-section p {
    color: var(--white);
    opacity: 0.9;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

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

.cta-section .btn-primary:hover {
    background: var(--accent);
    color: var(--secondary);
}

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

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

.footer-logo a {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
}

.footer-favicon {
    width: 32px;
    height: 32px;
}

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

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

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

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

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

.footer-column ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright, .disclaimer {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .stats-row {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        z-index: 99;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        flex-direction: column;
    }
    
    .step-connector {
        transform: rotate(90deg);
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .site-name {
        display: none;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .site-name {
        display: block;
    }
}
