@font-face {
  font-family: Raleway;
  src: url("/assets/pages/general/fonts/Raleway/Raleway-Var.ttf");
}

:root {
  /* --pm-color: rgba(0, 108, 92, 0.8); */
  --pm-color: #403142;
  --bg-light: #ffffff;
  --pm-color-light-1: #3b3b3b;
  --pm-color-light-2: #544457;
  --pm-color-light-3: #888888;
  --pm-color-light-4: #aeaeae;
  --pm-color-light-7: #e2e2e2;
  --pm-color-light-9: #f5f5f5;
  --pm-color-light-15: #fafafa;
  --pm-color-dark-1: #252525;
  --bg-white-blur-color: rgba(255, 255, 255, 0.930);
  --body-bg-color: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5041666324733018) 20%, rgba(0, 0, 0, 0.25486691258534666) 50%, rgba(0, 0, 0, 0.49576327112876406) 80%, rgba(0, 0, 0, 1) 100%);
  --nav-bg-color: rgba(255, 255, 255, 0.4);
  --text-dark-color: rgb(51, 51, 51);

  --navbar-box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);

  --section-margin: 50px 30px;
  --section-padding: 20px 30px;
  --section-border-radius: 10px;
  --section-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

body,
html {
  margin: 0;
  padding: 0;
  font-family: Raleway, Arial, sans-serif;
  overflow-x: hidden;
  min-height: 100%;
  height: auto;
}

body {
  background: var(--body-bg-color);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  touch-action: pan-y
}

body::-webkit-scrollbar {
  display: none;
}

.containers {
  max-width: 100%;
  max-height: 100%;
  min-width: 100%;
  min-height: 100%;
  margin: 0 auto;
  padding: 0px;
  background-color: var(--bg-white-blur-color);
  backdrop-filter: blur(5px);
}

.hide {
  display: none;
}

h1 {
  font-size: 250%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--pm-color);
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}

.no-scroll {
  overflow: hidden;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  height: 2.5rem;
  width: auto;
}

.logo {
  font-size: 200%;
  font-weight: bolder;
  color: var(--pm-color);
  text-decoration: none;
}

nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--nav-bg-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0px;
  padding: 5px 15px;
  box-shadow: var(--navbar-box-shadow);
  z-index: 90;
}

nav ul {
  list-style-type: none;
  display: flex;
  gap: 20px;
  margin: 0px;
}

nav a {
  text-decoration: none;
  color: var(--text-dark-color);
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--pm-color);
}

nav a.active {
  font-weight: bold;
  color: var(--pm-color);
}

/* Hero Section */
span.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.281);
  transform: scale(0);
  animation: ripple 1.5s linear;
}

.sector {
  background: var(--bg-light);
  margin: var(--section-margin);
  padding: var(--section-padding);
  border-radius: var(--section-border-radius);
  box-shadow: var(--section-box-shadow);
  margin-top: 80px;
}

/* Services */

.search-container {
  position: relative;
  max-width: 60vw;
  margin: 0 auto 0px auto;
  padding: 0 15px;
}

.search-wrapper {
  position: relative;
}

.search-icon {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  color: #888888;
  pointer-events: none;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 0 15px;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
}

.search-suggestions.active {
  display: block;
}

.suggestion-item {
  padding: 10px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.suggestion-item:hover {
  background-color: #f5f5f5;
}

.suggestion-item i {
  color: #888888;
  font-size: 14px;
}

.suggestion-category {
  color: #888888;
  font-size: 12px;
  margin-left: auto;
}

.highlight {
  color: #403142;
  font-weight: 600;
}

.no-results {
  padding: 15px 20px;
  color: #888888;
  font-style: italic;
}

.search-container {
  position: relative;
  max-width: 60vw;
  margin: 0 auto 0px auto;
  padding: 0 15px;
}

.search-wrapper {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 6px 40px 6px 20px;
  border: 2px solid var(--pm-color-light-7);
  border-radius: 25px;
  font-size: 16px;
  transition: all 0.2s ease;
  color: #333;
  background-color: var(--bg-light);
}

.search-input:focus {
  outline: none;
  border-color: var(--pm-color);
  box-shadow: 0 0 5px rgba(64, 49, 66, 0.2);
}

.search-icon {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pm-color-light-3);
  pointer-events: none;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-light);
  border-radius: 0 0 15px 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 0 15px;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  z-index: 100;
}

