/* General Styles */
:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --background-color: #f0f2f5;
    --text-color: #333;
    --white-color: #fff;
    --light-gray-color: #f8f9fa;
    --gray-color: #6c757d;
    --error-color: #dc3545;
    --success-color: #28a745;
    --font-family: 'Poppins', sans-serif;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: var(--white-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), 
                url('https://www.transparenttextures.com/patterns/cubes.png');
    padding: 4rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hero-content .subtitle {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 2rem;
}

.comparison-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

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

.comparison-item img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.comparison-item span {
    font-weight: 600;
    color: var(--gray-color);
    display: block;
    margin-bottom: 0.5rem;
}

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

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-color);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 10px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--box-shadow);
}

.feature-item span {
    font-weight: 600;
}

/* Generator Section */
main {
    padding: 3rem 0;
}

.generator-section, .results-section {
    background: var(--white-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    margin-bottom: 2rem;
}

.generator-section h2, .results-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.image-upload-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.image-upload {
    width: 300px;
}

.image-upload h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.image-preview-label {
    display: block;
    width: 100%;
    height: 300px;
    border: 2px dashed #ddd;
    border-radius: var(--border-radius);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background-color: var(--light-gray-color);
}

.image-preview-label:hover {
    border-color: var(--primary-color);
}

.upload-placeholder-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--gray-color);
}

.image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.animation-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
}

.scan-status {
    margin-top: 0.5rem;
    font-weight: 600;
    min-height: 1.2em;
}

.gender-selection {
    margin-bottom: 2rem;
}

.gender-selection label {
    margin: 0 1rem;
    font-weight: 600;
}

#credits-info {
    margin-top: 1rem;
    color: var(--gray-color);
    font-weight: 500;
}

/* Results Section */
.result-container {
    margin-top: 2rem;
}

.generated-image-wrapper {
    position: relative;
    display: inline-block;
}

.generated-baby-image {
    max-width: 100%;
    width: 400px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

#error-display {
    color: var(--error-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Progress Bar & Status */
.progress-container {
    width: 100%;
    background-color: #e9ecef;
    border-radius: .25rem;
    margin: 1rem 0;
    display: none;
}

.progress-bar {
    width: 0%;
    height: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: .25rem;
    text-align: center;
    color: white;
    line-height: 20px;
    transition: width .4s ease;
}

.status-text {
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.sub-status {
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    background-color: var(--white-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .image-upload-container {
        gap: 1rem;
    }

    .features {
        gap: 2rem;
    }

    .image-upload {
        width: 48%;
    }

    .image-preview-label {
        height: 150px;
    }

    .stats {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Promo Sections */
.promo-sections {
    background-color: var(--white-color);
    padding: 4rem 0;
}

.promo-section {
    padding: 3rem 0;
}

.kit-section .kit-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.kit-image {
    flex: 1;
    text-align: center;
}

.kit-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
}

.as-seen-on {
    margin-top: 1rem;
    color: var(--gray-color);
    font-weight: 600;
}
.as-seen-on p {
    font-family: Impact, Charcoal, sans-serif;
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}


.kit-text {
    flex: 1;
}

.kit-text h2 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.kit-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.kit-text .view-details {
    display: block;
    font-weight: 600;
    text-decoration: underline;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.btn-secondary {
    background: #0d6efd;
    color: var(--white-color);
}

/* Bordered Box Style */
.bordered-box {
    border: 2px solid #d0e1f9;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    margin: 2rem 0;
}

.inside-kit-section h2, .why-kit-works-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.inside-kit-section p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.kit-details {
    margin-top: 1.5rem;
}

/* Why Kit Works Section */
.stats {
    display: flex;
    justify-content: space-around;
    margin-top: 2.5rem;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    color: var(--gray-color);
    font-weight: 600;
}

/* Real Stories Section */
.real-stories-section {
    text-align: center;
    background-color: #fffaf5;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.real-stories-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.story-videos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.video-wrapper video {
    width: 280px;
    height: 480px;
    object-fit: cover;
    border-radius: 20px;
}

.story-text {
    text-align: center;
    max-width: 300px;
}

.story-text h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.story-text p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.story-text span {
    font-weight: 600;
    font-style: italic;
    color: var(--gray-color);
}

/* Product Video Section */
.product-video-section {
    text-align: center;
}

.product-video-section video {
    width: 100%;
    max-width: 800px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Responsive adjustments for promo sections */
@media (max-width: 992px) {
    .kit-section .kit-content, .story-videos {
        flex-direction: column;
    }

    .kit-section .kit-content .kit-text {
        order: -1;
        text-align: center;
        margin-bottom: 2rem;
    }

    .kit-section .kit-content .kit-text ul {
        display: inline-block;
        text-align: left;
        margin-bottom: 1.5rem;
    }

    .kit-section .kit-content .kit-text .btn-primary {
        margin-bottom: 1rem;
    }
}

.btn-responsive-outline {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 1.5rem auto 0;
    padding: 12px 20px;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    background-color: transparent;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.btn-responsive-outline:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.btn-outline {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 1.5rem auto 0;
    padding: 12px 20px;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    background-color: transparent;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.product-video-section .btn-secondary,
.why-kit-works-section .btn-secondary,
.real-stories-section .btn-secondary {
    margin-top: 2rem;
    display: table;
    margin-left: auto;
    margin-right: auto;
} 