/* =========================================
   1. RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    background-color: rgb(255, 254, 254);
}

h1, h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* =========================================
   2. NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    color: white;
    height: 120px;
    transition: all 0.7s;
}

.logo {
    padding: 30px 100px;
}

.logo a {
    text-decoration: none;
    color: black;
    display: grid; 
    align-items: center;
}

.logo-text, 
.logo-img {
    grid-area: 1 / 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.logo-text {
    font-size: 1.5rem;
    letter-spacing: 5px;
    opacity: 1;
    visibility: visible;
}

.logo-img {
    width: 100px;
    height: 100px;
    opacity: 0;
    visibility: hidden; 
}

/* --- Navbar Scrolled States --- */
.navbar-scrolled {
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.navbar-scrolled .logo-text {
    opacity: 0;
    visibility: hidden;
}

.navbar-scrolled .logo-img {
    opacity: 1;
    visibility: visible;
}

/* --- Nav Links & Buttons (Default States) --- */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

/* Default links: Black */
.nav-links a {
    text-decoration: none;
    color: black; 
    font-size: 0.8rem;
    letter-spacing: 2px;
    display: inline-block;
    transition: transform 0.1s ease, color 0.1s ease, background-color 0.3s ease;
}

/* Default buttons: Black text, White Background */
.btn-book, 
.btn-book-perm {
    border: 1px solid black;
    color: black;
    padding: 10px 25px;
    transition: 0.3s;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-right: 80px;
    text-decoration: none;
}

/* Default buttons hover: White text, Black Background */
.btn-book:hover, 
.btn-book-perm:hover {
    background-color: black;
    color: white;
}

.btn-book-perm {
    display: none;
}

/* --- Homepage Specific (NOT Scrolled - The "Opposite") --- */
.homepage .navbar:not(.navbar-scrolled) .logo a,
.homepage .navbar:not(.navbar-scrolled) .nav-links a {
    color: white;
}

.homepage .navbar:not(.navbar-scrolled) .btn-book,
.homepage .navbar:not(.navbar-scrolled) .btn-book-perm {
    border-color: white;
    color: white;
}

.homepage .navbar:not(.navbar-scrolled) .nav-links a:hover {
    color: lightgray;
}

.homepage .navbar:not(.navbar-scrolled) .btn-book:hover,
.homepage .navbar:not(.navbar-scrolled) .btn-book-perm:hover {
    background-color: white;
    color: black !important;
}

.container .btn-book {
    margin: 0px 0px 0px 0px;
}
/* --- Mobile Menu Icon --- */
.menu {
    display: none;
    cursor: pointer;
    list-style: none;
    gap: 9px;
}

.homepage .navbar:not(.navbar-scrolled) .hamburger {
    background: white;
}

.hamburger {
    height: 2px;
    width: 40px;
    background: black;
    transition: background-color 0.1s ease, transform 1s ease, opacity 1s ease;
    position: relative;  
}

.menu.active li:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.menu.active li:nth-child(2) {
    transform: rotate(-45deg); 
    opacity: 0;
}

.menu.active li:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* =========================================
   3. SECTIONS (Hero, About, Gallery)
   ========================================= */
/* Container for the whole hero section */
.hero {
    position: relative;
    height: 100vh; /* Fills the entire screen height */
    width: 100%;
    overflow: hidden; /* Hides any part of the video that bleeds off-screen */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* The video itself */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Acts like background-size: cover for videos */
    z-index: -2; /* Pushes the video to the very back */
    pointer-events: none; /* Prevents users from accidentally pausing it */
}

.desktop-video {
    display: block;
}

.mobile-video {
    display: none;
}

/* Dark overlay (Highly recommended for text legibility) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Black with 40% opacity */
    z-index: -1; /* Sits directly on top of the video, but behind the text */
}

/* The text content inside the hero */
.hero-content {
    position: relative;
    z-index: 1; /* Pulls the text forward */
    color: white;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 10px;
}

.about-section {
    padding: 100px 8%;
    text-align: center;
    margin-top: 20px;
}

.photogallery {
    margin-top: 150px;
    text-align: center;
    height: 0vh;
}

.text-block {
    max-width: 700px;
    margin: 0 auto 80px auto;
}

.text-block h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.text-block p {
    margin-bottom: 20px;
    color: #666;
    font-size: 1.1rem;
}

.subtitle {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: #999;
    margin-bottom: 20px;
}

.photogallery .text-block h2 {
    font-size: 1.5rem;
}

.photogallery .subtitle {
    font-size: 0.5rem;
}

.aboutus-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 60px;
}

.aboutus-grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 300px;
}

.aboutus-item img {
    width: 100%;
    height: 700px;      
    object-fit: cover; 
    display: block;    
}

