:root {
    --pink: #ff8ed9;
    --white: #ffffff;
    --beige: #5b4a3e;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--beige);
    font-family: 'Montserrat', sans-serif;
    color: var(--white);
    overflow-x: hidden;
    margin: 0;
}

/* Typography styles applied globally as requested */
h1,
h2,
h3,
p,
span {
    color: var(--white);
    /* Dropshadow background so it pops dynamically */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Animations setup */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Sections Layout */
.section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    /* Parallax effect for a premium, seamless scroll */
    background-attachment: fixed;
}

/* Fallback for mobile/touch devices if fixed background jumps */
@media (hover: none) and (pointer: coarse) {
    .section {
        background-attachment: scroll;
    }
}

/* Subtle darkening overlay on all background images to guarantee text contrast */
.section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.1) 0%, rgba(91, 74, 62, 0.5) 100%);
    pointer-events: none;
    z-index: 1;
}

.home-content,
.services-content,
.before-after-labels {
    position: relative;
    z-index: 2;
}

/* --- Section 1: Home --- */
.home {
    background-image: url('image.jpg');
    text-align: center;
    background-position: center 25%;
}

.home::before {
    /* Slightly customized overlay for the home section to include a hint of pink */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(255, 142, 217, 0.1) 100%);
}

.title {
    font-family: 'Bodoni Moda', serif;
    font-size: clamp(4rem, 15vw, 10rem);
    letter-spacing: 0.05em;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: -15px;
    text-shadow: 4px 4px 15px rgba(0, 0, 0, 1), 0 0 30px rgba(0, 0, 0, 0.8);
    -webkit-text-stroke: 0.5px white;
}

.subtitle {
    font-family: 'Hurricane', cursive;
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 400;
    margin-bottom: 20px;
    /* Pink glow effect to uniquely emphasize the theme color */
    text-shadow: 0 0 20px rgba(255, 142, 217, 0.6), 2px 2px 8px rgba(0, 0, 0, 0.8);
    transform: rotate(-2deg);
}

.est {
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    letter-spacing: 0.3em;
    font-weight: 400;
    opacity: 0.9;
    text-transform: uppercase;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--pink);
    animation: float 2.5s ease-in-out infinite;
}

.scroll-indicator svg {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 0 8px rgba(255, 142, 217, 0.6));
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    50% {
        transform: translateY(-15px) translateX(-50%);
    }
}

/* --- Section 2: Services --- */
.services {
    background-image: url('image2.jpg');
    background-position: center 20%;
}

