/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: #fff;
}
a {
  text-decoration: none;
  color: inherit;
}

/* Wrapper */
.mm-navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(5px);
  background-color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #eaeaea;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Navbar Structure */
.mm-navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}

/* Left Side */
.mm-navbar-left {
  display: flex;
  align-items: center;
  gap: 24px;
}
.mm-logo {
  height: 24px;
}
.mm-nav-links {
  display: flex;
  gap: 16px;
}

.mm-active-link-hover:hover{
  color: #000;
  transition: color 0.3s ease;
}

.mm-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #999;
}
.mm-nav-links a.mm-active {
  color: #000;
}

/* Center Title - Perfect Center */
.mm-navbar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}
.mm-navbar-title {
  font-size: 18px;
  font-weight: 600;
  color: #000;
  letter-spacing: 1px;
}

/* Center Title - Animation Start */



/* Center Title - Animation End */

/* Right Side */
.mm-navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.mm-navbar-right i {
  font-size: 20px;
  color: #000;
  cursor: pointer;
}
.mm-btn-getpro {
  background-color: #007aff;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}
.mm-btn-red {
  background-color: red;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Phone Icon Link */
.mm-phone-call {
  display: flex;
  align-items: center;
  color: inherit;
}
.mm-phone-call i {
  cursor: pointer;
}

/* Globe Popup */
.mm-popup {
  position: fixed;
  top: 90%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #000;
  color: #fff;
  padding: 16px 24px;
  border-radius: 10px;
  font-size: 16px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
.mm-popup.show {
  opacity: 1;
  pointer-events: auto;
}

/* -------------- Dark Mode Support Start--------------*/

body.dark-mode .mm-navbar-wrapper {
  background-color: #1a1a1a;
  border-bottom: 1px solid #ffffff;
}

body.dark-mode .mm-navbar-title,
body.dark-mode .mm-nav-links a,
body.dark-mode .mm-phone-call i,
body.dark-mode .mm-btn-getpro {
  color: #fff;
}

body.dark-mode .mm-btn-getpro {
  background-color: #444;
}

body.dark-mode .mm-nav-links a.mm-active {
  color: #fff;
}

body.dark-mode .mm-nav-links a.mm-active-link-hover:hover {
  color: #ccc;
}

/* Lucide icon styling */
.mm-navbar-right i[data-lucide] svg {
  stroke: currentColor;
  color: inherit;
}

/* Light mode default */
.mm-navbar-right {
  color: black;
}

/* Dark mode override */
body.dark-mode .mm-navbar-right {
  color: white;
}

.mm-logo {
  transition: all 0.3s ease;
}

/* -------------- Dark Mode Support End--------------*/

@media (max-width: 576px) {
  .mm-navbar {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 15px 15px;
  }

  .mm-navbar-left {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .mm-navbar-center {
    display: none; /* ❌ center title hide */
  }

  .mm-logo {
    height: 22px;
  }

  .mm-navbar-right {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  /* Move title to left side */
  .mm-navbar-left::after {
    content: "#PORTFOLIO";
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-left: 6px;
  }

  body.dark-mode .mm-navbar-left::after {
    color: #fff;
  }

  /* Hide phone, globe, and nav links */
  .mm-phone-call,
  #mm-globe-icon,
  .mm-nav-links {
    display: none !important;
  }
}
