/* General Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: #FFF;
    text-align: center;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #0d0d0d;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: color 0.3s;
}

section {
    padding: 100px 0;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
}

/* Header */
.header {
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header .logo {
    font-size: 1.8em;
    font-weight: bold;
    background: linear-gradient(60deg, #f79533, #ef4e7b, #5073b8, #6fba82);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header nav a {
    margin-left: 10px;
}

.header nav .cta-button {
    margin-left: 10px;
}

/* Pink CTA Buttons (instead of red) */
.cta-button {
    grid-column: 1 / -1; /* Make the button span across all columns */
    justify-self: center; /* Ensure the button is centered */
    margin-top: 20px; /* Adds spacing between the images and the button */
    padding: 10px 25px;
    background-color: #ff5c78; /* Pink */
    border-radius: 5px;
    transition: background 0.3s;
    font-weight: bold;
}

.cta-button:hover {
    background-color: #e94560; /* Darker Pink on hover */
}

/* Button is hidden by default */
.hoverButton {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(26, 26, 26, 0.5), rgba(26, 26, 26, 0.5)), var(--hero-background, url('../image/cover.jpg')) center/cover fixed;
}

/* .hero-content uses align-items: center for vertical centering */
.hero-content {
    max-width: 66%;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    gap: 2rem;
}

.hero-content, .hero-content * {
    text-align: left;
}

.hero-content h2 {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.25em;
    font-weight: bold;
}

/* Features Section */
.features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.feature a {
    text-decoration: underline;
    text-decoration-thickness: 3px;
}

/* Retaining .login-section to preserve original code */
.login-section {
    text-align: center;
    margin-top: 30px;
}

.login-input-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.login-input-group input {
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 280px;
    max-width: 100%;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    font-family: inherit;
}

.login-input-group input:focus {
    outline: none;
    box-shadow: 0 0 5px #f37055;
}

/* Hero button uses pink color now */
.hero-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background-color: #ff5c78;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    text-align: center;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-button:hover {
    background-color: #e94560;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

/* .hero-left/.hero-right placeholders if needed */
.hero-left {
    min-width: 300px;
}

.hero-right {
    min-width: 300px;
}

/* Gallery Section */
.gallery-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    justify-content: center;
}

/* create-view Section */
.create-view {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.create-view p {
    max-width: 66%;
    font-weight: 600;
    margin: 10px auto 25px;
}

.create-view .feature-image {
    max-width: 90%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.create-view .feature-image:hover {
    transform: scale(1.05);
}

.scenarios-content {
    column-count: 3;
    width: 100%;
}

.scenarios p {
    max-width: 66%;
    font-weight: 600;
    margin: 10px auto 25px;
}

.scenario {
    display: inline-block;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    break-inside: avoid;
}

.scenario:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
}

.scenario-title {
    font-size: 1.6em;
    font-weight: 600;
    color: #ff5c78; /* Pink instead of orange/red */
    margin-bottom: 15px;
    margin-top: 10px;
}

.scenario-title a {
    text-decoration: underline;
}

.scenario-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-content: center;
}

.scenario-item {
    position: relative;
    overflow: hidden;
    border: 2px solid #292929;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    aspect-ratio: 4 / 3;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
}

.scenario-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.scenario-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(255, 92, 120, 0.5);
}

/* Get Started Section */
.get-started p {
    max-width: 66%;
    font-weight: 600;
    margin: 10px auto 25px;
}

/* Footer */
.footer {
    padding: 20px;
    background: #111;
}

.footer nav a {
    margin: 0 10px;
}

.footer p {
    margin-top: 10px;
}

.search a {
    text-decoration: underline;
}

.footer-scenarios, .pet-models {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    justify-items: center;
    margin-top: 15px;
}

