:root {
  --color-accent: #0673cc;
  --color-body-bg: #262537;
  --color-secondary: #454462;
  --color-light: #f2f0ef;
  --color-text: #ffffff;
  --color-dark: #18191a;
  --color-black-text: #000000;
}

* {
  padding: 0;
  margin: 0;
}

body {
  font-family: "poppins", serif;
  background-color: var(--color-body-bg);
  color: var(--color-text);
  overflow-x: hidden;
  box-sizing: border-box;
}

body.no-scroll {
  overflow: hidden; /* Prevent scrolling */
}

/* Styling for the navigation bar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: background-color 0.3s ease, height 0.3s ease;
  background-color: transparent;
}

nav.scrolled {
  background-color: rgba(0, 0, 0, 0.7);
}

nav ul {
  width: 100%;
  height: 100px;
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  transition: height 0.3s ease;
}

nav ul.space-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

nav ul.scrolled {
  height: 80px;
}

nav li {
  height: 50px;
}

nav a {
  height: 100%;
  text-decoration: none;
  display: flex;
  align-items: center;
  color: white;
  background-color: transparent;
  position: relative;
  font-size: 1.6rem;
  margin: 0 30px;
  transition: font-size 0.3s all ease;
}

nav a:hover {
  color: white;
}

nav.scrolled a {
  font-size: 1.2rem; /* Smaller font size when scrolled */
  transition: font-size 0.3s ease; /* Smooth transition for font-size */
}

#line {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  height: 80px;
  font-weight: 400;
  font-size: 1em;
}

hr {
  flex: 1;
  margin: 0 10px 0 10px;
  height: 0.5%;
}

.space-top {
  margin: 80px 30px 0px 0px;
  transition: margin-top 0.3s ease;
}

.hideOnMobile a::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--color-accent);
  transform-origin: center;
  transition: transform 0.25s ease-out;
}

.hideOnMobile a:hover::after {
  transform: scaleX(1);
}

nav li:first-child {
  margin-right: auto;
  margin-left: 20px;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px;
}

.logo-container {
  flex: 1;
}

.close-icon {
  cursor: pointer;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 250px;
  z-index: 999;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease, visibility 0.3s ease;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  visibility: hidden;
}

.sidebar.show {
  transform: translateX(0);
  visibility: visible;
}

.sidebar.hide {
  transform: translateX(100%);
  visibility: hidden;
}

.sidebar li {
  width: 100%;
  text-align: center;
}

.sidebar a {
  display: block;
  text-align: center;
  padding: 0 20px;
  text-decoration: none;
  color: white;
  font-weight: 300;
  font-size: 1.2em;
}

.menu-button {
  display: none;
}

#logo {
  transition: width 0.3s ease;
  margin-left: 80px;
}

/* styling header */
header {
  background-image: url(../img/banner-home.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 85%);
  display: flex;
  flex-direction: row;
}

.left {
  flex: 0 0 40%;
  background-color: rgba(0, 0, 0, 0.7);
  height: 110%;
  border-radius: 0 50% 50% 0%;
  transform: translateY(-100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 130px;
  position: relative;
}

.left div {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  color: var(--color-text);
  font-size: 2em;
}

.left img {
  margin-right: 15px;
  border-radius: 50%;
  padding: 2px;
  background-color: #18191a;
  height: 60%;
}

#contact {
  background-color: var(--color-accent);
  border-radius: 5px;
}

.right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.right p {
  width: 75%;
  text-align: center;
  font-size: 3rem;
  margin-bottom: 10px;
}

.content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  padding: 0 15%;
  color: black;
  min-height: 100vh;
}

.content img {
  width: 55%;
}

