@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 400;
  src: local("Raleway"), url("/assets/fonts/Raleway-Regular.woff2") format("woff2");
  font-display: swap;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html {
  font-family: "Raleway", sans-serif;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 15px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
  background-color: hsla(211, 95%, 52%, 0.14);
  color: hsl(0, 0%, 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: hsla(227, 58%, 65%, 0.5);
}
.btn i {
  margin-right: 8px;
}
.btn:hover {
  background-color: rgba(41, 142, 250, 0.14);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.btn:hover {
  background-color: rgba(114, 137, 218, 0.5);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #060a0f;
  position: fixed;
  display: flex;
  place-items: center;
  width: 100%;
  max-width: 78rem;
  border-radius: 30px;
  padding: 15px 20px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.navbar .navbar-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 4.5rem;
  gap: 10px;
}
.navbar .nav-toggle {
  display: none;
}
.navbar .nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
}
.navbar .nav-toggle-label span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: hsl(0, 0%, 100%);
  transition: all 0.3s ease-in-out;
  border-radius: 2px;
}
.navbar .navbar-links ul {
  display: flex;
  align-items: center;
  gap: 30px;
}
.navbar .navbar-links ul li .navbar-link {
  font-size: 1.1rem;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
  color: hsl(0, 0%, 67%);
}
.navbar .navbar-links ul li .navbar-link:hover {
  color: hsl(0, 0%, 100%);
}
.navbar .navbar-links ul li .navbar-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: hsl(211, 95%, 52%);
  transition: width 0.3s ease;
}
.navbar .navbar-links ul li .navbar-link:hover::after, .navbar .navbar-links ul li .navbar-link.active::after {
  width: 100%;
}
.navbar .navbar-links ul .cta-buttons {
  display: flex;
  gap: 15px;
}
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }
  .navbar .nav-toggle-label {
    display: flex;
  }
  .navbar .navbar-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: hsl(214, 41%, 7%);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    flex-direction: column;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    opacity: 0;
    pointer-events: none;
  }
  .navbar .navbar-links ul {
    flex-direction: column;
    padding: 20px 0;
    gap: 15px;
  }
  .navbar .navbar-links ul li {
    text-align: center;
    width: 100%;
  }
  .navbar .navbar-links ul li a {
    padding: 10px 0;
    display: block;
    font-size: 1.2rem;
  }
  .navbar .navbar-links ul li a::after {
    display: none;
  }
  .navbar .navbar-links ul .cta-buttons {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }
  .navbar .nav-toggle:checked ~ .navbar-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .navbar .nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .navbar .nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }
  .navbar .nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

.hero-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  align-items: center;
  max-width: 60vw;
  margin-top: 150px;
  margin-left: auto;
  margin-right: auto;
  padding: 10rem 2rem;
}
.hero-section .hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  grid-area: 1/1/4/2;
  gap: 2rem;
}
.hero-section .hero-title .hero-title-logo {
  display: flex;
  align-items: center;
}
.hero-section .hero-title .hero-title-logo .hero-logo {
  max-width: 103.5px;
  width: 80%;
  height: auto;
  margin-bottom: 1rem;
}
.hero-section .hero-title .hero-title-logo h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 4rem;
  margin-bottom: 1rem;
  color: hsl(0, 0%, 100%);
  line-height: 1;
}
.hero-section .hero-title .hero-title-logo span {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
  margin-top: 0.2rem;
  color: hsl(0, 0%, 100%);
}
.hero-section .hero-banner {
  grid-area: 1/2/4/4;
  max-width: 60rem;
  display: block;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}
