:root {
  --primary: #4f6ef7;
  --text-dark: #0f172a;
  --text-light: #475569;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --border: rgba(15, 23, 42, 0.08);
}

/* Renamed to site-navbar to avoid Bootstrap .navbar conflict */
.site-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border);
  height: 90px;
  display: flex;
  align-items: center;
}

.nav-container {
  max-width: 1400px;
  width: 100%;
  margin: auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  /* Fixed side widths to ensure perfect center for middle col */
  align-items: center;
}

/* LEFT: Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
  color: var(--text-dark);
  text-decoration: none !important;
  /* Force removal of underline */
  justify-self: start;
}

.logo:hover {
  text-decoration: none !important;
  color: var(--text-dark);
}

.logo img {
  height: 60px;
  /* 60px size */
  width: auto;
}

.logo span {
  white-space: nowrap;
}

/* CENTER: Menu */
.desktop-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
  padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

/* Minimal hover effect (dot or small line) */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background-color: var(--primary);
  transition: transform 0.3s ease;
  border-radius: 4px;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* .ai-link {
  color: #7c3aed !important;
  font-weight: 600;
} */
/* Removed custom styling for AI link to match other menu items per user request */

/* .ai-link::after {
  background-color: #7c3aed;
} */

/* RIGHT: Socials */
.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  justify-self: end;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-light);
  background: white;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  font-size: 14px;
  text-decoration: none;
}

.social-icon:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 110, 247, 0.2);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  margin: 5px 0;
  transition: 0.3s;
}

/* Mobile Menu Container (Outside main grid) */
.mobile-menu {
  position: fixed;
  top: 90px;
  left: 0;
  width: 100%;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 20px;
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: none;
  /* Toggled via JS */
  z-index: 999;
}

.mobile-menu .nav-link {
  font-size: 16px;
  padding: 10px;
  border-radius: 8px;
  background: #f8fafc;
  text-align: center;
}

.mobile-menu .social-icons {
  justify-content: center;
  margin-top: 10px;
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
  .nav-container {
    padding: 0 20px;
    grid-template-columns: 1fr auto;
    /* Switch to 2 cols */
  }

  .desktop-menu {
    display: none;
  }

  .nav-right .social-icons {
    display: none;
    /* Hide desktop socials on mobile/tablet to save space, show in mobile menu */
  }

  .menu-toggle {
    display: block;
  }

  .logo {
    font-size: 18px;
  }

  .logo img {
    height: 48px;
    /* Slightly smaller on mobile if needed, user asked for 60px generally but on phone 60 might be big. Keeping 60px for now to respect request unless it breaks layout. */
  }
}