/* Global styles */
body {
    background-color: #373434;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: Arial, sans-serif;
}

html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

body::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 4px;
}

.header {
    position: fixed;
    width: 100%;
    padding: 1.5rem 5%;
    background: #404040;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3;
    box-sizing: border-box;
}

.navbar-menu a:hover {
    background-color: #575757;
    color: #c2a76b; /* Text color changes to gold on hover */
}

.header.sticky {
    border-bottom: 1rem solid rgb(123, 123, 123);
}

.navbar {
    display: flex;
    align-items: center;
}

.navbar .icon {
    display: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

.navbar-menu {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.navbar-menu a {
    font-size: 1.7rem;
    color: white;
    transition: .3s;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
}

.navbar-menu a:hover {
    background-color: #575757;
}

.navbar-menu .book-now-nav {
    background: linear-gradient(135deg, #c5a663, #c2a76b);
    color: #000;
    font-weight: bold;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: #c2a76b
}

.navbar-menu .book-now-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 242, 242, 0.6);
    color: #000;
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap');

.logo {
    font-size: 2.5rem;
    color: white;
    cursor: default;
    font-family: 'Playfair Display', serif;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4); /* Slightly larger and softer shadow */
    transition: transform 0.3s ease, color 0.3s ease; /* Added ease for smoother transitions */
    text-decoration: none;
    letter-spacing: 0.5px; /* Slight spacing for a more refined look */
}

@media screen and (max-width: 500px) and (min-width: 0px) {
    .logo {
        font-size: 1.4rem;
    }
}

@media screen and (max-width: 1000px) and (min-width: 500px) {
    .logo {
        font-size: 1.8rem;
    }
}

.logo:hover {
    transform: scale(1.1);
    color: #c2a76b; /* Gold color for a more sophisticated effect */
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.3); /* Slightly more intense shadow on hover */
}


.page-title {
    margin: 0;
    position: relative;
    top: 127px;
    text-align: center;
    font-size: 2.5rem;
    color: #c2a76b;
    font-family: 'Spectral', serif;
}

.page-subtitle {
    margin: 0;
    position: relative;
    top: 130px;
    text-align: center;
    font-size: 1.2rem;
    color: #d4c08d;
    font-family: 'Spectral', serif;
    margin-bottom: 2rem;
}

/* Media query to adjust margin when logo wraps */
@media screen and (max-width: 1080px) and (min-width: 800px){
    .page-title-container {
        padding-top: 70px; /* Adjust as needed */
    }
}

