/* --- Light Mode is Default --- */
:root {
    /* Background Colors */
    --bg-body: #ffffff;
    --bg-section-alt: rgba(167, 161, 161, 0.1);
    --bg-card: #ffffff;
    --bg-nav-scrolled: rgba(2, 8, 98, 0.95);

    /* Text Colors */
    --text-main: #2b3035;
    --text-muted: #6c757d;
    --text-navbar: #ffffff;

    /* Identity and Interaction Colors */
    --primary: #020862; /* StayEase Dark Blue */
    --accent: #38bdf8;  /* Sky Blue for effects */
    --gold: #ffc107;    /* Yellow for interaction */
    --nav-shadow: rgba(0, 0, 0, 0.1);
    --bs-primary: #01074a !important;
    --bs-primary-rgb: 1, 7, 74 !important;
}

/* Basic Navbar Styling */
.navbar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--nav-bg) !important;
    backdrop-filter: blur(0px);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

/* Scrolled State (Activated via JS) */
.navbar.scrolled {
    background-color: var(--primary) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
}

/* Text and Logo colors set to White for clarity */
.nav-link,
.navbar-brand,
.navbar-brand i {
    color: var(--text-navbar) !important;
    font-weight: 500;
    transition: 0.3s;
    cursor: pointer !important;
}

/* Underline effect on text only */
.nav-link span {
    position: relative;
    display: inline-block;
}

.nav-link span::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

/* Expand underline on hover or active state */
.nav-link:hover span::after,
.nav-link.active span::after {
    width: 100%; /* Expands to match text width exactly */
}

/* Logo Icon */
.navbar-brand i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
}

/* --- 3. Enhanced Theme Button (Sun/Moon Icons) --- */
.theme-btn {
    background: rgba(255, 255, 255, 0.1) !important; /* Very light background for button */
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
}

/* Icon control based on Bootstrap theme */
[data-bs-theme="light"] .sun-icon {
    display: none;
}

[data-bs-theme="light"] .moon-icon {
    display: block;
    color: var(--bg-body);
}

/* Underline effect on text only (Duplicate removed in logic, kept for structure) */
.nav-link span {
    position: relative;
}

.nav-link span::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent);
    transition: 0.3s;
}

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

/* --- 4. Mobile Toggle Icon (Hamburger Menu) --- */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.navbar-toggler-icon {
    filter: invert(1) brightness(2); /* Ensures white color visibility */
}

/* Scroll Optimization: Reduce navbar size on scroll */
.navbar.scrolled {
    padding: 8px 0 !important;
}

/* --- General Settings and Horizontal Overflow Prevention --- */
/* home */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    font-family: 'Playfair Display', serif;
}

/* --- Typography --- */
h2.section-title {
    font-size: clamp(32px, 5vw, 45px); /* Auto-responsive font size */
    font-weight: 700 !important;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    background: linear-gradient(rgba(2, 8, 98, 0.411), rgba(0, 0, 0, 0.51));
    z-index: 1;
}

.hero-content {
    z-index: 2 !important;
    width: 100%;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(35px, 8vw, 75px);
    font-weight: 800;
    color: var(--bg-body);
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

/* --- Amenities Section --- */
.amenities-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--bg-section-alt);
}

.amenity-card {
    background-color: var(--bg-card) !important;
    border-radius: 20px !important;
    border: none;
    padding: 35px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.amenity-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

/* Icon circle and Neon Yellow effect enhancement */
.icon-circle {
    width: 80px;
    height: 80px;
    background-color: rgba(2, 8, 98, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.icon-circle i {
    font-size: 2rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

/* Hover on icon to make it bold primary color/border */
.amenity-card:hover .icon-circle {
    background-color: var(--bg-card) !important;
    border: 2px solid var(--primary) !important;
    transform: scale(1.1);
}

/* --- Room Cards Section --- */
.room-card {
    border-radius: 15px;
    overflow: hidden;
    background-color: var(--bg-body);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
}

/* --- Buttons --- */
.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    padding: 12px 30px;
    border-radius: 50px; /* Modern rounded design */
    font-weight: 600;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--gold) !important; /* Switch to gold on hover */
    border-color: var(--gold) !important;
    color: var(--primary) !important;
    transform: scale(1.05);
}

/* --- Footer Enhanced Design --- */
footer {
    position: relative;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.02));
    overflow: hidden;
}

/* Top thin gradient line */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--bs-primary), transparent);
}

/* --- Quick Links Style (Static Text) --- */
footer ul li span , footer ul li a{
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: default; /* Mouse cursor doesn't show pointer for static spans */
}

/* Bottom line appearing on hover */
footer ul li span::after ,footer ul li:hover a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--bs-primary);
    transition: width 0.3s ease;
}

/* Hover effect for the entire list item or text */
footer ul li:hover span ,footer ul li:hover a::after {
    color: var(--bs-primary) !important;
    padding-left: 10px; /* Slight right shift for motion feel */
}

footer ul li:hover span::after ,footer ul li:hover a::after
{
    width: 100%; /* Underline expansion */
}

footer ul li:hover span::before {
    opacity: 1;
    left: -2px;
}

/* Circular and animated social media icons */
.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--bs-primary) !important;
}

.social-icon:hover {
    background-color: var(--bs-primary);
    color: var(--bg-body) !important;
    transform: translateY(-8px) rotate(360deg); /* Jump and rotate animation */
}

/* Contact information icons enhancement */
.contact-info-list li i {
    width: 32px;
    height: 32px;
    line-height: 32px;
    background: rgba(var(--bs-primary-rgb), 0.1);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-info-list li:hover i {
    background: var(--bs-primary);
    color: var(--bg-body) !important;
    transform: scale(1.1);
}

footer .navbar-brand {
    letter-spacing: 1px; /* Aesthetic touch for footer logo */
}

footer .text-white {
    opacity: 1 !important; /* Ensure white color is not affected by transparency */
}

/* Hotel icon visibility in footer */
footer .fa-hotel {
    color: var(--primary) !important;
    display: inline-block !important;
    font-size: 24px;
}

/* Toggler icon improvement */
.navbar-toggler {
    border: 2px solid var(--text-navbar) !important;
    padding: 4px 8px;
}

/* White icon in Dark Mode */
[data-bs-theme="dark"] .navbar-toggler-icon {
    filter: invert(1) brightness(2);
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(2, 8, 98, 0.95); /* StayEase Dark Blue with transparency */
        backdrop-filter: blur(10px);      /* Glassmorphism effect */
        border-radius: 15px;
        margin-top: 15px;
        padding: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link {
        color: #ffffff !important; /* Pure white */
        font-weight: 700 !important; /* Extra bold for readability */
        font-size: 1.2rem !important;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8); /* Text shadow for contrast */
        letter-spacing: 0.5px;
        padding: 15px 0 !important;
        text-transform: uppercase; /* Uppercase adds clarity in hospitality designs */
    }
}

/* Ensure menu icon is white and clear */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    outline: none !important;
}