/* 
   aiphotogenerator.love - Main Stylesheet
   A unique photography-inspired design with pink/magenta and purple colors
*/

/* ---------- Variables ---------- */
:root {
    /* Main Colors */
    --primary: #E83A63;      /* Vibrant Pink/Magenta */
    --secondary: #4F37B8;    /* Deep Purple */
    --dark: #121212;         /* Near Black */
    --dark-gray: #1a1a1a;    /* Dark Gray */
    --medium-gray: #333;     /* Medium Gray */
    --light: #f8f8f8;        /* Off-white */
    --accent: #5EDCF5;       /* Bright Cyan Accent */
    
    /* Typography */
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Source Sans Pro', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

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

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

h1 {
    font-size: 3rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

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

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

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

ul {
    list-style: none;
}

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

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

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

.section-title {
    text-align: center;
    margin-bottom: var(--space-sm);
    font-weight: 800;
}

.section-title span {
    color: var(--primary);
    position: relative;
}

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

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-lg);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.text-center {
    text-align: center;
}

/* ---------- Header ---------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xs) 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--light);
}

.logo-svg {
    height: 40px;
    width: auto;
}

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

nav a {
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
}

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

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

.nav-button {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-md);
}

.nav-button:hover {
    opacity: 0.9;
    color: white;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.toggle-icon, .toggle-icon::before, .toggle-icon::after {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--light);
    position: absolute;
    transition: all 0.3s ease;
}

.toggle-icon {
    top: 50%;
    transform: translateY(-50%);
}

.toggle-icon::before {
    content: '';
    top: -8px;
}

.toggle-icon::after {
    content: '';
    bottom: -8px;
}

.menu-toggle.active .toggle-icon {
    background-color: transparent;
}

.menu-toggle.active .toggle-icon::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .toggle-icon::after {
    transform: rotate(-45deg) translate(7px, -8px);
}

/* ---------- Hero Section ---------- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--dark);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    width: 50%;
    padding-right: var(--space-md);
}

.hero-content h1 {
    margin-bottom: var(--space-md);
    font-size: 3.5rem;
    line-height: 1.2;
}

.hero-content h1 span {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: var(--space-lg);
    color: rgba(255, 255, 255, 0.8);
}

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

.cta-group {
    display: flex;
    gap: var(--space-sm);
}

.shape-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.shape-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.shape-divider .shape-fill {
    fill: var(--dark-gray);
}

/* ---------- Buttons ---------- */
.button {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--heading-font);
    border: none;
}

.button.primary {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(232, 58, 99, 0.4);
}

.button.outline {
    background: transparent;
    color: var(--light);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.button.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.button.large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.3);
}

.button.primary:hover {
    box-shadow: 0 7px 25px rgba(232, 58, 99, 0.5);
    color: white;
}

.button.outline:hover {
    border-color: var(--primary);
}

/* ---------- Gallery Section ---------- */
#gallery {
    background-color: var(--dark-gray);
    padding: var(--space-xl) 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.gallery-item svg {
    width: 100%;
    height: 100%;
    display: block;
    background-color: var(--dark);
    border-radius: var(--radius-md);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: var(--space-md);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Features Section ---------- */
.features-section {
    background-color: var(--dark);
    padding: var(--space-xl) 0;
}

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

.feature-card {
    background-color: var(--dark-gray);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(232, 58, 99, 0.3);
}

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

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

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ---------- How It Works Section ---------- */
.how-section {
    background-color: var(--dark-gray);
    padding: var(--space-xl) 0;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    display: flex;
    align-items: flex-start;
    background-color: var(--dark);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(232, 58, 99, 0.3);
}

.step-number {
    background: linear-gradient(to bottom right, var(--primary), var(--secondary));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: var(--space-sm);
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: var(--space-xs);
}

.step-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

/* ---------- Generate Section ---------- */
.generate-section {
    background-color: var(--dark);
    padding: var(--space-xl) 0;
}

.generate-container {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(232, 58, 99, 0.1), rgba(79, 55, 184, 0.1));
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.generate-content {
    flex: 1;
    padding-right: var(--space-md);
}

.generate-content h2 {
    margin-bottom: var(--space-sm);
}

.generate-content h2 span {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.generate-content p {
    margin-bottom: var(--space-md);
    color: rgba(255, 255, 255, 0.8);
}

.generate-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* ---------- Footer ---------- */
footer {
    background-color: var(--dark-gray);
    padding: var(--space-lg) 0 var(--space-md);
}

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

.footer-logo {
    flex: 1;
}

.footer-links {
    flex: 2;
    display: flex;
}

.footer-column {
    flex: 1;
    padding: 0 var(--space-md);
}

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

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

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

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

/* ---------- Responsive Design ---------- */
@media screen and (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    #hero {
        padding-top: 100px;
    }
    
    .hero-content, .hero-visual {
        width: 100%;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: var(--space-lg);
    }
    
    #hero .container {
        flex-direction: column;
    }
    
    .generate-container {
        flex-direction: column;
    }
    
    .generate-content {
        padding-right: 0;
        margin-bottom: var(--space-lg);
    }
}

@media screen and (max-width: 768px) {
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--dark);
        z-index: 1000;
        padding-top: 80px;
        transition: right 0.3s ease;
        box-shadow: var(--shadow-lg);
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: var(--space-sm);
        padding: var(--space-md);
    }
    
    .menu-toggle {
        display: block;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .footer-logo {
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .cta-group {
        flex-direction: column;
    }
}

@media screen and (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .nav {
        width: 85%;
    }
}
