/**
 * DAINIK PROYOJON - Main Stylesheet
 * Service Marketplace Website
 */

/* CSS Variables */
:root {
    --primary-blue: #0B4EA2;
    --secondary-blue: #1D73D6;
    --green: #62BB2E;
    --white: #FFFFFF;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
    --dark: #212529;
    --font-primary: 'Inter', sans-serif;
    --font-bangla: 'Hind Siliguri', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-blue);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
}

.top-bar-left span {
    margin-right: 20px;
}

.top-bar-left span i {
    margin-right: 5px;
}

.top-bar-right .btn {
    margin-left: 5px;
    font-size: 13px;
    padding: 3px 12px;
    border-radius: 20px;
}

/* ============================================
   HEADER
   ============================================ */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all 0.3s ease;
    padding: 0;
}

.main-header.header-sticky {
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
}

.main-header .container {
    max-width: 1200px;
    padding: 0 15px;
}

.navbar {
    padding: 5px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 5px 0;
    flex-shrink: 0;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    display: block;
}

.brand-text {
    font-weight: 700;
    font-size: 20px;
    color: var(--primary-blue);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.navbar-toggler {
    border: none !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    order: 3;
    flex-shrink: 0;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(11, 78, 162, 0.15) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(11, 78, 162, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-collapse {
    flex-grow: 1;
    display: flex !important;
    align-items: center;
}

.navbar-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 2px;
    flex-wrap: nowrap;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 8px 14px !important;
    color: var(--dark);
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.navbar-nav .nav-link i {
    font-size: 13px;
    opacity: 0.7;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-blue);
    background: rgba(11, 78, 162, 0.06);
}

.navbar-nav .nav-link.active i {
    opacity: 1;
}

.btn-book {
    background: var(--green) !important;
    border: none !important;
    color: var(--white) !important;
    border-radius: 25px !important;
    padding: 6px 20px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
    white-space: nowrap;
}

.btn-book:hover {
    background: #4da324 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(98, 187, 46, 0.3);
}

.btn-book i {
    opacity: 1 !important;
}

/* ============================================
   MEGA MENU
   ============================================ */
.mega-menu-item .dropdown-menu {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 100% !important;
    padding: 30px 0 !important;
    border: none !important;
    border-radius: 0 0 16px 16px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12) !important;
    background: var(--white) !important;
    margin-top: 0 !important;
    min-width: 100% !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: block !important;
    z-index: 1050 !important;
    pointer-events: none !important;
}

.mega-menu-item:hover .dropdown-menu,
.mega-menu-item .dropdown-menu.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

.mega-menu .container {
    max-width: 1200px;
    padding: 0 15px;
}

.mega-menu-category {
    margin-bottom: 20px;
}

.mega-category-link {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 14px !important;
    background: var(--light-gray) !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    color: var(--dark) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    margin-bottom: 4px !important;
}

.mega-category-link:hover {
    background: rgba(11, 78, 162, 0.08) !important;
    color: var(--primary-blue) !important;
    transform: translateX(3px) !important;
}

.mega-category-icon {
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--white) !important;
    border-radius: 8px !important;
    color: var(--primary-blue) !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
}

.mega-category-link:hover .mega-category-icon {
    background: var(--primary-blue) !important;
    color: var(--white) !important;
    transform: scale(1.05) !important;
}

.mega-category-name {
    flex: 1 !important;
    font-size: 14px !important;
}

.mega-category-badge {
    background: var(--primary-blue) !important;
    color: var(--white) !important;
    font-size: 10px !important;
    padding: 2px 10px !important;
    border-radius: 12px !important;
    font-weight: 500 !important;
}

.mega-subcategory-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 6px 0 0 0 !important;
}

.mega-subcategory-list li {
    margin-bottom: 2px !important;
}

.mega-subcategory-list li a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 5px 14px !important;
    color: var(--gray) !important;
    font-size: 13px !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
}

