body {
    /* Font refined to a very clean geometric sans serif for professional sleekness */
    font-family: 'Montserrat', 'Century Gothic', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #fafafa;
    color: #111; /* Sharp black text */
    line-height: 1.6;
}

/* Hero Header Styling */
.hero-header {
    position: relative;
/*    height: 70vh;*/
    height: 100vh; /* Changed from 70vh to 100vh to fill the full screen */
    min-height: 500px;
    background-image: url('cover-image.png'); /* Updated to your new image file */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Changed to a gradient: darker at the bottom where the text sits */
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.75) 100%);
    z-index: 1;
}

.hero-logo {
    max-height: 280px;
    width: auto;
    margin-bottom: 1.5rem;
}

.hero-content {
    position: relative;
    z-index: 2; /* This forces the text and logo to sit above the z-index: 1 overlay */
    max-width: 800px;
    padding: 0 1rem;
}

    .hero-content h2 {
        color: #ffffff !important; /* Enforces white text */
        font-weight: 300;
        font-size: 1.6rem;
        margin: 0.5rem 0 1rem;
        letter-spacing: 1.5px;
        text-shadow: 0 2px 8px rgba(0,0,0,0.9);
    }

    .hero-content p {
        color: #ffffff !important; /* Enforces white text */
        margin: 0;
        font-size: 1.1rem;
        text-shadow: 0 2px 8px rgba(0,0,0,0.9);
    }

.header-container h2 {
    font-weight: 300;
    font-size: 1.4rem;
    color: #555; /* Refined gray for tagline */
    margin: 0.5rem 0 1rem;
    letter-spacing: 1px;
}

.header-container p {
    color: #777; /* Subtle text details */
    margin: 0;
}

#categories {
    text-align: center;
    padding: 2.5rem 1rem 0;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
}

    .tags span {
        background: #111; /* Black tags with white text for contrast */
        color: #fff;
        padding: 6px 16px;
        border-radius: 20px;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

#gowns {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 1rem;
    flex-wrap: wrap;
}

.gown-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    /* Box shadow refined to be even more subtle */
    box-shadow: 0 3px 6px rgba(0,0,0,0.03);
    width: 300px;
    border: 1px solid #f0f0f0; /* Soft border */
    text-align: center;
    transition: box-shadow 0.3s ease; /* Subtle hover effect */
}

    .gown-card:hover {
        box-shadow: 0 6px 12px rgba(0,0,0,0.06);
    }

.img-placeholder {
    background: #f8f8f8; /* Soft background */
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb; /* Subtle color */
    border-radius: 4px;
    margin-bottom: 1.2rem;
    border: 1px dashed #eaeaea; /* Guide lines like the logo curves */
}

/* Updated details within card for refined spacing */
.gown-card h3 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
}

.gown-card p {
    color: #555;
    margin-bottom: 1.2rem;
}

button {
    background: #25D366;
    color: white;
    border: none;
    padding: 14px 22px; /* Large professional button */
    cursor: pointer;
    border-radius: 8px; /* Slightly softer corners like logo curves */
    font-weight: bold;
    font-size: 1rem;
    margin-top: 10px;
    width: 100%;
}

    button:hover {
        background: #1ebd57;
    }

.outline-btn {
    background: transparent;
    color: #111;
    border: 2px solid #111;
}

    .outline-btn:hover {
        background: #111;
        color: #fff;
    }

#info {
    background: #fff;
    padding: 4rem 1rem;
    border-top: 1px solid #eaeaea;
}

.info-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem; /* Increased spacing */
}

.info-box h3 {
    margin-top: 0;
    /* Underline refined to be thinner and slightly separated */
    border-bottom: 1px solid #bbb;
    padding-bottom: 0.8rem;
    display: inline-block;
}

.info-box p {
    color: #555; /* Details text a bit softer */
}

/* Specific refinement for the middle box to add decorative lines on large screens */
.appointment-info {
    position: relative;
}

@media (min-width: 900px) {
    .appointment-info::before,
    .appointment-info::after {
        content: '';
        position: absolute;
        top: 20px;
        bottom: 20px;
        width: 1px;
        background-color: #eaeaea; /* Subtle vertical lines like the 'L's */
    }

    .appointment-info::before {
        left: -1.5rem;
    }

    .appointment-info::after {
        right: -1.5rem;
    }
}

footer {
    text-align: center;
    padding: 2.5rem;
    background: #111; /* Clean black footer */
    color: #888; /* Softer text */
    font-size: 0.9rem;
    border-top: 1px solid #222;
}

/* Language Toggle Mechanics */
.cn {
    display: none;
}

body.lang-cn .en {
    display: none;
}

body.lang-cn .cn {
    display: inline-block;
}
/* Change to block/inline as needed for formatting */

/* Language Toggle Adjustments for Hero Image */
.lang-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10; /* Ensures it sits completely above the dark overlay */
}

    .lang-toggle button {
        padding: 6px 12px;
        font-size: 0.8rem;
        color: #ffffff; /* Pure white text */
        border: 1px solid #ffffff; /* Pure white border */
        background: rgba(0, 0, 0, 0.4); /* Subtle dark background box so it pops on any image */
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.3s ease;
        text-shadow: 0 1px 3px rgba(0,0,0,0.8);
        width: 60px;
    }

        .lang-toggle button:hover {
            background: #ffffff;
            color: #111;
            text-shadow: none;
        }

