@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

html,
body {
  overflow-x: hidden !important;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 400;
}

* {
  &::-webkit-scrollbar {
    width: 5px;
    background-color: #e6e6e6;
  }

  &::-webkit-scrollbar-thumb {
    background-color: var(--primary-col);
  }
}

:root {
  --primary-col: #ffc412;
  --secondary-col: #46b8c3;
}

li,
ul {
  list-style: none;
}

a:active,
a:focus,
a:hover,
button:active {
  text-decoration: none;
  outline: 0;
  color: var(--thm-color);
}

a {
  color: var(--black-col);
}

a:hover {
  transition: all 0.5s;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
  margin-bottom: 8px;
}

h1 {
  font-size: 56px;
  font-weight: 700;
  margin: 0;
}

h2 {
  font-size: 40px;
  font-weight: 600;
}

h3 {
  font-size: 26px;
}

h4 {
  font-size: 24px;
}

p {
  font-size: 16px;
}

section {
  padding: 50px 0;
  position: relative;
  clear: both;
  scroll-behavior: smooth !important;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.btns {
  display: flex;
  justify-content: start;
  gap: 20px;
}

.btn {
  padding: 12px 20px;
  position: relative;
  overflow: hidden;
  z-index: 9;

  &::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: -100%;
    background-color: var(--secondary-col);
    z-index: -1;
    transition: all 0.2s ease-in;
  }

  &:hover {
    border: 1px solid var(--secondary-col);
  }

  &:hover::before {
    left: 0px;
  }
}

.btn-primary {
  background-color: var(--primary-col);
  color: black;
  border: 1px solid var(--primary-col);

  &::before {
    background-color: black;
  }

  &:hover {
    border: 1px solid black;
  }
}

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

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

.text-secondary {
  color: var(--secondary-col) !important;
}

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

.btn-secondary {
  background-color: transparent !important;
  border: 1px solid var(--secondary-col) !important;
  color: var(--secondary-col);
}

.btn-dark {
  &::before {
    background-color: var(--primary-col);
  }

  &:hover {
    border: 1px solid var(--primary-col);
  }
}

.error {
  color: red;
}

.navbar {
  background-color: transparent;
  width: 100% !important;
  transition: all 0.5s linear;

  .navbar-brand {
    width: 250px !important;
  }

  .nav-link {
    font-size: 16px;
    color: black !important;
    font-weight: 500;
    position: relative;

    &::before {
      content: "";
      width: 1px;
      height: 12px;
      position: absolute;
      top: 14px;
      left: -20px;
      background-color: #c5c5c5;
    }

    &:nth-child(1) {
      &::before {
        display: none;
      }
    }
  }

  .dropdown-menu {
    background-color: white !important;

    .dropdown-item {
      color: black;
      font-size: 14px;

      &:hover {
        background-color: var(--primary-col);
      }
    }
  }
}

.navbar .btn {
  min-width: fit-content !important;
}

.navbar-toggler {
  box-shadow: none !important;
  outline: none !important;
  border: none !important;
}

.navbar-bg-dark {
  background-color: rgb(78, 78, 78) !important;
}

/* HERO SECTIONS */

