/* =========================
   RESET
========================= */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   HTML / BODY
========================= */

html {
  scroll-behavior: smooth;

  width: 100%;
  max-width: 100%;

  overflow-x: hidden !important;
}

body {
  width: 100%;
  max-width: 100%;

  min-height: 100vh;

  background: #05010f;
  color: #ffffff;

  font-family: "Inter", sans-serif;

  overflow-x: hidden !important;
}

/* =========================
   ROOT
========================= */

:root {
  --background: #05010f;
  --card: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);

  --text: #ffffff;
  --text-secondary: #b8b8c7;

  --purple: #7b2cff;
  --purple-light: #a855f7;
  --blue: #4f46e5;

  --gradient: linear-gradient(
    135deg,
    #7b2cff,
    #4f46e5
  );
}

/* =========================
   GLOBAL SAFETY
========================= */

img,
video,
canvas,
svg {
  max-width: 100%;
}

img {
  height: auto;
  display: block;
}

main,
section,
header,
footer,
div {
  max-width: 100%;
}

/* =========================
   BACKGROUND
========================= */

.background-glow {
  position: fixed;

  top: 50%;
  left: 50%;

  width: 900px;
  height: 900px;

  max-width: 100vw;

  transform: translate(-50%, -50%);

  background: radial-gradient(
    circle,
    rgba(123, 44, 255, 0.25),
    transparent 70%
  );

  filter: blur(120px);

  z-index: -1;

  pointer-events: none;

  overflow: hidden;
}

/* =========================
   NAVBAR
========================= */

.navbar {
  width: 100%;
  max-width: 100%;

  height: 100px;

  padding: 0 64px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  position: sticky;
  top: 0;

  z-index: 999;

  backdrop-filter: blur(20px);

  background: rgba(5, 1, 15, 0.78);

  border-bottom: 1px solid rgba(255,255,255,0.05);

  overflow: hidden;
}

/* =========================
   LOGO GLOBAL
========================= */

.logo {
  display: flex;
  align-items: center;

  gap: 0;

  flex-shrink: 0;
}

.logo-image {
  width: 78px;
  height: 78px;

  object-fit: contain;

  display: block;

  margin-right: -6px;
}

.logo span {
  color: #ffffff !important;

  font-size: 34px;
  font-weight: 850;

  letter-spacing: -1px;

  line-height: 1;
}

.logo-icon,
.footer-logo-icon {
  display: none !important;
}

/* =========================
   FOOTER LOGO
========================= */

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo-image {
  width: 260px;
  height: auto;

  object-fit: contain;

  display: block;

  max-width: 100%;
}

/* =========================
   NAV LINKS
========================= */

.nav-links {
  display: flex;
  align-items: center;

  gap: 38px;
}

.nav-links > a,
.dropdown > a {
  color: white;

  text-decoration: none;

  font-size: 16px;
  font-weight: 600;

  position: relative;

  transition: 0.3s;
}

.nav-links > a:hover,
.dropdown > a:hover {
  color: #b388ff;
}

.nav-links > a.active::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -12px;

  width: 100%;
  height: 2px;

  background: var(--gradient);
}

/* =========================
   BUTTON
========================= */

.nav-button {
  color: white;

  text-decoration: none;

  padding: 16px 28px;

  border-radius: 14px;

  background: var(--gradient);

  display: flex;
  align-items: center;
  gap: 12px;

  font-weight: 700;

  box-shadow: 0 12px 40px rgba(123,44,255,0.35);

  transition: 0.35s;

  flex-shrink: 0;
}

.nav-button:hover {
  transform: translateY(-4px);
}

/* =========================
   DROPDOWN
========================= */

.dropdown {
  position: relative;

  padding: 38px 0;
}

.dropdown > a {
  display: flex;
  align-items: center;

  gap: 8px;
}

.dropdown > a i {
  font-size: 12px;

  transition: 0.3s;
}

.dropdown:hover > a i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;

  top: 78px;
  left: 50%;

  transform: translateX(-50%) translateY(18px);

  width: 360px;
  max-width: calc(100vw - 32px);

  background: rgba(10, 5, 20, 0.98);

  border: 1px solid rgba(255,255,255,0.08);

  border-radius: 24px;

  padding: 16px;

  backdrop-filter: blur(25px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: 0.35s ease;

  box-shadow: 0 30px 80px rgba(0,0,0,0.55);

  z-index: 1000;

  overflow: hidden;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;

  visibility: visible;

  pointer-events: auto;

  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  width: 100%;

  padding: 16px 18px;

  border-radius: 16px;

  display: flex;
  align-items: flex-start;

  gap: 14px;

  color: white;

  text-decoration: none;

  transition: 0.3s;
}

