/* assets/css/style.css */

:root {
    /* Define a more vibrant color palette */
    --primary-color: #FF6F61; /* Vibrant Coral-Orange for main actions */
    --secondary-color: #7EC8E3; /* Sky Blue for accents, complements coral */
    --dark-bg: #1F3F4F; /* Deep Sea Blue for header/footer */
    --light-bg: #F0F8FF; /* AliceBlue for light sections, soft and airy */
    --text-color: #333; /* Dark grey for body text */
    --heading-color: #0F2F3F; /* Even darker for headings */
    --link-hover-color: #FFC0CB; /* Soft Pink for hover/accent, lively */
    --overlay-start: rgba(0, 0, 0, 0.3); /* Lighter overlay start */
    --overlay-end: rgba(0, 0, 0, 0.0); /* Lighter overlay end (was 0.1) */
}

/* Background Video Styling */
.background-video-wrapper {
    position: fixed; /* Fixed to the viewport */
    top: 0;
    left: 0;
    width: 100vw; /* Ensure full viewport width */
    height: 100vh; /* Ensure full viewport height */
    overflow: hidden;
    z-index: -2; /* Behind everything else */
}

.background-video-wrapper iframe {
    width: 100vw; /* Ensure it matches viewport width */
    height: 100vh; /* Ensure it covers full viewport height */
    position: absolute;
    top: 50%;
    left: 50%;
    /* This makes the video cover the entire screen while maintaining aspect ratio */
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover; /* Ensures video fills container without distortion */
    pointer-events: none; /* Allows clicks to pass through to elements beneath */
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2); /* Semi-transparent white overlay for readability */
    z-index: -1; /* Above video, below content */
}


body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
    position: relative; /* For the overlay */
}


h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--heading-color);
}

/* --- Header & Navigation Bar --- */
.navbar {
    background-color: var(--dark-bg) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); /* Stronger shadow */
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    z-index: 1050; /* Ensure navbar is on top */
}

.navbar-brand {
    /* Main branding container */
    font-size: 1.8rem; /* Slightly smaller overall font size for brand name */
    font-weight: 700;
    color: white !important;
    display: flex;
    align-items: center;
    letter-spacing: 0.5px; /* Reduced letter spacing */
    padding-top: 5px; /* Add some padding to top to balance */
    padding-bottom: 5px; /* Add some padding to bottom to balance */
}

.navbar-brand .brand-logo {
    margin-right: 8px; /* Reduced margin */
    height: 45px; /* Slightly smaller logo */
    width: auto;
    border-radius: 50%;
    object-fit: cover;
}

.navbar-brand .brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1; /* Tighter line height for the name and tagline */
    margin-left: 0; /* Remove Bootstrap default ms-2, use custom spacing below if needed */
    text-align: right; /* RIGHT ALIGNMENT ADDED HERE */
    flex-grow: 1; /* Allow it to take available space */
}

/* Styling for the new tagline */
.navbar-brand .tagline {
    font-size: 0.75rem; /* Smaller font size for caption */
    font-weight: 300; /* Lighter weight for subtle look */
    color: rgba(255, 255, 255, 0.7) !important; /* Slightly more visible white */
    margin-top: 2px; /* Small gap between name and tagline */
    opacity: 0.9;
}


.nav-link {
    font-weight: 500;
    margin-right: 18px; /* Reduced spacing between nav items */
    font-size: 1.05rem; /* Slightly smaller nav links */
    color: white !important;
    position: relative;
    padding-bottom: 8px;
}

.nav-link.active,
.nav-link:hover {
    color: var(--link-hover-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 4px; /* Thicker underline */
    bottom: 0;
    left: 0;
    background-color: var(--link-hover-color);
    transition: width .5s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smoother transition */
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

/* --- Hero Section - Carousel --- */
#hero {
    margin-top: 0; /* REMOVE GAP - Navbar is fixed and hero starts at top */
    position: relative;
    z-index: 1; /* Ensure hero is below fixed navbar but above body background */
}

#hero .carousel-item {
    height: calc(100vh - 76px); /* Full viewport height minus fixed header height */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.9);
    overflow: hidden;
    /* Custom image zoom/pan animation */
    animation: zoomPan 15s infinite alternate; /* Applies to each item */
}

/* Specific background positions for each slide for variety */
#hero .carousel-item:nth-child(1) { background-position: center center; }
#hero .carousel-item:nth-child(2) { background-position: top center; }
#hero .carousel-item:nth-child(3) { background-position: bottom center; }

