/* General Body Styles */
body {
    font-family: 'Arial', sans-serif;
    color: #333;
    /* Smooth scroll behavior for all elements */
    scroll-behavior: smooth;
}

/* Navbar Styles */
.navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* Navbar color on scroll */
.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Navbar stays visible */
.navbar.hidden {
    transform: translateY(0);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Navigation Links */
.navbar .nav-link {
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    color: rgba(255, 255, 255, 0.75);
}

/* Increase Navbar Item Spacing */
.navbar-nav .nav-item {
    margin: 0 10px; /* Adjust this value for more or less space */
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #fff;
}

/* Underline hover effect for nav links */
.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #f7931e;
    transition: width 0.3s ease-in-out;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 100%;
}

/* Image Slider */
.carousel-item img {
    height: 70vh;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    bottom: 20%;
}

/* Book Now Button */
.book-now-btn {
    background-color: #f7931e;
    border-color: #f7931e;
    color: #fff;
    transition: background-color 0.3s ease;
}

.book-now-btn:hover {
    background-color: #e68a1a;
    border-color: #e68a1a;
}

/* Sections & Cards */
section {
    padding: 60px 0;
    /* This is the key change to fix the scroll problem */
    scroll-margin-top: 80px; /* Adjust this value to match your navbar height */
}

/* New Section Fade-in Animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-title {
    color: #333;
    font-weight: bold;
}

.text-primary {
    color: #f7931e !important;
}

/* Rounded corners for images in About and Company sections */
.img-fluid.rounded {
    border-radius: 25px !important;
}

/* Map Container */
.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Social Icons */
.social-icons a {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #f7931e !important;
}

/* Page Transition Loader */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #f7931e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide loader when page is loaded */
body.loaded #loader-wrapper {
    opacity: 0;
    visibility: hidden;
}

/* Hide the main content initially */
#content {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded #content {
    opacity: 1;
}