@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap'); /*font-family: 'Inter', sans-serif;*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

:root {
  --main-font: 'Inter', sans-serif;
  --main-color: #39BEFF;
  --background-color: #24272B;
  --white-color: #FFFFFF;
  --black-color: #000000;
  --description-color: #D2D0D0;

  --green-color: #4AFF6B;
  --ip-copied-background: rgba(74, 255, 107, 0.17);
  --ip-copied-icon-background: rgba(74, 255, 107, 0.5);

  --copy-ip-button-background: rgba(57, 190, 255, 0.7);
  --how-to-join-button-background: rgba(210, 208, 208, 0.2);
  --stats-background: rgba(210, 208, 208, 0.05);
  --stat-icon-background-2: rgba(57, 190, 255, 0.5);

  --scroll-bar: rgba(210, 208, 208, 0.3);
  --scroll-bar-hover: #555555FF;

  --red-color: #FF7C7C;
  --warning-background: rgba(255, 124, 124, 0.17);
  --warning-icon-background: rgba(255, 124, 124, 0.5);
  --warning-color: #F5C1C1;

  /*Admin-Team rank colors*/
  --default-rank-color: rgba(210, 208, 208, 0.3);
}

body {
  background: var(--background-color);
  font-family: var(--main-font);
}

/*Navbar*/
.navbar {
  display: flex;
  width: 100%;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 20px 150px;
  background: var(--background-color);
  transition: 0.3s ease-in-out;
}

.navbar a {
  text-decoration: none;
}

.navbar .menu-mobile {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.navbar .menu-mobile .logo {
  display: flex;
  flex-direction: row;
  justify-content: left;
  align-items: center;
  gap: 10px;
}

.navbar .menu-mobile .logo img {
  max-width: 40px;
  height: auto;
}

.navbar .menu-mobile .logo h3 {
  color: var(--white-color);
  font-weight: 900;
  font-size: 20px;
}

/* Navbar link styling */
.navbar .links {
  display: flex;
  flex-direction: row;
  gap: 30px;
  transition: 0.3s ease-in-out;
}

.navbar .links .link {
  color: var(--description-color);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 8px 16px;
  border-radius: 6px;
  overflow: hidden;
}

/* Cool hover effect with sliding background */
.navbar .links .link:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(57, 190, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  border-radius: 6px;
}

.navbar .links .link:hover:before {
  left: 0;
}

/* Active link styling */
.navbar .links .link.active {
  color: var(--white-color);
  background: rgba(57, 190, 255, 0.15);
  box-shadow: 0 4px 15px rgba(57, 190, 255, 0.15);
}

.navbar .links .link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  border-radius: 5px;
  background: var(--main-color);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar .links .link:not(.active):hover {
  color: var(--white-color);
  transform: translateY(-2px);
}

.navbar .menu-mobile .hamburger {
  color: var(--white-color);
  font-size: 24px;
  cursor: pointer;
  transition: 0.3s;
  display: none; /* Hidden by default */
  padding: 12px;
  background: rgba(57, 190, 255, 0.1);
  border-radius: 8px;
  z-index: 1000;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
}

.navbar .menu-mobile .hamburger:hover {
  background: rgba(57, 190, 255, 0.2);
  transform: scale(1.05);
}

.navbar .menu-mobile .hamburger:active {
  transform: scale(0.95);
}

.navbar.active {
  max-height: 1000px;
}

.navbar.active .links {
  opacity: 1;
  z-index: 2;
}


@media screen and (max-width: 768px) {
  .navbar .menu-mobile .hamburger {
    display: block;
  }

  .navbar .links {
    display: none;            /* hidden by default */
    flex-direction: column;
    position: absolute;
    top: 60px;                /* adjust according to navbar height */
    left: 0;
    width: 100%;
    background-color: #111;   /* dark background */
    z-index: 999;             /* make sure it's above everything */
    padding: 10px 0;
  }

  .navbar.active .links {
    display: flex;           /* show menu when active */
    opacity: 1;
  }

  .navbar .links .link {
    color: #fff;             /* make text visible */
    padding: 10px 20px;
    text-decoration: none;
  }

  .navbar .links .link.active::after {
    bottom: -4px;             /* keep underline if active */
  }
}

/* Update media queries for better mobile support */
@media screen and (max-width: 867px) {
  .navbar {
    flex-direction: column;
    gap: 0;
    padding: 15px 30px;
    position: relative;
    max-height: 80px;
    overflow: hidden;
    background: var(--background-color);
  }

  .navbar .menu-mobile {
    width: 100%;
    position: relative;
    z-index: 10;
  }

  .navbar .menu-mobile .hamburger {
    display: block;
  }

  .navbar .links {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: rgba(36, 39, 43, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    gap: 10px;
    opacity: 0;
    position: absolute;
    top: 80px;
    left: 0;
    z-index: 1000;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    border: 1px solid rgba(57, 190, 255, 0.1);
  }

  .navbar.active {
    max-height: 400px;
    overflow: visible;
  }

  .navbar.active .links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    padding: 20px 0;
    border-radius: 0 0 16px 16px;
    box-shadow: 
      0 4px 20px rgba(0, 0, 0, 0.2),
      0 0 0 1px rgba(57, 190, 255, 0.1);
  }

  .navbar .links .link {
    width: 90%;
    margin: 0 auto;
    padding: 12px 20px;
    text-align: center;
    position: relative;
    background: rgba(57, 190, 255, 0.05);
    border: 1px solid rgba(57, 190, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .navbar .links .link:before {
    display: none;
  }

  .navbar .links .link:not(.active):hover {
    background: rgba(57, 190, 255, 0.1);
    transform: scale(1.02);
    border-color: rgba(57, 190, 255, 0.2);
  }

  .navbar .links .link.active {
    background: rgba(57, 190, 255, 0.15);
    transform: scale(1.02);
    border-color: rgba(57, 190, 255, 0.3);
  }

  /* Cool hover effect for mobile */
  .navbar .links .link:after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--main-color);
    transition: width 0.3s ease;
    border-radius: 2px;
  }

  .navbar .links .link:hover:after {
    width: 20px;
  }

  /* Hamburger animation */
  .navbar .menu-mobile .hamburger {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .navbar.active .menu-mobile .hamburger {
    transform: rotate(90deg);
  }
}

/* Update the mobile navigation styles */
@media screen and (max-width: 867px) {
  .navbar {
    padding: 15px 20px;
    position: fixed;
    top: 0;
    background: rgba(36, 39, 43, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(57, 190, 255, 0.1);
    z-index: 1000;
  }

  .navbar .menu-mobile {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .navbar .menu-mobile .logo {
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
    gap: 10px;
  }

  .navbar .menu-mobile .logo img {
    max-width: 40px;
    height: auto;
  }

  .navbar .menu-mobile .logo h3 {
    color: var(--white-color);
    font-weight: 900;
    font-size: 20px;
  }

  .navbar .menu-mobile .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(57, 190, 255, 0.1);
    border: 1px solid rgba(57, 190, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .navbar .menu-mobile .hamburger:hover {
    background: rgba(57, 190, 255, 0.15);
    border-color: rgba(57, 190, 255, 0.3);
  }

  .navbar .menu-mobile .hamburger i {
    font-size: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .navbar.active .menu-mobile .hamburger i {
    transform: rotate(180deg);
  }

  .navbar .links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(36, 39, 43, 0.98);
    backdrop-filter: blur(10px);
    padding: 10px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(57, 190, 255, 0.1);
  }

  .navbar.active .links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }

  .navbar .links .link {
    width: 100%;
    padding: 12px 20px;
    margin: 5px 0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    background: rgba(57, 190, 255, 0.05);
    border: 1px solid rgba(57, 190, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .navbar .links .link:not(.active):hover {
    background: rgba(57, 190, 255, 0.1);
    border-color: rgba(57, 190, 255, 0.2);
    transform: scale(0.98);
  }

  .navbar .links .link.active {
    background: rgba(57, 190, 255, 0.2);
    border-color: rgba(57, 190, 255, 0.3);
    color: var(--white-color);
    font-weight: 600;
    /* Remove the after pseudo-element that creates the line */
  }

  /* Remove the line hover effect */
  .navbar .links .link:after {
    display: none;
  }

  .navbar .links .link:hover:after {
    display: none;
  }

  /* Remove existing active line styles */
  .navbar .links .link.active::after {
    display: none;
  }
}

/*Footer*/
#footer {
  padding: 20px 150px;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

#footer p {
  color: var(--description-color);
  font-size: 17px;
}

#footer p span {
  color: var(--white-color);
}

#footer .social-links {
  display: flex;
  flex-direction: row;
  gap: 15px;
}

#footer .social-links .link {
  color: var(--description-color);
  text-decoration: none;
  font-size: 20px;
  transition: 0.2s;
}

#footer .social-links .link:hover {
  color: var(--white-color);
}

/*Scrollbar*/
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--stats-background);
}

