/* 
 * Main Stylesheet for generativeaiporn.site
 * Clean, modern design with green accent colors
 */

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

:root {
    --primary: #38b000;
    --primary-light: #70e000;
    --primary-dark: #008000;
    --accent: #ccff33;
    --text: #333333;
    --text-light: #666666;
    --bg-light: #ffffff;
    --bg-gray: #f8f9fa;
    --bg-dark: #343a40;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

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

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

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

h1 {
    font-size: 2.5rem;
}

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

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

h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
}

p {
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary);
}

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

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

section {
    padding: 5rem 0;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-light);
    font-size: 1.2rem;
}

/* Header & Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

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

.logo span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

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

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    font-weight: 600;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(56, 176, 0, 0.2);
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(56, 176, 0, 0.3);
    color: white;
}

.cta-button.large {
    padding: 12px 28px;
    font-size: 1.1rem;
}

.cta-button.full {
    display: block;
    width: 100%;
    text-align: center;
}

.secondary-button {
    display: inline-block;
    background-color: transparent;
    color: var(--text);
    padding: 9px 19px;
    border-radius: var(--radius);
    font-weight: 600;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.secondary-button:hover {
    background-color: rgba(56, 176, 0, 0.1);
}

/* Hero Section */
.hero {
    background-color: var(--bg-gray);
    text-align: center;
    padding: 6rem 0 3rem;
}

.hero h1 {
    margin-bottom: 1rem;
    font-size: 3rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    margin-bottom: 3rem;
}

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

.hero-graphic svg {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Features Section */
.features {
    background-color: var(--bg-light);
}

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

.feature-card {
    background-color: white;
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

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

/* How It Works Section */
.how-it-works {
    background-color: var(--bg-gray);
    position: relative;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background-color: var(--bg-light);
    clip-path: polygon(0 0, 100% 0, 100% 60%, 0% 100%);
    z-index: 1;
}

.how-it-works .container {
    position: relative;
    z-index: 2;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 3rem;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-light);
    z-index: -1;
}

.step {
    flex: 1;
    min-width: 200px;
    padding: 0 15px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
}

/* Generator Section */
.generator {
    background-color: var(--bg-light);
}

.generator-demo {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
    align-items: center;
}

.generator-form {
    flex: 1;
    min-width: 300px;
    padding: 2rem;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.generator-preview {
    flex: 1;
    min-width: 300px;
}

.generator-preview svg {
    width: 100%;
    height: auto;
    max-height: 350px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.style-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.style-tag {
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.style-tag.active {
    background-color: var(--primary);
    color: white;
}

.quality-slider {
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    position: relative;
    margin: 1.5rem 0 0.5rem;
}

.slider-track {
    height: 100%;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.slider-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 75%;
    background-color: var(--primary);
}

.slider-thumb {
    width: 18px;
    height: 18px;
    background-color: var(--primary);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 75%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* FAQ Section */
.faq {
    background-color: var(--bg-gray);
}

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

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

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

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

.cta h2 {
    color: white;
}

.cta h2::after {
    background-color: white;
}

.cta p {
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.cta .cta-button {
    background-color: white;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.cta .cta-button:hover {
    background-color: var(--accent);
    color: var(--primary-dark);
}

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

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-right: 2rem;
}

.footer-icon {
    margin-bottom: 1rem;
}

.footer-logo p {
    margin-bottom: 0;
    color: white;
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

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

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

.footer-section ul li a {
    color: #ccc;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
    padding-left: 5px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    nav {
        display: none;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .secondary-button {
        margin-left: 0;
    }
    
    .steps::before {
        display: none;
    }
    
    .step {
        margin-bottom: 2.5rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    section {
        padding: 3rem 0;
    }
    
    .hero {
        padding: 4rem 0 2rem;
    }
    
    .feature-grid {
        gap: 1rem;
    }
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card, .step, .faq-item {
    animation: fadeInUp 0.6s ease-out forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.3s; }
.step:nth-child(3) { animation-delay: 0.5s; }
.step:nth-child(4) { animation-delay: 0.7s; }