.dropdown-menu a:hover {
  background: rgba(255,255,255,0.04);

  transform: translateX(6px);
}

.dropdown-menu a i {
  width: 42px;
  height: 42px;

  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(123,44,255,0.12);

  color: #a855f7;

  font-size: 16px;

  flex-shrink: 0;
}

.dropdown-menu a div {
  display: flex;
  flex-direction: column;

  gap: 5px;
}

.dropdown-menu a strong {
  font-size: 15px;
}

.dropdown-menu a small {
  color: rgba(255,255,255,0.55);

  font-size: 13px;

  line-height: 1.5;
}

/* =========================
   FOOTER
========================= */

.footer {
  width: 100%;
  max-width: 1440px;

  margin: 0 auto 40px;

  padding: 60px;

  border-radius: 34px;

  position: relative;

  overflow: hidden;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.035),
    rgba(255,255,255,0.015)
  );

  border: 1px solid rgba(255,255,255,0.07);

  backdrop-filter: blur(24px);
}

.footer::before {
  content: "";

  position: absolute;

  width: 560px;
  height: 560px;

  max-width: 100vw;

  top: -260px;
  right: -190px;

  background: radial-gradient(
    circle,
    rgba(123,44,255,0.18),
    transparent 70%
  );

  pointer-events: none;
}

.footer-container {
  position: relative;
  z-index: 2;

  display: grid;

  grid-template-columns: 1.35fr 0.8fr 1fr 1.15fr;

  gap: 30px;

  padding-bottom: 48px;

  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  max-width: 430px;
}

.footer-logo {
  margin-bottom: 24px;
}

.footer-brand h3 {
  color: rgba(255,255,255,0.72);

  font-size: 22px;

  line-height: 1.6;

  margin-bottom: 26px;

  font-weight: 600;
}

.footer-brand h3 span {
  color: #a855f7;
}

.footer-brand p {
  color: var(--text-secondary);

  font-size: 18px;

  line-height: 1.8;

  margin-bottom: 34px;
}

/* =========================
   SOCIALS
========================= */

.footer-socials {
  display: flex;

  gap: 16px;

  flex-wrap: wrap;
}

.footer-socials a {
  width: 56px;
  height: 56px;

  border-radius: 16px;

  color: white;

  text-decoration: none;

  background: rgba(255,255,255,0.03);

  border: 1px solid rgba(255,255,255,0.07);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;

  transition: 0.35s;
}

.footer-socials a:hover {
  background: rgba(123,44,255,0.16);

  border-color: rgba(123,44,255,0.35);

  transform: translateY(-6px);

  box-shadow: 0 0 35px rgba(123,44,255,0.25);
}

/* =========================
   FOOTER COLUMNS
========================= */

.footer-column h4 {
  font-size: 22px;

  margin-bottom: 28px;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-column a {
  color: var(--text-secondary);

  text-decoration: none;

  font-size: 17px;

  margin-bottom: 19px;

  display: flex;
  align-items: center;

  gap: 12px;

  transition: 0.3s;

  overflow-wrap: anywhere;
}

.footer-column a i {
  color: #a855f7;

  font-size: 13px;
}

.footer-column a:hover {
  color: white;

  transform: translateX(6px);
}

/* =========================
   CONTACT
========================= */

.footer-contact {
  gap: 0;
}

.contact-item {
  display: flex;
  align-items: center;

  gap: 16px;

  padding: 14px 0;

  border-bottom: 1px solid rgba(255,255,255,0.07);

  width: 100%;
  max-width: 100%;
}

.contact-icon {
  width: 48px;
  height: 48px;

  border-radius: 14px;

  color: #a855f7;

  background: rgba(123,44,255,0.13);

  border: 1px solid rgba(123,44,255,0.2);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 20px;

  flex-shrink: 0;
}

.contact-item span {
  color: var(--text-secondary);

  font-size: 17px;

  overflow-wrap: anywhere;
}

/* =========================
   FOOTER BOTTOM
========================= */

.footer-bottom {
  position: relative;
  z-index: 2;

  padding-top: 34px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;

  flex-wrap: wrap;
}

.footer-bottom p {
  color: rgba(255,255,255,0.5);

  font-size: 16px;
}

.footer-links {
  display: flex;
  align-items: center;

  gap: 20px;

  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.55);

  text-decoration: none;

  font-size: 16px;

  transition: 0.3s;
}

.footer-links a:hover {
  color: white;
}

