:root {
  --font-family-book: 'book';
  --font-family-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-family-secondary: Arial, Helvetica, sans-serif;
  --color-bg-dark: #1f1f1f;
  --color-bg-light: #262626;
  --color-bg-service: #444;
  --color-bg-hero: #555;
  --color-bg-footer: #262626;
  --color-text-main: #f7c184;
  --color-text-secondary: #fff;
  --color-nav-bg: #333;
  --color-nav-hover-bg: #f7c184;
  --color-contact-btn-bg: #f7c184;
  --color-contact-btn-hover-bg: #f7c184;
  --color-scrollbar-track: #1f1f1f;
  --color-scrollbar-thumb: #888;
  --color-scrollbar-thumb-hover: #555;
  --border-radius: 5px;
  --box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-blur: 10px;
  --glass-border: rgba(255, 255, 255, 0.2);
}

@font-face {
  font-family: var(--font-family-book);
  src: url('book-antiqua.ttf') format('truetype');
}

@keyframes fade-in-up {
  0% {
    opacity: 0.5;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

html {
  background-color: var(--color-bg-dark);
  scroll-behavior: smooth;
}

body {
  margin: 0 auto;
  font-family: var(--font-family-main);
  background-color: var(--color-bg-light);
  color: var(--color-text-main);
  padding: 0;
  max-width: 1800px;
  line-height: 1.6;
}

p {
  color: var(--color-text-secondary);
  font-family: var(--font-family-secondary);
}

h1,
h2,
h3 {
  font-family: var(--font-family-book);
  font-weight: 400;
}

a {
  color: inherit;
}

#navbar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  color: var(--color-text-main);
  z-index: 9999;
  flex-wrap: wrap;
  /* Allow wrapping to the next line */
}

@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {

  #navbar,
  .modal-content {
    -webkit-backdrop-filter: blur(var(--glass-blur));
    backdrop-filter: blur(var(--glass-blur));
  }
}

#menu {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-grow: 1;
}

#myLinks {
  display: none;
  justify-content: flex-end;
  /* Align links to the right */
  width: 100%;
  /* Take up full width */
  margin-top: 5px;
  /* Add spacing from the buttons above */
}

#myLinks a {
  margin-left: 10px;
  /* Add some space between the links */
}

#menu .icon {
  position: relative;
  padding: 11px 15px;
  /* Same padding as other buttons */
  width: auto;
  /* Let the width be flexible */
  height: 24px;
  /* Match the height of the buttons */
  vertical-align: middle;
  /* Aligns the icon vertically */
  margin: 4px;
  margin-top: 5px;
  /* Match the margin */
  text-align: center;
  /* Center the icon inside */
  border-radius: var(--border-radius);
  border: 2px solid var(--color-text-main);
  /* Match the border */
  transition: all 0.3s ease;
  /* Match the transition */
}

#menu .icon i {
  line-height: 26px;
  /* Adjust this value to fine-tune the vertical alignment */
  vertical-align: middle;
  /* Ensure the icon itself is aligned */
}



#logo img {
  width: auto;
  height: 50px;
  transition: transform 0.3s ease;
}

#logo img:hover {
  transform: scale(1.05);
}

#menu a,
#myLinks a {
  display: inline-block;
  position: relative;
  padding: 10px 20px;
  text-decoration: none;
  color: var(--color-text-secondary);
  border-radius: var(--border-radius);
  border: 2px solid var(--color-text-main);
  margin: 5px;
  transition: all 0.3s ease;
}

#menu a:hover,
#myLinks a:hover {
  color: var(--color-nav-bg);
  background-color: var(--color-nav-hover-bg);
  transform: scale(1.1);
}

@media only screen and (max-width: 768px) {
  #navbar {
    flex-direction: column;
    align-items: center;
  }

  #logo img {
    margin-bottom: 10px;
  }

  #menu {
    text-align: center;
  }

  #myLinks {
    justify-content: center;
    /* Align links to the right */
  }
}

#hero {
  text-align: center;
  padding: 50px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  color: var(--color-text-main);
  background-image: url("images/new_bg.png");
  background-size: cover;
  background-position: center;
}

#hero p {
  margin-bottom: 40px;
}

#hero h1 {
  font-size: 30px;
}