/* Service Filter Navigation */
.service-filter {
    position: relative;
    top: 150px;
    max-width: 1400px;
    margin: 0 auto 2rem;
    padding: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.filter-btn {
    padding: 12px 24px;
    background-color: #f5f5f5;
    color: #333;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    background-color: #e0e0e0;
    border-color: #c2a76b;
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: #c2a76b;
    color: white;
    border-color: #c2a76b;
    box-shadow: 0 4px 8px rgba(194, 167, 107, 0.3);
}

@media screen and (max-width: 768px) {
    .service-filter {
        padding: 15px;
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

/* Gallery section*/
.gallery-wrapper {
    position: relative;
    top: 160px;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 100px;
}

.gallery-section {
    margin-bottom: 60px;
    background: white;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery-section.hidden {
    display: none;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #c2a76b;
    padding-bottom: 20px;
}

.section-title {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 10px;
    font-family: 'Spectral', serif;
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

@media screen and (max-width: 768px) {
    .gallery-section {
        padding: 20px 15px;
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
}
.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* Increased shadow depth */
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Smooth transition */
    transform: scale(0.9); /* Initial scale */
    cursor: pointer; /* Cursor pointer for better usability */
    pointer-events: auto; /* Enable pointer events */
    position: relative; /* Ensure proper stacking context */
}

.gallery-item.fade-in {
    opacity: 1;
    transform: scale(1);
}

.gallery-item.active {
    position: fixed; /* Fixed position for modal effect */
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%) scale(1); /* Center and scale up */
    z-index: 2; /* Ensure it appears above other content */
    width: 50%; /* Adjust width as needed */
    height: auto; /* Maintain aspect ratio */
    max-height: 80vh; /* Limit maximum height relative to viewport height */
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3); /* Deep shadow for modal effect */
    background-color: rgba(0, 0, 0, 0.9); /* Darken background */
    border: 2px solid #fff; /* White border for contrast */
}

.gallery-item.active img {
    width: 100%; /* Ensure image fills modal */
    height: auto; /* Maintain aspect ratio */
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

body.modal-open {
    overflow: hidden; /* Disable scrolling of background content */
    pointer-events: none; /* Disable pointer events on body */
}

@media screen and (max-width: 768px) {
    .gallery-item.active {
        position: static; /* Disable fixed position on small screens */
        transform: none; /* Remove transformation on small screens */
        width: auto; /* Auto width for small screens */
        max-width: 100%; /* Full width for small screens */
        box-shadow: none; /* No box shadow on small screens */
        background-color: transparent; /* Transparent background on small screens */
        border: none; /* No border on small screens */
    }

    .gallery-item.active img {
        width: 100%; /* Ensure image fills its container */
        height: auto; /* Maintain aspect ratio */
        max-height: 100vh; /* Limit height to viewport height */
    }

    .gallery-item {
        overflow: hidden;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        opacity: 0;
        transition: opacity 2s ease-in-out, transform 0.8s ease-in-out;
        transform: scale(0.2);
    }

    .gallery-item.fade-in {
        opacity: 1;
        transform: scale(1);
    }

    .gallery-item:hover {
        transform: scale(1.1);
        box-shadow: 0 8px 24px #baa94a;
        transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    }

    .gallery-item img {
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 8px;
    }

    body.modal-open {
        overflow: scroll; /* Disable scrolling of background content */
        pointer-events: none; /* Disable pointer events on body */
    }
}


/* Modern Footer Section */
.contact-me-container-gallery {
    position: relative;
    top: 170px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    color: white;
    padding: 60px 5% 30px;
    border-top: 3px solid #c2a76b;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

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

.footer-section h3 {
    color: #c2a76b;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-family: 'Spectral', serif;
}

.footer-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: #e0e0e0;
    margin: 10px 0;
}

.social-media-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-media-gallery a {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #c2a76b, #8b7355);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0;
    line-height: 1;
}

.social-media-gallery a i {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.social-media-gallery a:hover {
    box-shadow: 0 8px 20px rgba(245, 244, 242, 0.6);
    color: white;
}

.contact-me-container-gallery a {
    text-decoration: none;
}

.admin-button-footer {
    display: block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 10px auto;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    width: 200px;
}

.admin-button-footer:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.contact-button-footer-gallery {
    display: block;
    margin: 20px auto;
    background: linear-gradient(135deg, #c2a76b, #8b7355);
    color: white;
    height: 60px;
    width: 200px;
    font-size: 18px;
    font-family: 'Spectral', serif;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(194, 167, 107, 0.3);
    text-decoration: none;
    line-height: 60px;
}

.contact-button-footer-gallery:hover {
    background: linear-gradient(135deg, #d4c08d, #c2a76b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(194, 167, 107, 0.5);
}

.contact-button-footer-gallery:active {
    transform: translateY(0);
}

.footer-bottom {
    border-top: 1px solid rgba(194, 167, 107, 0.3);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: #999;
    font-size: 14px;
    margin: 0;
}

.admin-link-discrete {
    color: #999;
    text-decoration: none;
    font-size: 14px;
}

.admin-link-discrete:hover {
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-me-container-gallery {
        padding: 40px 5% 20px;
    }
}

@media screen and (min-width: 769px) and (max-width: 1500px) {
    .navbar-menu a {
        font-size: 1.5rem;
        text-decoration: none;
    }

    /* Adjusted styles for the dropdown menu on small screens */
    .navbar .icon {
        display: block;
        font-size: 2rem;
        color: white;
        cursor: pointer;
        text-decoration: none;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #404040;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        z-index: 10;
        padding: 1rem 0;
        border-radius: 8px;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .navbar-menu.active {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

    .navbar-menu a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.5rem;
        color: white;
        text-align: center;
        text-decoration: none;
        transition: background-color 0.3s;
    }

    .navbar-menu a:hover {
        background-color: #575757;
    }
}

@media screen and (max-width: 768px) {
    .navbar-menu a {
        font-size: 1.5rem;
        text-decoration: none;
    }

    /* Adjusted styles for the dropdown menu on small screens */
    .navbar .icon {
        display: block;
        font-size: 2rem;
        color: white;
        cursor: pointer;
        text-decoration: none;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #404040;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        z-index: 10;
        padding: 1rem 0;
        border-radius: 8px;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .navbar-menu.active {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

    .navbar-menu a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.5rem;
        color: white;
        text-align: center;
        text-decoration: none;
        transition: background-color 0.3s;
    }

    .navbar-menu a:hover {
        background-color: #575757;
    }

    .gallery p {
        align-items: center;
        text-align: center;
    }

    /* Mobile footer properly styled */
    .contact-button-footer-gallery {
        width: 180px;
        height: 50px;
        font-size: 16px;
        line-height: 50px;
        margin: 15px auto;
    }
    
    .footer-section h3 {
        font-size: 1.3rem;
    }
    
    .footer-section p {
        font-size: 0.95rem;
    }
    
    .social-media-gallery a {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* Before/After Slider Styles */
.before-after-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    cursor: ew-resize;
    user-select: none;
    background: #f5f5f5;
}

.before-after-slider {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
}

.before-image, .after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.after-image {
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #c2a76b;
    transform: translateX(-50%);
    z-index: 2;
    cursor: ew-resize;
}

.slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #c2a76b;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(194, 167, 107, 0.6);
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: white;
    border: 3px solid #c2a76b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.slider-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(194, 167, 107, 0.4);
}

.slider-button i {
    color: #c2a76b;
    font-size: 16px;
}

.slider-button i:first-child {
    margin-right: -4px;
}

.slider-button i:last-child {
    margin-left: -4px;
}

.slider-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.label-before, .label-after {
    position: absolute;
    top: 20px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    letter-spacing: 1px;
}

.label-before {
    left: 20px;
}

.label-after {
    right: 20px;
}

@media screen and (max-width: 768px) {
    .slider-button {
        width: 40px;
        height: 40px;
    }
    
    .slider-button i {
        font-size: 14px;
    }
    
    .label-before, .label-after {
        font-size: 12px;
        padding: 6px 12px;
        top: 15px;
    }
    
    .label-before {
        left: 15px;
    }
    
    .label-after {
        right: 15px;
    }
}