.mega-subcategory-list li a i {
    font-size: 12px !important;
    color: var(--secondary-blue) !important;
    opacity: 0.6 !important;
    transition: all 0.3s ease !important;
    width: 16px !important;
}

.mega-subcategory-list li a:hover {
    color: var(--primary-blue) !important;
    background: rgba(11, 78, 162, 0.05) !important;
    padding-left: 18px !important;
}

.mega-subcategory-list li a:hover i {
    opacity: 1 !important;
    color: var(--primary-blue) !important;
}

.mega-subcategory-list .view-all a {
    color: var(--primary-blue) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
}

.mega-subcategory-list .view-all a i {
    opacity: 1 !important;
    font-size: 12px !important;
    transition: all 0.3s ease !important;
}

.mega-subcategory-list .view-all a:hover i {
    transform: translateX(3px) !important;
}

.mega-menu-footer {
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
    padding-top: 20px !important;
    border-top: 1px solid rgba(0,0,0,0.06) !important;
    margin-top: 10px !important;
}

.mega-menu-footer .btn {
    border-radius: 25px !important;
    padding: 10px 30px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
}

.mega-menu-footer .btn-primary {
    background: var(--primary-blue) !important;
    border: none !important;
}

.mega-menu-footer .btn-primary:hover {
    background: var(--secondary-blue) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 20px rgba(11, 78, 162, 0.3) !important;
}

.mega-menu-footer .btn-success {
    background: var(--green) !important;
    border: none !important;
}

.mega-menu-footer .btn-success:hover {
    background: #4da324 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 20px rgba(98, 187, 46, 0.3) !important;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-title .tagline {
    display: block;
    font-size: 28px;
    font-weight: 500;
    font-family: var(--font-bangla);
    color: var(--green);
}

.hero-description {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.search-box {
    max-width: 550px;
    margin-bottom: 15px;
}

.search-box .form-control {
    padding: 14px 20px;
    border-radius: 30px 0 0 30px;
    border: none;
    font-size: 16px;
}

.search-box .btn {
    border-radius: 0 30px 30px 0;
    padding: 14px 30px;
}

.emergency-btn {
    border-radius: 25px;
    padding: 10px 30px;
    font-weight: 600;
    margin-left: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */
.categories-section {
    padding: 60px 0;
    background: var(--white);
}

.section-header {
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--gray);
    font-size: 16px;
}

.category-card {
    display: block;
    text-align: center;
    padding: 20px 10px;
    background: var(--white);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-blue);
}

.category-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: var(--light-gray);
    border-radius: 50%;
    margin: 0 auto 10px;
    font-size: 24px;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: var(--primary-blue);
    color: var(--white);
}

.category-card h6 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

/* ============================================
   FEATURED SERVICES CAROUSEL
   ============================================ */
.featured-services {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.featured-services::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(11, 78, 162, 0.03) 0%, transparent 50%);
    animation: floatBg 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatBg {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, -30px) rotate(5deg); }
}

.featured-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.featured-carousel {
    display: flex;
    gap: 20px;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.carousel-item {
    min-width: calc(25% - 15px);
    flex-shrink: 0;
    transition: all 0.5s ease;
}

/* Service Card */
.service-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0,0,0,0.04);
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(11, 78, 162, 0.15);
    border-color: rgba(11, 78, 162, 0.1);
}

/* Service Image */
.service-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.service-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover .service-image-wrapper img {
    transform: scale(1.1);
}

/* Emergency Badge */
.emergency-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 65, 108, 0.4);
    animation: pulseBadge 2s ease-in-out infinite;
    z-index: 2;
}

@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Service Overlay */
.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(11, 78, 162, 0.7), rgba(29, 115, 214, 0.7));
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover .service-overlay-content {
    transform: translateY(0);
}