.aboutus-item2 img {
    width: 100%;
    height: 700px;      
    object-fit: cover; 
    display: block;    
}

.aboutus-item .text-block {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.aboutus-item .text-block p {
    letter-spacing: 3px;
    line-height: 25px;
}

.discover {
    margin-top: auto;       
    margin-bottom: 10px;       
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 4px;
    text-decoration: none;
    color: black;
}

.gallery-section {
    padding: 60px 20px;
    margin-top: 50px; 
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px; 
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px; 
    position: relative;
}

.gallery-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: lightgray;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.5s ease; /* Smooth fade in/out */
    pointer-events: none; /* Ensures the overlay doesn't block clicks to your lightbox */
    z-index: 1; /* Places it above the image */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* --- Lightbox Modal Styles --- */
#lightbox-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Dark background */
}

/* When the hidden class is removed, show it as a flex container to center the image */
#lightbox-modal:not(.lightbox-hidden) {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 85%;
    max-height: 85vh;
    object-fit: contain;
    animation: zoomIn 1s ease; 
    transition: opacity 0.1s ease-in-out; /* Add this line for smooth next/prev fading */
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --- Zoom Out Animation --- */
@keyframes zoomOut {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(0.8); opacity: 0; }
}

/* --- Fade Out the Background & Arrows --- */
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Add this new class below it */
.lightbox-fading {
    opacity: 0;
}

/* Apply this to the main container when closing */
.lightbox-closing {
    animation: fadeOut 1s ease forwards;
}

/* We will add this class via JavaScript when closing */
.lightbox-closing .lightbox-content {
    animation: zoomOut 1s ease forwards;
}

/* Close Button */
.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1001;
}

.close-lightbox:hover {
    color: #bbb;
}

/* Navigation Arrows */
.prev-lightbox,
.next-lightbox {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    padding: 15px;
    user-select: none;
    transition: 0.3s;
    z-index: 1001;
}

.prev-lightbox {
    left: 20px;
}

.next-lightbox {
    right: 20px;
}


/* =========================================
   4. FOOTER
   ========================================= */

.fading-divider {
    border: 0; /* Removes the default harsh browser border */
    height: 2px; /* The thickness of the line */
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0),black, rgba(0, 0, 0, 0));
    margin-bottom: 70px;
    margin-top: 70px;
    width: 100%; /* Optional: Keeps the line from touching the very edges of the screen */
}
   
.site-footer {
    border-top: 2px solid black;
    font-size: 0.7rem;
    padding: 100px 8%;
    text-align: center;
    background-color: white;
    color: #333;
    font-family: 'Montserrat', sans-serif;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 70px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 40px;
}

/* --- Left Column (Logo) --- */
.logo-column {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.footer-logo {
    width: 200px; /* Adjust based on your logo's dimensions */
    height: auto;
}

/* --- Middle Column (Links) --- */
.links-column {
    text-align: left;
}

.footer-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    letter-spacing: 4px;
    margin-bottom: 35px;
    font-weight: 400;
    text-transform: uppercase;
    color: black;
    font-weight: bold;
}

.links-column ul {
    list-style: none;
    padding: 0;
}

.links-column li {
    margin-bottom: 18px;
}

.links-column a {
    text-decoration: none;
    color: #555;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

.links-column a:hover {
    color: black;
}

/* --- Right Column (Contact & Socials) --- */
.contact-column {
    text-align: right;
}

.social-text, 
.subscribe-text {
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #555;
}

.social-icons {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-bottom: 40px;
}

.social-icons a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #888;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #333;
    letter-spacing: 1px;
}

.footer-bottom strong {
    font-weight: 600;
    color: black;
}

/* =========================================
   5. LANGUAGE SELECT MENU
   ========================================= */
.lang-menu {
    font-size: 0.8rem;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative; /* Anchors the absolute dropdown to this menu item */
    display: inline-block;
    align-items: center;
    transform: translateY(1px);
}

.current-lang {
    color: black;
    margin-right: 10px;
}

.lang-list {
    position: absolute;
    background-color: white;
    list-style: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 0; 
    margin: 0;
    top: 100%;
    left: 50%;
    /* We subtract 12px to offset the width of the arrow (&#9662;) */
    transform: translateX(calc(-50% - 10px)) translateY(10px); 
    text-align: center;
}

/* Class added via JavaScript on click */
.lang-list.show-lang {
    opacity: 1;
    visibility: visible;
    /* Ensure the 12px offset remains when the menu is active */
    transform: translateX(calc(-50% - 10px)) translateY(10); 
}

/* Overrides the 30px margin bleeding in from .nav-links li */
.lang-list li {
    margin-left: 0 !important; 
    padding: 0;
}

