:root {
  --primary: #ff6e00;
  --green: #00ff9c;
  --bg: linear-gradient(270deg, #ff6e00, #00ff9c);
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", "Segoe UI", sans-serif;
}

/* NAVBAR */
.navbar {
  min-height: 85px;
  padding: 10px 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: var(--bg);
  background-size: 300% 300%;
  animation: gradientFlow 10s ease infinite;

  backdrop-filter: blur(12px);

  position: sticky;
  top: 0;
  z-index: 1000;
  position: relative;
  overflow: hidden;
}

/* SHIMMER */
.navbar::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 6s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 150%;
  }
}

/* GRADIENT */
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* LEFT / RIGHT */
.nav-left-section,
.nav-right {
  z-index: 3;
}

/* CENTER */
.title-group {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 80%;
}

/* LOGOS */
.logo-left,
.logo-right {
  height: clamp(50px, 6vw, 80px);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
  transition: 0.3s;
}

.logo-left:hover,
.logo-right:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 15px #fff);
}

/* TITLE */
.title {
  color: white;
  font-weight: 800;
  font-size: clamp(18px, 2vw, 30px);

  letter-spacing: 0.5px;
  line-height: 1.2;

  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);

  white-space: nowrap;
}

/* LOGIN */
.login-btn {
  background: var(--green);
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;

  box-shadow: 0 0 12px var(--green);
  transition: 0.3s;
}

.login-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 25px var(--green);
}

/* HAMBURGER */
.menu-toggle {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: white;
  margin: 4px 0;
  transition: 0.4s;
}

/* ANIMATION */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* OVERLAY */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);

  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* SIDE MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;

  width: 280px;
  height: 100vh;

  background: #111;
  padding-top: 100px;

  display: flex;
  flex-direction: column;

  transition: left 0.4s ease;
  z-index: 1050;
}

.mobile-menu.active {
  left: 0;
}

/* MENU ITEMS */
.mobile-menu a {
  padding: 18px 20px;
  color: white;
  text-decoration: none;

  opacity: 0;
  transform: translateX(-20px);
  animation: slideIn 0.4s forwards;
}

.mobile-menu.active a:nth-child(1) {
  animation-delay: 0.1s;
}
.mobile-menu.active a:nth-child(2) {
  animation-delay: 0.2s;
}
.mobile-menu.active a:nth-child(3) {
  animation-delay: 0.3s;
}
.mobile-menu.active a:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ================= MOBILE ================= */
@media (max-width: 900px) {
  .login-btn {
    display: none;
  }

  /* 🔥 SAFE AREA FOR CENTER CONTENT */
  .title-group {
    width: calc(100% - 100px); /* 🔥 more breathing space */
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 8px;
  }

  /* 🔥 PUSH LOGOS AWAY FROM EDGES */
  .logo-left {
    margin-left: 12px;
  }

  .logo-right {
    margin-right: 12px;
  }

  /* LOGOS */
  .logo-left,
  .logo-right {
    height: clamp(45px, 10vw, 75px);
    flex-shrink: 0;
  }

  /* TEXT CENTERED */
  .title {
    flex: 1;
    text-align: center;

    font-size: clamp(13px, 4vw, 17px);
    font-weight: 600;

    line-height: 1.35;
    white-space: normal;
  }
}
