/* demo content styling */
    .hero {
      background: linear-gradient(135deg, #1a2a3f 0%, #0f1a24 100%);
      color: white;
      padding: 5rem 2rem;
      text-align: center;
    }
    .hero h1 {
      font-size: 2.8rem;
      font-weight: 700;
      letter-spacing: -0.02em;
    }
    .hero p {
      font-size: 1.2rem;
      margin-top: 1rem;
      opacity: 0.85;
      max-width: 700px;
      margin-left: auto;
      margin-right: auto;
    }
    .content-section {
      max-width: 1200px;
      margin: 3rem auto;
      padding: 0 2rem;
    }
    .card-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 2rem;
      justify-content: center;
      margin-top: 2rem;
    }
    .card {
      background: white;
      border-radius: 28px;
      padding: 1.5rem;
      box-shadow: 0 12px 30px rgba(0,0,0,0.05);
      flex: 1;
      min-width: 220px;
      transition: 0.2s;
    }
    footer {
      background: #11181c;
      color: #a1acb3;
      text-align: center;
      padding: 2rem;
      margin-top: 4rem;
    }
    
    /* -------------------- MEGA MENU STYLES (mobile-first + responsive) ------------------ */
    .mega-menu-container {
      position: sticky;
      top: 0;
      z-index: 1000;
      border-bottom: 0px solid #eef2f6;
      transition: background 0.2s ease, box-shadow 0.2s;
    }

    /* Menu font color becomes red when scrolling - ONLY TEXT COLOR CHANGES, background stays white */
    .mega-menu-container.scrolled-red .nav-link {
      color: #dc2626 !important;
    }
    
    .mega-menu-container.scrolled-red .nav-link i {
      color: #dc2626 !important;
    }
	
    /* Keep the chevron icon also red */
    .mega-menu-container.scrolled-red .nav-link i.fa-chevron-down {
      color: #dc2626 !important;
    }
    
    /* Logo text also turns red on scroll (to match menu font color) */
    .mega-menu-container.scrolled-red .logo {
      background: linear-gradient(125deg, #dc2626, #b91c1c);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }
    
    .mega-menu-container.scrolled-red .logo i {
      color: #dc2626;
    }
    
    /* Hover effect remains with subtle background but text stays red on scroll */
    .mega-menu-container.scrolled-red .nav-link:hover {
      background: #fef2f2;
      color: #b91c1c !important;
    }
    
    .mega-menu-container.scrolled-red .nav-link:hover i {
      color: #b91c1c !important;
    }
    
    /* Dropdown panels remain untouched (white background, original colors) */
    .mega-menu-container.scrolled-red .mega-menu {
      background: #ffffff;
      border: 1px solid #eef2f8;
    }
    
    .mega-menu-container.scrolled-red .menu-column h4 {
      color: #6c7a89;
      border-left-color: #2c9c8c;
    }
    
    .mega-menu-container.scrolled-red .menu-column a {
      color: #2a3b44;
    }
    
    .mega-menu-container.scrolled-red .menu-column a i {
      color: #479f8f;
    }
    
    .mega-menu-container.scrolled-red .menu-column a:hover {
      color: #1d7a6e;
      background: #f5f9fe;
    }
    
    .mega-menu-container.scrolled-red .menu-column a:hover i {
      color: #1d7a6e;
    }
    
    /* Mobile toggle icon also turns red on scroll */
    .mega-menu-container.scrolled-red .mobile-toggle {
      color: #dc2626;
    }
    
    /* Keep mobile drawer internal styles consistent */
    .menu-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      max-width: 1400px;
      margin: 0 auto;
      padding: 0.9rem 2rem;
    }

    /* logo area */
    .logo {
      font-size: 1.7rem;
      font-weight: 800;
      background: linear-gradient(125deg, #1f3b4c, #2c5a6e);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      letter-spacing: -0.5px;
      transition: all 0.2s;
    }
    .logo i {
      color: #2c7a6e;
      background: none;
      margin-right: 6px;
      transition: color 0.2s;
    }

    /* desktop navigation list */
    .nav-links {
      display: flex;
      align-items: center;
      gap: 0.2rem;
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .nav-item {
      position: relative;
    }

    .nav-link {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 0.7rem 1.2rem;
      font-weight: 500;
      font-size: 1rem;
      color: white;
      text-decoration: none;
      border-radius: 48px;
      transition: all 0.2s ease;
      cursor: pointer;
    }

    .nav-link i {
      font-size: 0.9rem;
      transition: transform 0.2s, color 0.2s;
      color: white;
    }

    .nav-link:hover {
      background: #f0f4f9;
      color: #1a6d6b;
    }
    
    .nav-link:hover i {
      color: #1a6d6b;
    }

    /* MEGA MENU panel */
    .mega-menu {
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      width: 720px;
      max-width: 85vw;
      background: #ffffff;
      border-radius: 28px;
      box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.2);
      opacity: 0;
      visibility: hidden;
      transform: translateY(12px);
      transition: opacity 0.25s ease, visibility 0.25s, transform 0.2s;
      z-index: 1050;
      border: 1px solid #eef2f8;
    }

    /* different positions for different mega menus */
    .nav-item:nth-child(3) .mega-menu {
      left: auto;
      right: 0;
    }
    .nav-item:nth-child(4) .mega-menu {
      left: auto;
      right: 0;
    }

    /* open state (desktop hover) */
    .nav-item:hover .mega-menu,
    .nav-item.active-mobile .mega-menu {
      opacity: 1;
      visibility: visible;
      transform: translateY(0px);
    }

    /* mega menu inner layout */
    .mega-inner {
      display: flex;
      flex-wrap: wrap;
      padding: 1.8rem;
      gap: 1.8rem;
    }

    .menu-column {
      flex: 1;
      min-width: 150px;
    }

    .menu-column h4 {
      font-size: 0.9rem;
      text-transform: uppercase;
      letter-spacing: 0.03em;
      color: #6c7a89;
      margin-bottom: 1.2rem;
      font-weight: 600;
      border-left: 3px solid #2c9c8c;
      padding-left: 10px;
    }

    .menu-column a {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 0.55rem 0;
      color: #2a3b44;
      text-decoration: none;
      font-size: 0.95rem;
      font-weight: 450;
      transition: 0.2s;
      border-radius: 12px;
    }

    .menu-column a i {
      width: 28px;
      color: #479f8f;
      font-size: 1rem;
    }

    .menu-column a:hover {
      color: #1d7a6e;
      transform: translateX(6px);
      background: #f5f9fe;
      padding-left: 6px;
    }

    .featured-card {
      background: #f6fafd;
      border-radius: 20px;
      padding: 1rem;
      margin-top: 0.5rem;
    }

    /* mobile toggle button */
    .mobile-toggle {
      display: none;
      background: none;
      border: none;
      font-size: 1.8rem;
      cursor: pointer;
      color: white;
      transition: 0.2s;
    }

    /* overlay for mobile */
    .menu-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.3);
      backdrop-filter: blur(3px);
      z-index: 999;
    }

    /* ---------- RESPONSIVE BREAKPOINT (tablet / mobile) ---------- */
    @media (max-width: 992px) {
      .mobile-toggle {
        display: block;
      }
      .nav-links {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100%;
        background: #000000;
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 1.5rem 2rem;
        gap: 0.8rem;
        transition: left 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        z-index: 1100;
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
      }
      
      /* On mobile, when scrolled, menu text inside drawer should follow red only if container has class */
      .mega-menu-container.scrolled-red .nav-links .nav-link {
        color: #dc2626 !important;
      }
      
      .mega-menu-container.scrolled-red .nav-links .nav-link i {
        color: #dc2626 !important;
      }
      
      .mega-menu-container.scrolled-red .nav-links .nav-link:hover {
        background: #fef2f2;
        color: #b91c1c !important;
      }
      
      .nav-links.open {
        left: 0;
      }
      .nav-item {
        width: 100%;
      }
      .nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 0.9rem 0.5rem;
        border-radius: 14px;
      }
      /* mega menu on mobile: become accordion style */
      .mega-menu {
        position: static;
        width: 100%;
        max-width: 100%;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: hidden;
        transform: none;
        height: 0;
        overflow: hidden;
        padding: 0;
        transition: height 0.3s ease, visibility 0.1s;
        background: #fafcff;
        border-radius: 20px;
        margin-top: 0px;
      }
      .nav-item.active-mobile .mega-menu {
        visibility: visible;
        height: auto;
        margin-top: 8px;
        margin-bottom: 8px;
        border: 1px solid #e9edf2;
        background: #ffffff;
        padding: 0;
      }
      .mega-inner {
        flex-direction: column;
        gap: 1.2rem;
        padding: 1.2rem;
      }
      .menu-column h4 {
        margin-bottom: 0.7rem;
      }
      .nav-item:hover .mega-menu {
        opacity: 1;
        visibility: hidden;
        transform: none;
      }
      .nav-item.active-mobile .mega-menu {
        visibility: visible;
      }
      /* close button inside mobile menu */
      .close-mobile-menu {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 1.6rem;
        background: none;
        border: none;
        cursor: pointer;
        color: #2e4a62;
      }
      .mega-menu-container.scrolled-red .close-mobile-menu {
        color: #dc2626;
      }
    }

    /* small adjustments for very tiny screens */
    @media (max-width: 580px) {
      .menu-bar {
        padding: 0.7rem 1.2rem;
      }
      .logo {
        font-size: 1.4rem;
      }
      .mega-inner {
        padding: 1rem;
      }
    }

    /* utility */
    button {
      background: none;
      border: none;
    }
    .close-mobile-menu {
      display: none;
    }
    @media (max-width: 992px) {
      .close-mobile-menu {
        display: block;
      }
    }
    
    /* scroll indicator smoothness */
    html {
      scroll-behavior: smooth;
    }
    
    /* additional demo styling */
    .scroll-notice {
      background: #fff0f0;
      border-radius: 40px;
      padding: 0.8rem 1.5rem;
      display: inline-block;
      margin-top: 1rem;
      font-size: 0.9rem;
      color: #b91c1c;
    }