<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>OSRS Services | Skilling, Bossing, PvM, OSRS Gold</title>
    <link rel="stylesheet" href="styles.css">
    <link rel="icon" href="favicon.png" type="image/png">
    <style>
      /* Smooth Page Transition */
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      html {
        scroll-behavior: smooth;
      }

      body {
        margin: 0;
        font-family: 'Roboto', sans-serif;
        background: url('background.png') no-repeat center center fixed;
        background-size: cover;
        overflow-y: scroll;
        position: relative;
      }

      /* Custom Scrollbar */
      ::-webkit-scrollbar {
        width: 8px;
      }

      ::-webkit-scrollbar-track {
        background: #f1f1f1;
      }

      ::-webkit-scrollbar-thumb {
        background: #2ea2cc;
        border-radius: 4px;
      }

      ::-webkit-scrollbar-thumb:hover {
        background: #1f6bb5;
      }

      .navbar {
        background: rgba(9, 55, 144, 0);
        /* New color with 80% transparency */
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        position: sticky;
        top: 0;
        z-index: 1000;
      }

      .navbar .logo img {
        height: 50px;
      }

      .navbar .logo a {
        text-decoration: none;
      }

      .navbar ul {
        list-style: none;
        display: flex;
        margin: 0;
        padding: 0;
      }

      .navbar ul li {
        position: relative;
      }

      .navbar ul li a {
        color: white;
        text-decoration: none;
        font-weight: 600;
        padding: 10px 15px;
        display: block;
      }

      .navbar ul li.has-dropdown>a::after {
        content: '\25BC';
        margin-left: 8px;
        font-size: 0.8em;
      }

      .navbar ul li:hover>a {
        background: rgba(6, 40, 104, 0.8);
      }

      .navbar ul li .dropdown {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: rgba(6, 40, 104, 0.9);
        min-width: 200px;
        z-index: 1001;
      }

      .navbar ul li:hover .dropdown,
      .navbar ul li.show .dropdown {
        display: block;
      }

      .dropdown li {
        width: 100%;
      }

      .dropdown li a {
        padding: 10px;
        color: white;
      }

      .dropdown li a:hover {
        background-color: rgba(4, 30, 78, 0.9);
      }

      .menu-toggle {
        display: none;
        cursor: pointer;
        color: white;
        font-size: 1.5em;
        margin-left: 20px;
        z-index: 1001;
        transition: transform 0.3s ease;
      }

      .menu-toggle.active {
        transform: rotate(90deg);
      }

      @media (max-width: 768px) {
        .navbar ul {
          flex-direction: column;
          display: none;
          background: rgba(9, 55, 144, 0.9);
          position: absolute;
          top: 60px;
          right: 0;
          width: 100%;
          transition: all 0.5s ease-in-out;
        }

        .navbar ul.active {
          display: flex;
        }

        .menu-toggle {
          display: block;
        }

        .navbar ul.active li.has-dropdown .dropdown {
          display: none;
          position: static;
          background: rgba(6, 40, 104, 0.9);
        }

        .navbar ul.active li.has-dropdown.show .dropdown {
          display: block;
        }

        .navbar ul li.has-dropdown>a {
          display: flex;
          justify-content: space-between;
        }

        .navbar ul.active li.discord {
          text-align: center;
          margin-top: 20px;
        }

        .navbar ul.active li.discord a {
          display: inline-block;
        }

        .navbar ul.active li.discord a img {
          height: 40px;
        }

        .navbar .social {
          display: none;
        }
      }

      .hero {
        text-align: center;
        color: white;
        margin: 50px 20px;
        animation: fadeIn 1.5s ease-in-out;
      }

      .hero h1 {
        font-size: 2.5em;
        font-weight: bold;
        margin: 0;
      }

      .hero p {
        font-size: 1.2em;
        font-weight: bold;
        color: white;
        margin: 10px 0;
        background: none;
        border: none;
      }

      @keyframes fadeIn {
        from {
          opacity: 0;
        }

        to {
          opacity: 1;
        }
      }

      /* Hero Section Styling */
      .hero-section {
        text-align: center;
        margin: 50px auto;
        padding: 20px;
        color: white;
        font-family: 'Roboto', sans-serif;
        animation: fadeIn 1.5s ease-in-out;
      }

      .hero-section h1 {
        font-size: 3.5em;
        /* Increased font size */
        font-weight: bold;
        margin-bottom: 10px;
      }

      .hero-section p {
        font-size: 1.2em;
        margin: 5px 0;
      }

      .hero-section a {
        color: #2ea2cc;
        text-decoration: underline;
      }

      /* Image Links Section */
      .image-links {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin: 50px auto;
        flex-wrap: wrap;
      }

      .image-card {
        text-align: center;
        position: relative;
        overflow: hidden;
        width: 180px;
        height: 180px;
        border-radius: 10px;
        background: rgba(9, 55, 144, 0.8);
        transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
        text-decoration: none;
        color: white;
      }

      .image-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
      }

      .image-card span {
        position: absolute;
        bottom: 10px;
        left: 0;
        right: 0;
        text-align: center;
        font-size: 1em;
        font-weight: bold;
        background: rgba(0, 0, 0, 0.6);
        padding: 5px 0;
        transition: background 0.3s ease-in-out;
      }

      /* Hover Animation */
      .image-card:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
      }

      .image-card:hover span {
        background: rgba(0, 0, 0, 0.8);
      }

      /* Trustpilot Review Section */
      .trustpilot-reviews {
        text-align: center;
        background: rgba(9, 55, 144, 0.1);
        padding: 40px 20px;
        margin: 40px auto;
      }

      .trustpilot-reviews h2 {
        font-size: 2em;
        margin-bottom: 20px;
        color: #ffffff;
        /* Change text color to white */
      }

      .review-container {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
      }

      .review {
        background: #ffffff;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 20px;
        width: 300px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
      }

      .review:hover {
        transform: translateY(-5px);
      }

      .review-header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
      }

      .review-header img {
        height: 24px;
      }

      .review-name {
        font-weight: bold;
        color: #093790;
        flex-grow: 1;
      }

      .review-rating {
        color: #ffcc00;
      }

      .review-text {
        font-size: 0.9em;
        color: #555;
        line-height: 1.4;
      }

      /* Disable Sticky Navbar on PC */
      @media (min-width: 769px) {
        .navbar {
          position: static;
          /* Remove sticky behavior on larger screens */
        }
      }

      /* Payment Options Section */
      .payment-options {
        text-align: center;
        margin: 50px auto;
        padding: 20px;
        background: rgba(9, 55, 144, 0.1);
        border-radius: 10px;
      }

      .payment-options h2 {
        font-size: 2em;
        font-weight: bold;
        margin-bottom: 20px;
        color: #ffffff;
        /* White text */
      }

      .payment-icons {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
      }

      .payment-icon {
        width: 120px;
        height: 70px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #ffffff;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease-in-out;
      }

      .payment-icon img {
        max-width: 60%;
        max-height: 60%;
        object-fit: contain;
      }

      .payment-icon:hover {
        transform: translateY(-5px) scale(1.1);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
      }

      /* About Section Styling */
      .about-section {
        background: rgba(9, 55, 144, 0.1);
        /* Slight blue background */
        padding: 50px 20px;
        display: flex;
        justify-content: center;
        align-items: center;
      }

      .about-container {
        display: flex;
        align-items: center;
        gap: 30px;
        max-width: 1200px;
        margin: 0 auto;
      }

      .about-image {
        flex: 1;
        max-width: 500px;
      }

      .about-image img {
        width: 100%;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      }

      .about-text {
        flex: 1;
        font-family: 'Roboto', sans-serif;
        color: #fff;
      }

      .about-text h2 {
        font-size: 2em;
        margin-bottom: 10px;
        color: #ffffff;
      }

      .about-text p {
        font-size: 1em;
        line-height: 1.6;
        margin-bottom: 15px;
      }

      /* Responsive Design */
      @media (max-width: 768px) {
        .about-container {
          flex-direction: column;
          text-align: center;
        }

        .about-image,
        .about-text {
          max-width: 100%;
        }

        .about-text h2 {
          font-size: 1.8em;
        }

        .about-text p {
          font-size: 0.9em;
        }
      }

      /* Why Choose OSRS-PVM Section Styling */
      .why-choose-section {
        text-align: center;
        padding: 50px 20px;
        background: rgba(9, 55, 144, 0);
        /* Slight blue background */
        color: #ffffff;
      }

      .why-choose-section h2 {
        font-size: 2.5em;
        margin-bottom: 30px;
        font-weight: bold;
      }

      .why-choose-container {
        display: flex;
        justify-content: center;
        align-items: stretch;
        gap: 20px;
        flex-wrap: wrap;
        max-width: 1200px;
        margin: 0 auto;
      }

      .why-choose-box {
        background: rgba(9, 55, 144, 0.2);
        /* Solid blue box */
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        text-align: center;
        padding: 20px;
        flex: 1;
        min-width: 250px;
        transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
      }

      .why-choose-box h3 {
        font-size: 1.5em;
        margin-bottom: 10px;
        color: #ffffff;
      }

      .why-choose-box p {
        font-size: 1em;
        color: #d0e6ff;
        /* Light blue text */
      }

      .why-choose-box:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
      }

      /* Responsive Design */
      @media (max-width: 768px) {
        .why-choose-container {
          flex-direction: column;
          gap: 15px;
        }

        .why-choose-box {
          min-width: 100%;
        }

        .why-choose-section h2 {
          font-size: 2em;
        }
      }

      /* Footer Section Styling */
      .footer {
        background: rgba(9, 55, 144, 0.4);
        /* Transparent Dark Blue Footer */
        color: white;
        padding: 40px 20px;
        font-family: 'Roboto', sans-serif;
        backdrop-filter: blur(5px);
        /* Slight blur effect for clarity */
      }

      /* Footer Container */
      .footer-container {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 30px;
        max-width: 1200px;
        margin: 0 auto;
      }

      /* Left Section */
      .footer-left {
        flex: 1;
        min-width: 280px;
      }

      .footer-left img {
        width: 150px;
        margin-bottom: 15px;
      }

      .footer-left p {
        font-size: 0.9em;
        line-height: 1.6;
        color: #d0e6ff;
      }

      /* Middle Section */
      .footer-middle {
        flex: 1;
        min-width: 280px;
        text-align: center;
      }

      .footer-middle h3 {
        font-size: 1.2em;
        margin-bottom: 10px;
        text-transform: uppercase;
        color: #ffffff;
      }

      .footer-middle ul {
        list-style: none;
        padding: 0;
        text-align: center;
      }

      .footer-middle ul li {
        margin-bottom: 8px;
      }

      .footer-middle ul li a {
        color: #d0e6ff;
        text-decoration: none;
        transition: color 0.3s ease;
      }

      .footer-middle ul li a:hover {
        color: #2ea2cc;
      }

      /* Right Section */
      .footer-right {
        flex: 1;
        min-width: 280px;
        text-align: right;
      }

      .footer-right h3 {
        font-size: 1.2em;
        margin-bottom: 10px;
        text-transform: uppercase;
        color: #ffffff;
      }

      .footer-right p {
        font-size: 0.9em;
        line-height: 1.6;
        color: #d0e6ff;
        margin-bottom: 15px;
      }

      .footer-right h4 {
        font-size: 1em;
        margin-top: 20px;
        color: #ffffff;
      }

      .footer-social {
        margin-top: 10px;
        text-align: center;
        /* Center social icons on mobile */
      }

      .footer-social a {
        display: inline-block;
        margin: 5px;
        transition: transform 0.3s ease;
      }

      .footer-social img {
        width: 24px;
        height: 24px;
      }

      .footer-social a:hover {
        transform: scale(1.1);
      }

      /* Bottom Section */
      .footer-bottom {
        text-align: center;
        margin-top: 30px;
        font-size: 0.8em;
        color: #d0e6ff;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 20px;
        background: transparent;
        /* Fully Transparent */
        backdrop-filter: none;
        /* Remove any blur effect */
      }

      /* Responsive Design */
      @media (max-width: 768px) {
        .footer-container {
          flex-direction: column;
          text-align: center;
          align-items: center;
          gap: 20px;
        }

        .footer-left,
        .footer-middle,
        .footer-right {
          text-align: center;
          margin-bottom: 20px;
        }

        .footer-left img {
          margin: 0 auto 10px;
        }

        .footer-middle ul {
          text-align: center;
        }

        .footer-right h3,
        .footer-right p {
          text-align: center;
        }

        .footer-social {
          text-align: center;
          margin-top: 10px;
        }
      }

      .centered-gif {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 40px 0;
        /* Add space around the GIF */
        text-align: center;
      }

      .centered-gif img {
        max-width: 100%;
        height: auto;
        display: block;
        border-radius: 8px;
        /* Optional: adds rounded corners */
        transition: transform 0.3s ease-in-out;
      }

      .centered-gif img:hover {
        transform: scale(1.05);
        /* Slight zoom on hover */
      }

      /* Services Section */
      .services-section {
        text-align: center;
        padding: 40px 20px;
        background: rgba(9, 55, 144, 0.2);
        border-radius: 10px;
        max-width: 900px;
        margin: 50px auto;
      }

      .services-section h2 {
        font-size: 2em;
        margin-bottom: 20px;
        color: white;
      }

      /* Services Grid */
      .services-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        /* 3 columns */
        gap: 20px;
        justify-items: center;
        margin-top: 20px;
      }

      .service-card {
        text-align: center;
        position: relative;
        overflow: hidden;
        width: 200px;
        height: 200px;
        border-radius: 10px;
        background: rgba(9, 55, 144, 0.6);
        transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
        cursor: pointer;
        color: white;
      }

      .service-card img {
        width: 100%;
        height: 140px;
        object-fit: cover;
        border-radius: 10px 10px 0 0;
      }

      .service-card p {
        margin: 10px 0;
        font-size: 1em;
        font-weight: bold;
      }

      /* Popup Modal */
      .service-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        justify-content: center;
        align-items: center;
        z-index: 10000;
      }

      .service-modal-content {
        background: rgba(9, 55, 144, 0.95);
        padding: 30px;
        border-radius: 10px;
        text-align: left;
        color: white;
        max-width: 400px;
        width: 90%;
        animation: fadeIn 0.3s ease-in-out;
      }

      .service-modal-content h3 {
        font-size: 1.5em;
        margin-bottom: 15px;
      }

      .service-modal-content ul {
        list-style: none;
        padding: 0;
        margin-bottom: 20px;
      }

      .service-modal-content ul li {
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 10px;
      }

      .service-modal-content input[type="checkbox"] {
        transform: scale(1.2);
      }

      .buy-now-btn {
        display: block;
        width: 100%;
        padding: 10px;
        font-size: 1em;
        font-weight: bold;
        color: white;
        background: #2ea2cc;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        text-align: center;
      }

      .buy-now-btn:hover {
        background: #1f6bb5;
      }

      /* Close Button */
      .close-btn {
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 1.5em;
        cursor: pointer;
        color: white;
      }

      /* Responsive Adjustments */
      @media (max-width: 768px) {
        .services-grid {
          grid-template-columns: repeat(2, 1fr);
          /* Switch to 2 columns */
        }
      }

      @media (max-width: 480px) {
        .services-grid {
          grid-template-columns: 1fr;
          /* Single column on small devices */
        }
      }

      /* Services Section Styling */
      .services-section {
        text-align: center;
        padding: 40px 20px;
        font-family: 'Roboto', sans-serif;
        background: rgba(9, 55, 144, 0.1);
      }

      .services-section h2 {
        font-size: 2.5em;
        margin-bottom: 20px;
        color: white;
      }

      /* Services Grid */
      .services-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        margin-top: 20px;
      }

      /* Service Card */
      .service-card {
        text-align: center;
        background: rgba(9, 55, 144, 0.3);
        border-radius: 10px;
        overflow: hidden;
        cursor: pointer;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        position: relative;
      }

      /* Service Card Image */
      .service-card img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        border-bottom: 2px solid #2ea2cc;
      }

      /* Service Card Text */
      .service-card p {
        margin: 10px 0;
        font-size: 1.1em;
        font-weight: bold;
        color: white;
      }

      /* Hover Animation */
      .service-card:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
      }

      /* Add a subtle background glow */
      .service-card:hover::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 10px;
        box-shadow: 0 0 15px #2ea2cc;
        z-index: -1;
        animation: glow 1.5s infinite alternate;
      }

      /* Glow Animation Keyframes */
      @keyframes glow {
        from {
          box-shadow: 0 0 10px #2ea2cc;
        }

        to {
          box-shadow: 0 0 25px #2ea2cc;
        }
      }

      .service-card {
        display: block;
        text-decoration: none;
        /* Remove default link underline */
        color: inherit;
        /* Inherit text color */
      }

      /* Preloader Animation */
      #preloader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #093790;
        /* Change to your theme color */
        z-index: 9999;
        display: none;
        opacity: 1;
        transition: opacity 0.5s ease-in-out;
      }

      /* Fade-in Animation for Pages */
      body {
        animation: fadeIn 0.8s ease-in-out;
      }

      @keyframes fadeIn {
        from {
          opacity: 0;
        }

        to {
          opacity: 1;
        }
      }

      /* PvM Section Styling */
      .pvm-section {
        text-align: center;
        padding: 40px 20px;
        background: rgba(9, 55, 144, 0.2);
        border-radius: 10px;
        max-width: 800px;
        margin: 50px auto;
      }

      /* Section Title */
      .pvm-section h2 {
        font-size: 2em;
        margin-bottom: 20px;
        color: #ffffff;
      }

      /* Search Bar */
      .search-bar {
        margin-bottom: 20px;
        text-align: center;
      }

      .search-bar input {
        padding: 8px;
        width: 80%;
        max-width: 400px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 1em;
      }

      /* PvM Container */
      .pvm-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
      }

      /* PvM Category */
      .pvm-category {
        font-size: 1.2em;
        font-weight: bold;
        margin-top: 20px;
        margin-bottom: 10px;
        text-align: left;
        color: #ffffff;
        grid-column: span 2;
      }

      /* PvM Item */
      .pvm-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: rgba(9, 55, 144, 0.4);
        padding: 10px 15px;
        border-radius: 5px;
        transition: background 0.3s ease;
      }

      .pvm-item:hover {
        background: rgba(9, 55, 144, 0.6);
      }

      /* PvM Item Text */
      .pvm-item .pvm-name {
        font-size: 1em;
        font-weight: bold;
        flex: 1;
        color: #ffffff;
        text-align: left;
      }

      .pvm-item .pvm-price {
        font-size: 1em;
        flex: 1;
        text-align: center;
        color: #d0e6ff;
      }

      /* Checkbox */
      .pvm-item input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: #2ea2cc;
      }

      /* Buy Button */
      .submit-btn {
        margin-top: 20px;
        padding: 10px 20px;
        font-size: 1em;
        font-weight: bold;
        cursor: pointer;
        border: none;
        border-radius: 5px;
        background: #2ea2cc;
        color: white;
        transition: background 0.3s;
      }

      .submit-btn:hover {
        background: #1f6bb5;
      }

      /* Responsive Design */
      @media (max-width: 768px) {
        .pvm-container {
          grid-template-columns: 1fr;
        }
      }

      .pvm-quantity {
        height: 40px;
        /* Adjust height for taller input box */
        width: 60px;
        /* Keep the width small and fixed */
        font-size: 16px;
        /* Adjust font size for better appearance */
        text-align: center;
        /* Center-align the number */
        border: 1px solid #ccc;
        /* Add a subtle border */
        border-radius: 5px;
        /* Slightly rounded corners */
        padding: 5px;
        /* Add padding for breathing room */
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
        /* Inner shadow for depth */
      }

      .pvm-quantity:focus {
        outline: none;
        border-color: #0078D4;
        /* Highlight border on focus */
        box-shadow: 0 0 5px rgba(0, 120, 212, 0.5);
        /* Subtle glow effect */
      }
    </style>
    <div id="preloader"></div>
    <script>
      function toggleMenu() {
        const menu = document.querySelector('.navbar ul');
        const toggle = document.querySelector('.menu-toggle');
        menu.classList.toggle('active');
        toggle.classList.toggle('active');
      }

      function toggleDropdown(event) {
        if (event.target.closest('li').classList.contains('has-dropdown')) {
          event.target.closest('li').classList.toggle('show');
        }
      }
    </script>
  </head>
  <body>
    <nav class="navbar">
      <div class="logo">
        <a href="./index.html">
          <img src="website_logo_transparent.png" alt="OSRS Services Logo">
        </a>
      </div>
      <div class="menu-toggle" onclick="toggleMenu()">☰</div>
      <ul onclick="toggleDropdown(event)">
        <li>
          <a href="./gold-items.html">OSRS Gold</a>
        </li>
        <li>
          <a href="./accounts.html">Accounts</a>
        </li>
        <li>
          <a href="./infernal-cape.html">Infernal Cape</a>
        </li>
        <li>
          <a href="./megascales.html">Megascales</a>
        </li>
        <li>
          <a href="./services.html">Services</a>
        </li>
      </ul>
      <ul>
        <li class="discord">
          <a href="https://discord.com/invite/osrspvmer" target="_blank">
            <img src="Discord.png" alt="Discord">
          </a>
        </li>
      </ul>
    </nav>
    <!-- PvM Section -->
    <section class="pvm-section">
      <center>
        <a href="pvm.html" class="service-card">
          <img src="pvm.png" alt="PvM">
          <p>PvM</p>
        </a>
      </center>
      <br>
      <br>
      <center>
        <button class="submit-btn" onclick="buyPvM()">Buy Now</button>
      </center>
      <br>
      <br>
      <br>
      <!-- Search Bar -->
      <div class="search-bar">
        <input type="text" id="pvm-search" placeholder="Search for bosses..." onkeyup="filterPvM()">
      </div>
      <div class="pvm-container">
        <!-- Slayer Bosses -->
        <h3 class="pvm-category">Slayer Bosses</h3>
        <div class="pvm-item">
          <span class="pvm-name">Grotesque Guardians (Scythe + Blowpipe)</span>
          <span class="pvm-price">700k</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Grotesque Guardians (Scythe + Blowpipe Amethyst Darts)</span>
          <span class="pvm-price">750k</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Grotesque Guardians (Abyssal Whip + Blowpipe Amethyst Darts)</span>
          <span class="pvm-price">900k</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Kraken (Iban Staff)</span>
          <span class="pvm-price">400k</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Kraken (Trident)</span>
          <span class="pvm-price">300k</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Kraken (Sang Staff)</span>
          <span class="pvm-price">250k</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Kraken (Tumeken's Shadow)</span>
          <span class="pvm-price">200k</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Abyssal Sire (Scythe + Shadow)</span>
          <span class="pvm-price">800k</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Abyssal Sire (Fang + Sang)</span>
          <span class="pvm-price">1.1m</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Abyssal Sire (Arclight + Trident)</span>
          <span class="pvm-price">1.8m</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Cerberus (Scythe + Blood Fury)</span>
          <span class="pvm-price">600k</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Cerberus (Twisted Bow)</span>
          <span class="pvm-price">650k</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Cerberus (Arclight)</span>
          <span class="pvm-price">800k</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Thermonuclear Smoke Devil (Max Magic)</span>
          <span class="pvm-price">350k</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Thermonuclear Smoke Devil (Max Melee)</span>
          <span class="pvm-price">400k</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Hydra (Twisted Bow + Rigour + Dragon Arrows)</span>
          <span class="pvm-price">700k</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Hydra (Twisted Bow + Amethyst Arrows)</span>
          <span class="pvm-price">800k</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Hydra (Dragon Hunter Lance)</span>
          <span class="pvm-price">1m</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Hydra (Blowpipe Dragon Darts)</span>
          <span class="pvm-price">1.2m</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Hydra (Bowfa)</span>
          <span class="pvm-price">1.3m</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Araxxor (Max Gear)</span>
          <span class="pvm-price">1m</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <h3 class="pvm-category">Desert Treasure 2 Bosses</h3>
        <div class="pvm-item">
          <span class="pvm-name">Leviathan (Max Gear)</span>
          <span class="pvm-price">1.3m</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Leviathan (Minimal Gear)</span>
          <span class="pvm-price">2.3m</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Vardorvis (Max Gear)</span>
          <span class="pvm-price">1m</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Vardorvis (Minimal Gear)</span>
          <span class="pvm-price">2m</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Duke (Max Gear)</span>
          <span class="pvm-price">1.2m</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Duke (Minimal Gear)</span>
          <span class="pvm-price">2.2m</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Whisperer (Max Gear)</span>
          <span class="pvm-price">1.5m</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Whisperer (Minimal Gear)</span>
          <span class="pvm-price">2.5m</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <h3 class="pvm-category">Godwars Bosses</h3>
        <div class="pvm-item">
          <span class="pvm-name">General Graardor (Max Mage)</span>
          <span class="pvm-price">1m</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">General Graardor (Tbow)</span>
          <span class="pvm-price">1.2m</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">General Graardor (Bowfa)</span>
          <span class="pvm-price">1.5m</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">General Graardor (Max Melee)</span>
          <span class="pvm-price">2m</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">K'ril Tsutsaroth (Arclight On Task)</span>
          <span class="pvm-price">1.6m</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">K'ril Tsutsaroth (Bowfa On Task)</span>
          <span class="pvm-price">1.7m</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Kree'arra (Black Chins + Tbow)</span>
          <span class="pvm-price">1.8m</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Commander Zilyana (Twisted Bow With Rigour)</span>
          <span class="pvm-price">1m</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <h3 class="pvm-category">Wilderness Bosses</h3>
        <div class="pvm-item">
          <span class="pvm-name">Callisto (Wildy Weapons)</span>
          <span class="pvm-price">2.6m</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Artio (Craws or Webweaver)</span>
          <span class="pvm-price">1.5m</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Vet'ion (Wildy Weapons)</span>
          <span class="pvm-price">2m</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Spindel (Wildy Weapons)</span>
          <span class="pvm-price">800k</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <h3 class="pvm-category">Miscellaneous Bosses</h3>
        <div class="pvm-item">
          <span class="pvm-name">Corrupted Gauntlet (Max Gear/Max Stats)</span>
          <span class="pvm-price">4m</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Zulrah (Tbow With Rigour)</span>
          <span class="pvm-price">600k</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Vorkath (DHCB With Rigour)</span>
          <span class="pvm-price">600k</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Nightmare (Mass Team)</span>
          <span class="pvm-price">3m</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Phosani Nightmare (With Teleport)</span>
          <span class="pvm-price">4.3m</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
        <div class="pvm-item">
          <span class="pvm-name">Corporeal Beast (Masses DWH + Fang)</span>
          <span class="pvm-price">2m</span>
          <input type="number" min="0" value="0" class="pvm-quantity" oninput="validatePvMInput(this)">
        </div>
    </section>
    <center>
      <button class="submit-btn" onclick="buyPvM()">Buy Now</button>
    </center>
    <script>
      // ✅ Search Functionality for PvM
      function filterPvM() {
        const searchInput = document.getElementById('pvm-search').value.toLowerCase();
        document.querySelectorAll('.pvm-item').forEach(item => {
          const name = item.querySelector('.pvm-name').textContent.toLowerCase();
          item.style.display = name.includes(searchInput) ? 'flex' : 'none';
        });
      }
      // ✅ Validate Quantity Input
      function validatePvMInput(input) {
        input.value = input.value.replace(/[^0-9]/g, ''); // Allow only numbers
        if (input.value === '') input.value = 0; // Default to 0 if empty
        calculatePvMTotal();
      }
      // ✅ Format Price Display (e.g., 1,200,000 → 1.2M, 600,000 → 600K)
      function formatPrice(value) {
        if (value >= 1000000) {
          return (value / 1000000).toFixed(2) + 'M'; // Convert to Millions
        } else if (value >= 1000) {
          return (value / 1000).toFixed(0) + 'K'; // Convert to Thousands
        }
        return value.toString(); // Return as plain string if below 1000
      }
      // ✅ Calculate Total Price for Selected PvM Services
      function calculatePvMTotal() {
        let total = 0;
        const selectedTasks = [];
        document.querySelectorAll('.pvm-item').forEach(item => {
          const quantity = parseInt(item.querySelector('.pvm-quantity').value) || 0;
          const priceText = item.querySelector('.pvm-price').textContent.trim().toLowerCase();
          let price = 0;
          // Handle M (Millions) and K (Thousands)
          if (priceText.includes('m')) {
            price = parseFloat(priceText.replace(/[^0-9.]/g, '')) * 1000000; // Convert M to full number
          } else if (priceText.includes('k')) {
            price = parseFloat(priceText.replace(/[^0-9.]/g, '')) * 1000; // Convert K to full number
          }
          if (quantity > 0 && price > 0) {
            const totalItemPrice = quantity * price; // Calculate item total correctly
            total += totalItemPrice;
            // Add to selected tasks with formatted price (without $)
            selectedTasks.push(`${quantity}x ${item.querySelector('.pvm-name').textContent.trim()} (${formatPrice(totalItemPrice)})`);
          }
        });
        // Format the final total properly
        const formattedTotal = formatPrice(total);
        console.log('Total Price:', formattedTotal); // Debugging
        return {
          total: formattedTotal,
          selectedTasks
        };
      }
      // ✅ Buy Now Functionality with Live Chat Integration
      function buyPvM() {
        const {
          total,
          selectedTasks
        } = calculatePvMTotal();
        if (selectedTasks.length > 0) {
          let message = `I would like to purchase the following PvM services:\n\n`;
          selectedTasks.forEach(task => {
            message += `- ${task}\n`;
          });
          message += `\nTotal Price: ${total}`;
          // ✅ Send to Live Chat
          if (window.smartsupp) {
            smartsupp('chat:open');
            smartsupp('chat:message', message);
            console.log('✅ Message sent to Live Chat:', message);
          } else {
            console.error('❌ Smartsupp not initialized.');
            alert('LiveChat is not ready. Please try again later.');
          }
        } else {
          alert('Please select at least one PvM service with a valid quantity.');
        }
      }
      // ✅ Attach Event Listeners for Validation
      document.querySelectorAll('.pvm-quantity').forEach(input => {
        input.addEventListener('input', () => validatePvMInput(input));
      });
      // ✅ Ensure Search Works After Page Load
      document.getElementById('pvm-search').addEventListener('input', filterPvM);
    </script>
    <br>
    <br>
    <br>
    <footer class="footer">
      <div class="footer-container">
        <!-- Left Section: Logo and Description -->
        <div class="footer-section footer-left">
          <img src="website_logo_transparent.png" alt="OSRS Services Logo">
          <p> Providing efficient and affordable OSRS Services, we have completed over $250,000 in orders across numerous sites. Speak to Live Chat if you need any support. </p>
        </div>
        <!-- Middle Section: Help and Links -->
        <div class="footer-section footer-middle">
          <h3>Quick Links</h3>
          <ul>
            <li>
              <a href="./contact.html"></a>
            </li>
            <li>
              <a href="./blog.html"></a>
            </li>
            <li>
              <a href="./privacy.html"></a>
            </li>
            <li>
              <a href="https://discord.com/invite/osrspvmer">Discord</a>
            </li>
            <li>
              <a href="https://www.eldorado.gg/users/OSRSServicesPvM?tab=Feedback">Eldorado</a>
            </li>
            <li>
              <a href="https://www.sythe.org/threads/osrs-services-vouch-thread/#post-11617726">Sythe</a>
            </li>
            <li>
              <a href="https://uk.trustpilot.com/review/osrs-pvm.com">Trustpilot</a>
            </li>
          </ul>
        </div>
        <div class="footer-section footer-right">
          <h3>Our Commitment</h3>
          <p> Dedicated to offering secure and efficient OSRS services. Our team operates with professionalism and transparency, ensuring customer satisfaction. </p>
          <h4>Join our Discord <a href="https://discord.com/invite/osrspvmer">
              <img src="Discord.png" alt="Discord">
            </a>
          </h4>
        </div>
      </div>
      <div class="footer-bottom">
        <p>© 2025 OSRS Services. All rights reserved.</p>
      </div>
    </footer>
    <script src="chat.js"></script>
    <script src="script.js"></script>
  </body>
</html>