.search-suggestions.active {
  display: block;
}

.suggestion-item {
  padding: 10px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.suggestion-item:hover {
  background-color: var(--pm-color-light-9);
}

.suggestion-item i {
  color: var(--pm-color-light-3);
  font-size: 14px;
}

.suggestion-category {
  color: var(--pm-color-light-3);
  font-size: 12px;
  margin-left: auto;
}

.highlight {
  color: var(--pm-color);
  font-weight: 600;
}

.no-results {
  padding: 15px 20px;
  color: var(--pm-color-light-3);
  font-style: italic;
}

.category {
  flex: 1 0 calc(50% - 5px);
  border: none;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 0px 4px rgba(0, 0, 0, 0.1);
  margin: 10px 0;
  background-color: var(--bg-light);
  overflow: hidden;
}

.category h3 {
  margin: 0;
  padding: 10px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  gap: 15px;
  align-items: center;
}

.category h3::after {
  content: "+";
  font-size: 24px;
  color: var(--pm-color-light-3);
  transition: transform 0.2s linear;
}

.category.open h3::after {
  content: '-';
  transform: rotate(180deg);
}

.category h3:hover {
  background-color: var(--pm-color-light-9);
}

.subcategories {
  padding: 0px;
  max-height: 0;
  min-height: 0;
  overflow: hidden;
  transition: all 0.2s ease-out;
  background-color: var(--pm-color-light-15);
}

.category.open .subcategories {
  max-height: 160vh;
}

.subcategories ul {
  list-style-type: none;
  text-decoration: none;
  padding: 10px 0;
  margin: 0;
}

.subcategories li {
  padding: 2% 4%;
  color: var(--text-dark-color);
  transition: color 0.1s ease, transform 0.2s ease-out;
  cursor: pointer;
}

.subcategories li:hover {
  color: var(--pm-color);
  transform: translate(1%, 0);
}

.subcategories li:active {
  transform: translate(0, 0);
}

/* Services Section */
.service-items-container-er {
  display: flex;
  justify-content: space-between;
}

.service-items {
  width: 49%;
}

/* Services Popup */
#services-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 99;
}

.services-popupContent {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: 90vw;
  height: 90vh;
  background-color: var(--bg-light);
  padding: 20px 30px;
  overflow-y: scroll;
}

.service-popup-heading {
  display: flex;
  justify-content: space-between;
}

.service-popup-heading h2,
.close-button {
  margin: 0 10px;
}

.service-popup-body {
  margin-top: 5px;
  display: flex;
  justify-content: space-between;
}

/* Footer Styles */
.footer {
  background-color: var(--pm-color-dark-1);
  color: var(--bg-light);
  padding: 60px 0 20px 0;
  margin-top: 50px;
}

