:root {
    --primary-color: #e31e24;
    /* Revon Red */
    --secondary-color: #f39c12;
    /* Revon Orange/Yellow */
    --light-bg: #ffffff;
    --card-bg: #f8f9fa;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --font-main: 'Outfit', sans-serif;
    --gradient-primary: linear-gradient(135deg, #e31e24 0%, #f39c12 100%);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: 1px solid rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(227, 30, 36, 0.3);
    --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--font-main);
    background-color: var(--light-bg);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

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

.text-gradient {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

/* Buttons */
.btn-revon {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-revon:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: #fff;
}

.btn-revon-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-revon-outline:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

/* Sections */
section {
    padding: 80px 0;
}

/* Navbar overrides */
.navbar-custom {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: var(--glass-border);
    padding: 15px 0;
    box-shadow: var(--shadow-soft);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-dark) !important;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Navbar Scrolled State */
.navbar-custom.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Background Utilities */
.bg-darker {
    background-color: #f8f9fa;
}

/* Gallery Items */
.gallery-item {
    transition: all 0.4s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(227, 30, 36, 0.2);
}

.gallery-item img {
    transition: all 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.gallery-image-placeholder {
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-image-placeholder {
    background: rgba(227, 30, 36, 0.05) !important;
}

/* Card Hover Effects */
.card.glass-panel {
    transition: all 0.4s ease;
}

.card.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(227, 30, 36, 0.15);
    border-color: rgba(227, 30, 36, 0.3);
}

/* Hover Primary */
.hover-primary {
    transition: color 0.3s ease;
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Letter Spacing Utility */
.ls-2 {
    letter-spacing: 2px;
}

/* Z-index utility */
.z-index-1 {
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-2 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    section {
        padding: 60px 0;
    }
}

/* ==========================================================================
   Chatbot Theme Overrides (SevaSathi)
   ========================================================================== */

/* 1. Floating Chat Button */
#chatbotWidgetButton,
.chatbot-widget-button {
    background: var(--gradient-primary) !important;
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.4) !important;
    border: none !important;
    transition: all 0.3s ease !important;
    z-index: 1050 !important;
}

#chatbotWidgetButton:hover,
.chatbot-widget-button:hover {
    transform: scale(1.1) rotate(5deg) !important;
    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.6) !important;
}

/* 2. Notification Badge */
#chatbotBadge,
.chatbot-widget-badge {
    background-color: var(--secondary-color) !important;
    color: white !important;
    border: 2px solid white !important;
}

/* 3. Chat Window Iframe Container */
#chatbotIframe,
.chatbot-widget-iframe {
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    border: var(--glass-border) !important;
    z-index: 1050 !important;
    bottom: 90px !important;
    right: 20px !important;
}

/* 4. Cross-Origin Styling Fallback 
   Since the internal header resides in a cross-origin iframe, 
   we can use an overlay or filter trick if needed. 
   For now, we ensure the container matches the glassmorphism theme. */
.chatbot-widget-container {
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

/* SVG Icon inside button */
.chatbot-widget-button svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)) !important;
}