:root {
    --primary-color: #4FA3DC; /* Light Blue */
    --secondary-color: #6c757d;
    --accent-color: #87CEEB; /* Sky Blue accent */
    --bg-light: #ffffff;
    --text-dark: #1a1a1a;
    --font-main: 'Roboto', sans-serif;
    --font-heading: 'Nunito', sans-serif;
}

/* Bootstrap Overrides */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    font-size: 1.1rem; /* Slightly larger base font */
}

.container {
    max-width: 100% !important;
    padding-left: 5% !important;
    padding-right: 5% !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
}

h1 { font-size: calc(1.5rem + 2.5vw); }
h2 { font-size: calc(1.3rem + 1.8vw); }
h3 { font-size: calc(1.2rem + 1.2vw); }
h4 { font-size: calc(1.1rem + 0.8vw); }
h5 { font-size: calc(1.0rem + 0.5vw); }
h6 { font-size: calc(0.9rem + 0.3vw); }

/* Navigation */
.top-bar {
    font-size: 0.8rem;
    font-family: var(--font-main);
}

.top-bar small i {
    opacity: 0.8;
}

.navbar {
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.navbar-brand span {
    font-size: 1.1rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary-color) !important;
    text-transform: uppercase;
    display: inline-block;
}

.small-tagline {
    font-size: 0.65rem !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 600;
    color: #666;
}

.nav-link {
    margin: 0 5px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #333 !important;
}

/* Mobile Menu 2 Columns */
@media (max-width: 991.98px) {
    .navbar-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .navbar-nav .nav-item {
        width: 50%;
        text-align: center;
        border: 1px solid #f1f1f1;
    }
    .navbar-nav .nav-link {
        padding: 15px 0 !important;
        margin: 0;
    }
    .navbar-nav .nav-item:last-child {
        width: 100%;
        border: none;
        padding-top: 10px;
    }
}

.btn-primary.rounded-pill {
    padding-left: 15px !important;
    padding-right: 15px !important;
    font-size: 0.85rem;
    font-family: var(--font-nav);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
    font-weight: 900;
    color: #ffffff;
}

.hero-content h1 .text-primary {
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.9);
    color: #FF6B6B !important;
    font-weight: 900;
}

/* Full Width Sections */
.section-padding {
    padding: 80px 0;
}

.bg-image-section {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
}

/* Accessibility */
.accessibility-toggle {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 9999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.accessibility-toggle:hover {
    transform: scale(1.1);
}

.accessibility-panel {
    position: fixed;
    left: -300px;
    bottom: 80px;
    width: 250px;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 9998;
    border-radius: 10px;
    transition: left 0.3s ease-in-out;
    padding: 20px;
}

.accessibility-panel.active {
    left: 20px;
}

/* High Contrast Mode */
body.high-contrast {
    background-color: #000 !important;
    color: #fff !important;
}

body.high-contrast .navbar, 
body.high-contrast footer, 
body.high-contrast .card {
    background-color: #000 !important;
    color: #fff !important;
    border: 1px solid #fff;
}

body.high-contrast a, 
body.high-contrast .nav-link {
    color: #ffff00 !important;
}

body.high-contrast .btn-primary {
    background-color: #ffff00 !important;
    color: #000 !important;
}

/* Floating Contact Icons */
.floating-contact {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s, background 0.3s;
}

.floating-btn:hover {
    transform: translateY(-5px);
    color: white;
}

.floating-btn.phone { background: #28a745; }
.floating-btn.email { background: #007bff; }
.floating-btn.whatsapp { background: #25d366; }

/* Amenities Icons */
.amenity-card {
    transition: transform 0.3s;
    border-radius: 15px;
    overflow: hidden;
}

.amenity-card:hover {
    transform: translateY(-10px);
}

.amenity-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 230px; /* Above floating icons */
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s, background 0.3s;
}

.back-to-top:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .back-to-top {
        right: 10px;
        bottom: 210px;
        width: 40px;
        height: 40px;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar-brand span {
        font-size: 0.65rem !important; /* Reduced to fit long name on one line */
        letter-spacing: -0.2px;
        white-space: nowrap;
    }
    .small-tagline {
        font-size: 0.5rem !important; /* Ensure tagline is visible but very small */
        white-space: nowrap;
    }
    .navbar-brand img {
        margin-right: 5px !important;
    }
    .top-bar {
        font-size: 0.7rem;
    }
    .top-bar .container {
        padding-left: 5px;
        padding-right: 5px;
    }
    .section-padding { padding: 30px 0; }
    
    /* Tighten spacing for grid items on mobile to match Our Services and Why Choose Us */
    .section-padding .row.g-2,
    .section-padding .row.g-3,
    .section-padding .row.g-4 {
        --bs-gutter-y: 0.5rem !important;
        --bs-gutter-x: 0.5rem !important;
    }
    
    .section-padding .amenity-card,
    .section-padding .card.p-2 {
        padding: 0.5rem !important;
    }
    
    .section-padding .mb-4,
    .section-padding .mb-3 {
        margin-bottom: 0.5rem !important;
    }
    
    .section-padding .mb-2 {
        margin-bottom: 0.25rem !important;
    }

    .hero-section { height: 60vh; }
    .floating-contact { 
        right: 10px; 
        bottom: 10px; 
        max-width: 50px;
    }
    .accessibility-toggle { 
        left: 10px; 
        bottom: 10px; 
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .floating-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
  
/* Footer Visibility - High Contrast */  
footer { 
    background-color: #080a0c !important; 
    color: #ffffff !important; 
    padding: 80px 0 30px; 
    border-top: 4px solid var(--primary-color);
}  
footer h4, footer h5 { 
    color: #ffffff !important; 
    font-weight: 800; 
    margin-bottom: 2rem; 
    position: relative;
    padding-bottom: 10px;
}  
footer h4::after, footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}
footer .text-muted { color: #f8f9fa !important; font-size: 0.95rem; }  
footer a.text-muted { 
    color: #f8f9fa !important; 
    text-decoration: none; 
    transition: all 0.3s; 
    display: inline-block;
    margin-bottom: 0.8rem;
}  
footer a.text-muted:hover { 
    color: var(--accent-color) !important; 
    transform: translateX(5px);
}  
footer hr { border-top: 1px solid rgba(255,255,255,0.1) !important; opacity: 1; margin: 40px 0; } 

.design-credit a {
    color: var(--accent-color) !important;
    font-weight: 600;
}

/* Virtual Tour Section */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.video-container iframe,
.video-container .carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.video-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: var(--primary-color);
    opacity: 0.1;
    border-radius: 30px;
    z-index: -1;
}

/* Mission Box Unique Styling */
.mission-box {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 30px 0 30px 0;
    box-shadow: 20px 20px 60px #d9d9d9, -20px -20px 60px #ffffff;
    border: 1px solid rgba(0, 74, 153, 0.1);
}

.mission-box h3 {
    color: var(--primary-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1.5rem;
}

/* Hero Slider Background */
.hero-slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slider-item.active {
    opacity: 1;
}
