* {
  font-family: "Lato", sans-serif;
  color: #fff;
}

html {
  overflow-y: auto !important;
  height: auto !important;
}

body {
  display: flex;
  flex-direction: column;
  background-color: #000;
  font-size: 1.2rem;
  line-height: 1.4rem;
  min-height: 100vh;
  overflow-y: auto !important;
  height: auto !important;
  position: relative !important;
}

@media (max-width: 768px) {
  html {
    overflow-y: auto !important;
    height: auto !important;
  }
  
  body {
    overflow-y: auto !important;
    min-height: 100vh;
    height: auto !important;
    position: relative !important;
  }
}

.d-none {
  display: none;
}

h2 {
  font-size: 1.5em;
  margin-bottom: 1vh;
  font-weight: 600;
}

p {
  padding: 0;
  margin: 0;
}

a {
  color: #cf4500;
}
.locale-select {
  padding: 0.5rem 1rem !important;
}

.locale-select a {
  font-size: smaller;
}
.selected-locale {
  font-weight: bolder;
  color: #ccc;
}

.pn-link {
  color: #fff;
  text-decoration: none;
}

.pn-span {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  display: block;
  text-transform: uppercase;
  padding-bottom: none !important;
  padding-top: 1rem;
}

.inline-link {
  text-decoration: none;
  display: inline-block;
}

#canv,
canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 998;
}

@keyframes logoAnimation {
  0% {
    transform: scale(0.1);
  }

  50% {
    transform: scale(2.3);
  }

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

.animated-logo {
  animation: logoAnimation 2s;
}

.container {
  z-index: 999 !important;
  position: relative;
  max-width: 640px;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 0.5rem;
  flex: 1 0 auto;
  overflow: visible;
}

.navbar {
  color: #fff;
  background: rgba(0, 0, 0, 0.1);
  z-index: 99999 !important;
}

.compact-navbar {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
  min-height: auto !important;
}

.bg-dark {
  background-color: rgba(0, 0, 0, 0.1) !important;
}

.navbar-brand {
  div {
    color: white;
    font-size: 1.5rem;
    display: inline-block;
  }
}
.navbar-brand:hover,
.navbar-brand:focus {
  color: #fff;
}

.navbar-toggler {
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.375rem 0.5rem;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
}

.navbar-toggler:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.4);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(207, 69, 0, 0.25);
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.3rem;
  height: 1.3rem;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

.nav-link {
  color: #fff !important;
}

.nav-link.active {
  color: #cf4500 !important;
}

#cookies-eu-banner {
  background-color: #000;
  color: #fff;
  z-index: 9999;
  position: fixed;
  padding: 20px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  border: 1px solid #cf4500;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(207, 69, 0, 0.5);
}

@media (max-width: 768px) {
  #cookies-eu-banner {
    width: 95%;
    padding: 15px;
    max-width: none;
  }
}

.co-funded-logo {
  width: 100px !important;
}

.footer {
  text-align: center;
  padding: 12px;
  color: rgb(151, 192, 227);
  z-index: 999;
  margin-top: 10px;
  position: relative;
  bottom: 20px;
  width: 100%;
  opacity: 0.8;

  .footer-link-container {
    margin-left: auto;
    margin-right: auto;
    display: block;
    text-align: center;
  }

  * {
    font-size: 1rem;
    text-decoration: none;
    font-weight: 300;
    font-style: normal;
  }

  a {
    margin-left: 8px;
    margin-right: 8px;
  }
  a {
    color: #6c757d; /* A slightly more noticeable gray */
    text-transform: uppercase;
    font-size: 0.9rem;
  }
  a:hover {
    color: #fff;
  }

  .copyright {
    font-size: 1rem;
    margin-top: 12px;
  }

  .co-funded-logo {
    width: 190px !important;
    display: block;
    margin: 12px auto;
  }
}

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

.divider {
  background-color: rgba(207, 69, 0, 0.8);
  height: 8px;
  width: 200px;
  margin: 1.5rem auto;
  /* Center horizontally and add vertical margin */
  display: flex;
  align-items: center;
  opacity: 0.1;
  /* Center vertically */
}

.text-primary,
.lead {
  color: #fff;
}

.btn-outline-primary {
  color: #fff;
  border-color: #fff;
}

.btn-outline-primary:hover {
  border-color: #cf4500;
  background: transparent;
}

.ai-first-page-row {
}

.solutions-container {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

/* Further reduce bottom margin on mobile to minimize empty space */
@media (max-width: 768px) {
  .solutions-container {
    margin-bottom: 0.5rem;
  }
}

.solutions-title {
  font-size: 1.8rem;
}

.solution-box-link {
  text-decoration: none;
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 0.5rem;
}

/* Further reduce bottom margin on mobile to minimize empty space before footer */
@media (max-width: 768px) {
  .solution-box-link {
    margin-bottom: 0.5rem;
  }
}

.solution-box {
  background-color: transparent;
  border: 2px solid rgba(207, 69, 0, 0.3);
  border-radius: 12px;
  padding: 0 1rem 2rem 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.solution-box:hover {
  background-color: rgba(0, 0, 0, 0.2);
  border-color: rgba(207, 69, 0, 0.8);
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(207, 69, 0, 0.3);
}

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

.solution-icon-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(207, 69, 0, 0.3));
}

.solution-title {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-decoration: none;
}

.solution-description {
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
  text-align: center;
}

@media (max-width: 768px) {
  .solution-box {
    padding: 0 0.75rem 1.5rem 0.75rem;
    min-height: 240px;
  }
  
  .solution-title {
    font-size: 1.5rem;
  }
  
  .solution-description {
    font-size: 1rem;
  }
  
  .solution-icon-img {
    width: 100px;
    height: 100px;
  }
  
  /* Ensure solution-box doesn't add extra bottom spacing */
  .solution-box:last-child {
    margin-bottom: 0;
  }
}

.animate__animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.animate__fadeIn {
  animation-name: fadeIn;
}

.animate__fadeInDown {
  animation-name: fadeInDown;
}

.animate__fadeInUp {
  animation-name: fadeInUp;
}

.animate__pulse {
  animation-name: pulse;
  animation-duration: 2s;
  animation-iteration-count: infinite;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    display: none;
  }

  to {
    opacity: 1;
    display: block;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    color: rgba(207, 69, 1);
    transform: translate3d(0, 100%, 0);
  }

  to {
    color: #fff;
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {
  from {
    transform: scale3d(1, 1, 1);
  }

  50% {
    transform: scale3d(1.05, 1.05, 1.05);
  }

  to {
    transform: scale3d(1, 1, 1);
  }
}

/* Main content - responsive padding that adjusts based on content */
.main-content {
  height: auto;
  min-height: auto;
  max-height: none;
  display: flex;
  flex-direction: column;
}

/* Reduce padding on mobile devices */
@media (max-width: 768px) {
  .main-content {
    padding-top: 0.25rem !important;
    padding-bottom: 0.5rem !important;
  }
  
  .main-content.pt-2 {
    padding-top: 0.25rem !important;
  }
  
  .main-content.pb-3 {
    padding-bottom: 0.5rem !important;
  }
  
  .main-content.py-3 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
  
  .main-content.py-5 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
}