::-webkit-scrollbar-thumb {
  background: var(--scroll-bar);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-bar-hover);
}

/*Other*/
section:not(#header) .content {
  padding: 90px 150px;
  width: 100%;
}

/*Responsive*/
@media screen and (max-width: 1625px) {
  .navbar {
    padding: 20px 90px;
  }
}

@media screen and (max-width: 819px) {
  .navbar {
    padding: 20px 30px;
  }
}

@media screen and (max-width: 867px) {
  .navbar {
    flex-direction: column;
    gap: 30px;
    max-height: 90px;
  }

  .navbar .menu-mobile {
    width: 100%;
  }

  .navbar .menu-mobile .hamburger {
    display: flex;
  }

  .navbar .links {
    flex-direction: column;
    order: 2;
    width: 100%;
    opacity: 0;
    z-index: -1;
  }
}

@media screen and (max-width: 1625px) {
  section:not(#header) .content {
    padding: 90px;
  }

  #footer {
    padding: 20px 90px;
  }
}

@media screen and (max-width: 819px) {
  section:not(#header) .content {
    padding: 50px 30px;
  }

  #footer {
    padding: 20px 30px;
  }
}

@media screen and (max-width: 564px) {
  #footer {
    flex-direction: column;
    gap: 30px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 250px;
  padding: 15px 20px;
  border-radius: 8px;
  margin: 10px;
  background: rgba(36, 39, 43, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(57, 190, 255, 0.1);
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-left: 4px solid var(--green-color);
}

.toast.error {
  border-left: 4px solid var(--red-color);
}

.toast i {
  font-size: 20px;
}

.toast.success i {
  color: var(--green-color);
}

.toast.error i {
  color: var(--red-color);
}

.toast-content {
  color: var(--white-color);
  font-size: 14px;
  font-weight: 500;
}