/* Keyframe animation for background image zoom/pan */
@keyframes zoomPan {
    0% { background-size: 100% 100%; background-position: center center; }
    50% { background-size: 120% 120%; background-position: top left; }
    100% { background-size: 100% 100%; background-position: bottom right; }
}


/* Gradient Overlay */
#hero .overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* More vibrant gradient */
    background: linear-gradient(to right, var(--overlay-start), var(--overlay-end)); /* Using variables */
    z-index: 1;
}

#hero .carousel-caption {
    position: relative;
    z-index: 2; /* Ensure caption is above overlay */
    padding: 3rem;
    max-width: 900px;
    text-align: center;
    top: auto; /* Reset Bootstrap default positioning */
    left: auto;
    right: auto;
    bottom: auto;
    opacity: 1; /* Handled by Animate.css + WOW.js */
    transform: none; /* Handled by Animate.css + WOW.js */
}

#hero .carousel-caption h1 {
    font-size: 5.5rem; /* Even larger for maximum impact */
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1; /* Tighter line height */
}

#hero .carousel-caption p {
    font-size: 2rem; /* Larger lead text */
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    padding: 30px; /* Even larger controls */
    box-shadow: 0 0 15px rgba(0,0,0,0.7);
    transition: all 0.3s ease;
}
.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* --- Buttons --- */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.4s ease;
    font-weight: 600;
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.3rem; /* Consistent button size */
    box-shadow: 0 8px 20px rgba(255, 111, 97, 0.3);
}
.btn-primary:hover {
    background-color: var(--secondary-color); /* Hover to complementary color */
    border-color: var(--secondary-color);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 25px rgba(126, 200, 227, 0.4); /* Shadow for pop */
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.4s ease;
    font-weight: 600;
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.3rem;
    box-shadow: 0 5px 15px rgba(255, 111, 97, 0.1);
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 25px rgba(255, 111, 97, 0.4);
}

.btn-lg {
    font-size: 1.5rem; /* Larger for main CTA */
    padding: 1.4rem 3rem;
}

/* --- Sections General Styling --- */
section {
    padding: 120px 0; /* More vertical spacing */
    position: relative;
    z-index: 1; /* Above video overlay */
}

section.bg-light {
    background-color: var(--light-bg) !important;
}

/* --- About Section --- */
#about img {
    object-fit: cover;
    height: 480px; /* Consistent height */
    box-shadow: 0 15px 40px rgba(0,0,0,0.25); /* Stronger shadow */
    border-radius: 15px; /* More rounded corners */
}

/* --- Rooms & Suites Section --- */
#rooms .card {
    border: none;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smoother transition */
    border-radius: 18px; /* More rounded */
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12); /* Subtle initial shadow */
}
#rooms .card:hover {
    transform: translateY(-15px); /* More pronounced lift */
    box-shadow: 0 20px 50px rgba(0,0,0,.35) !important; /* Larger shadow on hover */
}
#rooms .card-img-top {
    height: 300px; /* Slightly taller images */
    object-fit: cover;
}
#rooms .card-body {
    padding: 35px;
}
#rooms .card-title {
    color: var(--dark-bg);
}

/* --- Dining Section --- */
#dining img {
    object-fit: cover;
    height: 480px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    border-radius: 15px;
}

/* --- Facilities Section --- */
.icon-box {
    background-color: white;
    border: 1px solid rgba(126, 200, 227, 0.2); /* Lighter border with accent color */
    padding: 40px;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,.1);
}
.icon-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,.25) !important;
    border-color: var(--primary-color); /* Highlight border on hover */
}
.icon-box i {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 4rem !important; /* Larger icons */
    transition: transform 0.3s ease-in-out;
}
.icon-box:hover i {
    transform: rotateY(180deg); /* Flip icon on hover */
}

/* --- Testimonials Section --- */
#testimonials .blockquote {
    border-left: 8px solid var(--primary-color); /* Thicker, vibrant border */
    background-color: white;
    padding: 45px; /* More padding */
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,.1);
    font-style: italic;
    line-height: 1.8;
}
#testimonials .blockquote-footer {
    color: var(--primary-color);
    font-weight: 700; /* Bolder footer text */
    font-size: 1.2rem;
    margin-top: 20px;
}
#testimonials .carousel-control-prev,
#testimonials .carousel-control-next {
    width: 8%; /* Larger controls */
}

