/* -------------------------------------------------------------------
 * MDV AUDITORS & TAX CONSULTANTS - MAIN STYLESHEET
 * Theme: White & Blue Premium Corporate Palette
 * ------------------------------------------------------------------- */

:root {
    --bs-font-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    /* Custom Color Tokens */
    --color-navy: #0a1e3f;
    --color-navy-light: #162c54;
    --color-primary: #0264d8;
    --color-primary-hover: #0252b3;
    --color-primary-soft: rgba(2, 100, 216, 0.08);
    --color-primary-light: #64b5f6;
    --color-accent: #00c6ff;
    --color-light-bg: #f8fbff;
    --color-whatsapp: #25D366;
    
    --shadow-sm: 0 2px 8px rgba(10, 30, 63, 0.04);
    --shadow-md: 0 8px 24px rgba(10, 30, 63, 0.08);
    --shadow-lg: 0 16px 36px rgba(10, 30, 63, 0.12);
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#chatbot-messages {
    min-height: 0;
    overflow-y: auto !important;
}

body {
    font-family: var(--bs-font-sans-serif);
    color: #334155;
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography & Utility Classes */
.text-navy {
    color: var(--color-navy) !important;
}

/* Logo Styling */
.navbar-brand {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.navbar-logo {
    height: 110px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: var(--transition-smooth);
}

.footer-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
}

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

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

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

.bg-light-gradient {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.tracking-wider {
    letter-spacing: 0.08em;
}

.fs-7 {
    font-size: 0.85rem;
}

.fs-8 {
    font-size: 0.75rem;
}

.text-light-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

.divider {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 2px;
    margin-top: 8px;
}

.transition-all {
    transition: var(--transition-smooth);
}

/* Navbar Customization */
.navbar {
    transition: var(--transition-smooth);
}

.nav-link {
    color: #475569 !important;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 8px;
    right: 8px;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 1px;
}

.btn-primary {
    background-color: green;
    border-color: green;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 100, 216, 0.3);
}

/* Hero Section */
.hero-section {
    min-height: 85vh;
    border-bottom: 5px solid var(--color-primary);
    position: relative;
}

.hero-section .carousel-inner {
    min-height: 85vh;
}

#heroCarousel .carousel-item {
    min-height: 85vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-slide-1 {
    background-image: url('../images/b1.png');
}

.hero-slide-2 {
    background-image: url('../images/b2.png');
}

.hero-slide-3 {
    background-image: url('../images/b3.png');
}

.hero-slide-4 {
    background-image: url('../images/b4.png');
}


.justdial-btn {
    background: #ffffff;
    color: #e53935;
    font-weight: 800;
    font-size: 13px;
    font-family: Arial, sans-serif;
    border: 1px solid #e53935;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.justdial-btn span {
    line-height: 1;
}

.justdial-btn:hover {
    background: #e53935;
    color: #ffffff;
    transform: translateY(-2px);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 17, 37, 0.92) 0%, rgba(4, 17, 37, 0.72) 45%, rgba(4, 17, 37, 0.28) 100%);
    box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.12);
    pointer-events: none;
    z-index: 1;
}

.hero-section .container,
.hero-section .carousel-indicators {
    position: relative;
    z-index: 2;
}

.hero-section h1,
.hero-section .lead,
.hero-section .badge,
.hero-section .btn {
    position: relative;
    z-index: 2;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.95),
                 0 0 4px rgba(0, 0, 0, 0.9),
                 0 0 8px rgba(0, 0, 0, 0.7);
}

.hero-section .btn-outline-light {
    background-color: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(4px);
}

.min-vh-75 {
    min-height: 70vh;
}

.leading-tight {
    line-height: 1.15;
}

/* Why Choose Us Cards */
.why-card {
    border: 1px solid rgba(2, 100, 216, 0.08);
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg) !important;
    border-color: rgba(2, 100, 216, 0.2);
}

.icon-box {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Services Cards */
.service-card {
    transition: var(--transition-smooth);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--color-primary);
}

.service-icon {
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Gallery & Popup Slider Styles */
.gallery-card {
    cursor: pointer;
    background-color: var(--color-navy);
    min-height: 280px;
}

/* Resume Upload Box & Utilities */
.border-dashed {
    border-style: dashed !important;
}

.cursor-pointer {
    cursor: pointer;
}

.resume-upload-box {
    transition: var(--transition-smooth);
    background-color: #f8fafc;
}

.resume-upload-box:hover {
    background-color: #f1f5f9;
    border-color: var(--color-primary) !important;
}

.gallery-img {
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 30, 63, 0.2) 0%, rgba(10, 30, 63, 0.92) 100%);
    opacity: 0.9;
    transition: var(--transition-smooth);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.filter-btn {
    transition: var(--transition-smooth);
    font-weight: 500;
}

.filter-btn.active {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
    border-color: var(--color-primary) !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
}

/* Pricing Card */
.pricing-card {
    border: 2px solid rgba(2, 100, 216, 0.15) !important;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

/* Footer Styling */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-block;
    padding: 3px 0;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.social-btn:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-3px);
}

/* Floating Action Buttons */
.floating-buttons-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.float-whatsapp {
    background-color: var(--color-whatsapp);
}

.float-whatsapp:hover {
    background-color: #20ba59;
    color: #ffffff;
    transform: scale(1.1);
}

.float-call {
    background-color: var(--color-primary);
}

.float-call:hover {
    background-color: var(--color-primary-hover);
    color: #ffffff;
    transform: scale(1.1);
}

.float-top {
    background-color: var(--color-navy);
    opacity: 0;
    visibility: hidden;
}

.float-top.show {
    opacity: 1;
    visibility: visible;
}

.float-top:hover {
    background-color: #0f2b5c;
    color: #ffffff;
    transform: translateY(-4px);
}

/* Chatbot Widget Styles */
.chatbot-toggle {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: var(--color-navy);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 20px rgba(10, 30, 63, 0.3);
    font-size: 1.35rem;
    z-index: 1040;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.chatbot-toggle:hover {
    transform: scale(1.08);
    background-color: var(--color-primary);
}

.chatbot-box {
    position: fixed;
    bottom: 90px;
    left: 24px;
    width: 340px;
    max-width: calc(100vw - 48px);
    height: 420px;
    max-height: calc(100vh - 120px);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(10, 30, 63, 0.1);
    background-color: #ffffff;
}

.chatbot-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.chatbot-messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar-logo {
        height: 75px;
    }
    
    .footer-logo {
        height: 85px;
    }

    .hero-section {
        min-height: 75vh;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2.2rem;
    }
    
    .floating-buttons-container {
        bottom: 16px;
        right: 16px;
    }
    
    .chatbot-toggle {
        bottom: 16px;
        left: 16px;
    }
    
    .chatbot-box {
        bottom: 80px;
        left: 16px;
    }
}
