@font-face {
  font-family: 'Roboto';
  src: url('./roboto/Roboto-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('./roboto/Roboto-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --text-color: #ffffff;
  --bg-color: #000000;
  --green: #28A43C;
  --header-gradient: linear-gradient(180deg, #259455 0%, #000000 100%);
  --footer-gradient: linear-gradient(0deg, #259455 0%, #000000 100%);
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

.navbar {
  background: var(--header-gradient);
}

.navbar-brand {
  color: var(--text-color) !important;
}

.logo-img {
  height: 2.5rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 400;
}

.logo-subtext {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-color);
}

.nav-link {
  color: var(--text-color) !important;
  font-size: 1.125rem;
}

.nav-link:hover {
  color: var(--green) !important;
}

.language-select {
  background: transparent;
  color: var(--text-color);
  border: none;
  outline: none;
  font-size: 1rem;
  cursor: pointer;
  appearance: none;
  background-image: none;
}

.language-select option {
  background: #000;
  color: var(--text-color);
}

.menu-icon,
.phone-img {
  width: 1.875rem;
  height: 1.875rem;
}

.phone-img {
  width: 1.25rem;
  height: 1.25rem;
}

.hero {
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  margin-top: 5rem;
  justify-content: flex-start;
  text-align: left;
}

.hero .container {
  text-align: left;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--green);
}

.subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  max-width: 50%;
  margin-bottom: 2rem;
}

.section {
  min-height: 100vh;
  padding: 10rem 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

#about {
  margin: 0 45% 0 5%;
}

.section h2 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 2rem;
}

.section p {
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  margin-bottom: 1rem;
  color: var(--text-color);
}

.card {
  position: relative;
  background: #111;
  min-height: 25rem;
  width: 100%;
}

.card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-img-overlay {
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
}

.card-title {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: var(--text-color);
}

.card-text {
  font-size: clamp(0.875rem, 1.5vw, 1.25rem);
  color: var(--text-color);
}

.services-grid,
.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.services-grid .col-md-4,
.portfolio-grid .col-md-4 {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
  padding: 0 15px;
}

.services-note {
  margin-top: 2rem;
  font-size: clamp(1rem, 1.5vw, 1.5rem);
}

.highlight {
  color: var(--green) !important;
  font-weight: bold;
}

/* Customize Bootstrap tooltip appearance */
.tooltip-inner {
  background-color: #111 !important;
  color: var(--text-color) !important;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  opacity: 1 !important;
}

.tooltip {
  opacity: 1 !important;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: #111 !important;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
  border-bottom-color: #111 !important;
}

.tooltip.bs-tooltip-start .tooltip-arrow::before {
  border-left-color: #111 !important;
}

.tooltip.bs-tooltip-end .tooltip-arrow::before {
  border-right-color: #111 !important;
}

.contacts a {
  color: var(--text-color);
  text-decoration: none;
}

.contacts a:hover {
  color: var(--green);
}

.phone {
  font-weight: bold;
}

footer {
  background: var(--footer-gradient);
  color: var(--text-color);
  text-align: center;
  padding: 2rem 0;
}

.footer-bottom {
  font-size: clamp(0.75rem, 1vw, 0.875rem);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.carousel .card {
  margin: 0 auto;
  width: 100%;
  max-width: 350px;
}

.carousel-control-prev,
.carousel-control-next {
  width: 10%;
}

@media (max-width: 900px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--header-gradient);
  }

  .nav-link.contact-link,
  .nav-link.demo-button {
    display: block !important;
  }

  .navbar-brand .logo-subtext {
    display: none;
  }

  #phone-toggle {
    display: block !important;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: 80vh;
    margin-top: 4rem;
  }
}

.subtitle {
  font-size: 1rem;
}

.section h2 {
  font-size: 3rem;
}

.section p,
.services-note {
  font-size: 1.125rem;
}

.card {
  min-height: 18.75rem;
}

.card-title {
  font-size: 1.5rem;
}

.card-text {
  font-size: 1.125rem;
}

.tooltip-inner {
  max-width: 200px;
}