/* --- Call to Action / Location Highlight --- */
#cta-location {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-color) 100%); /* Deep blue to vibrant coral gradient */
    color: white;
    padding: 120px 0;
}
#cta-location .btn-outline-light {
    border-color: white;
    color: white;
    font-weight: 700;
}
#cta-location .btn-outline-light:hover {
    background-color: white;
    color: var(--dark-bg);
}
#cta-location img {
    max-height: 550px;
    object-fit: cover;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    border-radius: 15px;
}

/* --- Footer --- */
footer {
    background-color: var(--dark-bg) !important;
    color: white;
    padding: 80px 0; /* More padding */
}
footer h5 {
    color: var(--link-hover-color);
    margin-bottom: 30px;
    font-size: 1.6rem;
}
footer a {
    color: var(--secondary-color) !important;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 2.5; /* More spacing for links */
    font-size: 1.05rem;
}
footer a:hover {
    color: var(--link-hover-color) !important;
}
/* Also change the direct text color in paragraphs and the copyright */
footer p,
footer .text-secondary { /* Ensure any specific text-secondary classes in footer also get the new color */
    color: var(--secondary-color) !important;
}


.social-icons a {
    color: white;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin-right: 20px; /* More spacing */
    font-size: 2.2rem; /* Larger social icons */
}
.social-icons a:hover {
    opacity: 1;
    transform: translateY(-8px) scale(1.2); /* More pronounced effect */
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--dark-bg);
        padding: 15px;
        border-radius: 5px;
        margin-top: 10px;
    }
    .navbar-nav .nav-item {
        margin-right: 0;
        margin-bottom: 5px;
    }
    .nav-link::after {
        display: none;
    }
    /* Hide tagline on smaller screens to prevent clutter */
    .navbar-brand .tagline {
        display: none !important;
    }
    .navbar-brand {
        font-size: 1.6rem; /* Adjust brand font size for mobile */
    }
    .navbar-brand .brand-logo {
        height: 40px; /* Adjust logo size for mobile */
    }
    .navbar-brand .brand-text {
        text-align: left; /* Revert to left align on smaller screens for better layout */
    }
    #hero .carousel-item {
        height: 75vh; /* Shorter on tablets */
        animation: none; /* Disable zoom/pan on smaller screens */
    }
    #hero .carousel-caption h1 {
        font-size: 3.8rem;
    }
    #hero .carousel-caption p {
        font-size: 1.5rem;
    }
    section {
        padding: 80px 0;
    }
}

@media (max-width: 767.98px) {
    section {
        padding: 60px 0;
    }
    #hero .carousel-item {
        height: 65vh; /* Shorter on mobile */
    }
    .navbar-brand {
        /* Adjust for mobile - stacked logo and name, no extra margin for the text */
        flex-direction: row;
        align-items: center;
        font-size: 1.4rem; /* Further adjust brand font size for mobile */
    }
    .navbar-brand .brand-logo {
        height: 35px; /* Further adjust logo size for mobile */
        margin-right: 6px;
    }
    .navbar-brand .brand-text {
        margin-left: 0 !important; /* Ensure no left margin */
    }
    .navbar-brand .tagline {
        font-size: 0.7rem; /* Smaller tagline on very small screens */
    }

    #hero .carousel-caption h1 {
        font-size: 3rem;
    }
    #hero .carousel-caption p {
        font-size: 1.2rem;
    }
    .btn-lg {
        font-size: 1.2rem;
        padding: 1rem 2.2rem;
    }
    #about img, #dining img {
        height: 350px;
    }
    .icon-box i {
        font-size: 3rem !important;
    }
}

@media (max-width: 575.98px) {
    #hero .carousel-caption h1 {
        font-size: 2.5rem;
    }
    #hero .carousel-caption p {
        font-size: 1rem;
    }
    .btn-lg {
        font-size: 1.1rem;
        padding: 0.9rem 1.8rem;
    }
    .nav-link {
        margin-right: 10px; /* Even tighter spacing for very small screens */
        font-size: 1rem;
    }
    .navbar-brand {
        font-size: 1.3rem; /* Smallest brand font size */
    }
    .navbar-brand .brand-logo {
        height: 30px; /* Smallest logo size */
    }
}

/* Lightbox Specific Styles (Optional, overrides/tweaks) */
/* This ensures images in the gallery have a nice hover effect */
.hover-zoom {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-zoom:hover {
    transform: scale(1.03); /* Slightly zoom in */
    box-shadow: 0 8px 25px rgba(0,0,0,0.2); /* More pronounced shadow on hover */
}