:root {
  --primary-color: #5e5df0;
  --secondary-color: #1b1f2f;
  --background-color: #0c0e14;
  --text-color: #d6d6d6;
  --navbar-height: 70px;
}

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

.main-header {
  background: rgba(27, 31, 47, 0.8);
  backdrop-filter: blur(10px);
  padding: 0 5%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.main-header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--navbar-height);
  width: 100%;
}

.logo img {
  max-height: 40px;
  width: auto;
  filter: drop-shadow(0 0 10px rgb(152, 42, 188, 0.8));
}

.menu-toggle {
  display: none;
}

.nav-wrapper {
  display: flex;
  align-items: center;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
}

.navbar ul li a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 400;
  font-size: 16px;
  transition: color 0.3s ease;
  position: relative;
}

.navbar ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.navbar ul li a:hover,
.navbar ul li a:focus {
  color: var(--primary-color);
}

.navbar ul li a:hover::after,
.navbar ul li a:focus::after {
  width: 100%;
}

/* Off-canvas menu styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
  }

  .menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-color);
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-wrapper {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100%;
    background-color: var(--secondary-color);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-wrapper.active {
    right: 0;
  }

  .navbar ul {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
  }

  .navbar ul li {
    margin: 15px 0;
    width: 100%;
    text-align: center;
  }

  .navbar ul li a {
    display: block;
    padding: 10px 20px;
    font-size: 18px;
    color: var(--text-color);
  }

  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
  }

  .nav-overlay.active {
    display: block;
  }
}

.hero-section {
  background: url('hero-bg.jpg') no-repeat center center/cover;
  padding: 150px 5% 100px;
  text-align: center;
  color: #ffffff;
}

.hero-section h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 20px;
}

.hero-section p {
  font-size: clamp(1rem, 3vw, 1.125rem);
  margin-bottom: 30px;
}

.button-34 {
  background: var(--primary-color);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, box-shadow 0.3s;
  display: inline-block;
}

.button-34:hover,
.button-34:focus {
  background: #4c4bf2;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  outline: none;
}

.about-section,
.gateway-section {
  padding: 50px 5%;
  text-align: center;
}

.about-section {
  background: var(--secondary-color);
}

.gateway-content {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  flex-wrap: wrap;
}

.gateway-item {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
}

.footer {
  background: var(--secondary-color);
  color: var(--text-color);
  padding: 40px 5%;
  text-align: center;
}

.footer-content h3 {
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icons img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: transform 0.3s;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

.social-icons a:hover img,
.social-icons a:focus img {
  transform: scale(1.2);
}

.footer-bottom {
  margin-top: 30px;
  font-size: 14px;
}

/* Scroll Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Tanks to chatgpt😍 */
/* Fade Out Animation */
/* Fade-In Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Fade-Out Animation */
.fade-out {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-in, transform 0.6s ease-in;
}

.fade-out.disappear {
  opacity: 0;
  transform: translateY(20px);
}
