/* ==============================================
   Enhanced UI Improvements for Taj India Tour
   ============================================== */

/* Root Variables - Consistent Theming */
:root {
    --primary-color: #86B817;
    --secondary-color: #FE8800;
    --light-bg: #F5F5F5;
    --dark-text: #14141F;
    --white: #FFFFFF;
    --border-radius: 8px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s ease;
}

/* ============ Global Improvements ============ */

/* Better body styling */
body {
    font-family: 'Heebo', 'Nunito', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ============ Button Enhancements ============ */

.btn-primary, .btn-secondary {
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
    box-shadow: var(--box-shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(134, 184, 23, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 136, 0, 0.3);
}

/* ============ Card Improvements ============ */

.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.package-item,
.service-item,
.team-item {
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
}

.package-item:hover,
.service-item:hover,
.team-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ============ Image Improvements ============ */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lazy loading with placeholder */
img[loading="lazy"] {
    background-color: var(--light-bg);
}

/* Image rounded corners */
.img-rounded {
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* ============ Navbar Improvements ============ */

.navbar {
    transition: all var(--transition-speed);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar-light .navbar-nav .nav-link {
    position: relative;
    font-weight: 600;
    font-size: 16px;
}

.navbar-light .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link.active::after {
    width: 100%;
}

/* ============ Form Improvements ============ */

.form-control, .form-select {
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    padding: 10px 15px;
    transition: all var(--transition-speed);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(134, 184, 23, 0.25);
}

.form-control::placeholder {
    color: #999;
    font-style: italic;
}

/* ============ Section Improvements ============ */

section {
    padding: 60px 0;
}

section h2 {
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* ============ Text Improvements ============ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--dark-text);
}

p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* ============ Link Improvements ============ */

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-speed);
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* ============ Badge & Tag Improvements ============ */

.badge {
    border-radius: 20px;
    padding: 6px 12px;
    font-weight: 600;
    font-size: 12px;
}

.badge-primary {
    background-color: var(--primary-color);
}

.badge-secondary {
    background-color: var(--secondary-color);
}

/* ============ WhatsApp Button Styling ============ */

.float {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 40px;
    left: 40px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    font-size: 33px;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    animation: pulse 2s infinite;
    transition: all var(--transition-speed);
}

.float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    }
}

/* ============ Back to Top Button ============ */

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 100px;
    z-index: 99;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 12px rgba(134, 184, 23, 0.3);
}

.back-to-top:hover {
    transform: translateY(-3px);
    background-color: var(--secondary-color);
}

.back-to-top.show {
    display: flex !important;
}

/* ============ Loading Spinner ============ */

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
    z-index: 99999;
    background-color: rgba(0, 0, 0, 0.5);
}

#spinner.show {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.5s ease-out, visibility linear;
}

/* ============ Responsive Improvements ============ */

@media (max-width: 768px) {
    section {
        padding: 40px 0;
    }
    
    .float {
        width: 45px;
        height: 45px;
        bottom: 20px;
        left: 20px;
        font-size: 28px;
    }
    
    .back-to-top {
        right: 20px;
        bottom: 80px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    h2 {
        font-size: 28px;
    }
}

/* ============ Accessibility Improvements ============ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible for keyboard navigation */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ============ Print Styles ============ */

@media print {
    .navbar,
    .float,
    .back-to-top,
    .modal {
        display: none !important;
    }
    
    body {
        background-color: white;
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}