.lang-list li a {
    display: block;
    padding: 10px 15px;
    color: black !important;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.lang-list li a:hover {
    background-color: #f0f0f0;
}

/* Match the homepage hero transparent state */
.homepage .navbar:not(.navbar-scrolled) .current-lang {
    color: white;
}


/* =========================================
   5. MEDIA QUERIES
   ========================================= */

/* Desktop/Laptop Tweaks */

@media (min-width: 1200px) {
    .logo-img {
        margin-left: 65px;
    }
    
}

@media (min-width: 1052px) and (max-width: 1600px) {
    .aboutus-grid {
        grid-template-columns: 2fr 1fr;
    }
    .aboutus-item .text-block p {
        letter-spacing: 2.5px;
        line-height: 23px;
    }
}

@media (min-width: 1052px) and (max-width: 1200px) {
    .navbar { height: 100px; }
    .logo { padding: 30px 70px; }
    .logo-img { margin-left: 70px; width: 80px; height: 80px; }
    .nav-links { padding: 30px 0px; }
    .nav-links li { margin-left: 20px; }
}

/* Shared Mobile Nav Styles (Applied to everything 1007px and below) */
@media (max-width: 1051px) {
    .navbar { height: 100px; }
    .menu { display: flex; flex-direction: column; }
    .nav-links {
        display: flex;
        position: absolute;
        top: 100px;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 0 40px;
        height: calc(100vh - 100px);
        flex-direction: column;
        align-items: center;
        justify-content: space-evenly;
        opacity: 0;
        visibility: hidden;
        clip-path: inset(0 0 100% 0);
        transition: all 0.7s ease-in-out;
    }
    .nav-links.open {
        opacity: 1;
        visibility: visible;
        clip-path: inset(0 0 0 0);
    }
    .nav-links li { margin-left: 0; margin-bottom: 0; }
    .nav-links a { color: #333; }
    .nav-links.open .btn-book:hover { color: white; }
    .btn-book { margin: 0; }
    .aboutus-grid { grid-template-columns: 1fr; }

    .desktop-video {
        display: none;
    }
    
    .mobile-video {
        display: block;
    }

    .current-lang {
        margin-left: 20px;
    }
    .lang-list {
        margin-left: 10;

    }
    
    .lang-list.show-lang {
        margin-left: 10px;
    }
}

/* Tablet Adjustments */
@media (min-width: 641px) and (max-width: 1051px) {
    .menu { margin-left: 40px; }
    .logo { padding: 30px 60px; }
    .logo-text { margin-left: 83px; font-size: 1.2rem; letter-spacing: 3px; align-self: center; }
    .logo-img { margin-left: 118px; align-self: center; }
    .btn-book-perm { display: inline-block; padding: 10px 12px; margin-right: 40px; }
    .aboutus-item img {
        height: 700px;
    }
}

/* Mobile Adjustments */
@media (min-width: 480px) and (max-width: 640px) {
    .menu { margin-left: 20px; }
    .logo { padding: 30px 30px; }
    .logo-text { font-size: 1.0rem; letter-spacing: 3px; align-self: center; margin-left: 60px; }
    .logo-img { margin-left: 85px; align-self: center; }
    .btn-book-perm { display: inline-block; padding: 10px 5px; margin-right: 20px; font-size: 0.6rem; }
    .hamburger { width: 30px; }
    .aboutus-item img {
        height: 550px;
    }
}


/* Mobile Small Adjustments */
@media (max-width: 479px) {
    .navbar { height: 85px; }
    .menu { margin-left: 25px; gap: 6px; }
    
    .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        padding: 0; 
    }
    .logo-text {
        font-size: 0.9rem;
        letter-spacing: 2px;
        align-self: center;
        margin-left: 3px; 
        text-align: center;
    }
    .logo-img {
        align-self: center;
        width: 80px;
        height: 80px;
        margin-left: 25px;
    }

    .nav-links {
        top: 80px;
        height: calc(100vh - 80px);
    }

    .hamburger {
        width: 21px;
        height: 2px;
    }
    .menu.active li:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu.active li:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Hover Adjustments (Devices with mice) */
@media (hover: hover) {
    .nav-links a:not(.btn-book):hover, 
    .logo-text:hover, .discover:hover { color: lightgray; }
    .menu:hover .hamburger { background-color: lightgray; }
    
    .prev-lightbox:hover,
    .next-lightbox:hover {
        color: #bbb;
    }
    /* Fade the overlay in on hover */
    .gallery-item:hover::after {
        opacity: 0.4; /* Adjust this value between 0.1 and 0.9 for desired darkness */
    }

    .homepage .navbar:not(.navbar-scrolled) .current-lang:hover, .current-lang:hover {
        color: lightgray;
    }
}