/* BJKM Custom Theme */
:root {
    --bs-primary: #FF9933;
    /* Saffron */
    --bs-secondary: #138808;
    /* Green */
    --bs-dark: #333333;
    --bs-light: #f8f9fa;
    --saffron-dark: #CC7A00;
    --green-dark: #0E6B06;
}

body {
    font-family: 'Mukta', sans-serif;
    background-color: var(--bs-light);
    overflow-x: hidden;
    width: 100%;
}

html {
    overflow-x: hidden;
}

/* Gradients */
.bg-saffron-gradient {
    background: linear-gradient(135deg, #FF9933 0%, #FF6600 100%);
    color: white;
}

.bg-green-gradient {
    background: linear-gradient(135deg, #138808 0%, #006400 100%);
    color: white;
}

.bg-blue-gradient {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
}

.bg-purple-gradient {
    background: linear-gradient(135deg, #6f42c1 0%, #59359a 100%);
    color: white;
}

.bg-pink-gradient {
    background: linear-gradient(135deg, #d63384 0%, #a61e61 100%);
    color: white;
}

.bg-orange-gradient {
    background: linear-gradient(135deg, #fd7e14 0%, #ca5b02 100%);
    color: white;
}

/* Navbar */
.navbar-custom {
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 50px;
}

.nav-link {
    font-weight: 600;
    color: #4a5568 !important;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--bs-primary) !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
    font-weight: 700;
}

.btn-primary:hover {
    background-color: var(--saffron-dark);
    border-color: var(--saffron-dark);
}

.btn-outline-primary {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-outline-primary:hover {
    background-color: var(--bs-primary);
    color: white;
}

/* Cards */
.card-hover {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes swing {

    0%,
    100% {
        transform: rotate(0deg);
    }

    20% {
        transform: rotate(15deg);
    }

    40% {
        transform: rotate(-10deg);
    }

    60% {
        transform: rotate(5deg);
    }

    80% {
        transform: rotate(-5deg);
    }
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, 40px);
    }

    100% {
        transform: translate(0, 0);
    }
}

.animate-swing {
    animation: swing 2s infinite;
    transform-origin: top center;
}

/* Top Bar */
.top-bar {
    background-color: #1a202c;
    color: #cbd5e0;
    font-size: 0.875rem;
}

.top-bar i {
    color: var(--bs-primary);
}

/* Footer */
.footer {
    background-color: #1a202c;
    color: #a0aec0;
    border-top: 5px solid var(--bs-primary);
}

.footer a {
    color: #cbd5e0;
    text-decoration: none;
}

.footer a:hover {
    color: var(--bs-primary);
}

/* Notification Dot */
.notification-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background-color: #dc3545;
    border: 2px solid white;
    border-radius: 50%;
}

/* Hero Section & Backgrounds */
.hero-section-bg {
    background: linear-gradient(135deg, #fffaf0 0%, #ffffff 50%, #f0fff4 100%);
    position: relative;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(30deg, #FF9933 12%, transparent 12.5%, transparent 87%, #FF9933 87.5%, #FF9933),
        linear-gradient(150deg, #FF9933 12%, transparent 12.5%, transparent 87%, #FF9933 87.5%, #FF9933),
        linear-gradient(30deg, #FF9933 12%, transparent 12.5%, transparent 87%, #FF9933 87.5%, #FF9933),
        linear-gradient(150deg, #FF9933 12%, transparent 12.5%, transparent 87%, #FF9933 87.5%, #FF9933),
        linear-gradient(60deg, #13880877 25%, transparent 25.5%, transparent 75%, #13880877 75%, #13880877),
        linear-gradient(60deg, #13880877 25%, transparent 25.5%, transparent 75%, #13880877 75%, #13880877);
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
    opacity: 0.05;
    z-index: 0;
}

.hero-blob-1 {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 153, 51, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 10s ease-in-out infinite;
}

.hero-blob-2 {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(19, 136, 8, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 15s ease-in-out infinite reverse;
}

/* =========================================================================
   NEW DESIGN ENHANCEMENTS (Particles & Scroll Animations)
   ========================================================================= */

/* Canvas Background */
#canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Behind everything */
    background: transparent;
    pointer-events: none;
    /* Let clicks pass through */
}

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Hover Effects (3D Lift) */
.hover-card-3d {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    /* Soft initial shadow */
}

.hover-card-3d:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 2;
    /* Bring to front */
}

/* Gradient Text Effect */
/* =========================================================================
   PREMIUM DESIGN UTILITIES (For New Index)
   ========================================================================= */

/* Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    transition: all 0.4s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(31, 38, 135, 0.15);
}

/* Dark Glass (for Footers or dark sections) */
.glass-card-dark {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

/* Text Styles */
.fw-super-bold {
    font-weight: 800;
    letter-spacing: -1px;
}

.text-shadow-sm {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-justify {
    text-align: justify;
}

/* Blob Animations for Background */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
    z-index: -2;
    animation: pulse-blob 8s infinite alternate;
}

@keyframes pulse-blob {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* Section Separators */
.section-separator {
    height: 4px;
    width: 80px;
    background: linear-gradient(to right, var(--bs-primary), var(--bs-secondary));
    border-radius: 2px;
    margin: 1rem auto;
}

/* Feature Icon Box */
.feature-icon-box {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border-radius: 20px;
    /* Squircle */
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hover-card-3d:hover .feature-icon-box {
    transform: scale(1.1) rotate(5deg);
}

/* Custom Button Styles */
.btn-premium {
    background: linear-gradient(45deg, #FF9933, #FF7043);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 153, 51, 0.4);
    transition: all 0.3s ease;
}

.btn-premium:hover {
    background: linear-gradient(45deg, #FF7043, #FF9933);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 51, 0.6);
    color: white;
}

/* Hero Content Styling */
.hero-title {
    background: -webkit-linear-gradient(45deg, #e65100, #1b5e20);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.1));
}

canvas {
    display: block;
}

/* Flip Card Styles */
.flip-card {
    perspective: 1000px;
    height: 350px;
    /* Fixed height for consistency */
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    /* Safari */
    backface-visibility: hidden;
    border-radius: 1rem;
    /* rounded-4 equivalent */
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.flip-card-front {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.flip-card-back {
    background: linear-gradient(135deg, #FF9933 0%, #FF6600 100%);
    /* Saffron Gradient */
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.flip-card-back .text-muted {
    color: rgba(255, 255, 255, 0.9) !important;
}

.flip-card-back i {
    color: white !important;
}

/* Fix canvas display issues */
canvas {
    vertical-align: bottom;
}

/* =========================================================================
   DROPDOWN ANIMATIONS & HOVER SUPPORT
   ========================================================================= */

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUpFade 0.3s ease forwards;
}

/* Make dropdown open on hover for Desktops */
/* Temporarily disabled - can interfere with mobile touch events
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
    
    .dropdown .dropdown-menu {
        display: none;
    }
    
    .dropdown:hover .nav-link {
        color: var(--bs-primary) !important;
    }
}
*/

/* =========================================================================
   DROPDOWN MENU STYLING
   ========================================================================= */

.dropdown-menu {
    min-width: 250px !important;
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    animation: slideUpFade 0.2s ease;
    /* Prevent cutoff on screen edges */
    left: auto !important;
    right: 0 !important;
    transform: none !important;
}

/* Override for mobile */
@media (max-width: 991px) {
    .dropdown-menu {
        left: 0 !important;
        right: auto !important;
        width: 100%;
        max-width: 100%;
    }
}

.dropdown-item {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(255, 153, 51, 0.1);
    color: var(--bs-primary);
    padding-left: 1.5rem;
}

/* State Dropdown Specific */
.scrollable-menu {
    max-height: 400px;
    overflow-y: auto;
}

.state-item {
    white-space: nowrap;
}

/* Search Input in Dropdown */
.dropdown-menu .form-control {
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
}

.dropdown-menu .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 153, 51, 0.25);
}