@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap");

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

* {
  text-decoration: none;
  color: white;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #090909;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Josefin Sans", sans-serif;
}

/* ===== BUTTONS WITH CUT EFFECT ===== */
.btn-primary,
.btn-outline,
.btn-red,
.btn-red-outline,
.btn-white {
  position: relative;
  display: inline-block;
  padding: 14px 36px;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  /* letter-spacing: 0.08em; */
  text-transform: capitalize;

  cursor: pointer;
  transition: opacity 0.2s ease;
  /* Clip the top-right corner */
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}

.btn-primary:hover,
.btn-outline:hover,
.btn-red:hover,
.btn-red-outline:hover {
  opacity: 0.85;
}

/* Blue (Discord) primary */
.btn-primary {
  background-color: #1f6ed5;
  border: none;
  clip-path: polygon(24px 0, 100% 0, 100% 100%, 0 100%, 0 24px);
}

.btn-primary:disabled {
  background-color: #0c2e5c;
}

.btn-white {
  background-color: white;
  color: black;
}

/* White outlined */
.btn-outline {
  background: transparent;
  border: 2px solid white;
}

/* Red accent */
.btn-red {
  background-color: #c41e3a;
  border: none;
}

/* Red outlined */
.btn-red-outline {
  background: transparent;
  border: 2px solid #c41e3a;
  color: #c41e3a;
}
.btn-red-outline * {
  color: #c41e3a;
}

.txt-btn {
  color: #1f6ed5;
  font-weight: 700;
  padding: 5px;
  transition: opacity 0.2s ease;
}

.txt-btn:hover {
  opacity: 0.8;
}

/* ===== NAVBAR ===== */
#navbar {
  position: sticky;
  top: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 64px;
  background: rgba(9, 9, 9, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#nav-left {
  display: flex;
  align-items: center;
  gap: 48px;
}

#nav-right {
  display: flex;
  align-items: center;
}

#logo {
  height: 28px;
  width: auto;
  display: block;
}

#nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: #c41e3a;
  transition: width 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: white;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Discord button in nav */
#discord-server {
  background-color: #5865f2;
  padding: 10px 22px;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  /* letter-spacing: 0.06em; */
  /* text-transform: uppercase; */
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: opacity 0.2s ease;
}
#discord-server:hover {
  opacity: 0.85;
}

/* ===== HAMBURGER ===== */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  display: none;
  padding: 4px;
  line-height: 1;
}
.hamburger svg {
  width: 26px;
  height: 26px;
}

/* ===== MOBILE SIDE PANEL ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background: rgba(9, 9, 9, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  width: 280px;
  height: 100%;
  background: #0d0d0d;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active .mobile-menu-content {
  transform: translateX(0);
}

.mobile-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 32px;
}

.close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  padding: 4px;
}
.close-btn svg {
  width: 26px;
  height: 26px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  border-radius: 4px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.mobile-link:hover,
.mobile-link.active {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}
.mobile-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.mobile-discord-btn {
  background-color: #5865f2;
  color: white;
  padding: 14px 20px;
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  margin-top: auto;
  margin-bottom: 16px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: opacity 0.2s ease;
}
.mobile-discord-btn:hover {
  opacity: 0.85;
}

/* ===== SECTION SHARED STYLES ===== */
.section-label {
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c41e3a;
  display: block;
  margin-bottom: 12px;
}

.section-heading {
  font-family: "Josefin Sans", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtext {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 540px;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 80px;
}

.left-footer{
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 28px;
}

footer img {
  height: 28px;
  opacity: 0.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.social-icons {
  display: flex;
  gap: 28px;
}

.footer-link {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s ease;
}
.footer-link:hover {
  color: white;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.25);
}

/* ===== OVERLAY for mobile menu ===== */
.hidden {
  display: none !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  #nav-menu {
    display: none !important;
  }
  #nav-right #discord-server {
    display: none;
  }
  #nav-left {
    gap: 14px;
  }
  #navbar {
    padding: 14px 20px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
  }
}

@media (min-width: 769px) {
  .hamburger {
    display: none !important;
  }
  #nav-menu {
    display: flex !important;
  }
}

/* =========================================
   EXTRACTED INLINE STYLES (Clean Code)
========================================= */

/* Nav Right Container */
.nav-right-container {
  position: relative;
  display: flex;
  align-items: center;
}

/* Nav Profile Picture (Desktop) */
.nav-profile-link {
  display: flex;
  align-items: center;
}

.nav-profile-pic {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #c41e3a;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.nav-profile-pic:hover {
  transform: scale(1.05);
}

/* Mobile Profile Button Content */
.mobile-profile-btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.mobile-profile-pic {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
}

/* =========================================
   USER DROPDOWN (Global)
========================================= */
.user-menu-btn {
  display: flex;
  align-items: center;
}
.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 15px;
  background-color: #111111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 160px;
  z-index: 1000;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease-in-out;
}
.user-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.9rem;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.dropdown-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}