.cta-button.footer {
  width: 70%;
  text-align: center;
  background-color: var(--bg-white-blur-color);
  color: var(--pm-color);
  padding: 6px 0px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: large;
  border-radius: 5px;
  border: 1px solid var(--bg-white-blur-color);
  margin: 0 0 15px 0;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.cta-button.footer:hover {
  background-color: var(--pm-color-dark-1);
  color: var(--bg-white-blur-color);
  border: 1px solid var(--bg-white-blur-color);
  cursor: pointer;
}

@keyframes ripple {
  45% {
    /* opacity: 1; */
  }

  100% {
    transform: scale(4);
    /* opacity: 0; */
  }
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo {
  color: var(--bg-light);
  font-size: 24px;
  margin-bottom: 20px;
  display: inline-block;
}

.footer-brand p {
  color: var(--pm-color-light-4);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--pm-color-light-1);
  color: var(--bg-light);
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background-color: var(--pm-color);
  transform: translateY(-3px);
}

.footer-links h4 {
  color: var(--bg-light);
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a,
.footer-links div {
  color: var(--pm-color-light-4);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover,
.footer-links div:hover {
  cursor: pointer;
  color: var(--bg-light);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--pm-color-light-4);
}

.footer-contact i {
  color: var(--pm-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: var(--pm-color-light-4);
  font-size: 14px;
}

.blur-background {
  filter: blur(5px);
}

/* Contact Popup Styles */
.gen-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 99;
}

.gen-popupContent {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 600px;
  max-width: 90vw;
  max-height: 90vh;
  transform: translate(-50%, -50%);
  background-color: var(--bg-light);
  padding: 30px;
}

.gen-popup-heading {
  position: relative;
  text-align: center;
  margin-bottom: 30px;
}

.gen-popup-heading h2 {
  color: var(--pm-color);
  margin: 0;
}

.copt-popup-body {
  height: 30vh;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: var(--pm-color-light-15);
}

.copt-grid-opt {
  border-radius: 10px;
  height: 70%;
  width: 38%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.opt-btn {
  border-radius: 10px;
  box-shadow: var(--section-box-shadow);
  background-color: var(--bg-light);
  width: 80%;
  height: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease-out, color 0.2s ease-out, transform 0.1s ease-out;
}

.opt-btn:hover {
  background-color: var(--pm-color);
  color: var(--bg-light);
}

.opt-btn:active {
  transform: scale(0.99);
}

.contact-form .form-control {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 12px 15px;
  margin-bottom: 15px;
  transition: all 0.2s ease;
}

.contact-form .form-control:focus {
  border-color: var(--pm-color);
  box-shadow: 0 0 0 0.2rem rgba(64, 49, 66, 0.25);
}

.contact-submit-btn {
  background-color: var(--pm-color);
  color: var(--bg-light);
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s ease;
}

.contact-submit-btn:hover {
  background-color: var(--pm-color-dark-1);
  transform: translateY(-2px);
}

.toggle-i {
  display: none;
}

#ai-assistant-container {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 350px;
  height: 500px;
  background-color: var(--bg-light);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  z-index: 102;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ai-assistant-hidden {
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
}

.ai-assistant-header {
  padding: 15px;
  background-color: var(--pm-color);
  color: var(--bg-light);
  border-radius: 10px 10px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-assistant-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-assistant-logo {
  width: 24px;
  height: 24px;
}

.ai-assistant-minimize {
  background: none;
  border: none;
  color: var(--bg-light);
  cursor: pointer;
  font-size: 20px;
  padding: 0 5px;
}

.ai-assistant-messages {
  flex-grow: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 15px;
  margin-bottom: 5px;
}

.message.user {
  background-color: var(--pm-color);
  color: var(--bg-light);
  align-self: flex-end;
}

.message.assistant {
  background-color: var(--pm-color-light-9);
  color: var(--text-dark-color);
  align-self: flex-start;
}

.ai-assistant-input {
  padding: 15px;
  border-top: 1px solid var(--pm-color-light-7);
  display: flex;
  gap: 10px;
}

.ai-assistant-textarea {
  flex-grow: 1;
  border: 1px solid var(--pm-color-light-7);
  border-radius: 20px;
  padding: 8px 15px;
  resize: none;
  font-family: inherit;
  max-height: 100px;
  overflow-y: auto;
}

.ai-assistant-textarea:focus {
  outline: none;
  border-color: var(--pm-color);
}

.ai-assistant-send {
  background-color: var(--pm-color);
  color: var(--bg-light);
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.ai-assistant-send:hover {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  #ai-assistant-container {
    width: calc(100% - 40px);
    height: 65vh;
    bottom: 85px;
  }

  #ai-assistant-trigger-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--pm-color);
    color: var(--bg-light);
    border: none;
    cursor: pointer;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); */
    transition: transform 0.2s ease;
    z-index: 101;
  }

  #ai-assistant-trigger-icon:hover {
    transform: scale(1.1);
  }

  #ai-assistant-trigger-icon i {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .toggle .fa-bars {
    font-size: x-large;
  }

  .toggle-i {
    display: flex;
  }

  ul .fa-times {
    margin-left: 38px;
    margin-top: 20px;
    font-size: xx-large;
  }

  nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

  }

  .logo-container {
    width: auto;
    justify-content: flex-start;
  }

  .logo {
    font-size: 24px;
  }

  .logo-img {
    height: 2rem;
  }

  /* Navigation Menu */
  nav ul {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--pm-color-light-9);
    padding: 0 0 0 0;
    margin: 0;
    transition: right 0.2s ease-in-out;
  }

  nav ul.active {
    right: 0;
    box-shadow: -215px 0 0 rgba(0, 0, 0, 0.5);
  }

  nav ul li {
    padding: 15px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  }

  nav ul.active li {
    opacity: 1;
    transform: translateX(0);
  }

  nav ul li:nth-child(1) {
    transition-delay: 0.1s;
  }

  nav ul li:nth-child(2) {
    transition-delay: 0.2s;
  }

  nav ul li:nth-child(3) {
    transition-delay: 0.3s;
  }

  nav ul li:nth-child(4) {
    transition-delay: 0.4s;
  }

  nav ul li:nth-child(5) {
    transition-delay: 0.5s;
  }

  nav ul li a {
    display: block;
    font-size: 1.1em;
    color: var(--pm-color);
  }
}