.footer-links span {
  color: #a855f7;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1400px) {

  .footer {
    width: calc(100% - 80px);
    max-width: calc(100% - 80px);
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {

  html,
  body {
    overflow-x: hidden !important;
  }

  .background-glow {
    width: 520px;
    height: 520px;

    max-width: 100vw;
    max-height: 100vw;

    filter: blur(90px);

    opacity: 0.75;
  }

  .navbar {
    width: 100%;

    height: auto;

    padding: 22px 24px;
  }

  .nav-links,
  .nav-button {
    display: none;
  }

  .logo-image {
    width: 58px;
    height: 58px;
  }

  .logo span {
    font-size: 28px;
  }

  .footer-logo-image {
    width: 180px;
  }

  .footer {
    width: 100% !important;
    max-width: 100% !important;

    margin: 0 auto 32px !important;

    padding: 34px 24px !important;

    border-radius: 28px !important;

    overflow: hidden !important;
  }

  .footer::before {
    width: 360px;
    height: 360px;

    top: -170px;
    right: -160px;
  }

  .footer-container {
    width: 100%;
    max-width: 100%;

    grid-template-columns: minmax(0, 1fr);

    gap: 42px;
  }

  .footer-brand,
  .footer-column,
  .footer-contact,
  .footer-bottom,
  .footer-links,
  .contact-item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .footer-bottom {
    flex-direction: column;

    align-items: flex-start;
  }
}

@media (max-width: 430px) {

  .navbar {
    padding: 18px 18px;
  }

  .logo-image {
    width: 54px;
    height: 54px;
  }

  .logo span {
    font-size: 26px;
  }

  .footer {
    padding: 28px 22px !important;
  }

  .footer-brand h3 {
    font-size: 20px;
  }

  .footer-brand p {
    font-size: 16px;
  }

  .footer-column h4 {
    font-size: 20px;
  }

  .footer-column a {
    font-size: 16px;
  }

  .contact-item {
    align-items: flex-start;
  }

  .contact-icon {
    width: 44px;
    height: 44px;

    font-size: 18px;
  }

  .contact-item span {
    font-size: 15px;
    line-height: 1.5;
  }
}

/* =========================
   FINAL OVERFLOW FIX
========================= */

html,
body {
  overflow-x: hidden !important;
}

body:not(.menu-open) {
  overflow-y: auto !important;
}

body.menu-open {
  overflow-y: hidden !important;
}

@media (min-width: 801px) {
  .mobile-menu {
    display: none !important;
  }

  /* FORCE FIX FOOTER OVERFLOW */

@media (max-width: 800px) {

  footer.footer {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;

    margin-left: auto !important;
    margin-right: auto !important;

    padding: 28px 18px !important;

    border-radius: 26px !important;

    overflow: hidden !important;

    box-sizing: border-box !important;
  }

}

/* =========================
   FINAL OVERFLOW FIX
========================= */

html,
body {
  overflow-x: hidden !important;
}

body:not(.menu-open) {
  overflow-y: auto !important;
}

body.menu-open {
  overflow-y: hidden !important;
}

@media (min-width: 801px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =========================
   NAVBAR / DROPDOWN LAYER FIX
========================= */

header,
.navbar {
  isolation: isolate;
}

.navbar {
  z-index: 9999 !important;
  overflow: visible !important;
}

.dropdown {
  z-index: 10000 !important;
}

.dropdown-menu {
  z-index: 10001 !important;
}

/* =========================
   FORCE FOOTER MOBILE OVERFLOW FIX
========================= */

@media (max-width: 800px) {

  footer.footer,
  footer.footer * {
    box-sizing: border-box !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  footer.footer {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;

    margin-left: 16px !important;
    margin-right: 16px !important;

    padding: 28px 20px !important;

    overflow: hidden !important;
    overflow-x: hidden !important;

    border-radius: 28px !important;
  }

  .footer-container {
    width: 100% !important;
    max-width: 100% !important;

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;

    overflow: hidden !important;
  }

  .footer-brand,
  .footer-column,
  .footer-contact,
  .footer-bottom,
  .footer-links,
  .contact-item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    overflow: hidden !important;
  }

  .footer-logo-image {
    width: 180px !important;
    max-width: 100% !important;
  }

  .footer-brand h3,
  .footer-brand p,
  .footer-column a,
  .contact-item span,
  .footer-bottom p,
  .footer-links a {
    max-width: 100% !important;

    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

}

@media (max-width: 430px) {

  footer.footer {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;

    margin-left: 12px !important;
    margin-right: 12px !important;

    padding: 26px 18px !important;
  }

}
}