.main {
  padding: 0 4%;
}

html {
  scroll-behavior: smooth;
}

body.menu-open {
  overflow: hidden;
}

nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 4%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0px 0px 50px 50px;
  transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    backdrop-filter 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-radius 0.3s ease;
  position: relative;
  z-index: 1050;
}

nav.scrolled {
  position: fixed;
  top: 0;
  left: 4%;
  z-index: 1050;
  width: calc(100% - 8%);
  background: white;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo {
  width: 200px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.nav-logos {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-secondary {
  width: 50px;
  height: 50px;
  object-fit: contain;
}
nav ul {
  flex: 1;
  list-style: none;
  width: 100%;
  text-align: center;
  padding-right: 25px;
}
nav ul li {
  padding-top: 0px;
  display: inline-block;
  padding-inline: 25px;
  position: relative;
}
nav ul li a {
  text-decoration: none;
  color: white;
  transition: color 0.4s ease;
}
nav.scrolled ul li a {
  color: #0c1931;
}
nav ul li a:hover {
  color: #f4c512;
}
nav ul li a::after {
  content: "";
  width: 0%;
  height: 2px;
  background: #f4c512;
  display: block;
  margin: auto;
  transition: 0.2s;
}
nav ul li a:hover::after {
  width: 100%;
}
.in_ {
  font-weight: 600;
}
.joinus {
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  padding: 10px 25px;
  background: #0c1931;
  border: 0;
  outline: 0;
  border-radius: 20px;
  color: white;
  font-weight: 500;
  transition: 0.3s;
  cursor: pointer;
}
.joinus:hover {
  color: #0c1931;
  background: #f4c512;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 1020;
  background: #0c1931;
  border-radius: 8px;
  padding: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.menu-toggle:hover {
  background: #f4c512;
}

.menu-toggle:hover span {
  background: #0c1931;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: white;
  margin: 3px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

footer {
  background: linear-gradient(180deg, #0c1931 0%, #0a1425 100%);
  padding: 60px 8% 30px;
  position: relative;
  margin-top: 0;
  min-height: auto;
  width: 100%;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f4c512, #e6a800, #f4c512);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  gap: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  text-align: left;
}

footer .footer_fullname {
  position: relative;
  top: auto;
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin: 0;
  line-height: 1.3;
  text-align: left;
}

.footer-tagline {
  color: #f4c512;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 5px 0 0 0;
  line-height: 1.2;
  text-align: left;
}

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: 1;
  justify-content: flex-start;
  text-align: right;
}

.footer-social span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  text-align: right;
}

footer .icons {
  position: relative;
  top: auto;
  right: auto;
  display: flex;
  gap: 10px;
}

footer .icons a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: white;
  font-size: 18px;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
}

footer .icons a:hover {
  background: #f4c512;
  border-color: #f4c512;
  color: #0c1931;
  transform: translateY(-3px);
}

footer .footer_hr {
  margin: 0 0 40px 0;
  opacity: 0.1;
  height: 1px;
  width: 100%;
  border: 0 none;
  background: white;
}

.footer-middle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin-bottom: 40px;
}

.footer-links,
.footer-contact {
  text-align: left;
}

.footer-links h4,
.footer-contact h4 {
  color: white;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0;
  line-height: 1.4;
  text-align: left;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links ul li a:hover {
  color: #f4c512;
  transform: translateX(5px);
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.footer-contact p i {
  color: #f4c512;
  width: 20px;
  min-width: 20px;
}

footer .footer_hr2 {
  margin: 0 0 25px 0;
  width: 100%;
  opacity: 0.1;
  border: 0;
  height: 1px;
  background: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  margin: 0;
}

.footer-credits {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  margin: 0;
}

.footer-credits .heart {
  display: inline-block;
  color: #e74c3c;
  animation: heartbeat 1s ease-in-out infinite;
  transform-origin: center;
}

.footer-credits .dev-link {
  color: #f4c512;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.footer-credits .dev-link:hover {
  color: white;
  text-decoration: underline;
}

.build-info {
  background: #050a14;
  padding: 12px 8%;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.build-info-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Consolas", "Monaco", monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.build-info .version {
  background: rgba(244, 197, 18, 0.15);
  color: #f4c512;
  padding: 3px 10px;
  border-radius: 4px 0 0 4px;
  font-weight: 600;
}

.build-info .edition {
  background: rgba(244, 197, 18, 0.08);
  color: rgba(244, 197, 18, 0.8);
  padding: 3px 10px;
  border-radius: 0 4px 4px 0;
  font-style: italic;
  font-weight: 400;
  margin-left: -10px;
}

.build-info .separator {
  color: rgba(255, 255, 255, 0.2);
}

.build-info .build-label {
  color: rgba(255, 255, 255, 0.4);
}

.build-info .commit-hash {
  color: #64d2ff;
  text-decoration: none;
  background: rgba(100, 210, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.build-info .commit-hash:hover {
  background: rgba(100, 210, 255, 0.2);
  color: #8ae0ff;
}

.build-info .build-date {
  color: rgba(255, 255, 255, 0.4);
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.25);
  }
  30% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.2);
  }
  60% {
    transform: scale(1);
  }
  100% {
    transform: scale(1);
  }
}

.mobile-joinus-btn {
  display: none;
}

@media screen and (max-width: 1024px) {
    nav {
    padding: 10px 5%;
  }

  .logo {
    width: 170px;
  }

  .logo-secondary {
    width: 45px;
    height: 45px;
  }

  nav ul li {
    padding-inline: 18px;
  }

  nav ul li a {
    font-size: 14px;
  }

  .joinus {
    padding: 10px 20px;
    font-size: 14px;
  }

    footer {
    padding: 50px 6% 30px;
  }

  footer .footer_fullname {
    font-size: 24px;
  }

  .footer-middle {
    gap: 40px;
  }

  .footer-links h4,
  .footer-contact h4 {
    font-size: 15px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    nav {
    padding: 12px 4%;
    border-radius: 0 0 35px 35px;
  }

  .nav-logos {
    gap: 12px;
  }

  .logo {
    width: 150px;
  }

  .logo-secondary {
    width: 42px;
    height: 42px;
  }

  nav ul {
    padding-right: 15px;
  }

  nav ul li {
    padding-inline: 12px;
  }

  nav ul li a {
    font-size: 13px;
    font-weight: 500;
  }

  .joinus {
    padding: 9px 18px;
    font-size: 13px;
  }

    footer {
    padding: 45px 5% 25px;
  }

  .footer-top {
    flex-direction: row;
    gap: 20px;
  }

  footer .footer_fullname {
    font-size: 22px;
  }

  .footer-tagline {
    font-size: 12px;
  }

  .footer-middle {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }

  .footer-links h4,
  .footer-contact h4 {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .footer-links ul li a {
    font-size: 14px;
  }

  .footer-contact p {
    font-size: 14px;
  }

  footer .icons a {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .footer-bottom {
    flex-direction: row;
  }

  .footer-copyright,
  .footer-credits {
    font-size: 13px;
  }
}

@media screen and (max-width: 768px) {
    nav {
    padding: 15px 5%;
    border-radius: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    background: rgba(12, 25, 49, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  }

  .menu-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f4c512 0%, #e6a800 100%);
    box-shadow: 0 4px 15px rgba(244, 197, 18, 0.3);
    z-index: 1060;
    position: relative;
  }

  .menu-toggle:hover {
    background: linear-gradient(135deg, #0c1931 0%, #1a2d4a 100%);
    box-shadow: 0 4px 20px rgba(12, 25, 49, 0.4);
  }

  .menu-toggle:hover span {
    background: white;
  }

  .menu-toggle span {
    width: 20px;
    height: 2px;
    margin: 3px 0;
    background: #0c1931;
  }

  .nav-logos {
    gap: 12px;
  }

  .logo {
    width: 140px;
  }

  .logo-secondary {
    width: 38px;
    height: 38px;
  }

  nav .nav-menu {
    display: flex;
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, #0c1931 0%, #0a1425 50%, #050a14 100%);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 100px 30px 50px;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1055;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  nav .nav-menu::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f4c512, #e6a800, #f4c512);
  }

  nav .nav-menu.active {
    right: 0;
  }

  nav .nav-menu li {
    display: block;
    padding: 0;
    margin: 6px 0;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateX(30px);
    animation: slideInLink 0.4s ease forwards;
  }

  nav .nav-menu.active li:nth-child(1) {
    animation-delay: 0.1s;
  }
  nav .nav-menu.active li:nth-child(2) {
    animation-delay: 0.15s;
  }
  nav .nav-menu.active li:nth-child(3) {
    animation-delay: 0.2s;
  }
  nav .nav-menu.active li:nth-child(4) {
    animation-delay: 0.25s;
  }
  nav .nav-menu.active li:nth-child(5) {
    animation-delay: 0.3s;
  }
  nav .nav-menu.active li:nth-child(6) {
    animation-delay: 0.35s;
  }

  @keyframes slideInLink {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  nav .nav-menu li a {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    font-weight: 500;
    padding: 16px 24px;
    border-radius: 14px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    letter-spacing: 0.5px;
  }

  nav .nav-menu li a:hover {
    background: linear-gradient(135deg, #f4c512 0%, #e6a800 100%);
    color: #0c1931;
    transform: scale(1.02);
    box-shadow: 0 5px 25px rgba(244, 197, 18, 0.3);
    border-color: transparent;
  }

  nav .nav-menu li a.in_ {
    background: linear-gradient(135deg, #f4c512 0%, #e6a800 100%);
    color: #0c1931;
    font-weight: 600;
    box-shadow: 0 5px 25px rgba(244, 197, 18, 0.3);
    border-color: transparent;
  }

  nav .nav-menu li a::after {
    display: none;
  }

  .joinus-link {
    display: none;
  }

    nav .nav-menu::after {
    display: none;
  }

    .mobile-joinus-btn {
    display: block;
    margin-top: 35px;
    padding: 16px 50px;
    background: linear-gradient(135deg, #f4c512 0%, #e6a800 100%);
    color: #0c1931;
    font-weight: 700;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 25px rgba(244, 197, 18, 0.35);
    letter-spacing: 0.5px;
    text-decoration: none;
    text-align: center;
  }

  .mobile-joinus-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(244, 197, 18, 0.45);
    background: linear-gradient(135deg, #e6a800 0%, #d49800 100%);
  }

    nav .nav-menu::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f4c512, #e6a800, #f4c512);
  }

    body.menu-open::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1045;
    animation: fadeIn 0.3s ease;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

    footer {
    padding: 45px 6% 25px;
  }

  .footer-top {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .footer-brand {
    align-items: center;
  }

  footer .footer_fullname {
    font-size: 22px;
    text-align: center;
    line-height: 1.3;
  }

  .footer-tagline {
    font-size: 12px;
    letter-spacing: 1.5px;
  }

  .footer-social {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .footer-social span {
    font-size: 12px;
  }

  footer .icons {
    justify-content: center;
  }

  footer .icons {
    gap: 12px;
  }

  footer .icons a {
    width: 44px;
    height: 44px;
    font-size: 18px;
    border-radius: 12px;
  }

  footer .footer_hr {
    margin: 0 0 35px 0;
  }

  .footer-middle {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px 25px;
  }

  .footer-contact {
    grid-column: span 2;
    text-align: center;
  }

  .footer-contact p {
    justify-content: center;
  }

  .footer-links h4,
  .footer-contact h4 {
    font-size: 15px;
    margin-bottom: 18px;
  }

  .footer-links ul {
    gap: 14px;
  }

  .footer-links ul li a {
    font-size: 15px;
  }

  .footer-contact p {
    font-size: 15px;
    margin-bottom: 14px;
  }

  footer .footer_hr2 {
    margin: 0 0 20px 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-copyright,
  .footer-credits {
    font-size: 13px;
  }

    .build-info {
    padding: 10px 5%;
  }

  .build-info-content {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
  }

  .build-info .version,
  .build-info .edition {
    padding: 2px 8px;
  }

  .build-info .separator:first-of-type {
    display: none;
  }
}

@media screen and (max-width: 576px) {
    .main {
    padding: 0;
  }

    nav {
    padding: 12px 4%;
    border-radius: 0;
  }

  nav.scrolled {
    left: 0;
    width: 100%;
    border-radius: 0;
  }

  .menu-toggle {
    display: flex;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f4c512 0%, #e6a800 100%);
    box-shadow: 0 3px 12px rgba(244, 197, 18, 0.3);
    z-index: 1060;
  }

  .menu-toggle span {
    width: 18px;
    height: 2px;
    margin: 2.5px 0;
    background: #0c1931;
  }

  .nav-logos {
    gap: 10px;
  }

  .logo {
    width: 120px;
  }

  .logo-secondary {
    width: 32px;
    height: 32px;
  }

  nav .nav-menu {
    display: flex;
    width: 100%;
    right: -100%;
    padding: 90px 20px 40px;
    border-radius: 0;
  }

  nav .nav-menu.active {
    right: 0;
  }

  nav .nav-menu li {
    margin: 4px 0;
  }

  nav .nav-menu li a {
    font-size: 15px;
    padding: 14px 20px;
    border-radius: 12px;
  }

  nav .nav-menu::after {
    display: none;
  }

  .mobile-joinus-btn {
    display: block;
    margin-top: 25px;
    padding: 14px 45px;
    font-size: 15px;
  }

  .joinus-link {
    display: none;
  }

    footer {
    padding: 35px 5% 20px;
  }

  footer .footer_fullname {
    font-size: 19px;
  }

  .footer-tagline {
    font-size: 11px;
    letter-spacing: 1px;
  }

  footer .icons a {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .footer-middle {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-contact {
    grid-column: span 1;
  }

  .footer-links h4,
  .footer-contact h4 {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .footer-links ul {
    align-items: center;
    gap: 12px;
  }

  .footer-links ul li a {
    font-size: 14px;
  }

  .footer-links ul li a:hover {
    transform: none;
  }

  .footer-contact p {
    font-size: 14px;
  }

  .footer-copyright,
  .footer-credits {
    font-size: 12px;
  }

    .build-info {
    padding: 10px 4%;
  }

  .build-info-content {
    flex-wrap: wrap;
    gap: 6px;
    font-size: 10px;
  }

  .build-info .separator {
    display: none;
  }

  .build-info .build-label,
  .build-info .build-date {
    display: none;
  }
}

@media screen and (max-width: 400px) {
    nav {
    padding: 10px 3%;
  }

  .menu-toggle {
    display: flex;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f4c512 0%, #e6a800 100%);
    z-index: 1060;
  }

  .menu-toggle span {
    width: 16px;
    height: 2px;
    margin: 2px 0;
    background: #0c1931;
  }

  .logo {
    width: 100px;
  }

  .logo-secondary {
    width: 28px;
    height: 28px;
  }

  nav .nav-menu {
    display: flex;
    padding: 80px 15px 35px;
  }

  nav .nav-menu.active {
    right: 0;
  }

  nav .nav-menu li a {
    font-size: 14px;
    padding: 12px 16px;
  }

  nav .nav-menu::after {
    display: none;
  }

  .mobile-joinus-btn {
    padding: 12px 40px;
    font-size: 14px;
  }

    footer {
    padding: 30px 4% 18px;
  }

  footer .footer_fullname {
    font-size: 17px;
  }

  .footer-tagline {
    font-size: 10px;
  }

  footer .icons {
    gap: 10px;
  }

  footer .icons a {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .footer-links ul li a,
  .footer-contact p {
    font-size: 13px;
  }

  .footer-copyright,
  .footer-credits {
    font-size: 11px;
  }

    .build-info {
    padding: 8px 3%;
  }

  .build-info-content {
    font-size: 9px;
    gap: 4px;
  }

  .build-info .commit-hash {
    display: none;
  }
}

@media screen and (max-height: 500px) and (orientation: landscape) {
  nav .nav-menu {
    padding: 60px 25px 30px;
    justify-content: flex-start;
    overflow-y: auto;
  }

  nav .nav-menu li {
    margin: 3px 0;
  }

  nav .nav-menu li a {
    padding: 10px 20px;
    font-size: 14px;
  }

  nav .nav-menu::after {
    display: none;
  }

  .mobile-joinus-btn {
    margin-top: 15px;
    padding: 10px 35px;
    font-size: 14px;
  }
}

@media (hover: none) and (pointer: coarse) {
  nav ul li a:hover::after {
    width: 0;
  }

  .footer-links ul li a:hover {
    transform: none;
  }

  footer .icons a:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  nav,
  nav .nav-menu,
  .menu-toggle,
  .menu-toggle span,
  nav ul li a::after,
  .joinus,
  footer .icons a,
  .footer-links ul li a,
  .footer-credits .heart,
  .mobile-joinus-btn {
    transition: none !important;
    animation: none !important;
  }
}
