/* Custom CSS for Ehotelhub Bootstrap Design */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white-color: #ffffff;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.display-3 {
    font-weight: 700;
}

.display-5 {
    font-weight: 600;
}

.display-6 {
    font-weight: 600;
}

/* Navigation Styles */
.navbar {
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar-brand img {
    height: 50px; /* Adjust the height as needed */
    max-width: 100%; /* Ensure the logo scales properly */
    object-fit: contain; /* Maintain aspect ratio */
    transition: transform 0.3s ease-in-out;
}

.navbar-brand img:hover {
    transform: scale(1.1); /* Slight zoom effect on hover */
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    transition: var(--transition);
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius);
}

/* Highlight Active Link */
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: var(--border-radius);
}

/* Hover Effect for Links */
.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: var(--border-radius);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #28a745 0%, #104aa6 100%); /* Green gradient */
    position: relative;
    overflow: hidden;
    color: #fff; /* Ensure text is white for contrast */
    padding: 12rem 0; /* Further increase padding for a larger section */
}

.hero-section h1 {
    font-size: 5rem; /* Larger font size for the heading */
    font-weight: 700;
    color: #fff; /* White text */
    animation: fadeInDown 1s ease-out;
    line-height: 1.3; /* Adjust line height for better spacing */
}

.hero-section p {
    font-size: 1.8rem; /* Larger font size for the paragraph */
    color: #f8f9fa; /* Slightly lighter white for contrast */
    animation: fadeInUp 1s ease-out 0.3s both;
    margin-top: 1.5rem;
}

.hero-section .btn {
    background-color: #fff;
    color: #28a745;
    border-radius: 50px;
    padding: 1.2rem 2.5rem; /* Increase button size */
    font-size: 1.5rem; /* Larger button text */
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-section .btn:hover {
    background-color: #f8f9fa;
    color: #218838;
    transform: scale(1.1);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section img {
    max-width: 100%;
    height: auto;
    animation: fadeIn 1s ease-out;
    margin-top: 2rem; /* Add spacing above the image */
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Styles */
.card {
    transition: var(--transition);
    border: none;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg) !important;
}

.card-body {
    padding: 2rem;
}

/* Feature Icons */
.feature-icon {
    display: inline-block;
    transition: var(--transition);
}

.card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon i {
    transition: var(--transition);
}

.card:hover .feature-icon i {
    color: var(--primary-color) !important;
}

/* Button Styles */
.btn {
    font-weight: 500;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-light {
    background-color: var(--white-color);
    border-color: var(--white-color);
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Section Styles */
section {
    position: relative;
}

.bg-light {
    background-color: #f8f9fa !important;
}

/* Success Story Section */
.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%) !important;
}

.badge {
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.blockquote {
    font-style: italic;
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
}

/* Statistics */
.display-4 {
    font-weight: 700;
    color: var(--white-color);
}

.text-light {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Contact Section */
.contact .card {
    border-radius: var(--border-radius-lg);
}

.contact .card-body {
    padding: 2rem;
}

.contact a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Contact Form Styling */
form.card {
    border-radius: 15px;
    background-color: #fff;
}

form .form-label {
    font-weight: 500;
    color: #333;
}

form .form-control,
form .form-select {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 0.75rem;
    font-size: 1rem;
}

form .form-control:focus,
form .form-select:focus {
    border-color: #28a745;
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.5);
}

form button {
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-size: 1.2rem;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

form button:hover {
    background-color: #218838;
    transform: scale(1.05);
}

/* Footer Styles */
footer {
    background-color: #333;
    color: #fff;
    padding: 2rem 0;
}

footer .navbar-brand img {
    height: 50px;
    max-width: 100%;
    object-fit: contain;
}

footer h5 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
}

footer ul {
    padding: 0;
    list-style: none;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

footer ul li a:hover {
    color: #28a745; /* Green hover effect */
}

footer .social-links a {
    font-size: 1.5rem;
    color: #fff;
    margin-right: 1rem;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

footer .social-links a:hover {
    color: #28a745; /* Green hover effect */
    transform: scale(1.2);
}

footer p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Form Styles */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.input-group .btn {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Improved Design for lead text-muted */
.lead.text-muted {
    font-size: 1.2rem; /* Slightly larger font size for better readability */
    line-height: 1.8; /* Increased line height for better spacing */
    color: #6c757d; /* Muted gray color for a professional look */
    font-weight: 400; /* Regular weight for a clean appearance */
    margin-bottom: 1.5rem; /* Add spacing below the text */
    text-align: justify; /* Justify text for a polished layout */
}

.lead.text-muted strong {
    color: #104aa6; /* Highlight important text with a primary color */
    font-weight: 500; /* Slightly bolder for emphasis */
}

/* Our Story Section */
section .lead.text-muted {
    font-size: 1.2rem; /* Slightly larger font size for readability */
    line-height: 1.8; /* Better line spacing */
    color: #6c757d; /* Muted gray for a professional look */
    text-align: justify; /* Justify text for a polished layout */
    margin-bottom: 1.5rem; /* Add spacing between paragraphs */
}

section .lead.text-muted i {
    font-size: 1.5rem; /* Larger icon size for emphasis */
    vertical-align: middle; /* Align icons with text */
}

section .lead.text-muted strong {
    color: #104aa6; /* Highlight important text with a primary color */
    font-weight: 500; /* Slightly bolder for emphasis */
}

section h2.display-5 {
    font-size: 2.5rem; /* Larger heading size for better visibility */
    color: #104aa6; /* Primary color for the heading */
    margin-bottom: 1.5rem; /* Add spacing below the heading */
    position: relative;
}

section h2.display-5::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #28a745; /* Accent color for the underline */
    margin: 0.5rem auto 0; /* Center the underline */
    border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow {
    box-shadow: var(--shadow) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}
