body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #F5F5F7;
    color: #1D1D1F;
    margin: 0;
    padding: 0;
}
.header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 48px;
    height: 52px;
    z-index: 1000;
    position: relative;
}
.logo {
    font-size: 24px;
    font-weight: 600;
}
.nav-links {
    display: flex;
    gap: 24px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.nav-links a {
    color: #1D1D1F;
    text-decoration: none;
    font-size: 14px;
}
.actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.lang-switcher {
    display: flex;
    gap: 8px;
}

.lang-switcher button {
    background-color: transparent;
    border: 1px solid #D1D1D1;
    color: #6E6E73;
    padding: 6px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s, color 0.2s;
}

.lang-switcher button:hover {
    background-color: #E5E5E5;
}

.lang-switcher button.active {
    background-color: #1D1D1F;
    color: white;
    border-color: #1D1D1F;
}

.login {
    color: #007AFF;
    text-decoration: none;
    font-size: 14px;
}
.signup-btn {
    background-color: #007AFF;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
}
.hero {
    text-align: center;
    padding: 100px 0;
    background-color: white;
}
.hero h1 {
    font-size: 56px;
    font-weight: 600;
    margin: 0;
}
.hero p {
    font-size: 28px;
    margin: 16px 0 32px;
    color: #6E6E73;
}
.cta-btn {
    background-color: #007AFF;
    color: white;
    padding: 16px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
}
.visuals {
    margin-top: 48px;
    /* Add animation styles here */
}
.social-proof {
    text-align: center;
    padding: 32px 0;
    background-color: #F5F5F7;
}
.social-proof img {
    filter: grayscale(100%);
    height: 24px;
    margin: 0 16px;
}
.showcase {
    padding: 64px 48px;
    text-align: center;
}
.showcase h2 {
    font-size: 40px;
    margin-bottom: 48px;
}
/* Masonry layout (replace your .gallery grid styles with this) */
.gallery{
/* number of columns & gap */
column-count: 4;
column-gap: 16px;
padding: 0 8px;
}

/* responsive column counts */
@media (max-width: 1400px){ .gallery{ column-count: 3; } }
@media (max-width: 1024px){ .gallery{ column-count: 2; } }
@media (max-width: 640px){  .gallery{ column-count: 1; } }

/* make each card behave nicely inside columns */
.gallery-item{
/* prevent items from breaking across columns */
break-inside: avoid;
-webkit-column-break-inside: avoid;
-moz-column-break-inside: avoid;

/* spacing between items */
margin: 0 0 16px;
display: inline-block;   /* ensures correct width inside columns */
width: 100%;
}

/* cards / images fill the column width */
.gallery-item .image-container{ 
position: relative; 
overflow: hidden; 
border-radius: 12px; 
display: block; 
}
.gallery-item img{ 
width: 100%; 
height: auto; 
display: block; 
border-radius: 12px; 
}

/* optional: subtle hover lift (keep it small to avoid layout jitter) */
.gallery-item{ transition: transform .2s ease; }
.gallery-item:hover{ transform: translateY(-2px); }

/* Add overlay for prompt on hover */
.how-it-works {
    padding: 64px 48px;
    display: flex;
    justify-content: space-around;
    background-color: white;
}
.step {
    max-width: 300px;
    text-align: center;
}
.step h3 {
    font-size: 24px;
    margin: 16px 0;
}
.step p {
    color: #6E6E73;
}
.testimonials {
    padding: 64px 48px;
    text-align: center;
    background-color: #F5F5F7;
}
.testimonials h2 {
    font-size: 40px;
    margin-bottom: 48px;
}
.testimonial-cards {
    display: flex;
    justify-content: center;
    gap: 32px;
}
.testimonial {
    background-color: white;
    padding: 32px;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 300px;
}
.final-cta {
    text-align: center;
    padding: 100px 0;
    background-color: white;
}
.final-cta h2 {
    font-size: 40px;
    margin-bottom: 32px;
}
.footer {
    padding: 48px;
    background-color: #F5F5F7;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6E6E73;
}
.footer-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-column a {
    color: #6E6E73;
    text-decoration: none;
}

/* Update the existing .before-after styles in the &lt;style&gt; tag with these for improved fade */

.before-after {
    position: relative;
}

.before-after img {
    display: block;
    width: 100%;
    border-radius: 12px;
    transition: opacity 0.5s ease-in-out;
}

.before-after .input {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.before-after .generated {
    opacity: 1;
}

.before-after:hover .input {
    opacity: 1;
}

.before-after:hover .generated {
    opacity: 0;
}

/* Remove the .overlay styles from the &lt;style&gt; tag */

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
    padding: 10px;
    box-sizing: border-box;
    overflow: auto;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* Add new styles for category titles after the .gallery img:hover rule */

.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item {
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-4px); /* Slight upward displacement on hover for dynamic feel */
}

/* Update the .category-title styles in the &lt;style&gt; tag to remove absolute positioning and add margin */

.category-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    color: #1D1D1F;
    text-align: center;
    padding: 8px 0;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s;
}

/* New styles */
.category-title {
    text-align: center;
    margin-top: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #1D1D1F;
}

.gallery-item:hover .category-title {
    background: rgba(255, 255, 255, 0.9);
}

/* --- Mobile Styles --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #1D1D1F;
    position: relative;
    transition: transform 0.3s, background-color 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #1D1D1F;
    left: 0;
    transition: transform 0.3s;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}
@media (max-width: 1024px) {
    .header {
        padding: 0 24px;
    }

    .menu-toggle {
        display: block;
    }
    
    .nav-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        display: flex;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-wrapper.active {
        transform: translateX(0);
    }
    
    .nav-links {
        flex-direction: column;
        gap: 32px;
        text-align: center;
        font-size: 24px;
        position: static;
        transform: none;
    }
    .header-right {
        flex-direction: column;
        gap: 32px;
        margin-top: 32px;
    }
    .actions {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 20px;
    }
    .how-it-works,
    .testimonial-cards,
    .footer {
        flex-direction: column;
        gap: 48px;
    }

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