/* 
   Main Stylesheet for generateaiporn.love
   Created: July 15, 2023
*/

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

:root {
    --primary: #1ABC9C;
    --secondary: #E74C3C;
    --dark: #34495E;
    --light: #ECF0F1;
    --text: #2C3E50;
    --accent: #3498DB;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 2.8rem;
    line-height: 1.2;
}

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

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

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

p {
    margin-bottom: 1rem;
}

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

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

section {
    padding: 5rem 0;
}

/* Header Styles */
header {
    background-color: var(--dark);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

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

nav ul li a {
    color: var(--light);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s;
}

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

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

nav ul li a:hover:after {
    width: 100%;
}

/* Home Section */
#home {
    background-color: var(--dark);
    color: var(--light);
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#home:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--primary) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
}

.home-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.home-content h1 {
    margin-bottom: 1.5rem;
    font-weight: 800;
    font-size: 3.2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: var(--light);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(26, 188, 156, 0.4);
    transition: all 0.3s;
}

.btn:hover {
    background: var(--secondary);
    color: var(--light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

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

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

.feature {
    background: white;
    border-radius: 10px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

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

.feature svg {
    margin-bottom: 1.5rem;
}

.feature h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

/* Generator Section */
#generator {
    background-color: #f9f9f9;
    padding: 6rem 0;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.step {
    flex: 1;
    min-width: 250px;
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.step:nth-child(2) .step-number {
    background: var(--accent);
}

.step:nth-child(3) .step-number {
    background: var(--secondary);
}

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

/* FAQ Section */
#faq {
    background-color: var(--light);
}

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

.faq-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    margin-bottom: 0.8rem;
    color: var(--primary);
}

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

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

.footer-logo {
    flex: 1;
    min-width: 200px;
    display: flex;
    justify-content: center;
}

.footer-nav, .footer-legal {
    flex: 1;
    min-width: 200px;
}

.footer-nav h4, .footer-legal h4 {
    color: var(--primary);
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}

.footer-nav ul, .footer-legal ul {
    list-style: none;
}

.footer-nav ul li, .footer-legal ul li {
    margin-bottom: 0.8rem;
}

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

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

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

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.4rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .steps {
        flex-direction: column;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .step {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    #home {
        padding: 6rem 0;
    }
    
    .home-content h1 {
        font-size: 2.5rem;
    }
    
    .home-content p {
        font-size: 1.2rem;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-nav, .footer-legal {
        width: 100%;
    }
}

@media (max-width: 576px) {
    section {
        padding: 4rem 0;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .home-content h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
    
    .feature {
        padding: 1.5rem;
    }
}

/* For screens with height issues */
@media (max-height: 700px) {
    #home {
        padding: 4rem 0;
    }
}