.price-badge {
    background: rgba(255,255,255,0.95);
    color: var(--primary-blue);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.service-overlay-content .btn-light {
    border-radius: 30px;
    padding: 8px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-overlay-content .btn-light:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* Service Content */
.service-content {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-category {
    font-size: 12px;
    color: var(--secondary-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.service-category i {
    margin-right: 4px;
}

.service-content h5 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.service-provider {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 12px;
}

.service-provider i {
    margin-right: 4px;
    color: var(--primary-blue);
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.04);
}

.service-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.service-rating .stars {
    display: flex;
    gap: 2px;
}

.service-rating .stars i {
    font-size: 12px;
    color: #e4e5e9;
}

.service-rating .stars i.filled {
    color: #ffc107;
}

.rating-text {
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
}

/* Book Now Button */
.btn-book-now {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(11, 78, 162, 0.2);
}

.btn-book-now:hover {
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(11, 78, 162, 0.3);
    color: #ffffff;
}

.btn-book-now i {
    font-size: 12px;
}

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary-blue);
}

.carousel-btn:hover {
    background: var(--primary-blue);
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 30px rgba(11, 78, 162, 0.3);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-btn {
    left: -10px;
}

.next-btn {
    right: -10px;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d4d4d4;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0;
}

.carousel-dots .dot.active {
    background: var(--primary-blue);
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(11, 78, 162, 0.3);
}

.carousel-dots .dot:hover {
    transform: scale(1.2);
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
    padding: 60px 0;
    background: var(--white);
}

.step-card {
    padding: 30px;
    margin: 15px 0;
    border-radius: 10px;
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: var(--green);
    color: var(--white);
    border-radius: 50%;
    line-height: 30px;
    font-weight: 700;
    font-size: 14px;
}

.step-icon {
    font-size: 48px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.step-card h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

.step-card p {
    color: var(--gray);
    font-size: 14px;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section {
    padding: 50px 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
}

.newsletter-section h3 {
    font-weight: 700;
    font-size: 24px;
}

.newsletter-section p {
    opacity: 0.9;
}

.newsletter-form .form-control {
    border-radius: 25px 0 0 25px;
    padding: 12px 20px;
}

.newsletter-form .btn {
    border-radius: 0 25px 25px 0;
    padding: 12px 30px;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}

.main-footer h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 18px;
}

.main-footer ul {
    list-style: none;
    padding: 0;
}

.main-footer ul li {
    margin-bottom: 10px;
}

.main-footer ul li a {
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
}

.main-footer ul li a:hover {
    color: var(--green);
    padding-left: 5px;
}

.main-footer .contact-info li {
    display: flex;
    align-items: flex-start;
}

.main-footer .contact-info li i {
    width: 20px;
    margin-right: 10px;
    color: var(--green);
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--green);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 14px;
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(11, 78, 162, 0.3);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--secondary-blue);
    transform: translateY(-3px) scale(1.05);
}

/* ============================================
   TOAST CONTAINER
   ============================================ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
}

.toast-container .toast {
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .carousel-item {
        min-width: calc(33.33% - 14px);
    }
}

@media (max-width: 992px) {
    /* Header */
    .brand-text {
        font-size: 16px;
    }
    
    .navbar-brand img {
        height: 32px;
    }
    
    .navbar-collapse {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 15px 20px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        border-top: 2px solid var(--primary-blue);
        max-height: 80vh;
        overflow-y: auto;
        z-index: 1050;
        width: 100%;
    }
    
    .navbar-collapse.show {
        display: block !important;
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-left: 0;
    }
    
    .navbar-nav .nav-link {
        width: 100%;
        padding: 10px 15px !important;
        justify-content: flex-start;
        font-size: 14px;
    }
    
    .btn-book {
        width: 100% !important;
        justify-content: center !important;
        margin-top: 5px;
    }
    
    /* Mega Menu Mobile */
    .mega-menu-item .dropdown-menu {
        position: relative !important;
        box-shadow: none !important;
        padding: 15px !important;
        border-radius: 0 !important;
        background: var(--light-gray) !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: none !important;
        margin: 5px 0 !important;
    }
    
    .mega-menu-item .dropdown-menu.show {
        display: block !important;
    }
    
    .mega-menu .container {
        padding: 0 !important;
    }
    
    .mega-menu-category {
        margin-bottom: 15px;
    }
    
    .mega-category-link {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .mega-category-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .mega-menu-footer {
        flex-direction: column;
    }
    
    .mega-menu-footer .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Hero */
    .hero-title {
        font-size: 36px;
    }
    
    .hero-title .tagline {
        font-size: 22px;
    }
    
    /* Carousel */
    .carousel-item {
        min-width: calc(50% - 10px);
    }
    
    .top-bar {
        font-size: 12px;
        padding: 5px 0;
    }
    
    .top-bar-left span {
        margin-right: 10px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0 30px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-title .tagline {
        font-size: 18px;
    }
    
    .hero-description {
        font-size: 15px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .service-image-wrapper {
        height: 180px;
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .prev-btn {
        left: 0;
    }
    
    .next-btn {
        right: 0;
    }
    
    .main-footer {
        padding: 40px 0 0;
    }
    
    .main-footer .col-lg-4,
    .main-footer .col-lg-2,
    .main-footer .col-lg-3 {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .brand-text {
        font-size: 14px;
    }
    
    .navbar-brand img {
        height: 28px;
    }
    
    .navbar-nav .nav-link {
        font-size: 13px;
        padding: 8px 12px !important;
    }
    
    .top-bar-right .btn {
        font-size: 11px;
        padding: 2px 10px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .search-box .form-control {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .search-box .btn {
        padding: 10px 20px;
    }
    
    .emergency-btn {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .category-card {
        padding: 10px 5px;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 18px;
    }
    
    .category-card h6 {
        font-size: 11px;
    }
    
    .carousel-item {
        min-width: 100%;
    }
    
    .service-footer .price {
        font-size: 15px;
    }
    
    .service-footer .btn {
        font-size: 11px;
        padding: 5px 12px;
    }
}/* ============================================
   POPULAR CATEGORIES - CROSS BROWSER FIXED
   ============================================ */

.categories-premium {
    padding: 80px 0 100px;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Section Header */
.categories-header {
    text-align: center;
    margin-bottom: 50px;
}

.header-badge {
    display: inline-flex;
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    align-items: right;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(11, 78, 162, 0.08);
    color: #0B4EA2;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
    border: 1px solid rgba(11, 78, 162, 0.1);
}

.categories-title {
    font-size: 38px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
}

.categories-title span {
    background: linear-gradient(135deg, #0B4EA2, #1D73D6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.categories-subtitle {
    font-size: 17px;
    color: #6c757d;
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.header-decoration {
    display: flex;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    align-items: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    justify-content: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    gap: 10px;
}

.deco-line {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0B4EA2, transparent);
    border-radius: 2px;
}

.deco-dot {
    width: 8px;
    height: 8px;
    background: #0B4EA2;
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

/* ============================================
   CATEGORIES WRAPPER - CROSS BROWSER
   ============================================ */

.categories-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    padding: 10px 0 20px;
    margin: 0 -15px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    display: block;
    width: 100%;
    position: relative;
}

/* Custom Scrollbar - Chrome, Edge, Safari */
.categories-wrapper::-webkit-scrollbar {
    height: 6px;
}

.categories-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.categories-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #0B4EA2, #1D73D6);
    border-radius: 10px;
}

.categories-wrapper::-webkit-scrollbar-thumb:hover {
    background: #0B4EA2;
}

/* Firefox Scrollbar */
.categories-wrapper {
    scrollbar-width: thin;
    scrollbar-color: #0B4EA2 #f1f1f1;
}

/* ============================================
   CATEGORIES GRID - CROSS BROWSER
   ============================================ */

.categories-grid {
    display: flex;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    flex-direction: row;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    gap: 20px;
    padding: 0 15px;
    flex-wrap: nowrap;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    width: 100%;
    min-width: -webkit-max-content;
    min-width: -moz-max-content;
    min-width: max-content;
    justify-content: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    align-items: stretch;
    -webkit-box-align: stretch;
    -webkit-align-items: stretch;
    -ms-flex-align: stretch;
    margin: 0 auto;
}

/* ============================================
   CATEGORY CARD - CROSS BROWSER
   ============================================ */

.category-card {
    display: flex;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    flex-direction: column;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    align-items: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    justify-content: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    padding: 25px 20px 20px;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    -webkit-box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none !important;
    color: inherit;
    position: relative;
    overflow: hidden;
    flex: 0 0 150px;
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 150px;
    -ms-flex: 0 0 150px;
    width: 150px;
    max-width: 150px;
    min-width: 150px;
    min-height: 160px;
    height: auto;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    text-decoration: none !important;
    -webkit-text-decoration: none !important;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.05);
    -webkit-transform: translateY(-8px) scale(1.05);
    border-color: rgba(11, 78, 162, 0.15);
    box-shadow: 0 15px 50px rgba(11, 78, 162, 0.08);
    -webkit-box-shadow: 0 15px 50px rgba(11, 78, 162, 0.08);
    text-decoration: none !important;
}

.category-card:active {
    transform: scale(0.97);
    -webkit-transform: scale(0.97);
}

/* REMOVE ALL UNDERLINE - CROSS BROWSER */
.category-card,
.category-card:hover,
.category-card:focus,
.category-card:active,
.category-card:visited,
.category-card *,
.category-card *:hover,
.category-card *:focus {
    text-decoration: none !important;
    -webkit-text-decoration: none !important;
    outline: none !important;
}

/* Category Icon */
.category-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    align-items: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    justify-content: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 12px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
}

.category-card:hover .category-icon {
    transform: scale(1.08) rotate(-5deg);
    -webkit-transform: scale(1.08) rotate(-5deg);
}

/* Category Name - NO UNDERLINE */
.category-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 4px 0;
    text-align: center;
    transition: color 0.3s ease;
    -webkit-transition: color 0.3s ease;
    line-height: 1.3;
    word-wrap: break-word;
    max-width: 100%;
    text-decoration: none !important;
    -webkit-text-decoration: none !important;
}

.category-card:hover .category-name {
    color: #0B4EA2;
    text-decoration: none !important;
}

/* Category Count */
.category-count {
    font-size: 11px;
    color: #9aa0a6;
    transition: color 0.3s ease;
    -webkit-transition: color 0.3s ease;
}

.category-card:hover .category-count {
    color: #1D73D6;
}

/* Hover Effect - Glow */
.category-hover-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(11, 78, 162, 0.04) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    -webkit-transition: opacity 0.5s ease;
    pointer-events: none;
    border-radius: 50%;
}

.category-card:hover .category-hover-effect {
    opacity: 1;
}

/* ============================================
   VIEW ALL BUTTON
   ============================================ */

.categories-footer {
    text-align: center;
    margin-top: 30px;
}

.btn-view-all {
    display: inline-flex;
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 36px;
    background: #ffffff;
    border: 2px solid #0B4EA2;
    border-radius: 50px;
    color: #0B4EA2;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.4s ease;
    -webkit-transition: all 0.4s ease;
    text-decoration: none;
}

.btn-view-all:hover {
    background: #0B4EA2;
    color: #ffffff;
    transform: translateY(-3px);
    -webkit-transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(11, 78, 162, 0.15);
    -webkit-box-shadow: 0 10px 40px rgba(11, 78, 162, 0.15);
    text-decoration: none;
}

.btn-view-all i {
    transition: transform 0.3s ease;
    -webkit-transition: -webkit-transform 0.3s ease;
}

.btn-view-all:hover i {
    transform: translateX(4px);
    -webkit-transform: translateX(4px);
}

/* ============================================
   SCROLL ANIMATION
   ============================================ */

.category-card {
    opacity: 0;
    transform: translateY(30px);
    -webkit-transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-transition: opacity 0.6s ease, -webkit-transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-card.card-visible {
    opacity: 1;
    transform: translateY(0);
    -webkit-transform: translateY(0);
}

.category-card.card-visible:hover {
    transform: translateY(-8px) scale(1.05);
    -webkit-transform: translateY(-8px) scale(1.05);
}

/* ============================================
   RESPONSIVE - CROSS BROWSER
   ============================================ */

/* Desktop */
@media (min-width: 1201px) {
    .category-card {
        flex: 0 0 160px;
        -webkit-box-flex: 0;
        -webkit-flex: 0 0 160px;
        -ms-flex: 0 0 160px;
        width: 160px;
        max-width: 160px;
        min-width: 160px;
        min-height: 170px;
        padding: 25px 20px 20px;
    }
    .categories-grid {
        gap: 20px;
    }
}

/* Laptop */
@media (max-width: 1200px) and (min-width: 993px) {
    .category-card {
        flex: 0 0 140px;
        -webkit-box-flex: 0;
        -webkit-flex: 0 0 140px;
        -ms-flex: 0 0 140px;
        width: 140px;
        max-width: 140px;
        min-width: 140px;
        min-height: 150px;
        padding: 20px 15px 16px;
    }
    .categories-grid {
        gap: 16px;
    }
    .category-icon {
        width: 48px;
        height: 48px;
        font-size: 19px;
    }
    .category-name {
        font-size: 13px;
    }
}

/* Tablet */
@media (max-width: 992px) and (min-width: 577px) {
    .categories-premium {
        padding: 60px 0 80px;
    }
    .categories-title {
        font-size: 30px;
    }
    .category-card {
        flex: 0 0 130px;
        -webkit-box-flex: 0;
        -webkit-flex: 0 0 130px;
        -ms-flex: 0 0 130px;
        width: 130px;
        max-width: 130px;
        min-width: 130px;
        min-height: 140px;
        padding: 18px 12px 14px;
    }
    .category-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    .category-name {
        font-size: 13px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .categories-premium {
        padding: 40px 0 60px;
    }
    .categories-title {
        font-size: 22px;
    }
    .categories-subtitle {
        font-size: 14px;
        padding: 0 16px;
    }
    .header-badge {
        font-size: 11px;
        padding: 4px 14px;
    }
    .deco-line {
        width: 30px;
    }
    .category-card {
        flex: 0 0 110px;
        -webkit-box-flex: 0;
        -webkit-flex: 0 0 110px;
        -ms-flex: 0 0 110px;
        width: 110px;
        max-width: 110px;
        min-width: 110px;
        min-height: 120px;
        padding: 14px 10px 12px;
    }
    .category-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 16px;
        margin-bottom: 8px;
    }
    .category-name {
        font-size: 11px;
    }
    .category-count {
        font-size: 9px;
    }
    .btn-view-all {
        padding: 12px 28px;
        font-size: 13px;
    }
    .categories-wrapper {
        padding: 5px 0 15px;
        margin: 0 -10px;
    }
    .categories-grid {
        gap: 12px;
        padding: 0 10px;
    }
}

/* Extra Small Mobile */
@media (max-width: 400px) {
    .category-card {
        flex: 0 0 95px;
        -webkit-box-flex: 0;
        -webkit-flex: 0 0 95px;
        -ms-flex: 0 0 95px;
        width: 95px;
        max-width: 95px;
        min-width: 95px;
        min-height: 105px;
        padding: 12px 8px 10px;
    }
    .category-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 14px;
        margin-bottom: 6px;
    }
    .category-name {
        font-size: 10px;
    }
    .category-count {
        font-size: 8px;
    }
    .categories-grid {
        gap: 10px;
    }
}