/* Mobile Services Section */
@media (max-width: 768px) {
  .service-items-container-er {
    flex-direction: column;
  }

  .service-items {
    width: 100%;
  }

  .category {
    margin: 5px 0;
  }

  .subcategories li {
    padding: 4% 8%;
  }
}

/* Mobile Popups */
@media (max-width: 768px) {
  .services-popupContent {
    width: 95vw;
    height: 95vh;
    padding: 15px;
  }

  .service-popup-body {
    flex-direction: column;
    margin-top: 0px;
  }

  .gen-popupContent {
    width: 95%;
    max-height: 80vh;
    padding: 15px;
  }

  .copt-popup-body {
    flex-direction: column;
    height: auto;
    padding: 20px 0;
  }

  .copt-grid-opt {
    width: 90%;
    margin: 10px 0;
  }
}

@media (max-width: 768px) {

  h1 {
    font-size: 180%;
  }

  h2 {
    font-size: 170%;
  }

  h3 {
    font-size: 150%;
  }

  h4 {
    font-size: 130%;
  }

  h5 {
    font-size: 110%;
  }

  p {
    font-size: 80%;
  }

  .sector {
    margin: 100px 15px 30px 15px;
    padding: 15px;
  }

  .containers {
    padding: 0;
  }
}

@media (max-width: 768px) {

  iframe,
  video {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {

  .opt-btn,
  .subcategories li,
  nav a {
    min-height: 44px;
    min-width: 44px;
    padding: 12px;
  }
}

@media (max-width: 768px) {
  .cta-button.footer {
    background-color: var(--pm-color-dark-1);
    color: var(--bg-white-blur-color);
    justify-self: center;
    width: 85%;
  }

  .footer-content {
    padding: 0 30px;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 0px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
    max-width: 100%;
  }

  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .search-container {
    min-width: 80vw;
    padding: 0 10px;
    margin-bottom: 20px;
  }

  .search-input {
    padding: 6px 35px 6px 15px;
    font-size: 14px;
  }

  .search-icon {
    right: 25px;
  }

  .suggestion-item {
    padding: 12px 15px;
  }
}