.whitepaper {
  background-color: var(--color-text);
  padding: 30px;
  width: 25vw;
  height: 60vh;
  box-shadow: 0px 0px 20px 2px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.whitepaper p,
h1,
h2 {
  margin: 20px auto;
}

.whitepaper h1 {
  font-weight: 500;
  font-size: 1.8rem;
}

.whitepaper h2 {
  font-weight: 400;
  font-size: 1.7rem;
}

.whitepaper p:nth-child(1) {
  font-weight: 300;
}

.whitepaper p:nth-of-type(2) {
  font-size: 1.3rem;
}

.whitepaper img {
  width: 120px;
  height: auto;
  float: right;
}

.carousel-container {
  text-align: center;
  background-color: var(--color-light);
  padding: 50px 0;
  color: var(--color-black-text);
}

.carousel {
  display: flex;
  overflow-x: hidden;
  scroll-behavior: smooth;
  width: 100%;
}

.slide {
  flex: 0 0 100%;
}

.slide-content {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

.profile-pic {
  width: 175px;
  height: 175px;
  border-radius: 50%;
  object-fit: cover;
  padding: 0 5%;
}

.text-content {
  flex: 1;
  text-align: left;
  font-size: 1.8rem;
}

.text-content p {
  width: 75%;
}
.stars {
  margin-top: 10px;
  font-size: 18px;
  color: gold;
}
.stars img {
  width: 30px;
  margin-right: 15px;
}

.carousel-controls {
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 10px;
  padding: 3% 10%;
  background-color: var(--color-secondary);
  flex-wrap: nowrap;
  justify-content: space-evenly;
}

.carousel-controls a {
  position: relative;
  margin: 0 10px;
}

.carousel-controls img {
  height: auto;
  object-fit: cover;
  cursor: pointer;
  width: 100px;
  display: inline-block;
}

.triangle {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 20px solid var(--color-secondary);
  transform: translateX(-50%);
  transition: top 0.3s ease, opacity 0.3s ease;
  top: -15px;
  opacity: 1;
  pointer-events: none;
  z-index: 5;
}

.carousel-controls a.active .triangle {
  top: -15px;
  opacity: 1;
}

/* Container styling */
.container-instagram {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  align-items: center;
  padding: 20px;
  color: #fff;
}

.instagram-card {
  position: relative;
  background: linear-gradient(to bottom, #3b3b4b 0%, #2121304a 100%);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  height: 360px;
  width: 280px;
  border: 2px solid rgb(121, 120, 120);
  z-index: 0;
}

.instagram-card .background-image {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  opacity: 1;
  z-index: 1;
}

.instagram-logo {
  margin-top: 20px;
}

.instagram-logo,
.instagram-card h2,
.instagram-card p,
.instagram-card .btn {
  position: relative;
  z-index: 2;
}

.instagram-card h2 {
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: 400;
}

.instagram-card p {
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.container-instagram {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 5% 10%;
}

.instagram-card .instagram-logo {
  width: 100px;
}

.instagram-card .btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-image: linear-gradient(135deg, #2600ff, #dc18c2, #ff0000, #f0900a) 1;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.btn {
  transition: all ease 0.5s;
  font-size: 16px;
}

.btn:hover {
  scale: 0.95;
}

.slide-container {
  overflow: hidden;
  position: relative;
  width: 70%;
}

.slide-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
  align-items: center;
}

.slide-instagram {
  flex: 0 0 33.33%;
  box-sizing: border-box;
  text-align: center;
}

.slide-instagram img {
  width: 70%;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(5px -5px 4px rgba(0, 0, 0, 0.25));
}

.button-prev,
.button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  border: none;
  border-radius: 50%;
  text-align: center;
  line-height: 0;
}

.button-prev {
  left: 0px;
}

.button-next {
  right: 0px;
}

.button-prev::before {
  content: "<";
}

.button-next::before {
  content: ">";
}

.schuine-footer {
  clip-path: polygon(0 0, 100% 25%, 100% 100%, 0 100%);
}
.footer-section {
  background-color: #18191a;
  z-index: 0;
  position: relative;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 13% 0;
  padding-bottom: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.footer-background-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40%;
  z-index: -1;
}

footer h2 {
  margin: 0 0 80px 0;
  font-size: 1.6rem;
}

footer h3 {
  font-size: 1.6rem;
}

footer div {
  display: flex;
  flex-direction: column;
}

footer div:nth-child(1) {
  text-align: right;
}

footer div:nth-child(1) a {
  color: white;
  text-decoration: none;
}

footer div:nth-child(2) h2 {
  text-align: center;
}
footer div:nth-child(2) h3 {
  text-align: center;
}

footer div:nth-child(3) {
  text-align: left;
}

footer p,
a {
  font-size: 1.6rem;
}

.footer-img-middle {
  display: flex;
  justify-content: center;
  flex-direction: row;
  align-items: center;
  column-gap: 75px;
  height: 200px;
}

.footer-img-middle img {
  width: 150px;
}

.footer-img-middle a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  background-color: #e5e5e5;
  border-radius: 50%;
  overflow: hidden;
  margin-top: 60px;
}

.footer-img-middle a img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.socials {
  column-gap: 2%;
}
@media (max-width: 1200px) {
  .footer-img-middle {
    column-gap: 20px;
  }

  .footer-img-middle img {
    width: 125px;
  }

  .footer-img-middle img:nth-child(1),
  .footer-img-middle img:nth-child(3) {
    width: 100px;
    height: fit-content;
  }
  .socials {
    display: flex;
    align-items: flex-start;
    scale: 0.8;
  }
  .socials a img {
    width: 70% !important;
    height: 70% !important;
    object-fit: contain !important;
  }

  .footer-img-middle a {
    margin-top: 0;
  }
  footer div:nth-child(2) h2 {
    margin-bottom: 30px;
  }
  footer div:nth-child(2) {
    margin-bottom: 0px;
  }

  footer h2 {
    margin-bottom: 30px;
  }
  footer p,
  footer h2,
  footer a {
    scale: 0.7;
  }
  footer p,
  a {
    line-height: 1.2;
  }

  .container-instagram {
    flex-direction: column;
    gap: 40px;
    grid-template-columns: 1fr;
  }

  .slide-container {
    width: 100%;
  }

  .carousel-controls {
    overflow-x: auto;
  }
  nav ul.space-top {
    padding: 0;
  }

  header {
    justify-content: flex-end;
    clip-path: none;
  }

  .left {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    padding: 0;
    transform: translateY(0);
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .right {
    flex: 1;
    align-items: center;
  }
  .space-top {
    margin-top: 40px;
  }
  nav ul {
    height: 90px;
  }
  nav a {
    font-size: 1.4rem;
    margin: 0 20px;
  }
  header {
    height: 80vh;
  }
  .left {
    flex: 0 0 55%;
    height: 100%;
  }
  .left div {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 600px;
    text-align: left;
    font-size: 1.8em;
  }
  .right p {
    font-size: 2rem;
  }
  #logo {
    margin-left: 30px;
  }
  .hideOnMobile {
    display: none;
  }
  .menu-button {
    display: block;
  }
  .hamburger-menu {
    margin-right: 50px;
  }
  .space-top {
    margin-top: 55px;
  }
  .content {
    flex-direction: column-reverse;
    padding: 15% 15%;
    text-align: left;
  }

  .content img {
    width: 100%;
    margin-bottom: 20px;
  }

  .whitepaper {
    width: 95%;
    height: auto;
    padding: 20px;
  }
  .whitepaper img {
    width: 100px;
  }
}

@media (max-width: 1000px){
  header{
    background-image: url(../img/banner-home-responsive.png);
  }
  header {
    flex-direction: column-reverse;
    clip-path: none;
  }
  .left{
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 50% 50% 0 0;
  }
  #logo{
    height: 80px;
    width: 80px;
  }
}