.home-hero {
  padding: 0px;
  margin-bottom: 30px;
  position: relative;
  color: white;

  &::before {
    content: "";
    position: absolute;
    background-color: #000000cc;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    z-index: 1;
  }

  .bg-video {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;

    video {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  .container {
    position: relative;
    z-index: 9;
    padding: 100px 0px 50px 0px;
  }

  .form-box {
    width: fit-content;
    margin: 0px auto;
    bottom: -80px;
    border-radius: 20px;
    padding: 40px;
    background-color: white;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    position: relative;
    z-index: 999;

    small {
      text-align: center !important;
    }

    form {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      justify-content: center;
    }

    .check-box {
      margin-bottom: 4px !important;
    }

    .btns {
      margin-top: 0px !important;
    }


    .offer-img {
      position: absolute;
      top: -300px;
      right: -122px;

      img {
        width: 280px;
      }
    }

    .form-control {
      border: 1px solid var(--secondary-col);
      /* height: 100%; */
      padding-left: 20px;
      padding-right: 20px;
    }

    .message-group,
    .select-group {
      display: none;
    }
  }

  .arrow-img {
    position: absolute;
    right: 200px;
    top: 170px;

    img {
      width: 120px;
    }
  }
}

.about-hero {
  background: url(/assets/images/about-bg.png) no-repeat;
  background-size: cover;
  color: white;
  padding: 50px 0px;
}

.business-hero {
  background: url(/assets/images/services-business-nexamar-bg.png) no-repeat;
  background-size: cover;
  color: white;
  padding: 50px 0px;
}

.contact-hero {
  background: url(/assets/images/contact-bg.png) no-repeat;
  background-size: cover;
  color: white;
}

.hero-section {

  .check-box {
    display: block;
  }

  small {
    color: black;
  }


  .form-box-2 {
    background-color: white;
    padding: 30px;
    border-radius: 30px;
    position: relative;

    .form-control {
      padding: 12px 15px;
      border: 1px solid var(--secondary-col);
      margin-bottom: 15px;
    }

    .offer-img {
      position: absolute;
      top: 20px;
      right: -65px;
    }

    .price-img {
      width: 120px;
      position: absolute;
      top: 80px;
      left: -119px;
    }

    .main-group {
      flex-direction: column;
      gap: 0px !important;
    }

    .select-group,
    .message-group {
      display: none;
    }
  }
}

.about-home {
  .about-box {
    position: relative;
    padding: 40px 20px;
    border-radius: 20px;
    transition: all 0.1s linear;

    &:hover {
      background-color: var(--primary-col);
      color: white;

      .icon {
        img {
          filter: brightness(0) invert(1);
        }
      }
    }

    &::before {
      content: "";
      background: url(/assets//images/about-box-before.png) no-repeat;
      background-size: cover;
      width: 300px;
      height: 300px;
      position: absolute;
      top: 0px;
      right: 0px;
    }
  }

  .box-1 {
    background-color: #f8f2ef;
  }

  .box-2 {
    background-color: #46b8c3;
    color: white;
  }

  .box-3 {
    background-color: #151515;
    color: white;
  }
}

.cta-section {
  background: url(/assets/images/cta-bg.png) no-repeat center;
  background-size: cover;

  .cta-1 {
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 2;
  }

  .cta-2 {
    position: absolute !important;
    top: -150px;
    right: -300px;
    z-index: 1;
  }
}

.service-section {
  .service-box {
    display: flex;
    align-items: center;
    border: 5px solid #e5e5e5;
    height: 300px;
    margin: 30px 30px 30px 100px;
    padding: 30px 30px 30px 110px;
    position: relative;

    p {
      color: #909090;
    }

    .service-img {
      position: absolute;
      width: 140px;
      top: 50px;
      left: -60px;
    }
  }
}

.brand-section {
  background-color: #f8f2ef;
}

/* TABLE */

.pricing-table {
  width: 100%;
  border-collapse: collapse;
}

.pricing-table thead {
  background: #1a1a1a;
  color: white;
}

.pricing-table th {
  padding: 20px;
  text-align: left;
  font-weight: 500;
  font-size: 16px;
  border-right: 1px solid #333;
}

.pricing-table th:last-child {
  border-right: none;
}

.pricing-table tbody tr {
  border-bottom: 1px solid #e0e0e0;
}

.pricing-table tbody tr:last-child {
  border-bottom: none;
}

.pricing-table td {
  padding: 25px 20px;
  text-align: left;
  font-size: 15px;
  border-right: 1px solid #e0e0e0;
}

.pricing-table td:last-child {
  border-right: none;
  text-align: center;
}

.package-name {
  font-weight: 500;
  color: #1a1a1a;
}

.order-btn {
  background: #000;
  color: white;
  padding: 12px 32px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.order-btn:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.order-btn:active {
  transform: translateY(0);
}

/* Mobile Responsive Design */
@media screen and (max-width: 768px) {
  .pricing-table {
    display: block;
  }

  .pricing-table thead {
    display: none;
  }

  .pricing-table tbody {
    display: block;
  }

  .pricing-table tr {
    display: block;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
  }

  .pricing-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }

  .pricing-table td:last-child {
    border-bottom: none;
    justify-content: center;
    padding: 20px;
  }

  .pricing-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #1a1a1a;
  }

  .pricing-table td:last-child::before {
    content: none;
  }
}

@media screen and (max-width: 480px) {
  .pricing-table td {
    font-size: 14px;
    padding: 12px 15px;
  }

  .order-btn {
    width: 100%;
    padding: 14px 20px;
  }
}

.cta2-section {
  background: url(/assets/images/cta2-bg.png) no-repeat;
  background-size: cover;
  width: 100%;
}

.rate-section {
  .rate-tab {
    position: relative;

    &::after {
      content: "";
      position: absolute;
      top: 0px;
      left: 0px;
      width: 100%;
      height: 100%;
      border: 2px solid var(--secondary-col);
      border-radius: 10px;
      z-index: -1;
    }

    .nav-link {
      color: black;
      width: 100%;
      padding: 8px 40px;
      border: 1px solid #e0e0e0;
      border-radius: 8px !important;
      margin-top: -20px;
      background-color: white;

      &.active {
        background-color: var(--secondary-col);
        color: white;
      }
    }
  }
}

.test-section {
  background: url(/assets/images/testi-bg.png);

  .test-box {
    display: flex;
    align-items: center;
    gap: 30px;
  }

  .test-img {
    width: 80%;

    img {
      width: 100%;
      object-fit: contain;
    }
  }
}

.faq-section {
  .accordion-item {
    border: 1px solid #00000021;
    border-radius: 0px;
    margin-bottom: 20px;

    .accordion-button {
      border-radius: 0px !important;
      background: none;
      box-shadow: none;

      &::after {
        content: "\f107";
        font-size: 14px;
        line-height: 22px;
        /* transform: none; */
        font-family: "fontawesome";
        text-align: center;
        background: none;
        background-color: #151515;
        color: white;
        border-radius: 50%;
      }
    }

    .accordion-button:not(.collapsed) {
      border: 2px solid var(--secondary-col);

      &::after {
        background-color: var(--secondary-col);
      }
    }
  }
}

.contact-section {
  background: url(/assets/images/contact-bg.png) no-repeat;
  background-size: cover;

  .form-control,
  .form-select {
    background-color: transparent;
    border: 1px solid #404040;
    color: white;
    padding: 10px;
    margin-bottom: 20px;

    &::placeholder {
      color: white;
    }
  }

  .btns {
    justify-content: center !important;
  }

  option {
    color: black;
  }

  textarea {
    height: 120px;
  }

  .btns {
    justify-content: flex-end;
  }
}

.contact-about {
  .address-box {
    background-color: #222;
    padding: 40px 30px;
    border-radius: 20px;
    color: white;

    a {
      text-decoration: none;
      display: flex;
      gap: 10px;
    }
  }

  .form-control,
  .form-select {
    background-color: transparent;
    border: 1px solid #404040;
    padding: 10px;
    margin-bottom: 20px;
  }

  textarea {
    height: 120px;
  }
}

.about-about {
  .over-para {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
  }
}

.portfolio-section {
  position: relative;

  &::before {
    content: "";
    background: url(/assets/images/writing-service-bg.png);
    height: 300px;
    width: 100%;
    position: absolute;
    top: 0px;
  }

  .container {
    position: relative;
    z-index: 2;
  }

  .port-box {
    background: url(/assets/images/writing-servic-item.png) no-repeat;
    background-size: cover;
    padding: 50px 24px 50px 70px;
    margin: 30px 10px 10px 10px;
    height: 362px;
  }
}

footer {
  padding: 50px 0px;
  background: url(/assets/images/footer-bg.png);
  color: white;

  .footer-brand {
    img {
      width: 220px;
    }
  }

  .social {
    border: 1px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
  }

  a {
    text-decoration: none;
  }

  .footer-links {
    li {
      margin-bottom: 10px;
      display: flex;
      font-size: 14px;
      gap: 10px;

      &::before {
        content: "\f00c";
        font-family: "fontawesome";
      }
    }
  }
}

.generic-modal button.is-close-btn {
  position: absolute !important;
  right: 15px !important;
  top: 15px !important;
  width: 50px;
  height: 50px;
  line-height: 16px;
  border-radius: 100%;
  outline: 0;
  box-shadow: none;
  cursor: pointer;
  z-index: 10;
  opacity: 1;
  padding: 5px;
  font-size: 18px !important;
  background-color: transparent !important;
  color: #000 !important;
  font-weight: bold;
}

.generic-modal {
  width: 40%;
  background: var(--primary-col);
  border-radius: 20px !important;
  border: none;
  color: black;
  padding: 40px 20px 0px 0px;
  position: relative;
  z-index: 1;

  .main-group {
    flex-direction: column;
    gap: 0px !important;
  }

  .select-group {
    display: none !important;
  }

  .form-control {
    border-radius: 5px;
    margin-bottom: 10px;
  }

  .btn-primary {
    background-color: white;
  }

  label {
    margin-bottom: 10px;

    a {
      color: var(--dark-blue) !important;
    }
  }
}

#dialog-content {
  display: none;
}

/* Sidebar */

/* Custom Offcanvas Styling */
.offcanvas {
  background-color: white;
  border-right: 1px solid var(--border-color);
  width: 320px !important;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);

  .offcanvas-header {
    padding: 2rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--primary-col);
    backdrop-filter: blur(10px);
    color: white;
  }

  .btn-close {
    filter: invert(1);
    opacity: 0.7;
    transition: all 0.3s ease;
  }

  .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
  }

  .offcanvas-body {
    padding: 1.5rem 1rem;

    overflow-x: hidden;
  }

  /* Custom Accordion Styling */
  .accordion {
    --bs-accordion-bg: transparent;
    --bs-accordion-border-color: var(--border-color);
    --bs-accordion-btn-focus-box-shadow: none;
  }

  .accordion-item {
    background: transparent;
    border: none;

    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
  }

  .accordion-button {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    color: black;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-bottom: 1px solid black;
    transition: all 0.3s ease;
    position: relative;

    &:hover {
      color: var(--primary-col);
      padding-left: 1.5rem;
      border-bottom: 1px solid var(--primary-col);
    }
  }

  .accordion-button:not(.collapsed) {
    background: #020304;
    color: white;
    box-shadow: none;
    border: none;

    &::after {
      filter: brightness(0%) invert(1);
    }
  }

  .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f59e0b'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: transform 0.3s ease;
  }

  .accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
  }

  .accordion-button i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    opacity: 0.8;
    transition: all 0.3s ease;
  }

  .accordion-button:not(.collapsed) i {
    color: var(--primary-accent);
    opacity: 1;

  }

  .accordion-body {
    padding: 0.5rem 0;
    background: #8a8a8a44;
  }

  .accordion-body a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem 0.75rem 1.5rem;
    color: black;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  .accordion-body a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--primary-accent);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .accordion-body a:hover {
    color: var(--primary-col);
    padding-left: 2rem;
  }

  .accordion-body a:hover::before {
    transform: translateX(0);
  }

  .accordion-body a i {
    margin-right: 0.75rem;
    font-size: 0.85rem;
    opacity: 0.6;
  }

  .accordion-body a.active::before {
    transform: translateX(0);
  }

  /* Regular Menu Items (non-accordion) */
  .menu-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    color: black;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-bottom: 1px solid black;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  .menu-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg,
        var(--primary-accent),
        var(--secondary-accent));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .menu-item:hover {
    color: var(--primary-col);
    border-bottom: 1px solid var(--primary-col);
    padding-left: 1.5rem;
  }

  .menu-item:hover::before {
    transform: translateX(0);
  }

  .menu-item i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    opacity: 0.8;
  }

  .menu-item.active::before {
    transform: translateX(0);
  }

  /* Animation */
  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateX(-20px);
    }

    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .accordion-item,
  .menu-item {
    animation: slideIn 0.5s ease forwards;
  }

  .accordion-item:nth-child(1) {
    animation-delay: 0.1s;
  }

  .accordion-item:nth-child(2) {
    animation-delay: 0.2s;
  }

  .accordion-item:nth-child(3) {
    animation-delay: 0.3s;
  }

  .accordion-item:nth-child(4) {
    animation-delay: 0.4s;
  }

  .accordion-item:nth-child(5) {
    animation-delay: 0.5s;
  }
}