/* 
 * Main CSS for aipornphoto.site
 * Modern, responsive design with strong purple theme
 */

/* Base Styles & Reset */
:root {
    --primary: #6200EA;
    --primary-light: #B388FF;
    --primary-dark: #5E35B1;
    --secondary: #7E57C2;
    --accent: #9575CD;
    --background: #F5F5F5;
    --background-light: #FFFFFF;
    --background-purple: #EDE7F6;
    --text: #212121;
    --text-light: #757575;
    --text-on-dark: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --radius-large: 16px;
    --spacing: 8px;
    --container-width: 1200px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

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

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

section {
    padding: 3rem 0;
}

/* Header & Navigation */
header {
    background-color: var(--background-light);
    box-shadow: 0 4px 6px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

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

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

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

nav a {
    position: relative;
    color: var(--text);
    font-weight: 500;
    padding: 0.5rem 0;
}

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

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

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--text-on-dark);
    padding: 4rem 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

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

.hero-content h2 {
    font-size: 2.5rem;
    color: var(--text-on-dark);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

/* CTA Buttons */
.cta-button {
    display: inline-block;
    background-color: var(--accent);
    color: var(--text-on-dark);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--secondary);
    color: var(--text-on-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

.cta-button.secondary:hover {
    background-color: var(--accent);
}

.cta-button.large {
    padding: 1rem 2rem;
    font-size: 1.2rem;
}

/* Features Section */
.features {
    background-color: var(--background-light);
    text-align: center;
    padding: 4rem 0;
}

.features h2 {
    margin-bottom: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: var(--background-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 6px 12px var(--shadow);
    transition: var(--transition);
}

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

.feature-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

/* Gallery Section */
.gallery {
    background-color: var(--background);
    padding: 4rem 0;
    text-align: center;
}

.section-description {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    height: 200px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px var(--shadow);
}

.gallery-item.purple {
    background-color: #9C27B0;
}

.gallery-item.deep-purple {
    background-color: #673AB7;
}

.gallery-item.indigo {
    background-color: #3F51B5;
}

.gallery-item.pink {
    background-color: #E91E63;
}

.gallery-item.blue {
    background-color: #2196F3;
}

.gallery-item.teal {
    background-color: #009688;
}

.gallery-cta {
    margin-top: 2rem;
}

/* About Section */
.about {
    background-color: var(--background-light);
    padding: 4rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: var(--text-on-dark);
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--text-on-dark);
}

.cta-section p {
    margin-bottom: 2rem;
    font-size: 1.25rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--text-on-dark);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

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

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-icon {
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-column h4 {
    color: var(--text-on-dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

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

.footer-column a:hover {
    color: var(--text-on-dark);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Create Open Graph image for SEO */
@media screen and (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .feature-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Responsive Design */
@media screen and (max-width: 960px) {
    .hero .container,
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-graphic {
        order: 0;
    }
    
    .feature-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    nav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--background-light);
        box-shadow: 0 4px 6px var(--shadow);
        padding: 1.5rem;
        transform: translateY(-150%);
        transition: var(--transition);
    }
    
    nav.active {
        transform: translateY(0);
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}

@media screen and (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .gallery-item {
        height: 140px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
}
