/* Optimized Layout CSS */

:root{
      --primary: #007bff;
      --accent: #6610f2;
      --muted: #6c757d;
      --bg: #feffed;
      --surface: rgba(255,255,255,0.1);
      --glass-border: rgba(255,255,255,0.2);
      --shadow: rgba(0,0,0,0.1);
      --danger: #dc3545;

      --nav-height: 70px;
      --fab-size: 56px;
      --radius-lg: 15px;
      --transition-fast: 0.15s;
      --transition-default: 0.3s;
    }

    body {
        font-family: 'Inter', sans-serif !important;
        background-color: #f8fafc;
        color: #334155;
    }

    /* Reset link colour */
    a { color: rgb(68,136,232); }

    /* ---------- Enhanced Navbar with Glassmorphism ---------- */
    .navbar {
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      background: rgba(255, 255, 255, 0.95) !important;
      border-bottom: 1px solid rgba(0, 0, 0, 0.08);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
      transition: all var(--transition-default) ease;
    }

    .navbar.sticky-top {
      backdrop-filter: blur(25px);
      -webkit-backdrop-filter: blur(25px);
      z-index: 1050 !important;
    }

    .navbar-brand {
      transition: transform var(--transition-fast) ease;
    }

    .navbar-brand:hover {
      transform: scale(1.05);
    }

    .nav-item a {
      font-weight: 500;
      color: #495057 !important;
      transition: color var(--transition-fast) ease;
      position: relative;
    }

    .nav-item a::after {
      content: '';
      position: absolute;
      bottom: -5px;
      left: 50%;
      transform: translateX(-50%) scaleX(0);
      width: 80%;
      height: 2px;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      transition: transform var(--transition-default) ease;
    }

    .nav-item a:hover::after {
      transform: translateX(-50%) scaleX(1);
    }

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

    /* Enhanced Buttons */
    .btn-outline {
      border: 2px solid var(--primary);
      color: var(--primary);
      font-weight: 600;
      padding: 0.5rem 1.25rem;
      border-radius: 25px;
      transition: all var(--transition-fast) ease;
      background: transparent;
    }

    .btn-outline:hover {
      background: var(--primary);
      color: white;
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(0, 123, 255, 0.25);
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
      border: none;
      font-weight: 600;
      padding: 0.5rem 1.5rem;
      border-radius: 25px;
      transition: all var(--transition-fast) ease;
      box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
    }

    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(0, 123, 255, 0.35);
    }

    .btn-outline-secondary {
      border-radius: 50%;
      width: 40px;
      height: 40px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: all var(--transition-fast) ease;
    }

    .btn-outline-secondary:hover {
      background: rgba(0, 123, 255, 0.1);
      border-color: var(--primary);
      color: var(--primary);
      transform: scale(1.1);
    }

    /* Notification Badge */
    .notification-badge {
      font-size: 0.65rem;
      padding: 0.25em 0.5em;
    }

    /* ---------- Mobile bottom navigation (viewport bottom) ---------- */
    .mobile-bottom-nav {
      position: fixed;
      inset-inline: 0;
      bottom: 0;
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-top: 1px solid rgba(0, 0, 0, 0.08);
      box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
      display: none; /* shown only on mobile via media query */
      justify-content: space-around;
      align-items: center;
      padding: 10px 0;
      z-index: 1000;
      width: 100%;
      height: var(--nav-height);
      transform: none;
      /* safe area support */
      padding-bottom: calc(env(safe-area-inset-bottom, 0) + 10px);
    }

    .bottom-nav-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-decoration: none;
      color: var(--muted);
      font-size: 12px;
      font-weight: 600;
      transition: color var(--transition-fast) ease, transform var(--transition-fast) ease;
      padding: 5px;
      min-width: 60px;
      gap: 3px;
      position: relative;
    }

    .bottom-nav-item i { font-size: 20px; }
    .bottom-nav-item span { font-size: 10px; }

    .bottom-nav-item:hover,
    .bottom-nav-item.active {
      color: var(--primary);
      transform: translateY(-3px);
    }

    .bottom-nav-item.active::before {
      content: '';
      position: absolute;
      top: -2px;
      left: 50%;
      transform: translateX(-50%);
      width: 30px;
      height: 3px;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      border-radius: 0 0 3px 3px;
    }

    /* Only add bottom padding when mobile nav exists */
    body.has-mobile-nav {
      padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0));
    }

    /* ---------- Floating Action Button (mobile) ---------- */
    .mobile-fab {
      position: fixed;
      right: 20px;
      bottom: calc(var(--nav-height) + 20px);
      z-index: 1100;
      display: none; /* enabled on mobile via media query */
    }

    .fab-main {
      width: var(--fab-size);
      height: var(--fab-size);
      border-radius: 50%;
      background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
      border: none;
      color: #fff;
      font-size: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 6px 20px rgba(0,123,255,0.4);
      transition: transform var(--transition-default) ease, box-shadow var(--transition-default) ease;
      cursor: pointer;
    }

    .fab-main:hover { transform: scale(1.1); box-shadow: 0 8px 24px rgba(0,123,255,0.5); }
    .fab-main.active { transform: rotate(45deg); }

    /* menu initially hidden; animated when .active is added */
    .fab-menu {
      position: absolute;
      right: 0;
      bottom: calc(var(--fab-size) + 14px);
      display: flex;
      flex-direction: column;
      gap: 10px;
      opacity: 0;
      visibility: hidden;
      transform: translateY(12px);
      transition: opacity var(--transition-default) ease, transform var(--transition-default) ease, visibility var(--transition-fast) ease;
      pointer-events: none;
    }
    .fab-menu.active { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }

    .fab-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 16px;
      background: rgba(255, 255, 255, 0.98);
      backdrop-filter: blur(10px);
      color: #495057;
      text-decoration: none;
      border-radius: 25px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
      font-size: 14px;
      font-weight: 600;
      white-space: nowrap;
      transition: transform var(--transition-fast) ease, box-shadow var(--transition-fast) ease, color var(--transition-fast) ease;
      min-width: 140px;
      justify-content: flex-start;
    }
    .fab-item:hover { transform: translateX(-5px); box-shadow: 0 6px 16px rgba(0,0,0,0.2); color: var(--primary); }
    .fab-item i { font-size: 16px; min-width: 16px; }
    .fab-item.logout { color: var(--danger); }
    .fab-item.logout:hover { background: #fff0f0; color: var(--danger); }

      /* ---------- Hero, cards & buttons ---------- */
      .hero {
        background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
        color: white;
        padding: 100px 0;
      }

      .category-card {
        backdrop-filter: blur(10px);
        background: var(--surface);
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-lg);
        box-shadow: 0 4px 12px var(--shadow);
        transition: transform var(--transition-default) ease, box-shadow var(--transition-default) ease;
        overflow: hidden;
      }
      .category-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.16); }

      .btn {
        border-radius: 25px;
        transition: transform var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
      }
      .btn:hover { transform: translateY(-2px); }

      /* ---------- Dark mode refinements ---------- */
      .dark-mode {
        --bg: #0f172a;
        --surface: rgba(30, 41, 59, 0.5);
        --glass-border: rgba(255,255,255,0.08);
        --muted: #94a3b8;
        --primary: #3b82f6;
        --accent: #8b5cf6;
      }

      .dark-mode .navbar {
        background: rgba(15, 23, 42, 0.95) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
      }

      .dark-mode .nav-item a {
        color: #cbd5e1 !important;
      }

      .dark-mode .nav-item a:hover {
        color: var(--primary) !important;
      }

      .dark-mode .btn-outline {
        border-color: var(--primary);
        color: var(--primary);
      }

      .dark-mode .btn-outline:hover {
        background: var(--primary);
        color: white;
      }

      .dark-mode .mobile-bottom-nav {
        background: rgba(15, 23, 42, 0.95);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
      }

      .dark-mode .bottom-nav-item {
        color: #94a3b8;
      }

      .dark-mode .bottom-nav-item:hover,
      .dark-mode .bottom-nav-item.active {
        color: var(--primary);
      }

      .dark-mode .fab-item {
        background: rgba(30, 41, 59, 0.98);
        color: #cbd5e1;
      }

      .dark-mode .fab-item:hover {
        color: var(--primary);
      }

      .dark-mode .hero { background: linear-gradient(135deg, #1e293b 0%, #334155 100%); }
      .dark-mode .category-card { background: rgba(30, 41, 59, 0.5); border: 1px solid rgba(255,255,255,0.08); }

      /* Additional dark mode styles from home page */
      .dark-mode .loading-overlay { background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.95)); }
      .dark-mode .loading-text { color: var(--accent); }
      .dark-mode .loading-spinner { border-color: rgba(59, 130, 246, 0.1); border-top-color: var(--accent); border-right-color: var(--primary); }
      .dark-mode .loading-spinner::before { border-top-color: rgba(139, 92, 246, 0.2); }

      /* Dropdown Dark Mode */
      .dark-mode .dropdown-menu {
        background: rgba(30, 41, 59, 0.98);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
      }

      .dark-mode .dropdown-item {
        color: #cbd5e1;
      }

      .dark-mode .dropdown-item:hover {
        background: rgba(59, 130, 246, 0.15);
        color: var(--primary);
      }

      .dark-mode .dropdown-header {
        color: #fff;
      }

      .dark-mode .dropdown-divider {
        border-color: rgba(255, 255, 255, 0.08);
      }

      /* ---------- Premium Loading Animation ---------- */
      .loading-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.95));
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        opacity: 1;
        visibility: visible;
        transition: opacity 0.5s ease, visibility 0.5s ease;
      }

      .loading-overlay.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
      }

      .loading-spinner {
        width: 60px;
        height: 60px;
        border: 4px solid rgba(0, 123, 255, 0.1);
        border-top-color: var(--primary);
        border-right-color: var(--accent);
        border-radius: 50%;
        animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
        position: relative;
      }

      .loading-spinner::before {
        content: '';
        position: absolute;
        top: -4px;
        left: -4px;
        right: -4px;
        bottom: -4px;
        border: 4px solid transparent;
        border-top-color: rgba(102, 16, 242, 0.2);
        border-radius: 50%;
        animation: spin 1.5s linear infinite reverse;
      }

      @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
      }

      .loading-text {
        margin-top: 1.5rem;
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--primary);
        animation: pulse 1.5s ease-in-out infinite;
      }

      @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.5; }
      }

      .loading-dots {
        display: inline-flex;
        gap: 4px;
        margin-left: 4px;
      }

      .loading-dots span {
        width: 6px;
        height: 6px;
        background: var(--primary);
        border-radius: 50%;
        animation: bounce 1.4s infinite ease-in-out both;
      }

      .loading-dots span:nth-child(1) { animation-delay: -0.32s; }
      .loading-dots span:nth-child(2) { animation-delay: -0.16s; }

      @keyframes bounce {
        0%, 80%, 100% { transform: scale(0); }
        40% { transform: scale(1); }
      }

      /* ---------- Page Transitions ---------- */
      .page-transition {
        animation: fadeIn 0.4s ease-out;
      }

      @keyframes fadeIn {
        from {
          opacity: 0;
          transform: translateY(10px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

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

      /* Content fade-in on load */
      body {
        animation: bodyFadeIn 0.3s ease-out;
      }

      @keyframes bodyFadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
      }

      /* Card entrance animations */
      .card, .category-card, .service-card, .professional-card, .step-card {
        animation: slideUp 0.5s ease-out backwards;
      }

      .card:nth-child(1), .category-card:nth-child(1) { animation-delay: 0.1s; }
      .card:nth-child(2), .category-card:nth-child(2) { animation-delay: 0.2s; }
      .card:nth-child(3), .category-card:nth-child(3) { animation-delay: 0.3s; }
      .card:nth-child(4), .category-card:nth-child(4) { animation-delay: 0.4s; }

      @keyframes slideUp {
        from {
          opacity: 0;
          transform: translateY(30px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      /* Button press animation */
      .btn:active {
        transform: scale(0.95);
      }

      /* Link hover animation */
      a {
        transition: color 0.3s ease, transform 0.2s ease;
      }

      /* ---------- Toast Notifications ---------- */
      .toast-container {
        max-width: 400px;
      }

      .toast {
        min-width: 300px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        border-radius: 12px;
        backdrop-filter: blur(10px);
        animation: slideInRight 0.4s ease-out;
        margin-bottom: 1rem;
      }

      @keyframes slideInRight {
        from {
          opacity: 0;
          transform: translateX(100%);
        }
        to {
          opacity: 1;
          transform: translateX(0);
        }
      }

      .toast.hide {
        animation: slideOutRight 0.4s ease-out forwards;
      }

      @keyframes slideOutRight {
        from {
          opacity: 1;
          transform: translateX(0);
        }
        to {
          opacity: 0;
          transform: translateX(100%);
        }
      }

      .toast-body {
        font-weight: 500;
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
      }

      .toast-body i {
        font-size: 1.1rem;
      }

      .toast.bg-success {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
      }

      .toast.bg-danger {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
      }

      .toast.bg-warning {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
      }

      /* Dark mode toast adjustments */
      .dark-mode .toast {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
      }

      .dark-mode .toast.bg-success {
        background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
      }

      .dark-mode .toast.bg-danger {
        background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
      }

      .dark-mode .toast.bg-warning {
        background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
      }

      /* Mobile toast positioning */
      @media (max-width: 768px) {
        .toast-container {
          left: 0 !important;
          right: 0 !important;
          max-width: 100%;
          padding: 1rem !important;
          margin-top: 70px !important;
        }

        .toast {
          min-width: 100%;
          margin-bottom: 0.5rem;
        }
      }

      /* ---------- Accessibility / Preferences ---------- */
      @media (prefers-reduced-motion: reduce) {
        .page-transition, .fab-main, .fab-menu, .category-card, .btn, .loading-spinner, .nav-item a::after,
        .card, .loading-text, .loading-dots span, body, html {
          transition: none !important;
          animation: none !important;
        }
        
        html {
          scroll-behavior: auto;
        }
      }

      /* ---------- Responsive breakpoints ---------- */
      /* Mobile: show bottom nav + FAB */
      @media (max-width: 767.98px) {
        .mobile-bottom-nav { display: flex; }
        .mobile-fab { display: block; }
      }

      /* Tablet / Desktop: hide mobile controls */
      @media (min-width: 800px) {
        .mobile-fab { display: none; }
        .mobile-bottom-nav { display: none; }
      }

      /* Fix Notification Dropdown on Mobile */
      @media (max-width: 767px) {
          .notification-dropdown {
              position: fixed !important;
              top: 70px !important;
              left: 50% !important;
              transform: translateX(-50%) !important;
              width: 90% !important;
              max-width: 350px !important;
              max-height: 60vh !important;
              border-radius: 15px !important;
              box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
              z-index: 1060 !important;
          }
      }

/* Level 1 Protection: Disable Text Selection */
        body {
            -webkit-user-select: none; /* Safari */
            -moz-user-select: none;    /* Firefox */
            -ms-user-select: none;     /* IE10+/Edge */
            user-select: none;         /* Standard */
        }
        /* Level 4 Protection: Vanish on Interact */
        .protected-blur {
            filter: blur(20px) !important;
            opacity: 0.1 !important;
            pointer-events: none !important;
            pointer-events: none !important;
            transition: all 0.1s ease !important;
        }
        /* Level 5: Print Protection */
        @media print {
            html, body {
                display: none !important;
            }
        }

a{
          color:rgb(68, 136, 232);
        }

        /* Fix avatar image sizes in header for all users including 'creater' role */
        .header-container .logo-icon img {
          width: 2.9rem !important;
          height: 2.5rem !important;
          object-fit: cover;
        }

        .header-container .logo-icon.auth-user-img img {
          width: 2.9rem !important;
          height: 2.5rem !important;
          object-fit: cover;
        }

        /* Bottom Navigation Styles */
        @media (max-width: 767px) {
            .mobile-bottom-nav {
                position: fixed;
                bottom: 0;
                left: 0;
                right: 0;
                background: #ffffff;
                border-top: 1px solid #e9ecef;
                box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
                display: flex;
                justify-content: space-around;
                align-items: center;
                padding: 10px 0;
                z-index: 1050;
            }

            .bottom-nav-item {
                display: flex;
                flex-direction: column;
                align-items: center;
                text-decoration: none;
                color: #6c757d;
                font-size: 12px;
                font-weight: 500;
                transition: all 0.3s ease;
                padding: 5px;
                min-width: 60px;
            }

            .bottom-nav-item:hover,
            .bottom-nav-item.active {
                color: #007bff;
                transform: translateY(-2px);
            }

            .bottom-nav-item i {
                font-size: 18px;
                margin-bottom: 4px;
            }

            .bottom-nav-item span {
                font-size: 10px;
            }

            /* Adjust body padding to account for bottom nav */
            body {
                padding-bottom: 70px !important;
            }
        }

            /* Floating Action Button Styles - Mobile Only */
            @media (max-width: 767px) {
                .mobile-fab {
                    position: fixed;
                    bottom: 90px;
                    right: 20px;
                    z-index: 1040;
                }

            .fab-main {
                width: 56px;
                height: 56px;
                border-radius: 50%;
                background: linear-gradient(135deg, #007bff 0%, #6610f2 100%);
                border: none;
                color: white;
                font-size: 24px;
                display: flex;
                align-items: center;
                justify-content: center;
                box-shadow: 0 4px 12px rgba(0,123,255,0.4);
                transition: all 0.3s ease;
                cursor: pointer;
                position: relative;
                z-index: 1041;
            }

            .fab-main:hover {
                transform: scale(1.1);
                box-shadow: 0 6px 16px rgba(0,123,255,0.5);
            }

            .fab-main.active {
                transform: rotate(45deg);
            }

            .fab-menu {
                position: absolute;
                bottom: 70px;
                right: 0;
                display: flex;
                flex-direction: column;
                gap: 10px;
                opacity: 0;
                visibility: hidden;
                transform: translateY(20px);
                transition: all 0.3s ease;
            }

            .fab-menu.active {
                opacity: 1;
                visibility: visible;
                transform: translateY(0);
            }

            .fab-item {
                display: flex;
                align-items: center;
                gap: 12px;
                padding: 12px 16px;
                background: white;
                color: #495057;
                text-decoration: none;
                border-radius: 25px;
                box-shadow: 0 2px 8px rgba(0,0,0,0.15);
                font-size: 14px;
                font-weight: 500;
                white-space: nowrap;
                transition: all 0.3s ease;
                min-width: 140px;
                justify-content: flex-start;
            }

            .fab-item:hover {
                transform: translateX(-5px);
                box-shadow: 0 4px 12px rgba(0,0,0,0.2);
                color: #007bff;
            }

            .fab-item i {
                font-size: 16px;
                min-width: 16px;
            }

            .fab-item.logout {
                color: #dc3545;
            }

            .fab-item.logout:hover {
                color: #dc3545;
                background: #f8d7da;
            }
        }

        @media (min-width: 800px) {
            .mobile-fab {
                display: none !important;
            }
            .mobile-bottom-nav{
                display: none !important;
            }
        }

.backdrop-blur-md {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    .animate-float {
        animation: float 6s ease-in-out infinite;
    }
    .animate-float-delayed {
        animation: float 6s ease-in-out infinite 3s;
    }
    @keyframes float {
        0% { transform: translateY(0px); }
        50% { transform: translateY(-20px); }
        100% { transform: translateY(0px); }
    }
    
    /* Mobile Responsive Styles for Hero Section */
    @media (max-width: 767px) {
        .hero-section {
            min-height: auto !important;
            padding: 40px 0 30px 0 !important;
            text-align: center !important;
        }
        
        .hero-section .text-lg-start {
            text-align: center !important;
        }

        .hero-section h1.display-3 {
            font-size: 2rem !important;
            line-height: 1.2 !important;
            margin-bottom: 0.75rem !important;
        }
        
        .hero-section h1.display-3 br {
            display: none; /* Remove line break on mobile */
        }
        
        .hero-section .lead {
            font-size: 0.95rem !important;
            margin-bottom: 1.5rem !important;
            padding: 0 10px !important;
        }
        
        .hero-section .badge.rounded-pill {
            font-size: 0.7rem !important;
            padding: 0.4rem 0.8rem !important;
            margin-bottom: 1rem !important;
            display: inline-block;
        }
        
        /* Search box mobile responsive */
        .hero-section .bg-white.rounded-4 {
            padding: 1rem !important;
            border-radius: 1rem !important;
            margin-top: 0.5rem;
        }
        
        .hero-section .row.g-3 {
            row-gap: 0.5rem !important;
        }
        
        /* Search form inputs mobile */
        .form-floating > .form-control,
        .form-floating > .form-select {
            height: 50px !important;
            font-size: 0.9rem !important;
        }
        .form-floating > label {
            padding: 0.8rem 0.75rem;
            font-size: 0.85rem;
        }
        
        /* Search button mobile */
        .hero-section button[type="submit"] {
            min-height: 50px !important;
            font-size: 1rem !important;
            margin-top: 0.25rem;
        }
        
        /* Trust badges */
        .hero-section .hero-badges {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
            align-items: center;
            font-size: 0.8rem !important;
            margin-top: 1rem !important;
        }
        
        .hero-section .hero-badges span {
            display: block;
            margin: 0 !important;
        }

        /* Services Mobile Layout Fixes */
        .category-card {
            padding: 15px 10px;
        }
        .category-card h3 {
            font-size: 1rem !important;
        }
        .category-card .btn {
            padding: 0.4rem 0.6rem !important;
            font-size: 0.8rem !important;
            width: 100%;
            white-space: normal;
            word-wrap: break-word;
        }
        .category-icon {
            width: 50px !important;
            height: 50px !important;
        }
        .category-icon i {
            font-size: 1.25rem !important;
        }
        
        /* Professionals Mobile Fixes */
        .professional-card .card-body {
            padding: 1rem;
        }
        .professional-card .btn {
            font-size: 0.85rem !important;
            padding: 0.4rem 0.5rem !important;
        }
    }
    
    /* Tablet responsive */
    @media (min-width: 768px) and (max-width: 991px) {
        .hero-section h1.display-3 {
            font-size: 2.5rem !important;
        }
        
        .hero-section .lead {
            font-size: 1.125rem !important;
        }
    }
    
    /* Dark Mode Adjustments for Hero */
    body.dark-mode .hero-section {
        background: linear-gradient(135deg, #020617 0%, #0f172a 100%) !important;
    }
    body.dark-mode .text-dark {
        color: #1e293b !important; /* Keep badges readable */
    }

.hover-lift:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    }
    .transition-all {
        transition: all 0.3s ease;
    }
    /* Dark Mode for Services */
    body.dark-mode .bg-light {
        background-color: #0f172a !important;
    }
    body.dark-mode .category-card {
        background-color: #1e293b !important;
        border: 1px solid #334155;
    }
    body.dark-mode .category-card h5, 
    body.dark-mode .category-card h6 {
        color: #f8fafc;
    }
    body.dark-mode .category-icon-wrapper {
        background-color: rgba(56, 189, 248, 0.1) !important;
    }
    body.dark-mode .category-icon-wrapper i {
        color: #38bdf8 !important;
    }

/* Dark Mode for Featured Services */
    body.dark-mode .service-card {
        background-color: #1e293b !important;
    }
    body.dark-mode .service-card .card-img-top {
        background-color: #334155 !important;
    }
    body.dark-mode .service-card h5 {
        color: #f8fafc;
    }
    body.dark-mode .service-card .border-top {
        border-color: #334155 !important;
    }

/* Dark Mode for Professionals */
    body.dark-mode .professional-card {
        background-color: #1e293b !important;
    }
    body.dark-mode .professional-card h5 {
        color: #f8fafc;
    }
    body.dark-mode .professional-card .ratings {
        background-color: #334155 !important;
    }
    body.dark-mode .professional-card .ratings .text-dark {
        color: #f8fafc !important;
    }
    body.dark-mode .professional-avatar img,
    body.dark-mode .professional-avatar span {
        border-color: #1e293b !important;
    }

/* Mobile Responsive Styles for How It Works */
    @media (max-width: 767px) {
        .how-it-works .section-header {
            margin-bottom: 2rem !important;
        }
        
        .how-it-works .section-title {
            font-size: 1.75rem !important;
        }
        
        .how-it-works .section-subtitle {
            font-size: 0.95rem !important;
        }
        
        /* Adjust step cards for mobile */
        .how-it-works .step-card {
            padding: 2rem 1.5rem !important;
            margin-bottom: 1.5rem;
        }
        
        .how-it-works .step-icon-wrapper {
            width: 65px !important;
            height: 65px !important;
            margin-bottom: 1.5rem !important;
        }
        
        .how-it-works .step-icon-wrapper i {
            font-size: 1.5rem !important;
        }
        
        .how-it-works .step-card h4 {
            font-size: 1.25rem !important;
            margin-bottom: 0.75rem !important;
        }
        
        .how-it-works .step-card p {
            font-size: 0.9rem !important;
        }
        
        .how-it-works .step-number-badge {
            width: 28px !important;
            height: 28px !important;
            font-size: 0.875rem !important;
        }
        
        /* Remove connector line on mobile */
        .how-it-works .border-dashed {
            display: none !important;
        }
        
        /* Add vertical connector */
        .how-it-works .row.g-4 {
            position: relative;
        }
        
        .how-it-works .col-md-6:not(:last-child)::after {
            content: '';
            position: absolute;
            left: 50%;
            bottom: -0.75rem;
            transform: translateX(-50%);
            width: 2px;
            height: 1.5rem;
            background: linear-gradient(to bottom, rgba(59, 130, 246, 0.3), transparent);
        }
    }
    
    /* Tablet responsive */
    @media (min-width: 768px) and (max-width: 991px) {
        .how-it-works .step-card {
            padding: 2rem !important;
        }
        
        .how-it-works .step-icon-wrapper {
            width: 70px !important;
            height: 70px !important;
        }
        
        .how-it-works .step-icon-wrapper i {
            font-size: 1.75rem !important;
        }
    }
    
    /* Dark Mode for How It Works */
    body.dark-mode .step-card {
        background-color: #1e293b !important;
    }
    body.dark-mode .step-card h4 {
        color: #f8fafc;
    }
    body.dark-mode .step-icon-wrapper {
        background-color: rgba(255, 255, 255, 0.1) !important;
    }

.hover-scale:hover {
        transform: scale(1.05);
    }
    .backdrop-blur {
        backdrop-filter: blur(5px);
        background: rgba(255,255,255,0.1);
    }
    .backdrop-blur:hover {
        background: rgba(255,255,255,0.2);
        color: white;
    }
    @media (max-width: 767px) {
        .join-section h2.display-5 {
            font-size: 2rem !important;
        }
        .join-section .btn {
            width: 100%;
            padding: 1rem !important;
            font-size: 1rem !important;
        }
    }
    
    /* Exact match to screenshots */
    .professional-card, .step-card {
        transition: all 0.3s ease;
        border: 1px solid rgba(0,0,0,0.05);
        border-radius: 12px;
    }
    
    /* Category cards exact match */
    .category-card {
        transition: all 0.3s ease;
        background: #fff;
        border-radius: 12px;
        padding: 15px 10px;
        border: 1px solid rgba(0,0,0,0.05);
    }

/* Modern Social Icons */
    .social-icon-modern {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-radius: 12px;
        text-decoration: none;
        transition: all 0.3s ease;
        font-size: 16px;
    }

    .social-icon-modern:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
        color: white;
    }

    /* Footer Links */
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .footer-link-modern {
        color: #6c757d;
        text-decoration: none;
        font-size: 0.95rem;
        transition: all 0.3s ease;
        display: inline-block;
    }

    .footer-link-modern:hover {
        color: #667eea;
        transform: translateX(5px);
    }

    .footer-link-modern i {
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .footer-link-modern:hover i {
        opacity: 1;
    }

    /* Underline Accent */
    .underline-accent {
        position: absolute;
        bottom: -8px;
        left: 0;
        width: 50px;
        height: 3px;
        background: linear-gradient(to right, #667eea, #764ba2);
        border-radius: 2px;
    }

    /* Contact Icon Box */
    .contact-icon-box {
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #667eea;
        font-size: 16px;
        flex-shrink: 0;
    }

    /* Heartbeat Animation */
    .heartbeat {
        animation: heartbeat 1.5s ease-in-out infinite;
    }

    @keyframes heartbeat {
        0%, 100% { transform: scale(1); }
        25% { transform: scale(1.2); }
        50% { transform: scale(1); }
    }

    /* Newsletter Box Responsive */
    @media (max-width: 768px) {
        .newsletter-box form .col-md-8,
        .newsletter-box form .col-md-4 {
            width: 100%;
        }
    }
    
    /* Dark Mode for Footer */
    body.dark-mode .footer {
        background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
    }

    /* Override decorative background in dark mode */
    body.dark-mode .footer .position-absolute.opacity-50 {
        background-image: radial-gradient(circle at 20% 50%, rgba(96, 165, 250, 0.03) 0%, transparent 50%), 
                        radial-gradient(circle at 80% 80%, rgba(167, 139, 250, 0.03) 0%, transparent 50%) !important;
    }

    body.dark-mode .footer .w-100 {
        background: linear-gradient(to right, #60a5fa, #a78bfa, #f472b6) !important;
    }

    /* Newsletter box dark mode */
    body.dark-mode .newsletter-box {
        background: linear-gradient(135deg, #1e40af 0%, #7e22ce 100%) !important;
    }

    body.dark-mode .footer h5,
    body.dark-mode .footer h6,
    body.dark-mode .footer h4 {
        color: #f8fafc !important;
    }

    body.dark-mode .footer .text-muted {
        color: #94a3b8 !important;
    }

    body.dark-mode .footer .text-dark {
        color: #e2e8f0 !important;
    }

    body.dark-mode .footer .border-top {
        border-color: #334155 !important;
    }

    body.dark-mode .contact-icon-box {
        background: linear-gradient(135deg, rgba(96, 165, 250, 0.15) 0%, rgba(167, 139, 250, 0.15) 100%) !important;
        color: #60a5fa !important;
    }

    body.dark-mode .footer-link-modern {
        color: #94a3b8 !important;
    }

    body.dark-mode .footer-link-modern:hover {
        color: #60a5fa !important;
    }

    /* Social icons dark mode */
    body.dark-mode .social-icon-modern {
        background: linear-gradient(135deg, #1e40af 0%, #7e22ce 100%) !important;
    }

    /* Newsletter Form Dark Mode */
    body.dark-mode .newsletter-box .form-control {
        background-color: rgba(255, 255, 255, 0.15) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
        color: #fff !important;
    }

    body.dark-mode .newsletter-box .form-control::placeholder {
        color: rgba(255, 255, 255, 0.6) !important;
    }

    body.dark-mode .newsletter-box .form-control:focus {
        background-color: rgba(255, 255, 255, 0.2) !important;
        border-color: rgba(255, 255, 255, 0.4) !important;
    }

    body.dark-mode .newsletter-box .btn-light {
        background-color: rgba(255, 255, 255, 0.9) !important;
        color: #1e293b !important;
    }

    body.dark-mode .newsletter-box .btn-light:hover {
        background-color: #fff !important;
    }

    /* Mobile Bottom Nav Dark Mode - Needs high specificity */
    body.dark-mode .mobile-bottom-nav {
        background: #1e293b !important;
        border-top-color: #334155 !important;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.3) !important;
    }

    body.dark-mode .bottom-nav-item {
        color: #94a3b8 !important;
    }

    body.dark-mode .bottom-nav-item.active,
    body.dark-mode .bottom-nav-item:hover {
        color: #60a5fa !important;
    }

/* Chat Modal Styles */
    :root {
        --primary-soft: rgba(13, 110, 253, 0.1);
        --chat-green: #25D366;
        --chat-blue: #34B7F1;
        --nav-height: 70px;
        --fab-size: 56px;
        --radius-lg: 15px;
        --transition-fast: 0.15s;
        --transition-default: 0.3s;
        --premium-shadow: 0 10px 40px rgba(0,0,0,0.08);
        --premium-shadow-hover: 0 20px 40px rgba(0,123,255,0.15);
    }

    .chat-messages {
        background-color: #f8f9fa;
        background-image: radial-gradient(#e9ecef 1px, transparent 1px);
        background-size: 20px 20px;
        scroll-behavior: smooth;
    }

    .message {
        margin-bottom: 16px;
        padding: 12px 18px;
        max-width: 75%;
        position: relative;
        font-size: 0.95rem;
        line-height: 1.5;
        animation: fadeIn 0.3s ease-out;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .message-mine {
        background: linear-gradient(135deg, #25D366, #128C7E);
        color: white;
        border-radius: 18px 18px 2px 18px;
        float: right;
        clear: both;
    }

    .message-other {
        background: linear-gradient(135deg, #34B7F1, #007bff);
        color: white;
        border-radius: 18px 18px 18px 2px;
        float: left;
        clear: both;
    }

    .message-time {
        display: block;
        font-size: 0.8rem;
        font-weight: 500;
        margin-top: 4px;
        opacity: 1;
        text-align: right;
        text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }

    .chat-messages::after {
        content: "";
        display: table;
        clear: both;
    }

    /* Dark Mode Overrides */
    body.dark-mode .modal-content {
        background: #1e293b;
    }

    body.dark-mode .modal-body,
    body.dark-mode .chat-messages {
        background-color: #0f172a;
        background-image: radial-gradient(#334155 1px, transparent 1px);
    }

    body.dark-mode .chat-input-area {
        background: #1e293b !important;
        border-top-color: rgba(255,255,255,0.1) !important;
    }

    body.dark-mode #chatMessageInput {
        background: #334155 !important;
        color: #fff;
    }

    body.dark-mode .message-other {
        background: linear-gradient(135deg, #0ea5e9, #0284c7);
        color: white;
    }

    body.dark-mode .message-mine {
        background: linear-gradient(135deg, #10b981, #059669);
        color: white;
    }

    /* Calendar Modal Dark Mode */
    body.dark-mode #calendarModal .modal-content {
        background-color: #1e293b;
        color: #fff;
    }
    body.dark-mode #calendarModal .form-control,
    body.dark-mode #calendarModal .form-select {
        background-color: #334155 !important;
        border-color: #475569;
        color: #fff;
    }
    body.dark-mode #calendarModal .form-label {
        color: #cbd5e1;
    }

/* Global Dark Mode Overrides */
    body.dark-mode {
        background-color: #0f172a !important;
        color: #f8fafc;
    }
    
    body.dark-mode .bg-white {
        background-color: #1e293b !important;
    }
    
    body.dark-mode .bg-light {
        background-color: #0f172a !important;
    }
    
    body.dark-mode .text-dark {
        color: #f8fafc !important;
    }
    
    body.dark-mode .text-muted {
        color: #cbd5e1 !important;
    }
    
    body.dark-mode .shadow-sm {
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3) !important;
    }
    
    body.dark-mode .shadow-lg {
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3) !important;
    }
    
    body.dark-mode .border {
        border-color: #334155 !important;
    }

    /* Form Elements Dark Mode */
    body.dark-mode .form-control,
    body.dark-mode .form-select {
        background-color: #334155;
        border-color: #475569;
        color: #fff;
    }

    body.dark-mode .form-control:focus,
    body.dark-mode .form-select:focus {
        background-color: #334155;
        border-color: var(--primary);
        color: #fff;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

    body.dark-mode .form-control::placeholder {
        color: #94a3b8;
    }
    
    body.dark-mode .form-floating > label {
        color: #94a3b8;
    }
    
    /* Navbar Dark Mode Fixes */
    body.dark-mode .navbar {
        background-color: #1e293b !important;
        border-bottom: 1px solid #334155;
    }
    
    body.dark-mode .navbar-light .navbar-nav .nav-link {
        color: #e2e8f0;
    }
    
    body.dark-mode .navbar-light .navbar-nav .nav-link:hover,
    body.dark-mode .navbar-light .navbar-nav .nav-link.active {
        color: #60a5fa;
    }
    
    body.dark-mode .navbar-brand {
        color: #fff !important;
    }

    body.dark-mode .navbar-toggler {
        border-color: rgba(255,255,255,0.1);
    }

    body.dark-mode .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(255, 255, 255, 0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    /* Header Buttons Dark Mode */
    body.dark-mode .btn-outline-secondary {
        color: #e2e8f0;
        border-color: #475569;
    }

    body.dark-mode .btn-outline-secondary:hover {
        background-color: #475569;
        border-color: #475569;
        color: #fff;
    }

    body.dark-mode .btn-outline {
        color: #e2e8f0;
        border-color: #475569;
    }

    body.dark-mode .btn-outline:hover {
        background-color: #475569;
        color: #fff;
    }

    /* Dropdown Menu Dark Mode */
    body.dark-mode .dropdown-menu {
        background-color: #1e293b;
        border-color: #334155;
    }

    body.dark-mode .dropdown-item {
        color: #e2e8f0;
    }

    body.dark-mode .dropdown-item:hover,
    body.dark-mode .dropdown-item:focus {
        background-color: #334155;
        color: #fff;
    }

    /* Badge Dark Mode */
    body.dark-mode .badge {
        border: 1px solid rgba(255,255,255,0.1);
    }

    /* Section Titles & Subtitles */
    body.dark-mode .section-title {
        color: #f8fafc;
    }

    body.dark-mode .section-subtitle {
        color: #cbd5e1;
    }

    /* Links Dark Mode */
    body.dark-mode a {
        color: #60a5fa;
    }

    body.dark-mode a:hover {
        color: #93c5fd;
    }

    /* Carousel Controls Dark Mode */
    body.dark-mode .carousel-control-prev-icon,
    body.dark-mode .carousel-control-next-icon {
        background-color: #334155 !important;
    }

    /* Swiper Button Dark Mode */
    body.dark-mode .swiper-button-next,
    body.dark-mode .swiper-button-prev {
        background-color: #1e293b !important;
        border: 1px solid #334155;
    }

    /* Text Colors */
    body.dark-mode .text-primary {
        color: #60a5fa !important;
    }

    body.dark-mode .text-success {
        color: #34d399 !important;
    }

    body.dark-mode .text-warning {
        color: #fbbf24 !important;
    }

    body.dark-mode .text-danger {
        color: #f87171 !important;
    }

    body.dark-mode .text-info {
        color: #38bdf8 !important;
    }

    /* Bottom Navigation Dark Mode */
    body.dark-mode .mobile-bottom-nav {
        background-color: #1e293b;
        border-top-color: #334155;
    }

    body.dark-mode .bottom-nav-item {
        color: #94a3b8;
    }

    body.dark-mode .bottom-nav-item.active,
    body.dark-mode .bottom-nav-item:hover {
        color: #60a5fa;
    }

    /* FAB Dark Mode */
    body.dark-mode .fab-item {
        background-color: #1e293b;
        color: #e2e8f0;
        border: 1px solid #334155;
    }

    body.dark-mode .fab-item:hover {
        background-color: #334155;
        color: #60a5fa;
    }

    /* Mobile Responsiveness Improvements */
    @media (max-width: 768px) {
        .hero-section {
            min-height: auto !important;
            padding-top: 6rem !important;
            padding-bottom: 4rem !important;
            text-align: center;
        }
        
        .hero-section h1 {
            font-size: 2.5rem;
        }
        
        .section-header h2 {
            font-size: 1.75rem;
        }
        
        .step-card, .category-card, .service-card {
            margin-bottom: 1rem;
        }

        .header-buttons .btn {
            font-size: 0.875rem;
            padding: 0.5rem 0.75rem;
        }
    }

