/* 
   BabyFaceMaker.pro Stylesheet
   Apple-inspired color scheme with responsive design
*/

:root {
    /* Apple-inspired colors */
    --primary-color: #007AFF; /* iOS blue */
    --secondary-color: #5AC8FA; /* Light blue */
    --accent-color: #FF2D55; /* Pink */
    --background-color: #F2F2F7; /* Light gray background */
    --text-color: #1D1D1F; /* Near black */
    --text-secondary: #86868B; /* Secondary text */
    --success-color: #34C759; /* Green */
    --warning-color: #FF9500; /* Orange */
    --error-color: #FF3B30; /* Red */
    --border-color: #E5E5EA; /* Light gray border */
    --white: #FFFFFF;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

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

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

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}

.logo-tagline {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: -0.3rem;
    font-weight: 500;
}

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

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    margin-bottom: 1.5rem;
    font-size: 2.8rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.cta-button {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
}

/* Upload Section */
.upload-section {
    padding: 5rem 0;
    background-color: var(--white);
    text-align: center;
}

.upload-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin: 3rem 0;
}

.upload-box, .result-box {
    background-color: var(--white);
    border-radius: 18px;
    padding: 1.8rem;
    width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.upload-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.upload-label, .result-label {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: var(--text-color);
    text-align: center;
    position: relative;
    display: inline-block;
}

.upload-label:after, .result-label:after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.upload-preview, .result-preview {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background-color: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(0, 122, 255, 0.2);
    transition: all 0.3s ease;
}

.upload-box:hover .upload-preview {
    border-color: rgba(0, 122, 255, 0.4);
}

.upload-preview img, .result-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.upload-instructions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #777;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.upload-instructions p {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.upload-instructions span {
    font-size: 12px;
    opacity: 0.8;
}

.result-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #8A51FF;
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.result-message p {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    color: #666;
}

.upload-preview img:not([src="#"]) ~ .upload-instructions,
.result-preview img:not([src="#"]) ~ .result-message {
    opacity: 0;
}

.upload-box:hover .upload-instructions svg {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.upload-button {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.2);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.upload-button:hover {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    box-shadow: 0 6px 18px rgba(0, 122, 255, 0.3);
    transform: translateY(-2px);
}

.generate-button {
    background: linear-gradient(45deg, var(--accent-color), #FF4D6D);
    color: var(--white);
    border: none;
    padding: 1.3rem 3.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2.5rem;
    box-shadow: 0 8px 20px rgba(255, 45, 85, 0.3);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.generate-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.generate-button:hover {
    background: linear-gradient(45deg, #FF4D6D, var(--accent-color));
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(255, 45, 85, 0.4);
}

.generate-button:hover:before {
    left: 100%;
}

.generate-button:disabled {
    background: linear-gradient(45deg, #B8B8B8, #D1D1D1);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.generate-button:disabled:before {
    display: none;
}

.loading-indicator {
    margin-top: 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--border-color);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 0;
    background-color: var(--background-color);
    text-align: center;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

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

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    background-color: var(--background-color);
    border-radius: 12px;
    padding: 1.5rem;
    width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.parents-images {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.parents-images img {
    width: 50%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.baby-result-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

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

.about .container {
    max-width: 800px;
}

/* FAQ Section */
.faq {
    padding: 5rem 0;
    background-color: var(--white);
}

.faq-item {
    background-color: var(--background-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.faq-item h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.faq-item p {
    margin-bottom: 0;
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

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

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo p {
    margin-top: 1rem;
    color: var(--text-secondary);
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

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

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--white);
}

.footer-newsletter {
    flex: 1;
    min-width: 300px;
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 0.9rem;
}

.newsletter-form button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--secondary-color);
}

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

.footer-bottom p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .upload-container {
        gap: 1.5rem;
    }
    
    .upload-box, .result-box {
        width: 100%;
        max-width: 320px;
    }
    
    .upload-preview, .result-preview {
        height: 240px;
    }
    
    .generate-button {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }
    
    .steps {
        gap: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    nav ul li {
        margin: 0;
    }
}

@media (max-width: 480px) {
    header .container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .logo {
        text-align: center;
    }
    
    nav ul {
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.6rem;
    }
    
    .generate-button {
        width: 90%;
        max-width: 300px;
        padding: 1rem 0;
    }
    
    .upload-preview, .result-preview {
        height: 200px;
    }
} 