@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;600&display=swap');

html {
  scroll-behavior: smooth;
}

body {
  background-color: #17191c;
  color: #e4e4e4;
  font-family: 'Rajdhani', sans-serif;
  margin: 0 auto;
  max-width: 1440px;
  width: 100%;
  overflow-x: hidden;
  padding-top: 60px;
  padding-bottom: 40px;
  transition: padding-top 0.3s ease-in-out;
}

header {
  display: flex;
  background-color: #17191c;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 60px;
  z-index: 1000;
  margin: 0 auto;
  max-width: 1440px;
}

.logo-container {
  position: absolute;
  left: 20px;
}

.logo-container img {
  height: 50px;
}

nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
  padding: 0;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: #e4e4e4;
  text-decoration: none;
  font-weight: bold;
  font-size: 2.0em;
  transition: color 0.5s ease-in-out;
}

nav ul li a:hover {
  color: #8be9fd;
}

.hamburger-menu {
  display: none;
  background: none;
  border: none;
  font-size: 2em;
  color: #e4e4e4;
  position: absolute;
  right: 20px;
  cursor: pointer;
  z-index: 1100;
}

#hero {
  text-align: center;
  background: url('images/nexri_intro.gif') no-repeat center center;
  background-size: cover;
  margin: 0 auto;
  max-width: 1440px;
  height: 11cm;
}

.text-section {
  display: flex;
  background: #17191c;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 0 5vw;
  max-width: 90vw;
}

.text-section .text-content {
  width: 50%;
}

.text-section .image-content {
  width: 50%;
  text-align: center;
}

.text-section .image-content img {
  max-width: 100%;
  height: auto;
}

.text-section h2 {
  color: #8be9fd;
  font-size: 2.0em;
}

.text-section p, .text-section ul {
  font-size: 1.5em;
  text-indent: 2em;
  text-align: justify;
}

.centered-text-section {
  display: flex;
  flex-direction: column;
  background: #17191c;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 auto;
  padding: 0 5vw;
  max-width: 90vw;
}

.centered-text-section h1, .centered-text-section h2 {
  color: #8be9fd;
  font-size: 2.0em;
  margin-bottom: 20px;
}

.centered-text-section p {
  font-size: 1.5em;
  max-width: 800px;
}

.publications-section {
  text-align: center;
  background: #17191c;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  padding: 0 5vw;
  max-width: 90vw;
}

.publications-section h2 {
  font-size: 2.0em;
  color: #8be9fd;
}

.publications-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 90vw;
  overflow: hidden;
  background: #17191c;
  padding: 0px 0px;
  border-radius: 10px;
}

.publications-container {
  display: flex;
  overflow-x: hidden;
  scroll-behavior: smooth;
  width: 100%;
  white-space: nowrap;
  padding: 0 0;
}

.publication {
  min-width: 500px;
  max-width: 600px;
  margin: 10px;
  text-align: left;
  background: #222;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  white-space: normal;
  overflow: hidden;
}

.publication h3 {
  font-size: 1.5em;
  color: #8be9fd;
}

.publication p {
  font-size: 1.2em;
  color: #e4e4e4;
  margin: 10px 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.publication a {
  font-size: 1.2em;
  color: #8be9fd;
  text-decoration: none;
  word-break: break-word;
}

.publication a:hover {
  text-decoration: underline;
}

.scroll-btn {
  background: #17191c;
  border: none;
  color: #8be9fd;
  font-size: 2em;
  cursor: pointer;
  padding: 5px 15px;
  border-radius: 5px;
  transition: background 0.3s, color 0.3s;
  position: relative;
  z-index: 10;
}

.scroll-btn:hover {
  background: #8be9fd;
  color: #17191c;
}

.products-list {
  list-style-type: disc;
  text-align: left;
  margin: 0 auto;
  padding: 0 5vw;
  max-width: 90vw;
}

.products-list li {
  font-size: 1.5em;
  padding: 5px 0;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #17191c;
  text-align: center;
  position: fixed;
  overflow: hidden;
  padding: 10px;
  width: 100%;
  font-size: 14px;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  margin: 0 auto;
  max-width: 1440px;
}

footer p {
  margin: 5px 0;
  font-size: 2.0em;
  font-weight: bold;
}

footer p a {
  color: #8be9fd;
  text-decoration: nWone;
}

@media (min-width: 1440px) {
  .container {
    max-width: 1440px;
  }
}

@media (max-width: 1200px) {
  nav ul li a {
    font-size: 1.5em;
  }
  .text-section h2, .centered-text-section h1, .centered-text-section h2, footer p, .publications-section h2 {
    font-size: 1.5em;
  }
  .text-section p, .centered-text-section p, .publication h3, .publication p, .publication a, .products-list li {
    font-size: 1.2em;
  }
  .products-list li {
  padding-top: 2px;
  }
}

@media (max-width: 850px) {
  #hero {
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
    height: 8cm;
  }
  .logo-container img {
    height: 40px;
  }
  .text-section {
    flex-direction: column;
  }
  .text-section .text-content {
    width: 100%;
    order: 1;
  }
  .text-section h2 {
    text-align: center;
  }
  .text-section .image-content {
    width: 100%;
    order: 2;
  }
  nav ul li a {
    font-size: 1.5em;
  }
  .text-section h2, .centered-text-section h1, .centered-text-section h2, footer p, .publications-section h2 {
    font-size: 1.5em;
  }
  .publication h3 {
    font-size: 1.2em;
  }
  .text-section p, .centered-text-section p, .publication p, .publication a, .products-list li {
    font-size: 1em;
  }
  .products-list li {
    padding-top: 0px;
    }
  nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: #17191c;
    width: 100%;
    text-align: center;
  }
  nav ul {
    flex-direction: column;
    padding: 0;
  }
  nav ul li {
    padding: 10px 0;
  }
  .hamburger-menu {
    display: block;
  }
  nav.show {
    display: flex;
    flex-direction: column;
  }
  body.menu-open {
    padding-top: 200px;
  }
  .publications-wrapper {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  .publications-container {
    display: block;
    max-height: 400px;
    overflow-y: hidden;
    width: 100%;
   }
  .publication {
    min-width: auto;
    max-width: 90%;
    margin: 10px auto;
  }
  .scroll-btn {
    position: static;
    margin: 5px 0;
    font-size: 2em;
  }
}