a.footer-link {
    text-decoration: none;
    padding: 8px 12px;
    transition: color 0.3s, background-color 0.3s;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

a.footer-link:hover {
    color: #e94560; /* Pink hover */
    text-decoration: none;
}

/* Pricing Section */
.pricing p {
    max-width: 66%;
    font-weight: 600;
    margin: 10px auto 25px;
}

.pricing-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.pricing-card {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
    width: 300px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s;
    position: relative; /* For the 'MOST POPULAR' ribbon */
}

/* Diagonal 'MOST POPULAR' Ribbon for Starter plan */
.pricing-card.popular {
    border: 2px solid #ff5c78; /* Pink highlight border */
    overflow: hidden; /* So the ribbon doesn't break layout */
}

.pricing-card.popular::before {
    content: "MOST POPULAR";
    position: absolute;
    top: 30px;
    right: -60px;
    transform: rotate(45deg);
    background-color: #ff5c78;
    color: #fff;
    padding: 5px 60px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 0.9em;
}

.pricing-card, .pricing-card * {
    text-align: left;
}

.pricing-card, .checkout-button {
    text-align: center;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card h4 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #ff5c78; /* Pink heading */
}

.pricing-card .price {
    font-size: 1.4em;
    font-weight: bold;
    margin: 15px 0;
}

.pricing-card ul {
    list-style: none;
}

.pricing-card ul li {
    position: relative;
    padding-left: 30px;
    font-size: 1.1em;
    line-height: 1.6;
}

.pricing-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #ff5c78; /* Pink checkmark */
    font-size: 1.4em;
}

.pricing-card .cta-button {
    margin-top: 20px;
    padding: 10px 25px;
    font-size: 1em;
    display: block;
    width: 100%;
}

/* Pricing Toggle */
#billing-toggle {
    margin: 20px;
    padding: 5px;
    font-size: 1em;
    background-color: #292929;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
}

/* Savings Text */
.savings {
    color: #ff5c78;
    font-weight: bold;
    margin-top: 10px;
}

/* Hide monthly price by default */
.monthly-price {
    font-size: 1.2em;
    font-weight: bold;
}

.highlight {
    outline: 3px solid #ff9800;
    box-shadow: 0 0 10px #ff9800;
    transition: outline 0.5s ease, box-shadow 0.5s ease;
}

/* === Showcase Section === */
.section-title {
    text-align: center;
    font-size: 2em;
    margin: 30px auto 10px;
    font-weight: bold;
}

.section-description {
    max-width: 700px;
    margin: 10px auto 40px;
    font-weight: 600;
    text-align: center;
}

.showcase {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.real-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
    max-width: 400px;
    justify-items: center;
}

.real-photos img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.ai-photo img {
    width: 450px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(255, 92, 120, 0.5);
}

.arrow {
    font-size: 5rem;
    color: #ff5c78;
    margin: 0 20px;
}

/* For the AI label badge */
.ai-photo {
    position: relative; /* So the label can be absolutely positioned */
}

.ai-label {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff5c78;
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    pointer-events: none; /* So clicks pass through, if desired */
}

/* FAQ Section Styles for Collapsible Answers */
.faq {
    background-color: #1a1a1a;
}

.faq h3 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #fff;
}

.faq-item {
    text-align: left;
    max-width: 800px;
    margin: 20px auto;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

/* Style the question as clickable */
.faq-question {
    font-size: 1.6em;
    color: #fff;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    text-align: left;
}

/* Add an indicator (like a + sign) */
.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    font-size: 1.6em;
    color: #fff;
    transition: transform 0.3s ease;
}

/* Rotate the indicator when active */
.faq-question.active::after {
    transform: rotate(45deg);
}

/* Hide the answer by default */
.faq-answer {
    display: none;
    font-size: 1.2em;
    color: #fff;
    margin: 0 0 10px 0;
    text-align: left;
}

/* ========== Additional "How It Works" Section Styles ========== */
.how-it-works-section {
    text-align: center;
}

.how-it-works-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    width: 220px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    text-align: center;
    margin-bottom: 20px;
}

.step-icon {
    width: 40px;
    height: 40px;
    background-color: #ff5c78;
    color: #fff;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2em;
}

/* Responsive Tweaks */
@media (max-width: 1225px) {
    .hero-content, .scenarios p, .get-started p, .create-view p, .pricing p, .feature-image {
        max-width: 100%;
    }

    .gallery-gallery {
        grid-template-columns: repeat(4, 1fr);
    }

    .scenarios-content {
        column-count: 2;
    }
}

@media (max-width: 735px) {
    section {
        padding: 40px 0;
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
    }

    .hero-right {
        margin-top: 20px;
        flex: unset;
        max-width: 500px;
    }

    .hero-content h2 {
        font-size: 1.5em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .gallery-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .scenarios-content {
        column-count: 1;
    }

    .footer-scenarios, .pet-models {
        grid-template-columns: repeat(2, 1fr);
    }

    .showcase {
        flex-direction: column;
        gap: 20px;
    }

    .arrow {
        transform: rotate(90deg); /* Now points downward in vertical layout */
    }
}

@supports (-webkit-touch-callout: none) {
    .hero {
        background-attachment: scroll;
    }
}
