/* 
   dmsonu411.info - AI Image Generator
   CSS Styles for a unique, mobile-responsive design
*/

/* CSS Reset and Base Styles */
:root {
    /* Color Palette */
    --primary-light: #92FE9D;
    --primary: #00C9FF;
    --primary-dark: #0097c2;
    --text-dark: #1a2b33;
    --text-light: #ffffff;
    --text-muted: #6c757d;
    --background: #f8f9fa;
    --background-alt: #edf8ff;
    --border-color: rgba(0, 201, 255, 0.2);
    
    /* Typography */
    --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

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

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    margin-bottom: var(--space-lg);
}

h2:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    border-radius: var(--radius-sm);
}

h3 {
    font-size: 1.5rem;
}

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

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

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

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

ul {
    list-style: none;
}

/* Layout */
.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: var(--space-xl) var(--space-lg);
}

.alt-bg {
    background-color: var(--background-alt);
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.brand h1 {
    font-size: 1.3rem;
    margin-bottom: 0;
}

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

nav ul {
    display: flex;
    gap: var(--space-lg);
}

nav a {
    font-weight: 500;
    position: relative;
}

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

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

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

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

/* Hero Section */
#hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
    min-height: 80vh;
}

.hero-content {
    padding-right: var(--space-lg);
}

.hero-content h2 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

.hero-content h2:after {
    display: none;
}

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

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

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

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

.btn {
    display: inline-block;
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    color: var(--text-light);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 201, 255, 0.3);
    color: var(--text-light);
}

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

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

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

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

.step {
    background-color: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.step-number {
    position: absolute;
    top: -20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.2rem;
}

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

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

.feature {
    text-align: center;
    padding: var(--space-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: var(--space-md);
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: var(--space-xl) var(--space-lg) var(--space-lg);
}

.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-sm);
}

.footer-logo {
    width: 48px;
    height: 48px;
}

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

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--primary-light);
}

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

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    #hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: var(--space-lg);
    }
    
    .hero-content {
        padding-right: 0;
        text-align: center;
        order: 1;
    }
    
    .hero-content h2:after {
        display: block;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hero-visual {
        order: 0;
        margin-bottom: var(--space-md);
    }
    
    .cta {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    section {
        padding: var(--space-lg) var(--space-md);
    }
    
    header {
        padding: var(--space-md);
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-lg);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
    }
    
    nav ul.show {
        right: 0;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-brand {
        align-items: center;
        text-align: center;
        margin-bottom: var(--space-lg);
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .cta {
        flex-direction: column;
        width: 100%;
    }
    
    .cta .btn, .cta .link {
        width: 100%;
    }
    
    .features, .steps {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}
