:root {
    --primary-saffron: #ff9933;
    --primary-gold: #d4af37;
    --accent-red: #b32d2e;
    --dark-bg: #121212;
    --dark-surface: #1e1e1e;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(12px);
    --text-light: #f5f5f5;
    --text-dark: #333333;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Body Styles for Modern Look */
body {
    scroll-behavior: smooth;
    transition: var(--transition-smooth);
}

/* Dark Mode Overrides (Controlled by .dark-theme class on body) */
body.dark-theme {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

body.dark-theme .tj-wrapper {
    background: var(--dark-bg);
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.2);
    border-color: var(--primary-gold);
}

/* Modern Hero Section Enhancements */
.tj-banner-form {
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.8), rgba(255, 153, 51, 0.2)), url('/static/ujjain-tour.png');
    background-size: cover;
    background-position: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.banner-caption h2 {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(to right, #ffffff, var(--primary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Floating Animation for Hero Elements */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.banner-inner {
    animation: float 5s ease-in-out infinite;
}

/* Stories Style Components */
.stories-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.stories-container::-webkit-scrollbar {
    display: none;
}

.story-item {
    flex: 0 0 80px;
    text-align: center;
    cursor: pointer;
}

.story-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary-saffron);
    padding: 3px;
    transition: var(--transition-smooth);
}

.story-circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.story-item:hover .story-circle {
    transform: scale(1.1);
    border-color: var(--primary-gold);
}

.story-label {
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #FFF;
}

/* Scroll Animations using Intersection Observer classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Checkbox as Theme Switcher */
#theme-toggle {
    display: none;
}

.theme-label {
    width: 50px;
    height: 24px;
    background: #555;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    display: inline-block;
}

.theme-label::after {
    content: '';
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: 0.3s;
}

#theme-toggle:checked+.theme-label {
    background: var(--primary-gold);
}

#theme-toggle:checked+.theme-label::after {
    left: calc(100% - 22px);
}

/* Voice Search Button */
.voice-search-btn {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-gold);
    color: white;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.voice-search-btn.listening {
    background: var(--accent-red);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(179, 45, 46, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(179, 45, 46, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(179, 45, 46, 0);
    }
}

/* AI FAB */
.ai-fab {
    position: fixed;
    bottom: 190px;
    right: 30px;
    padding: 10px 20px;
    background: linear-gradient(45deg, var(--primary-saffron), var(--primary-gold));
    color: white;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.ai-fab:hover {
    transform: scale(1.05) rotate(-2deg);
}

/* AI Modal Styles */
.itinerary-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: #1e1e1e;
    color: white;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #d4af37;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
}

.itinerary-result {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid #d4af37;
    max-height: 300px;
    overflow-y: auto;
}

.itinerary-step {
    margin-bottom: 10px;
    font-size: 14px;
}

.itinerary-step b {
    color: #ff9933;
}