/* Dynamic Glassmorphic Card */
.services-content {
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
    padding: 3.5rem;
    background: rgba(91, 74, 62, 0.4);
    /* Beige tinted glass overlay */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 4px solid var(--pink);
    /* Pink accent border */
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(255, 142, 217, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.services-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 35px rgba(255, 142, 217, 0.3);
}

.services-title {
    font-family: 'Bodoni Moda', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    /* Soft pink glow on secondary title */
    text-shadow: 0 0 15px rgba(255, 142, 217, 0.5), 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.services-desc {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.services-desc:last-child {
    margin-bottom: 0;
}

/* --- Section 3: Portfolio (Before / After) --- */
.portfolio {
    /* Remove padding and static background image */
    padding: 0;
    align-items: stretch;
    /* Allow child to fill height */
    overflow: hidden;
    /* Hide overflow from fullscreen slides */
    background: var(--beige);
    /* Fallback */
}

/* We still want the gradient overlay to make buttons/dots pop, but we will apply it over the carousel track */
.portfolio::before {
    content: none;
    /* Remove the old gradient */
}

.carousel-container {
    width: 100%;
    max-width: 100%;
    /* Take full width */
    margin: 0;
    position: relative;
    padding: 0;
    box-sizing: border-box;
    height: 100vh;
    /* Fill entire viewport height */
}

.carousel-container::after {
    /* Apply the dark gradient overlay over the fullscreen images */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 40%);
    pointer-events: none;
    z-index: 5;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    flex-wrap: nowrap;
    height: 100vh;
    /* Ensure track is full height */
}

.carousel-slide {
    flex: 0 0 100%;
    padding: 0;
    /* No gaps needed for fullscreen */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    /* Push labels to the bottom */
    position: relative;
    height: 100%;
}

.img-wrapper {
    width: 100%;
    height: 100%;
    /* Take full height of slide */
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    /* Behind labels */
    /* Remove border radius and shadows */
    border-radius: 0;
    box-shadow: none;
}

/* The image width is artificially doubled so that left/right translate exposes exactly half */
.img-wrapper img {
    position: absolute;
    top: 0;
    height: 100%;
    width: 200%;
    max-width: none;
    object-fit: cover;
}

/* Show the left half of the image */
.before-slide img {
    left: 0;
}

/* Show the right half of the image */
.after-slide img {
    left: -100%;
}

.slide-label {
    position: relative;
    z-index: 10;
    /* Above images and gradient overlay */
    margin-bottom: 25vh;
    /* 25% from bottom of screen */
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-shadow: 0 0 20px rgba(0, 0, 0, 1), 2px 2px 10px rgba(0, 0, 0, 0.9);
}

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    /* Center vertically */
    transform: translateY(-50%);
    background: rgba(91, 74, 62, 0.6);
    border: 1px solid var(--pink);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    /* Ensure buttons are clickable over the gradient overlay */
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(255, 142, 217, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.carousel-btn svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

/* Indicator Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
    position: absolute;
    bottom: 25px;
    /* Stick to bottom of the viewport */
    z-index: 15;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--pink);
    box-shadow: 0 0 10px rgba(255, 142, 217, 0.8);
    transform: scale(1.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .services-content {
        padding: 2.5rem 1.5rem;
    }

    .carousel-btn {
        width: 44px;
        height: 44px;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }
}

@media (min-width: 768px) {
    .carousel-container {
        padding: 0;
    }

    .carousel-slide {
        flex: 0 0 50%;
        padding: 0;
        /* Keep gapless for fullscreen split effect */
    }

    .prev-btn {
        left: 20px;
    }

    .next-btn {
        right: 20px;
    }

    .carousel-btn {
        width: 50px;
        height: 50px;
    }
}

/* --- Section 4: Booking & Socials --- */
.booking {
    background-image: url('book.jpg');
    background-position: center 30%;
}

.booking::before {
    /* Richer dark gradient specifically for the contact section to ensure button pop */
    background: radial-gradient(circle, rgba(0, 0, 0, 0.4) 0%, rgba(91, 74, 62, 0.7) 100%);
}

.booking-content {
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.booking-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    /* Keep the 'square' constrained nicely */
    margin: 0 auto;
}

.social-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
}

.booking-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.booking-btn:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--pink);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 142, 217, 0.3);
}

/* Square buttons for the top row to share 50% width minus gap */
.square-btn {
    flex: 1;
    /* Maintain 1:1 aspect ratio */
    aspect-ratio: 1 / 1;
}

.square-btn svg {
    width: 40%;
    /* Scale icon cleanly within square */
    height: 40%;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

/* Dedicated brand hover colors for extra flair */
.inst-glass:hover {
    background: linear-gradient(45deg, rgba(240, 148, 51, 0.3), rgba(230, 104, 60, 0.3), rgba(220, 39, 67, 0.3), rgba(204, 35, 102, 0.3), rgba(188, 24, 136, 0.3));
}

.pint-glass:hover {
    background: rgba(224, 0, 34, 0.4);
}

/* Wide rectangular button for the bottom row */
.rect-btn {
    width: 100%;
    /* Create an aspect ratio that matches the height of roughly 1/2 of the top row, keeping a square footprint overall */
    padding: 1.5rem 0;
}

.book-text {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}