/* Reset and font */
body, h1, h2, h3, p, nav, a {
  margin: 0;
  padding: 0;
  font-family: 'Press Start 2P', monospace;
  color: #F8FAFC;
}

body {
  background-color: #0F172A;
  line-height: 1.6;
  font-size: 14px;
}

header {
  background-color: #1E293B;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 4px solid #38BDF8;
  position: relative;
}

.logo img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 2px solid #fff;
  color: #fff;
  font-size: 1.3rem;      /* Smaller icon */
  cursor: pointer;
  padding: 0.15em 0.5em;  /* Less padding */
  border-radius: 8px;
  position: absolute;
  right: 1rem;
  top: 0.7rem;            /* Adjust vertical alignment */
  z-index: 1001;
}

nav {
  margin-top: 1rem;
  display: flex;
  flex-direction: row;
  gap: 2rem;
  justify-content: center;
}

nav a {
  text-decoration: none;
  color: #fff;
  padding: 0.5em 1em;
  transition: 
    box-shadow 0.2s,
    text-shadow 0.2s,
    color 0.2s;
}

nav a:hover,
nav a:focus {
  color: #00ffe7;
  text-shadow: 0 0 8px #00ffe7, 0 0 16px #00ffe7;
  /* Removed box-shadow and border-radius */
}

main {
  padding: 2rem;
  text-align: center;
}

.intro h1 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.intro p {
  max-width: 600px;
  margin: 0 auto 2rem auto;
  color: #cbd5e1;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.feature-card {
  background-color: #1E293B;
  border: 2px solid #38BDF8;
  border-radius: 1rem;
  padding: 1rem;
  width: 250px;
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.feature-card a {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  text-align: center;
}
.feature-card:hover {
  transform: scale(1.05);
}

.feature-card img {
  width: 100px;
  height: 100px;
  margin-bottom: 0.5rem;
  display: block;
  object-fit: contain;
}

.socials h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.social-icons img {
  width: 40px;
  height: 40px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.social-icons img:hover {
  transform: scale(1.15);
  filter: brightness(1.2) drop-shadow(0 0 8px #38BDF8);
}

.social-icons.large img {
  width: 64px;
  height: 64px;
}

.server {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 1rem;
  background-color: #1E293B;
  border: 2px solid #38BDF8;
  border-radius: 12px;
  padding: 1rem;
  margin: 2rem auto;
  max-width: 700px;
  cursor: pointer;
  transition: transform 0.2s;
}

.server:hover {
  transform: scale(1.02);
}

.server img {
  width: 180px;
  height: 180px;
  border-radius: 8px;
}

.server-info {
  flex-grow: 1;
  text-align: left;
}

footer {
  background-color: #1E293B;
  color: #94A3B8;
  padding: 1rem;
  text-align: center;
  font-size: 0.75rem;
  margin-top: 2rem;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 600px) {
  .features {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .feature-card {
    width: 95%;
    max-width: 350px;
    align-items: center;
    padding: 1rem 0.5rem;
  }
  .feature-card img {
    width: 64px !important;
    height: auto !important;
    max-width: 64px !important;
    max-height: 64px !important;
    margin-bottom: 0.5rem;
    display: block;
  }
  main {
    padding: 1rem;
  }
  .intro h1 {
    font-size: 1rem;
  }
  .menu-toggle {
    display: block;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1001;
  }
  nav {
    display: none;
    flex-direction: column;
    align-items: flex-end;      /* Right-align items */
    gap: 0.5rem;
    margin-top: 1rem;
    background: #1E293B;
    position: absolute;
    top: 60px; /* adjust as needed for your header height */
    right: 0;  /* Align to right */
    left: auto;
    width: 70vw; /* or 200px, as you prefer */
    border-bottom: 2px solid #38BDF8;
    border-radius: 0 0 10px 10px;
    z-index: 1000;
    text-align: right;          /* Right-align text */
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  }
  nav a {
    text-align: right;          /* Right-align link text */
    width: 100%;
    padding-right: 1.5rem;
  }
  nav.active {
    display: flex;
  }
  .server {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
  }
  .server img {
    width: 100px;
    height: 100px;
    margin-bottom: 0.5rem;
  }
  .server-info {
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
  }
  .logo {
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
  }
  .menu-toggle {
    display: block;
    position: static;      /* <-- Remove absolute positioning */
    margin-left: 1rem;     /* Space from logo */
    font-size: 1.3rem;
    padding: 0.15em 0.5em;
    z-index: 1001;
  }
  nav {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    background: #181f2a;
    position: absolute;
    top: 60px;
    right: 0;
    left: auto;
    width: 200px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    z-index: 1000;
    margin-top: 0;
    text-align: right;
  }
  nav a {
    text-align: right;
    width: 100%;
    padding-right: 1.5rem;
  }
  nav.active {
    display: flex;
  }
}
