/* 
   AI Image Generator - dynamikultimatehouse.info
   Main Stylesheet
*/

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

:root {
    /* Main colors - warm red gradient theme */
    --primary: #FF416C;
    --primary-dark: #FF4B2B;
    --primary-light: #FF8E9E;
    --secondary: #2D3748;
    --light: #F7FAFC;
    --dark: #1A202C;
    --gray: #718096;
    --gray-light: #E2E8F0;
    
    /* Typography */
    --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    --font-heading: 'Montserrat', var(--font-main);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.10), 0 1px 3px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15), 0 3px 6px rgba(0,0,0,0.10);
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    
    /* Spacing */
    --space-unit: 1rem;
    --space-xs: calc(0.25 * var(--space-unit));
    --space-sm: calc(0.5 * var(--space-unit));
    --space-md: calc(1 * var(--space-unit));
    --space-lg: calc(2 * var(--space-unit));
    --space-xl: calc(3 * var(--space-unit));
    --space-xxl: calc(5 * var(--space-unit));
}

/* Typography & General */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

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

h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-lg);
}

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

h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-dark), var(--primary));
    border-radius: 2px;
}

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

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

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

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

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

/* Header & Navigation */
header {
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    height: 80px;
    display: flex;
    align-items: center;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

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

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

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

.nav-links a {
    color: var(--secondary);
    font-weight: 600;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-dark), var(--primary));
    transition: var(--transition-normal);
}

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

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

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

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--secondary);
    margin: 6px 0;
    transition: var(--transition-normal);
}

/* Hero Section */
.hero {
    padding: var(--space-xxl) 0;
    position: relative;
    background: linear-gradient(to right, rgba(255,75,43,0.03), rgba(255,65,108,0.05));
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(255,65,108,0.05) 0%, transparent 50%);
}

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

.hero-text {
    flex: 1;
    max-width: 550px;
}

.hero-text h1 {
    background: linear-gradient(to right, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-md);
}

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

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

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

/* CTA Button */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: white;
}

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

/* Features Section */
.features {
    padding: var(--space-xxl) 0;
    background-color: white;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.feature-card {
    background-color: white;
    padding: var(--space-lg);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    margin-bottom: var(--space-md);
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: var(--gray);
    margin-bottom: 0;
}

/* How It Works Section */
.how-it-works {
    padding: var(--space-xxl) 0;
    background-color: var(--light);
}

.steps {
    display: flex;
    justify-content: space-between;
    margin: var(--space-xl) 0;
    position: relative;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 var(--space-md);
}

.step-icon {
    margin-bottom: var(--space-md);
}

.step h3 {
    margin-bottom: var(--space-sm);
    color: var(--primary);
}

.step p {
    color: var(--gray);
}

.step-connector {
    width: 10%;
    height: 2px;
    background: linear-gradient(to right, var(--primary-dark), var(--primary));
    margin-top: 20px;
    position: relative;
}

/* About Section */
.about {
    padding: var(--space-xxl) 0;
    background-color: white;
}

.about p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--gray);
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: white;
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
}

.footer-branding {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

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

.footer-brand-text h3 {
    color: white;
    margin-bottom: var(--space-xs);
    font-size: 1.2rem;
}

.footer-brand-text p {
    color: var(--gray-light);
    margin: 0;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: var(--space-xxl);
}

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

.footer-links-column h4 {
    color: var(--primary-light);
    margin-bottom: var(--space-sm);
    font-size: 1rem;
}

.footer-links-column a {
    color: var(--gray-light);
    font-size: 0.9rem;
}

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

.footer-bottom {
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        margin-bottom: var(--space-xl);
        max-width: 100%;
    }
    
    .steps {
        flex-direction: column;
        gap: var(--space-xl);
    }
    
    .step-connector {
        display: none;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        flex-direction: column;
        gap: 0;
        background-color: white;
        transition: var(--transition-normal);
        z-index: 1000;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        display: block;
        padding: var(--space-lg);
        border-bottom: 1px solid var(--gray-light);
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--space-lg);
    }
}

/* Font imports */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_dJE3gnD_g.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/poppins/v15/pxiEyp8kv8JHgFVrJJfecg.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/poppins/v15/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
