/* 
   discrete-fantasies.info - AI Image Generator
   CSS Styles for responsive design with purple theme
*/

/* Font imports */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

/* Reset & Base Styles */
:root {
    /* Color palette */
    --primary: #6441A5;
    --primary-dark: #2a0845;
    --primary-light: #9b79d8;
    --text-dark: #1d1d1d;
    --text-light: #ffffff;
    --text-muted: #666666;
    --background: #fcfcff;
    --card-bg: #ffffff;
    --border: rgba(100, 65, 165, 0.2);
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-md);
}

p {
    margin-bottom: var(--space-md);
}

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

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md) 0;
}

.wrapper {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

section {
    padding: var(--space-xl) 0;
    position: relative;
}

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

.highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    border-radius: 2px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--space-xl);
}

/* Background animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.blob {
    position: absolute;
    top: -400px;
    right: -300px;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(100, 65, 165, 0.05), rgba(42, 8, 69, 0.08));
    animation: blob-float 20s infinite alternate ease-in-out;
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-100px, 100px) scale(1.1);
    }
    100% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 5%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

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

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    transition: width 0.3s ease;
}

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

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

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

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

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

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.cta-container {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.cta-button {
    display: inline-block;
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    color: var(--text-light);
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(100, 65, 165, 0.3);
    color: var(--text-light);
}

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

.cta-button.outline:hover {
    background: var(--primary);
    color: var(--text-light);
}

.secondary-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 500;
    color: var(--primary);
}

.secondary-link:hover {
    opacity: 0.8;
}

.hero-visual {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

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

/* How It Works Section */
.how-it-works {
    background-color: rgba(100, 65, 165, 0.03);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.step {
    background-color: var(--card-bg);
    padding: var(--space-lg);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(100, 65, 165, 0.1);
}

.step-icon {
    margin: 0 auto var(--space-md);
    width: 60px;
    height: 60px;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
}

.center-cta {
    text-align: center;
    margin-top: var(--space-lg);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    padding: var(--space-lg);
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
}

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

.feature-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto var(--space-md);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
}

/* About Section */
.about {
    background-color: rgba(100, 65, 165, 0.03);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-text p {
    margin-bottom: var(--space-md);
}

.about-cta {
    margin-top: var(--space-lg);
}

.about-visual {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Footer */
footer {
    background: linear-gradient(to right, var(--primary-dark), var(--primary));
    color: var(--text-light);
    padding: var(--space-xl) 0 var(--space-md);
    margin-top: var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
}

.footer-name {
    font-size: 1.1rem;
    font-weight: 500;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-lg);
}

.footer-group h4 {
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    color: var(--text-light);
}

.footer-group ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

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

.footer-group ul li a:hover {
    color: var(--text-light);
    padding-left: 5px;
}

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

.copyright a {
    color: rgba(255, 255, 255, 0.8);
}

.copyright a:hover {
    color: var(--text-light);
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-visual {
        order: -1;
        margin-bottom: var(--space-lg);
    }
}

@media screen and (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-visual {
        order: -1;
        margin-bottom: var(--space-lg);
    }
    
    .cta-container {
        justify-content: center;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        padding: var(--space-xl) 0;
        transition: all 0.3s ease;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 9px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -9px);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-brand {
        align-items: center;
        margin-bottom: var(--space-lg);
    }
}

@media screen and (max-width: 576px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .cta-container {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-button, .secondary-link {
        width: 100%;
        text-align: center;
    }
}