.hero-section li {
  grid-area: 4/1/5/4;
  font-size: 1.3rem;
  max-width: 800px;
  color: hsl(0, 0%, 67%);
  font-weight: bold;
}
.hero-section .btn-primary-hero {
  grid-area: 5/1/6/4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-section .btn-primary-hero .new-tab-icon {
  padding: 0 0.5rem;
  height: 1.2em;
  width: auto;
  vertical-align: middle;
  display: inline-block;
}
@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 1.5rem;
  }
  .hero-section .hero-title {
    grid-area: auto;
    margin-bottom: 2rem;
  }
  .hero-section .hero-banner {
    grid-area: auto;
    width: 90%;
    max-width: 500px;
    margin-bottom: 2rem;
  }
  .hero-section p {
    grid-area: auto;
    font-size: 1.1rem;
    padding: 0 1rem;
  }
  .hero-section .btn-primary-hero {
    grid-area: auto;
    margin-top: 1rem;
  }
  .hero-section .hero-title h1 {
    font-size: 2.5rem;
  }
}
@media (max-width: 768px) {
  .hero-section {
    margin-top: 100px;
    padding: 1rem;
  }
  .hero-section .hero-title h1 {
    font-size: 2rem;
  }
  .hero-section .hero-title .hero-logo {
    max-width: 180px;
  }
  .hero-section .hero-banner {
    width: 95%;
    padding: 0;
  }
  .hero-section p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
}

.hero-btns {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.content-section {
  position: relative;
  padding: 60px 2rem;
  border-radius: 8px;
  width: 100%;
  max-width: 78rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.content-section h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 2.5rem;
  color: hsl(211, 95%, 52%);
  margin-bottom: 1rem;
  text-align: center;
}
.content-section p {
  font-size: 1.1rem;
  color: hsl(0, 0%, 67%);
  line-height: 1.5;
}
.content-section ul .commands-container {
  display: flex;
  align-items: center;
}
.content-section ul .commands-container p {
  font-size: 1.5rem;
  margin: 1.5rem 0.25rem;
  color: hsl(0, 0%, 100%);
}
.content-section ul .commands-container .commands-icon {
  height: 40px;
  margin: 5px;
}
.content-section ul li {
  font-size: 1rem;
  color: hsl(0, 0%, 67%);
  margin: 0.25rem 0;
}

.legal-container {
  background-color: #060a0f;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 78rem;
  border-radius: 30px;
  margin-top: 15rem;
  padding: 15px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.legal-container p {
  color: hsl(210, 4%, 65%);
}
.legal-container h1 {
  margin: 1.5rem 0;
}
.legal-container .legal-section {
  padding: 1px;
  margin: 1rem 0;
}
.legal-container .legal-section h2 {
  margin: 1rem 0;
}
.legal-container .legal-section h3 {
  margin: 0.5rem 0;
}
.legal-container .legal-section li,
.legal-container .legal-section ul,
.legal-container .legal-section p {
  color: hsl(210, 4%, 65%);
}

.footer {
  position: relative;
  background: #060a0f;
  color: white;
  text-align: center;
  min-width: 100vw;
  padding: 5rem 0;
  margin-top: 50px;
}
.footer ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 1rem;
}
.footer a {
  color: white;
  text-decoration: none;
}
.footer a:hover {
  color: hsl(211, 95%, 52%);
}

body {
  font-family: "Open Sans", sans-serif;
  line-height: 1.6;
  background-color: hsl(214, 41%, 7%);
  color: hsl(0, 0%, 100%);
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
  align-items: center;
}

a {
  color: hsl(0, 0%, 100%);
}

#trusted-by .content-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.server-list-container {
  max-width: 900px;
  margin: 2rem auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
  mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.server-list {
  list-style: none;
  padding-inline-start: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
}

.server-list[data-animated="true"] {
  animation: scroll 40s linear infinite;
}

.server-list-container:hover .server-list[data-animated="true"] {
    animation-play-state: paused;
}

@keyframes scroll {
  to {
    transform: translate(calc(-50% - 0.5rem));
  }
}

.server-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: #0e1217;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  min-width: 250px;
}

.server-logo, .server-logo-placeholder {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.server-logo-placeholder {
    background-color: #3a3a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #a0a0a0;
}

.server-logo-placeholder::before {
    content: 'TKC';
}

.server-info {
  text-align: left;
  overflow: hidden;
}

.server-name {
  color: #ffffff;
  font-weight: bold;
  font-size: 1rem;
  margin: 0 0 0.25rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-members {
  color: #8e9297;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.loading-message, .error-message {
    width: 100%;
    text-align: center;
    color: #8e9297;
    font-size: 1.1rem;
}