@media (max-width: 800px) {

  .footer-background-image {
    width: 80%;
    top: 50%;
  }
  footer div:nth-child(2) h2 {
    margin-bottom: 0;
  }
  .schuine-footer footer div:nth-child(2) h2 {
    transform: translateY(-350px);
  }
  .schuine-footer footer div:nth-child(2) h3 {
    display: none;
  }
  .schuine-footer {
    clip-path: none;
  }
  footer {
    flex-direction: column;
    padding-top: 15%;
  }
  footer h2,
  p,
  a {
    text-align: left;
  }
  .container-instagram {
    flex-direction: column;
    gap: 40px;
    grid-template-columns: 1fr;
  }

  .instagram-card {
    margin: 0 auto;
  }

  .slide-container {
    width: 100%;
  }

  .slide-instagram {
    flex: 0 0 100%;
  }

  .slide-wrapper {
    transition: transform 0.5s ease-in-out;
  }

  .instagram-card {
    margin-bottom: 20px;
  }
  .carousel-container {
    padding: 25px 0;
  }
  .carousel-controls {
    padding: 3% 5%;
  }
  .carousel-controls img {
    margin: 0 10px;
  }
  .profile-pic {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
    align-self: flex-start;
  }

  .slide-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .text-content {
    font-size: 1.5rem;
    width: 90%;
  }

  .stars {
    font-size: 1.2rem;
  }

  .text-content p {
    width: 100%;
  }
  .space-top {
    margin-top: 25px;
  }
  .hamburger-menu {
    margin-right: 50px;
  }
  #logo {
    margin-left: 0;
    height: 80px;
    width: auto;
  }
  .hideOnMobile {
    display: none;
  }
  .menu-button {
    display: block;
  }
  header {
    flex-direction: column-reverse;
    clip-path: none;
  }
  .left div {
    font-size: 1em;
    width: 370px !important;
  }
  .right p {
    font-size: 1.5rem;
    margin-top: 100px;
  }
  .left {
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 50% 50% 0 0;
  }
  .content {
    flex-direction: column-reverse;
    padding: 15% 5%;
    text-align: left;
  }

  .content img {
    width: 100%;
    margin-bottom: 20px;
  }

  .whitepaper {
    width: 90%;
    height: auto;
    padding: 20px;
  }
  .whitepaper img {
    width: 100px;
  }
}
@media (max-width: 480px) {
  .text-content {
    font-size: 1.3rem;
  }
  .sidebar {
    width: 100%;
  }
  .left {
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .left div {
    font-size: 1em !important;
    width: 300px !important;
    text-align: left;
  }

  .right p {
    font-size: 1.3rem;
  }
}