.cta-button {
  padding: 10px 30px;
  border-radius: var(--border-radius);
  background-color: var(--color-text-main);
  color: var(--color-nav-bg);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: bold;
  margin-bottom: 60px;
}

.cta-button:hover {
  background-color: var(--color-text-main);
  transform: scale(1.1);
}

#services {
  padding: 50px 30px;
  margin: 50px 0px;
  animation: fade-in-up 0.9s ease-out;
}

.service {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin: 20px 0;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  color: var(--color-text-main);
  transition: all 0.3s ease;
}

.service:hover {
  background-color: var(--color-bg-service);
  box-shadow: var(--box-shadow);
  transform: scale(1.01);
}

.icon {
  width: 40px;
  height: auto;
  justify-content: center;
  margin-right: 20px;
  vertical-align: bottom;
}

.service h3 {
  margin-right: 10px;
  flex: 1;
}

@media only screen and (max-width: 768px) {
  .service {
    text-align: center;
    flex-direction: column;
  }

  .service .icon {
    margin-bottom: 10px;
  }
}

#stats {
  text-align: center;
  padding: 50px;
  background-color: var(--color-bg-dark);
  color: var(--color-text-main);
}

.stat {
  display: inline-block;
  margin: 20px;
}

#contact {
  padding: 50px;
  text-align: center;
}

.professional {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 50px;
  margin: 20px 0;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  color: var(--color-text-main);
  position: relative;
}

.professional img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  margin-right: 20px;
  border-radius: var(--border-radius);
  object-position: top;
}

.image-wrapper {
  position: relative;
}

.image-wrapper #badge {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: auto;
  margin: 0;
}

@media only screen and (max-width: 768px) {
  .image-wrapper img {
    margin: 0 auto 20px;
  }

  .professional {
    flex-direction: column;
  }
}

.professional .info {
  flex: 1;
}

.contact-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--color-contact-btn-bg);
  color: var(--color-nav-bg);
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: 0.3s ease;
}

.contact-button:hover {
  background-color: var(--color-contact-btn-hover-bg);
}

#contact {
  padding: 50px;
  background-color: var(--color-bg-light);
  text-align: center;
}

.contact-item .icon {
  color: var(--color-text-main);
  margin-bottom: 10px;
  margin-right: 0px;
}

.contact-item a {
  color: var(--color-text-secondary);
  text-decoration: underline;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-item {
  flex-basis: calc(33.333% - 20px);
  margin: 10px;
  padding: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--box-shadow);
  text-align: center;
  border-radius: var(--border-radius);
}

@media (max-width: 768px) {
  .contact-item {
    flex-basis: calc(100% - 20px);
    margin: 10px;
  }
}

.site-footer {
  background-color: var(--color-bg-footer);
  color: var(--color-text-main);
  text-align: center;
  padding: 20px;
  font-size: 14px;
  border-top: 1px solid var(--color-bg-service);
}

#services {
  flex: 1;
}

.site-footer p {
  margin: 0;
}

.service-modal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  animation: fade-in-up 0.2s;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  color: var(--color-text-main);
  padding: 20px;
  border-radius: var(--border-radius);
  width: 80%;
  max-width: 800px;
  overflow-wrap: normal;
}

.close {
  position: absolute;
  top: 3px;
  right: 10px;
  cursor: pointer;
  font-size: 20px;
}

.service {
  cursor: pointer;
}

.highlight {
  animation-name: highlight;
  animation-duration: 1s;
}

@keyframes highlight {
  from {
    background-color: #ffff66;
  }

  to {
    background-color: transparent;
  }
}

summary {
  color: var(--color-text-secondary);
  cursor: pointer;
  margin-bottom: 10px;
}

::-webkit-scrollbar-track {
  background-color: var(--color-scrollbar-track);
}

::-webkit-scrollbar {
  width: 10px;
  background-color: var(--color-scrollbar-track);
}

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

::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-scrollbar-thumb-hover);
}

#insight, #blog {
  margin-left: 20px;
  margin-right: 20px;
}

#insight img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  margin-right: 20px;
  border-radius: var(--border-radius);
  object-position: top;
}

@media only screen and (max-width: 768px) {
  #insight img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-right: 20px;
    border-radius: var(--border-radius);
    object-position: top;
  }
}