/* Map Styling */
.map-container {
    max-width: 1000px;
    margin: 4rem auto 0;
    text-align: center;
}

    .map-container iframe {
        width: 100%;
        border-radius: 8px;
        box-shadow: 0 3px 6px rgba(0,0,0,0.05);
    }

/* Social Media Footer */
.social-links {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

    .social-links a {
        color: #fff;
        text-decoration: none;
        border-bottom: 1px solid #555;
        padding-bottom: 2px;
        transition: color 0.3s ease;
    }

        .social-links a:hover {
            color: #25D366;
        }

/* Thinner Carousel Testimonials Section */
#testimonials {
    background: #fdfdfd;
    padding: 3rem 1rem; /* Reduced vertical padding */
    text-align: center;
}

    #testimonials h3 {
        margin-top: 0;
        margin-bottom: 2rem;
        font-size: 1.5rem; /* Slightly smaller header */
        color: #111;
    }

.carousel-container {
    overflow: hidden; /* Hides the cards outside the box */
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
}

    /* Optional: Adds a slight fade effect to the left and right edges */
    .carousel-container::before,
    .carousel-container::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 40px;
        z-index: 2;
    }

    .carousel-container::before {
        left: 0;
        background: linear-gradient(to right, #fdfdfd, transparent);
    }

    .carousel-container::after {
        right: 0;
        background: linear-gradient(to left, #fdfdfd, transparent);
    }

.carousel-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    /* 15 seconds to scroll, linear speed, repeats forever */
    animation: scroll-left 15s linear infinite;
}

    /* Pauses the sliding when the user hovers over a review to read it */
    .carousel-track:hover {
        animation-play-state: paused;
    }

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    /* Moves exactly half the track (Set 1) to loop perfectly into Set 2 */
    100% {
        transform: translateX(calc(-50% - 0.75rem));
    }
}

.testimonial-card {
    background: #fff;
    padding: 1.2rem; /* Thinner padding */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    width: 260px; /* Thinner width */
    border: 1px solid #eaeaea;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    white-space: normal; /* Ensures text wraps inside the scrolling box */
}

.review-text {
    font-style: italic;
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.9rem; /* Smaller font size */
}

.customer-name {
    font-weight: bold;
    color: #111;
    margin: 0;
    border-top: 1px solid #f0f0f0;
    padding-top: 0.8rem;
    font-size: 0.85rem;
}

/* Gown Slideshow Styling */
.slideshow-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4; /* Enforces the portrait shape */
    margin-bottom: 1.2rem;
    overflow: hidden;
    border-radius: 4px;
    background-color: #f8f8f8;
}

    .slideshow-container .gown-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0; /* Start all images hidden */
        /* 9s total duration = 3 seconds per image */
        animation: crossfade-two 6s infinite;
    }

        /* Stagger the start times for each image in the container */
        .slideshow-container .gown-img:nth-child(1) {
            animation-delay: 0s;
        }

        .slideshow-container .gown-img:nth-child(2) {
            animation-delay: 3s;
        }
/*.slideshow-container .gown-img:nth-child(3) {
    animation-delay: 6s;
}*/

/* The Crossfade Animation Logic */
@keyframes crossfade {
    0%, 25% {
        opacity: 1;
    }
    /* Image is fully visible */
    33%, 92% {
        opacity: 0;
    }
    /* Image fades out and stays hidden */
    100% {
        opacity: 1;
    }
    /* Image fades back in */
}

@keyframes crossfade-two {
    0%, 35% {
        opacity: 1;
    }

    50%, 85% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}


.stars {
    color: #fbbc04;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.testimonial-card {
    background: #fff;
    padding: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    width: 260px;
    border: 1px solid #eaeaea;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    white-space: normal;
    /* ADD THIS LINE to lock the height of all cards */
    height: 380px;
}

.review-text {
    font-style: italic;
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.9rem;
    /* ADD THESE LINES to handle the long text gracefully */
    flex-grow: 1;
    overflow-y: auto; /* Adds a scrollbar only if the text overflows */
    padding-right: 8px; /* Adds space so the text doesn't touch the scrollbar */
}

    /* ADD THIS NEW BLOCK at the bottom to make the scrollbar thin and elegant */
    .review-text::-webkit-scrollbar {
        width: 4px;
    }

    .review-text::-webkit-scrollbar-track {
        background: transparent;
    }

    .review-text::-webkit-scrollbar-thumb {
        background: #dddddd;
        border-radius: 10px;
    }

        .review-text::-webkit-scrollbar-thumb:hover {
            background: #bbbbbb;
        }


/* Floating WhatsApp Button */
.floating-wa-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    width: auto; /* Overrides the default 100% width for standard buttons */
    margin-top: 0; /* Overrides the default margin */
}

    .floating-wa-btn:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.3);
        background-color: #1ebd57;
    }

/* Adjustments for Mobile Screens */
@media (max-width: 600px) {
    .floating-wa-btn {
        bottom: 20px;
        right: 20px;
        padding: 14px; /* Slightly larger padding to create a perfect circle */
        border-radius: 50%;
    }

        .floating-wa-btn span {
            display: none; /* Hides the text on small screens */
        }
}